/* ---- Theme toggle button ---- */
.theme-btn{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:2px solid var(--g);background:#fff;color:var(--g);cursor:pointer;padding:0}
.theme-btn:hover{background:#f1f5f2}
.theme-btn .i-sun{display:none}
html[data-theme=dark] .theme-btn .i-moon{display:none}
html[data-theme=dark] .theme-btn .i-sun{display:block}

/* ---- Dark theme (header and top bar keep their look) ---- */
html[data-theme=dark]{--cream:#0c1511;--ink:#e6eee8;--mut:#a3b6a9;--line:#27392e;color-scheme:dark}
html[data-theme=dark] body{background:#0c1511;color:#e6eee8}
html[data-theme=dark] .title,html[data-theme=dark] .phead h1{color:#f7d56a}
html[data-theme=dark] .title.light{color:#fff}
html[data-theme=dark] .card,html[data-theme=dark] .emi,html[data-theme=dark] blockquote{background:#12201a;box-shadow:0 6px 20px rgba(0,0,0,.5)}
html[data-theme=dark] .card h3,html[data-theme=dark] blockquote{color:#f7d56a}
html[data-theme=dark] .price,html[data-theme=dark] .loc{color:#f7d56a}
html[data-theme=dark] .card .btn.alt,html[data-theme=dark] .fil .btn.alt{color:#f7d56a;border-color:#e9b824}
html[data-theme=dark] .fil button.on{color:#0b3d1f}
html[data-theme=dark] .emi label,html[data-theme=dark] .ticks li{color:#e6eee8}
html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background:#0f1b15;color:#e6eee8;border-color:#2c4235}
html[data-theme=dark] .book{background:#12201a;border:1px solid #27392e}
html[data-theme=dark] footer{background:#06100a}
html[data-theme=dark] .msg{background:#12201a;color:#cfe8d6}
html[data-theme=dark] .dims span{background:#0f1b15}
html[data-theme=dark] .rev p{color:#e6eee8}
html[data-theme=dark] #plot3d,html[data-theme=dark] #stage{box-shadow:0 6px 20px rgba(0,0,0,.5)}
html[data-theme=dark] table th,html[data-theme=dark] table td{border-color:#27392e}
html[data-theme=dark] header.site-h{background:#fff}

/* ---- Dark theme: admin ---- */
.adm .h-cta{gap:10px}
html[data-theme=dark] body.adm::before{filter:brightness(.4)}
html[data-theme=dark] .adm .acard,html[data-theme=dark] #login .acard.lcard{background:#12201a!important;border-color:#27392e;color:#e6eee8}
html[data-theme=dark] .adm .acard h2,html[data-theme=dark] #login .lcard h2{color:#f7d56a}
html[data-theme=dark] .adm .meta,html[data-theme=dark] .adm .acard label,html[data-theme=dark] #login .lcard label{color:#b6c6bb}
html[data-theme=dark] .adm input,html[data-theme=dark] .adm textarea,html[data-theme=dark] .adm select,html[data-theme=dark] #login .lcard .fld input{background:#0f1b15;color:#e6eee8;border-color:#2c4235}
html[data-theme=dark] .adm th{background:#16271f;color:#c9d6ce;border-color:#27392e}
html[data-theme=dark] .adm td{color:#e6eee8;border-color:#223329}
html[data-theme=dark] .adm tbody tr:hover{background:#17271f}
html[data-theme=dark] .adm thead tr:nth-child(2) th{background:#12201a}
html[data-theme=dark] body.adm .tabs{background:#12201a;border-color:#27392e}
html[data-theme=dark] body.adm .tabs button{color:#b6c6bb}
html[data-theme=dark] body.adm .tabs button:hover{color:#fff}
html[data-theme=dark] body.adm .tabs button.on{color:#f7d56a;border-bottom-color:#e9b824}
html[data-theme=dark] .adm dialog,html[data-theme=dark] dialog{background:#12201a;color:#e6eee8}
html[data-theme=dark] .adm .btn.alt{background:transparent;color:#f7d56a;border-color:#e9b824}
html[data-theme=dark] .adm header .btn.alt{background:#fff;color:#0b3d1f;border-color:#0b3d1f}
html[data-theme=dark] .l-foot{border-color:#27392e;color:#9fb3a6}
html[data-theme=dark] .l-foot a,html[data-theme=dark] .fld .eye.on{color:#f7d56a}
html[data-theme=dark] .adm footer{background:#06100a;color:#cfd6d1}
html[data-theme=dark] .adm header{background:#fff}
html[data-theme=dark] .adm footer strong,html[data-theme=dark] .adm footer p,html[data-theme=dark] .adm footer #f-name{color:#fff}
html[data-theme=dark] .adm footer .copy{border-color:#27392e}
/* ===== dark mode: make every label / heading / helper text readable (v7) ===== */
html[data-theme=dark] label,html[data-theme=dark] legend,html[data-theme=dark] .adm label{color:#d6e4da}
html[data-theme=dark] dialog h1,html[data-theme=dark] dialog h2,html[data-theme=dark] dialog h3,html[data-theme=dark] .adm dialog h2{color:#f7d56a}
html[data-theme=dark] dialog,html[data-theme=dark] dialog p,html[data-theme=dark] dialog label,html[data-theme=dark] dialog strong,html[data-theme=dark] dialog td,html[data-theme=dark] dialog th,html[data-theme=dark] dialog span,html[data-theme=dark] .adm dialog label{color:#e6eee8}
html[data-theme=dark] dialog .meta,html[data-theme=dark] dialog small{color:#a9bdb0}
html[data-theme=dark] dialog input,html[data-theme=dark] dialog textarea,html[data-theme=dark] dialog select{background:#0c1712;color:#e6eee8;border-color:#37503f}
html[data-theme=dark] dialog::backdrop{background:rgba(0,0,0,.7)}
html[data-theme=dark] ::placeholder{color:#7f968a;opacity:1}
html[data-theme=dark] .meta,html[data-theme=dark] .sub,html[data-theme=dark] small,html[data-theme=dark] .crumb,html[data-theme=dark] .hc-sub,html[data-theme=dark] .pc-body time,html[data-theme=dark] .article time{color:#a9bdb0}
html[data-theme=dark] .crumb a,html[data-theme=dark] .pc-body .more,html[data-theme=dark] .hc-body .more,html[data-theme=dark] .a-body a{color:#f7d56a}
html[data-theme=dark] .spec th{color:#a9bdb0;border-color:#27392e}html[data-theme=dark] .spec td{color:#e6eee8;border-color:#27392e}
html[data-theme=dark] .o-till{color:#ffb27a!important}
html[data-theme=dark] .lm-filter,html[data-theme=dark] .lm-filter label,html[data-theme=dark] .lm-legend{color:#d6e4da}
html[data-theme=dark] .lm-count{color:#7fe0a6}
html[data-theme=dark] .lm-card .meta,html[data-theme=dark] .lm-noimg{color:#a9bdb0}
html[data-theme=dark] .lm-noimg{border-color:#37503f}
html[data-theme=dark] .lm-card,html[data-theme=dark] .lm-info{color:#e6eee8}
html[data-theme=dark] .phead p,html[data-theme=dark] .phead .meta,html[data-theme=dark] .card .meta,html[data-theme=dark] .dims span{color:#d6e4da}
html[data-theme=dark] .book label,html[data-theme=dark] #lead label,html[data-theme=dark] form label{color:#d6e4da}
html[data-theme=dark] .btn.alt{color:#f7d56a;border-color:#e9b824}
html[data-theme=dark] .op-card,html[data-theme=dark] .op-card h3,html[data-theme=dark] .op-card p{color:#e6eee8}html[data-theme=dark] .op-card h3{color:#f7d56a}
html[data-theme=dark] .g-empty,html[data-theme=dark] .center{color:#cfdcd3}
/* admin extras */
html[data-theme=dark] .adm h3,html[data-theme=dark] .adm strong,html[data-theme=dark] .adm p{color:#e6eee8}
html[data-theme=dark] .adm .meta{color:#a9bdb0}
html[data-theme=dark] .vcard{background:#16271f;border-color:#27392e}html[data-theme=dark] .vcard b{color:#f7d56a}html[data-theme=dark] .vcard span{color:#a9bdb0}
html[data-theme=dark] #vChart{background:#0f1b15}html[data-theme=dark] #vChart rect{fill:#3fbf7a}
html[data-theme=dark] .vbar{background:#3fbf7a}
html[data-theme=dark] .mp-list button{background:#0f1b15;color:#e6eee8;border-color:#37503f}html[data-theme=dark] .mp-list button.on{background:#3a3210;border-color:#e9b824;color:#f7d56a}
html[data-theme=dark] #mpNow{color:#f7d56a!important}
html[data-theme=dark] #dueBanner{background:#3b1d12!important;color:#ffb27a!important}
html[data-theme=dark] td.due{background:#3b1d12;color:#ffb27a}
html[data-theme=dark] .adm .warn{color:#ffb27a}
html[data-theme=dark] dialog .warn,html[data-theme=dark] .warn{background:#3b2a12!important;color:#ffcf99!important;border-radius:8px}
/* status chips + lead status selects: keep strong, readable colours in dark mode */
html[data-theme=dark] .adm .st-pending{background:#3a2a73;color:#e2d8ff}
html[data-theme=dark] .adm .st-converted{background:#1d3f86;color:#d4e4ff}
html[data-theme=dark] .adm .st-not-interested{background:#3b444a;color:#e3e8eb}
html[data-theme=dark] .adm .st-booked,html[data-theme=dark] .adm .c-booked{background:#7a4308;color:#ffe2bd}
html[data-theme=dark] .adm .st-registered,html[data-theme=dark] .adm .c-available{background:#14573a;color:#c9f5dc}
html[data-theme=dark] .adm .c-sold-out{background:#7a1f1f;color:#ffd6d6}
html[data-theme=dark] .chip.c-available{background:#14573a;color:#c9f5dc}html[data-theme=dark] .chip.c-booked{background:#7a4308;color:#ffe2bd}html[data-theme=dark] .chip.c-sold-out{background:#7a1f1f;color:#ffd6d6}
