/* ===== CMS dark appearance — generated by bin/build-dark-css.py (do not edit by hand; edit HAND in the script) ===== */
html.dark{color-scheme:dark;
  --paper:#111a14;--ivory:#18231c;--line:#33413a;--line2:#26322b;--ink:#ECE6D8;--muted:#AEB5A9;--muted2:#8E9689;
  --claret:#E08A82;--claretbg:#3a1f1d;--amber:#E0B26A;--amberbg:#36291a;--ok:#7FC29A;--okbg:#1b2f23;
  --gold2:#C9AE7E;--surface:#18231c;--surface2:#1e2a23}
html.dark body{background:var(--paper);color:var(--ink)}
/* Red, green and amber are used both as text and as badge backgrounds with white text: mid tones that work for both */
html.dark{--claret:#C9625B;--ok:#4E9A6E;--amber:#B8873A}
html.dark .tm.r,html.dark .chip.bad{color:#fff}
/* The HR section's own palette (BambooHR copy) */
html.dark .bhr{--ground:#111a14;--panel:#18231c;--panel-2:#1e2a23;--tint:#26322b;--sage:#223026;
  --ink:#ECE6D8;--ink-2:#B8BDB1;--ink-3:#A3A99D;--line:#33413a;--line-2:#26322b;--gold-text:#D4B987;
  --go:#6FB58C;--go-wash:#1b2f23;--watch:#D4B987;--watch-wash:#33291a;--stop:#E0846A;--stop-wash:#3a221d;--clinical:#8DBCCB;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px -14px rgba(0,0,0,.6)}
html.dark .bhr .el-ok{--t:#7FC29A;--tb:#1b2f23}html.dark .bhr .el-due{--t:#D4B987;--tb:#33291a}html.dark .bhr .el-exp{--t:#E0846A;--tb:#3a221d}html.dark .bhr .el-mis{--t:#A3A99D;--tb:#26322b}
/* Diary bookings keep their pale type colours, so their writing stays dark */
html.dark .dy-ev:not(.dy-mirror),html.dark .dy-ev:not(.dy-mirror) b,html.dark .dy-ev:not(.dy-mirror) small,html.dark .dy-ev:not(.dy-mirror) .t{color:#1C2B21}
html.dark .dy-mirror{color:var(--ink)}
html.dark .dy-ev:not(.dy-mirror){filter:brightness(.9) saturate(.95)}
/* Report library: each category's title colour is a mid tone; on dark the titles are ivory, the icons keep the colour */
html.dark .rp-card li a b{color:var(--ink)}
html.dark .rp-card h3 span{color:color-mix(in srgb,var(--t) 45%,#fff);background:color-mix(in srgb,var(--t) 30%,#18231c)}
/* Coloured figures (HR time-off tiles, any --c accent) are lifted towards white so they read on dark */
html.dark .bhr .hh-num,html.dark .bhr .hh-num b,html.dark .bhr .hh-tile>span{color:color-mix(in srgb,var(--c) 50%,#fff)}
/* Forest-green writing put straight into a page */
html.dark [style*="color:var(--forest)"],html.dark [style*="color: var(--forest)"]{color:var(--ink)!important}
/* Inline colours written into a few screens */
html.dark [style*="background:#fff"],html.dark [style*="background: #fff"],html.dark [style*="background:#FFF"]{background-color:var(--surface)!important}
html.dark [style*="background:#FBF9F3"],html.dark [style*="background:#F4F0E7"],html.dark [style*="background:#FBF5E9"]{background-color:var(--ivory)!important}
html.dark [style*="background:#E5EEE6"]{background-color:var(--okbg)!important}
html.dark [style*="background:#F6E6E3"]{background-color:var(--claretbg)!important}
html.dark [style*="color:#1C2B21"]{color:var(--ink)!important}
html.dark [style*="color:#5d6a60"],html.dark [style*="color:#8a8f84"]{color:var(--muted)!important}
html.dark [style*="color:#8E2F2A"]{color:var(--claret)!important}
html.dark [style*="color:#2E6B45"]{color:var(--ok)!important}
/* Black logos and dark line icons on light cards turn light */
html.dark img[src*="logo-cc-black"],html.dark img[src*="-black."]{filter:invert(1) brightness(1.6)}
/* Form fields */
html.dark input:not([type=checkbox]):not([type=radio]):not([type=range]),html.dark select,html.dark textarea{background-color:var(--surface2);color:var(--ink);border-color:var(--line)}
html.dark input::placeholder,html.dark textarea::placeholder{color:#7f877c}
html.dark input[type=date],html.dark input[type=time]{color-scheme:dark}
/* Scrollbars and selection */
html.dark ::selection{background:#4a5d50;color:#fff}
/* Photos keep their own colour; very bright illustrations are toned down a little */
html.dark .hero img,html.dark .dy-face{filter:none}

/* from combined.css */
html.dark .nb .menu a.on{color:var(--ink)}
html.dark .swmenu{background:var(--surface)}
html.dark .card{background:var(--surface)}
html.dark .btn{background:var(--surface)}
html.dark .btn.pri{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .seg{background:var(--surface)}
html.dark .seg span.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .chip{color:#b9bcb8}
html.dark .ini{color:var(--ink)}
html.dark .tbl th{color:#b9bcb8}
html.dark .inp{background:var(--surface)}
html.dark .next{background:#302819}
html.dark .alertbar{border:1px solid #52403d}
html.dark .pcard .av{color:var(--ink)}
html.dark .pcard .nx{background:rgba(255,255,255,0.07)}
html.dark .pcard nav a em{background:rgba(255,255,255,0.1)}
html.dark .mm span.x{background:repeating-linear-gradient(135deg,#352f22 0 4px,var(--surface) 4px 8px)}
html.dark .cal{background:var(--surface)}
html.dark .col.off{background:repeating-linear-gradient(135deg,#312c1f 0 6px,#2c2719 6px 12px)}
html.dark .col.closed{background:repeating-linear-gradient(135deg,#373125 0 6px,#2e291c 6px 12px)}
html.dark .colk{background:#322d21}
html.dark .kc{background:var(--surface)}
html.dark .act{border:1px solid #52403d;background:var(--surface)}
html.dark .kpi{background:var(--surface)}
html.dark .tile.bad{background:var(--surface);border:1px solid #52403d}
html.dark .fstat{background:var(--surface)}
html.dark .fnav a{color:#b9bcb8}
html.dark .choice{background:var(--surface)}
html.dark .choice.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .tabbar{background:var(--surface)}
html.dark .tabbar a.on{color:var(--ink)}
@media (max-width:1100px){html.dark .tbl.cardify tr{background:var(--surface)}}
html.dark .swipechips span{background:var(--surface)}
html.dark .swipechips span.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
/* from app-extra.css */
html.dark .testbar{border:1px solid #564f40}
html.dark .sheet-card{background:var(--surface)}
html.dark input.inp,html.dark select.inp,html.dark textarea.inp{background:var(--surface)}
html.dark .swmenu .appear .appear-seg button.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
/* from area-bhr.css */
html.dark .bhr a{color:var(--ink)}
html.dark .bhr .top__link.is-on{color:var(--ink)}
html.dark .bhr .mc__n{background:rgba(255,255,255,0.1)}
html.dark .bhr .side__group[open] summary{color:var(--ink)}
html.dark .bhr .side a.is-on{color:var(--ink)}
html.dark .bhr .flash{border:1px solid #3f5044}
html.dark .bhr .alert{border:1px solid #50413b}
html.dark .bhr .tile li a{color:var(--ink)}
html.dark .bhr .table tbody tr:hover td{background:#292616}
html.dark .bhr .tag--completed{color:var(--ink)}
html.dark .bhr .btn--primary{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .bhr .btn--primary:hover{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .bhr .btn--danger{border-color:#54443e}
html.dark .bhr .btn.is-on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .bhr .link{color:var(--ink)}
html.dark .bhr .form input:not([type=checkbox]):not([type=radio]),html.dark .bhr .form select,html.dark .bhr .form textarea,html.dark .bhr .page-head select,html.dark .bhr .search-form input{background:var(--surface)}
html.dark .bhr .form legend{color:var(--ink)}
html.dark .bhr .tabs [aria-selected=true]{color:var(--ink)}
html.dark .bhr .tg__day{color:var(--ink)}
html.dark .bhr .tg__col{background-image:repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--slot-h) * 4 - 1px), var(--line) calc(var(--slot-h) * 4 - 1px), var(--line) calc(var(--slot-h) * 4)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--slot-h) - 1px), #312b20 calc(var(--slot-h) - 1px), #312b20 var(--slot-h))}
html.dark .bhr .tg__col:hover{background-color:#2a2716}
html.dark .bhr .ap{background:color-mix(in srgb, var(--ac) 16%, var(--surface))}
html.dark .bhr .ap.is-completed{background:color-mix(in srgb, var(--ac) 7%, #2b281e)}
html.dark .bhr .ap--event{background:repeating-linear-gradient(45deg, color-mix(in srgb, var(--ac) 14%, var(--surface)), color-mix(in srgb, var(--ac) 14%, var(--surface)) 6px, var(--surface) 6px, var(--surface) 12px)}
html.dark .bhr .mg__d.is-today{background:#262a1d}
html.dark .bhr .mg__i{background:color-mix(in srgb, var(--ac) 12%, var(--surface))}
html.dark .bhr .form__h{color:var(--ink)}
html.dark .bhr .table--matrix tr.group th{color:var(--ink)}
html.dark .bhr .tpl__h{color:var(--ink)}
html.dark .bhr .chart{background:var(--surface)}
html.dark .bhr .doc{background:var(--surface)}
html.dark .bhr .kpi strong{color:var(--ink)}
html.dark .bhr .prod .dd__menu a.is-on{color:var(--ink)}
html.dark .bhr .tile__list a:hover{color:var(--ink) !important}
html.dark .bhr .prod-hr .top__nav .top__link.is-on::after{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .bhr .prod-hr .side{background:var(--surface)}
html.dark .bhr .prod-hr .side a:hover{background:#2b2618}
html.dark .bhr .prod-hr .flash{border-color:#3f5044}
html.dark .bhr .prod-hr .btn{background:var(--surface);border:1px solid #534c3f}
html.dark .bhr .prod-hr .btn:hover{background:#2b2618;border-color:#655c4b}
html.dark .bhr .prod-hr .btn--primary,html.dark .bhr .prod-hr .btn.is-on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .bhr .prod-hr .btn--primary:hover{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .bhr .prod-hr .form input:not([type=checkbox]):not([type=radio]),html.dark .bhr .prod-hr .form select,html.dark .bhr .prod-hr .form textarea{border-color:#534c3f}
html.dark .bhr .prod-hr .table th{background:#2f2a1f}
html.dark .bhr .prod-hr .table td{border-bottom-color:#4c4538}
html.dark .bhr .prod-hr .table tbody tr:hover td{background:#292616}
html.dark .bhr .hr-tabs a[aria-selected=true]{color:var(--ink)}
html.dark .bhr .tabs a[role=tab][aria-selected=true]{color:var(--ink)}
html.dark .bhr .hr-sec__h{color:var(--ink)}
html.dark .bhr .hr-balance strong{color:var(--ink)}
html.dark .bhr .hr-tick{background:var(--surface);color:var(--ink)}
html.dark .bhr .prod-hr .hr-head .btn{background:var(--surface);border-color:#383838}
html.dark .bhr .prod-hr .hr-head .btn:hover{background:#2e3226}
html.dark .bhr .prod-hr .hr-head .btn--primary{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .bhr .prod-hr .hr-head .hr-av{border:3px solid #383838}
html.dark .bhr .prod-hr .hr-tabs{background:var(--surface)}
html.dark .bhr .prod-hr .hr-balance{background:var(--surface)}
html.dark .bhr .oc-top .oc-facts div{border:1px solid rgba(101,92,75,0.45)}
html.dark .bhr .oc-row1{background:#272a24}
html.dark .bhr .oc-row2{background:#332b1e}
html.dark .bhr .oc-biz{background:var(--surface)}
html.dark .bhr .oc-tc{background:var(--surface)}
html.dark .bhr .oc-tier{background:var(--surface);border:1px solid var(--line2,#504a3b)}
html.dark .bhr .oc-dirs{background:linear-gradient(180deg,#2e2718,#352d1e);border-color:#5c5444}
html.dark .bhr .oc-tier .oc-sec span{color:#acaba6}
html.dark .bhr .oc-dirs .oc-tier-row::before{border-top:2px solid #655c4b}
html.dark .bhr .oc-tier .oc-p{background:var(--surface);border:1px solid var(--line2,#504a3b)}
html.dark .bhr .oc-dirs .oc-p{border-color:#655c4b}
html.dark .bhr .oc-led{border-bottom:1px solid var(--line2,#504a3b);background:#2e2718}
html.dark .bhr .oc-led>span{color:#bda37a}
html.dark .bhr .oc-led>div>*{border:2px solid #383838}
html.dark .bhr .oc-rep{color:#bda37a;border:1px solid #5c5444}
html.dark .bhr .oc-mg-g{background:#2b2618;border:1px solid var(--line2,#504a3b)}
html.dark .bhr .oc-mg-all{border-color:#5c5444;background:linear-gradient(180deg,#2e2718,#332b1b)}
html.dark .bhr .oc-mg-h{color:#bda37a}
html.dark .bhr .hh-hello h1{color:#cfd5d1}
html.dark .bhr .hh-h{border-bottom:1px solid var(--line2,#504a3b);color:#cfd5d1;background:#2b2618}
html.dark .bhr .hh-ic{color:#a9ceb6}
html.dark .bhr .hh-tile{border:1px solid var(--line2,#504a3b);background:linear-gradient(180deg,var(--surface),#2b2618)}
html.dark .bhr .hh-tile small{color:#adb1ae}
html.dark .bhr .hh-tile em{color:#9a9c98}
html.dark .bhr .hh-up .ic{color:#bda37a}
html.dark .bhr .hh-req{color:#a9ceb6;background:var(--surface)}
html.dark .bhr .hh-req:hover{background:#262c27}
html.dark .bhr .hh-feed .hh-item{border-bottom:1px solid var(--line2,#504a3b)}
html.dark .bhr .hh-iav{background:#2f2a1f;color:#bda37a}
html.dark .bhr .hh-is{color:#acaba6}
html.dark .bhr .hh-empty{color:#acaba6}
html.dark .bhr .hh-empty .ic{color:#a8b5ac}
html.dark .bhr .hh-ring{background:radial-gradient(closest-side,var(--surface) 78%,transparent 79%),conic-gradient(#2F6B45 calc(var(--p)*1%),#373124 0)}
html.dark .bhr .hh-ring b{color:#cfd5d1}
html.dark .bhr .hh-ring small{color:#acaba6}
html.dark .bhr .d.due{background:#62553e}
html.dark .bhr .d.mis{background:#45423e}
html.dark .bhr .hh-sub{color:#bda37a}
html.dark .bhr .hh-todo .ic{color:#a9ceb6}
html.dark .bhr .hh-g{color:#a9ceb6}
html.dark .bhr .hh-none{color:#9a9c98}
html.dark .bhr .hh-links a{color:#cfd5d1}
html.dark .bhr .hh-links a:hover{background:#2f2a1f}
html.dark .bhr .hh-links .ic{color:#a9ceb6}
html.dark .bhr .el-ring{background:radial-gradient(closest-side,#1C2B21 78%,transparent 79%),conic-gradient(#62553e calc(var(--p)*1%),rgba(255,255,255,0.1) 0)}
html.dark .bhr .el-stats span{background:var(--surface);border:1px solid var(--line2,#504a3b)}
html.dark .bhr .el-stats .ok{color:#a9ceb6}
html.dark .bhr .el-stats .due{color:#bda37a}
html.dark .bhr .el-stats .exp{color:#cf6054}
html.dark .bhr .el-stats .mis{color:#abacaa}
html.dark .bhr .el-cat{color:#cfd5d1}
html.dark .bhr .el-cat .ic{color:#a9ceb6}
html.dark .bhr .el-c{background:var(--surface);border:1px solid var(--line2,#504a3b)}
html.dark .bhr .el-cb h3{color:#cfd5d1}
html.dark .bhr .el-meta{color:#acaba6}
html.dark .bhr .el-none .ic{color:#a9ceb6}
html.dark .bhr .el-flash{background:#262c27;color:#a9ceb7}
html.dark .bhr .el-dlg label i{color:#9a9c98}
html.dark .bhr .el-bar{background:#373124}
html.dark .bhr .el-dlg select,html.dark .bhr .el-dlg input{border:1px solid #534c3f;background:var(--surface);color:#cfd5d1}
html.dark .bhr .el-dlg select:focus,html.dark .bhr .el-dlg input:focus{outline:2px solid #655c4b}
html.dark .bhr .oc-tpic{border:2px solid #383838;box-shadow:0 0 0 1px #5c5444}
/* from area-crm.css */
html.dark .crmx .seg a.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark #crm-gate-list .gate{border:1px solid #52403d}
html.dark .crmx-lead .path button{background:var(--surface)}
html.dark .crmx-lead .path button.done{background:#2a2e28}
html.dark .crmx-lead .path button.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .crmx-lead .nextcard{background:#302819}
html.dark .crmx-lead .actv{background:#2b2618}
html.dark .crmx-lead .awaiting{background:#302819}
html.dark .crmx-fin .steps .st i{background:var(--surface)}
html.dark .crmx-fin .steps .st.on i{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .crmx-fin .match.g{border:1px solid #3e4d41;background:#1e2920}
html.dark .crmx-fin .match.a{border:1px solid #524b3c;background:#302819}
/* from area-diary.css */
html.dark .dy .seg a.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .dy .dy-mm a.x{background:repeating-linear-gradient(135deg,#352f22 0 4px,var(--surface) 4px 8px)}
html.dark .dy-mk{background:var(--surface)}
html.dark .dy .dy-badge{background:var(--surface);color:var(--ink)}
html.dark .dy .dy-theatres{background:#302819}
html.dark .dy-legend{background:var(--surface)}
html.dark .dy .swipechips button{background:var(--surface)}
html.dark .dy .swipechips button.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .dy-md.o{background:#2b2618}
html.dark .dy-md.x{background:repeating-linear-gradient(135deg,#312c1f 0 6px,#2c2719 6px 12px)}
html.dark .dy-results{background:var(--surface)}
html.dark .dy-type{background:var(--surface)}
html.dark .dy-slots .chip.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .dy .dy-prompt.now{background:#302819}
/* from area-nav.css */
html.dark .nb .menu a:not(.on):hover{background:rgba(255,255,255,0.07)}
html.dark .nb .hdr-ic:hover{background:rgba(255,255,255,0.1)}
html.dark .subnav{background:var(--surface)}
html.dark .subnav a.on{color:var(--ink)}
html.dark .ck-pill:hover{background:rgba(255,255,255,0.08)}
html.dark .ck-hero.is-in{border-color:#415546;background:linear-gradient(var(--surface),#1e2820)}
html.dark .ck-person{background:var(--surface)}
html.dark .biz-logo{background:var(--surface);color:var(--ink)}
@media (prefers-color-scheme:dark){html.dark .biz-logo{background:var(--surface)}}
html.dark .rb-week tr.rb-surg{background:#3a3222}
html.dark .rb-c.cs{background:#4c524d}
html.dark .rb-c.gap{background:#4e432c}
html.dark .rb-c.x{background:#342e23}
html.dark .cg-card{background:var(--surface)}
html.dark .hw-weather.wx-snow{background:linear-gradient(180deg,#6f8297,#3f4449)}
html.dark .hw-w-bars i{background:linear-gradient(180deg,#2a444e,#3fb3ef)}
html.dark .hw-news{background:var(--surface)}
html.dark .sc-card::after{border:1px solid rgba(101,92,75,0.25)}
html.dark .sc-qr{background:var(--surface)}
html.dark .cg-kind{background:var(--ivory,#2f2a1f)}
html.dark .lm-in{background:#2e2718;border:1px solid #655c4b;outline:1px solid #655c4b}
html.dark .lm-eb{color:#bda37a}
html.dark .lm-sub{color:#b3b2ad}
html.dark .lm-course{border-top:1px solid #534c3d}
html.dark .lm-num{border:1px solid #655c4b;color:#bda37a}
html.dark .lm-course h4{color:#cfd5d1}
html.dark .lm-item{color:#cfd5d1}
html.dark .lm-item i{color:#a8b5ac;border:1px solid #404f42}
html.dark .lm-item span{color:#acaba6}
html.dark .lm-foot{border-top:1px solid #534c3d;color:#acaba6}
html.dark .hw .hw-weather.wx-clear:not(.wx-night),html.dark .hw .hw-weather.wx-partly:not(.wx-night){background:linear-gradient(180deg,#3d79c2,#385068) !important}
html.dark .hw-w-chart{background:repeating-linear-gradient(90deg,rgba(255,255,255,0.1) 0 3px,transparent 3px 6px) 0 10px/100% 1px no-repeat,
             repeating-linear-gradient(90deg,rgba(255,255,255,0.1) 0 3px,transparent 3px 6px) 0 32px/100% 1px no-repeat,
             repeating-linear-gradient(90deg,rgba(255,255,255,0.1) 0 3px,transparent 3px 6px) 0 54px/100% 1px no-repeat}
html.dark .hw-weather .hw-w-chart .hw-w-bars i{background:linear-gradient(180deg,#1c2c34 0%,#2c4552 100%)}
html.dark .ib-face{border:2px solid #383838}
html.dark .ib-side>div>span{color:var(--ink)}
html.dark .ib-bar i.ib-b{background:#62553e}
html.dark .ib-gauge .val.t-g{stroke:#a8b5ac}
html.dark .ib-gauge .val.t-r{stroke:#cf6054}
html.dark .c-mail{background:#21292e;color:#aec7d0}
html.dark .c-web{background:#352d1e;color:#cab9a1}
html.dark .c-meta{background:#1c2131;color:#5276cf}
html.dark .c-phone{background:#262c27;color:#a9ceb7}
html.dark .c-wa{background:#1f3425;color:#9fd8b6}
html.dark .c-walk{background:#2e2226;color:#bdb1b5}
html.dark .ib-tick{background:#262c27;color:#a9ceb7}
html.dark .ib-on{background:var(--surface)}
html.dark .rb-other td small{color:#a9ceb7;background:#262c27}
html.dark .ck2-setup{background:rgba(255,255,255,0.06)}
html.dark .ck2-ring{background:radial-gradient(closest-side,#1e2e24 79%,transparent 80%),conic-gradient(#5FD38D calc(var(--p)*1%),rgba(255,255,255,0.1) 0)}
html.dark .ck2-grid h2 .ic{color:#a9ceb6}
html.dark .ck2-col{background:repeating-linear-gradient(0deg,#2f2a1f 0 1px,transparent 1px 26px)}
html.dark .ck2-day.is-today .ck2-col{border-color:#655c4b}
html.dark .ck2-day.is-today b{color:#bda37a}
html.dark .ck2-none .ic{color:#a9ceb6}
html.dark .ck2-dic{background:#262c27;color:#a9ceb6}
html.dark .ck2-badge{color:#a9ceb6;background:#262c27}
html.dark .ck2-priv{background:#2b2618}
html.dark .ck2-priv .ic{color:#a9ceb6}
html.dark .tp-pulse h2 .ic{color:#a9ceb6}
html.dark .tp-pulse h3{color:#a9ceb6}
html.dark .tp-row b.g{color:#a9ceb6}
html.dark .tp-row b.a{color:#bda37a}
html.dark .tp-row b.r{color:#cf6054}
html.dark .tp-view button{background:var(--surface)}
html.dark .tp-view button.on{background:#262c27;color:#a9ceb6}
html.dark .tp-c{background:var(--surface)}
html.dark .tp-av i{border:2px solid #383838;background:#4d4b46}
html.dark .tp-due .tp-av i{background:#62553e}
html.dark .tp-in .tp-st{color:#a9ceb6}
html.dark .tp-due .tp-st{color:#bda37a}
html.dark .tp-leave .tp-st{color:#a0bcc4}
html.dark .ar-s{background:var(--surface)}
html.dark .ar-si{background:#2f2a1f;color:#a0bcc4}
html.dark .ar-s.ok .ar-si{background:#262c27;color:#a9ceb6}
html.dark .ar-s.gold .ar-si{background:#362e1d;color:#bda37a}
html.dark .ar-head h3 .ic,html.dark .ar-side h3 .ic{color:#a9ceb6}
html.dark .ar-prog{background:#373124}
html.dark .ar-node{background:var(--surface);border:3px solid #5a574f}
html.dark .ar-soon .ar-node{border-color:#655c4b}
html.dark .ar-card{background:var(--surface)}
html.dark .ar-ok .ar-card{background:#1c261c}
html.dark .ar-chip{background:#2e2b22}
html.dark .ar-ok .ar-chip{background:#262c27;color:#a9ceb6}
html.dark .ar-soon .ar-chip{background:#362e1d;color:#c9b799}
html.dark .ar-late .ar-chip{background:#33201c;color:#cf6054}
html.dark .ar-hint{background:#2b2618}
html.dark .ar-hint .ic{color:#a9ceb6}
html.dark .ar-empty.sm .ic{color:#a8b5ac}
html.dark .an-h h3 .ic{color:#bda37a}
html.dark .an-date{background:var(--surface)}
html.dark .an-date b{color:#cfd5d1}
html.dark .an-date.an-ic{background:#362e1d;color:#bda37a}
html.dark .an-b>b{color:#cfd5d1}
html.dark .an-k{color:#bda37a}
html.dark .an-btn{background:var(--surface)}
html.dark .an-btn.no.on{border-color:#61645f}
html.dark .an-x:hover{color:#cf6054}
html.dark .an-add{background:var(--surface);color:#cfd5d1}
html.dark .ct-day{background:var(--surface)}
html.dark .ct-day.on{border-color:#607667}
html.dark .ct-s{background:var(--surface)}
html.dark .ct-s>span{background:#2f2a1f;color:#a0bcc4}
html.dark .ct-s.ok>span{background:#262c27;color:#a9ceb6}
html.dark .ct-s.gold>span{background:#362e1d;color:#bda37a}
html.dark .ct-s.red>span{background:#33201c;color:#cf6054}
html.dark .ct-h h3 .icf{color:#bda37a}
html.dark .ct-prog{background:#373124}
html.dark .ct-p{background:var(--surface)}
html.dark .ct-confirmed{background:#1c261c}
html.dark .ct-steps span{background:#2e2b22;color:#989692}
html.dark .ct-steps span.on{background:#262c27;color:#a9ceb6}
html.dark .ct-dish{background:#2b2618}
html.dark .ct-dish .icf{color:#bda37a}
html.dark .ct-alert{background:#33201c;color:#cf6054}
html.dark .ct-k h4 .icf{color:#bda37a}
html.dark .ct-kr i{background:linear-gradient(90deg,#62553e var(--w),#373124 var(--w))}
html.dark .ct-note{color:#bda37a}
html.dark .ct-fs legend .icf{color:#bda37a}
html.dark .ct-opt span{background:var(--surface)}
html.dark .ct-opt span i{color:#a8b5ac}
html.dark .ct-opt input:checked+span{border-color:#607667}
html.dark .ct-opt input:focus-visible+span{outline:2px solid #655c4b}
html.dark .ct-menu summary{color:#cfd5d1;background:var(--surface)}
html.dark .ct-menu summary .icf{color:#bda37a}
html.dark .ct-kr b{color:#cfd5d1}
html.dark .ub-logo b{color:#21f890}
html.dark .ub-go.done .ub-logo b{color:#e6e6e6}
html.dark .ub-st{background:rgba(255,255,255,0.1)}
html.dark .ub-facts span{background:rgba(255,255,255,0.07)}
html.dark .ub-act .btn{background:var(--surface);color:#e6e6e6}
html.dark .ub-txt{background:#2b2618}
html.dark .ig-filters button{background:var(--surface)}
html.dark .ig-filters button.on{border-color:#607667}
html.dark .d.off,html.dark .ig-off .ig-st i{background:#54524f}
html.dark .ig-search{background:var(--surface)}
html.dark .ig-gh span{background:#2e2b22}
html.dark .ig-logo.own{background:color-mix(in srgb,var(--c) 14%,var(--surface))}
html.dark .ig-on .ig-st{color:#a9ceb6}
html.dark .ig-needs .ig-st{color:#d7bc8f}
html.dark .rp-search{background:var(--surface)}
html.dark .rp-pins{background:var(--surface)}
html.dark .rp-card{background:var(--surface)}
html.dark .rp-art{background:radial-gradient(70% 90% at 50% 100%,color-mix(in srgb,var(--t) 16%,var(--surface)) 0%,color-mix(in srgb,var(--t) 6%,var(--surface)) 60%,var(--surface) 100%)}
html.dark .rp-card h3 span{background:color-mix(in srgb,var(--t) 12%,var(--surface))}
html.dark .rp-card li:hover{background:color-mix(in srgb,var(--t) 7%,var(--surface))}
/* from area-ops.css */
html.dark .seg.ops-seg a.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .ops-alert{border-color:#52403d}
html.dark .ops-note.new b{color:var(--ink)}
html.dark .ops-msg.me{background:#262c27}
html.dark .ops-msg.sys{background:var(--surface)}
@media print{html.dark body{background:var(--surface)}}
/* from area-patients.css */
html.dark .pt-radio.on{background:#2a2e28}
html.dark .seg.pt-seg a.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .pt-fs[disabled] .inp{background:#28251a}
html.dark .pt-big.pri{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .pt-tile{background:var(--surface)}
html.dark .pt-todo{background:var(--surface)}
html.dark .pt-tp-t{background:var(--surface)}
html.dark .pt-draw{background:var(--surface)}
html.dark .pt-pad{background:var(--surface)}
/* from area-setup.css */
html.dark .setup-strip a{background:var(--surface)}
html.dark .setup-strip a.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .setup-wrap .card{background:var(--surface)}
html.dark .integ-d{color:#bec2bf}
html.dark .sx-sw{border:1px solid rgba(255,255,255,0.12)}
html.dark .sx-mail{background:var(--surface)}
html.dark .sx-w.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .wlogo{color:var(--ink)}
html.dark .sx-copynote{border-color:#564f40 !important}
html.dark .sx-grid th.sx-f,html.dark .sx-grid td.sx-f{background:var(--surface)}
html.dark .pf{border:9px solid #6b6b6b}
html.dark .pf-card{background:var(--surface)}
html.dark .pf-bar{background:var(--surface)}
html.dark .pf-bar span.on{color:var(--ink)}
html.dark .hrw .card{background:var(--surface)}
html.dark .hrw .seg a.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .hr-org .node{background:var(--surface)}
html.dark .hr-tabs a{background:var(--surface)}
html.dark .hr-tabs a.on{background:#C9AE7E;border-color:#C9AE7E;color:#1C2B21}
html.dark .hr-rota td:first-child{background:var(--surface)}
