/* Night reading mode for tip-credit.html <style id="layout-treatment">. Generated by scripts/night.py — edit the source and re-run.
   Every colour declaration repeats under html[data-theme="night"], mapped onto the shared night palette. */
html[data-theme="night"] :is(.tcb).tcb{--r-cream:#ece3d0;--r-cream2:#dfd6c3;--r-faint:#c2b79e;--r-edge:#53634e;--r-edge2:#34473b;--brass-d:#d2b06c;--em-br:#aec7b7;--ox-br:#e4aaa0;background:#101a16;color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .gilt{background:none;color:var(--d-gold2);-webkit-text-fill-color:currentColor}
html[data-theme="night"] :is(.tcb).tcb .progress{background:#c9a24b;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .opener{background:#101a16}
html[data-theme="night"] :is(.tcb).tcb .op-crown{color:#c9a24b}
html[data-theme="night"] :is(.tcb).tcb .op-kicker{color:#c9b992}
html[data-theme="night"] :is(.tcb).tcb .keyplate{border:none;background:none;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .keyplate .kp-text{text-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .op-title{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .op-deck{color:#d0c7b3}
html[data-theme="night"] :is(.tcb).tcb .op-meta span{color:#bcb29b}
html[data-theme="night"] :is(.tcb).tcb .op-meta b{color:#ddd0ae}
html[data-theme="night"] :is(.tcb).tcb .transition{background:#101a16;border-top:1px solid #c8a25a}
html[data-theme="night"] :is(.tcb).tcb .transition .crest{background:#101a16;border-color:#c8a25a;box-shadow:0 0 0 5px #101a16}
html[data-theme="night"] :is(.tcb).tcb .transition .crest svg{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .read{background:#101a16;color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .dir-plate{border:none;border-right:1px solid #53634e;background:transparent;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .dir-head{color:#cfb07a;border-color:#53634e}
html[data-theme="night"] :is(.tcb).tcb .dir-head svg{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .directory a{color:#dfd6c3;border-color:#34473b}
html[data-theme="night"] :is(.tcb).tcb .directory a::before{color:#cfb07a}
html[data-theme="night"] :is(.tcb).tcb .directory a:hover,html[data-theme="night"] :is(.tcb).tcb .directory a.active{color:#aec7b7}
html[data-theme="night"] :is(.tcb).tcb .directory a.active::before{color:#aec7b7}
html[data-theme="night"] :is(.tcb).tcb .directory a.calc-cta{background:#1c4a3a;color:#fbf8f0;border:0;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .directory a.calc-cta small{color:#ded5bf}
html[data-theme="night"] :is(.tcb).tcb .directory a.calc-cta:hover{color:#fbf8f0}
html[data-theme="night"] :is(.tcb).tcb .article p{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .article strong,html[data-theme="night"] :is(.tcb).tcb .article em{color:inherit}
html[data-theme="night"] :is(.tcb).tcb .article a.lk{color:#aec7b7;border-color:#4c6b58}
html[data-theme="night"] :is(.tcb).tcb .article a.lk:hover{background:#20362a}
html[data-theme="night"] :is(.tcb).tcb .ann{border-color:#a9803c}
html[data-theme="night"] :is(.tcb).tcb sup.cm{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .initial{color:#aec7b7;background:none;border:0;box-shadow:none;text-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .article ul li::before{background:#a9803c}
html[data-theme="night"] :is(.tcb).tcb .sec-open{border-top:1px solid #53634e}
html[data-theme="night"] :is(.tcb).tcb .sec-open .ghost{color:#d2b06c;background:none;-webkit-text-fill-color:currentColor}
html[data-theme="night"] :is(.tcb).tcb .sec-kicker{color:#cfb07a}
html[data-theme="night"] :is(.tcb).tcb .sec-open h2{color:#ece3d0;background:none;-webkit-text-fill-color:currentColor}
html[data-theme="night"] :is(.tcb).tcb .article h3{color:#aec7b7}
html[data-theme="night"] :is(.tcb).tcb .sidenote{border-left:2px solid #a9803c;color:#dfd6c3;background:#1d2d23}
html[data-theme="night"] :is(.tcb).tcb .sidenote .sn-m{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .sidenote strong,html[data-theme="night"] :is(.tcb).tcb .sidenote em{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .sidenote .sn-term{color:#aec7b7}
html[data-theme="night"] :is(.tcb).tcb .sidenote.flag{border-color:#793b35;background:#30231e}
html[data-theme="night"] :is(.tcb).tcb .sidenote.flag .sn-m{color:#e4aaa0}
html[data-theme="night"] :is(.tcb).tcb .sidenote.gloss{border-color:#1c4a3a;background:#20362a}
html[data-theme="night"] :is(.tcb).tcb .sidenote.gloss .sn-m{color:#aec7b7}
html[data-theme="night"] :is(.tcb).tcb .mathbar,html[data-theme="night"] :is(.tcb).tcb .worked,html[data-theme="night"] :is(.tcb).tcb .plaque,html[data-theme="night"] :is(.tcb).tcb .reg,html[data-theme="night"] :is(.tcb).tcb .tier,html[data-theme="night"] :is(.tcb).tcb .cond,html[data-theme="night"] :is(.tcb).tcb .ladder .rung,html[data-theme="night"] :is(.tcb).tcb .branch,html[data-theme="night"] :is(.tcb).tcb .tx,html[data-theme="night"] :is(.tcb).tcb .po{background:#17241d;border-color:#53634e;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .mathbar .mb-cap{color:#c2b79e}
html[data-theme="night"] :is(.tcb).tcb .mb-track{box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .mb-seg.cash{background:#1c4a3a;color:#fbf8f0;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .mb-seg.credit{background:#d6b76d;color:#221c16;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .mb-scale .mt b,html[data-theme="night"] :is(.tcb).tcb .mb-scale .mt:nth-child(2) b{color:#c2b79e}
html[data-theme="night"] :is(.tcb).tcb .mb-scale .mt:nth-child(2) i{background:#a9803c}
html[data-theme="night"] :is(.tcb).tcb .mb-total,html[data-theme="night"] :is(.tcb).tcb .mb-total b{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .cond:hover{box-shadow:none;border-color:#a9803c}
html[data-theme="night"] :is(.tcb).tcb .cond-emblem{background:none;border:0;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .cond .cn{color:#d2b06c;text-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .cond h4{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .cond p{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .feature-quote{border:1px solid #344438;background:#17241d;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .feature-quote p{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .feature-quote p .em{color:#e6c878}
html[data-theme="night"] :is(.tcb).tcb .feature-quote .underrule{background:#a9803c}
html[data-theme="night"] :is(.tcb).tcb .plaque .lab .roundel{border:0;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .plaque p{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .plaque.trap{background:#30231e;border-color:#6b4a42}
html[data-theme="night"] :is(.tcb).tcb .plaque.trap p{color:#efd2ca}
html[data-theme="night"] :is(.tcb).tcb .plaque.safe{background:#20362a;border-color:#3f5c4c}
html[data-theme="night"] :is(.tcb).tcb .plaque.tip .lab{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .reg{border-left:3px solid #a9803c}
html[data-theme="night"] :is(.tcb).tcb .reg .src{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .reg p{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .worked .wk-h{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .worked .wk-t{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .worked .wk-row{border-color:#34473b}
html[data-theme="night"] :is(.tcb).tcb .worked .wk-row .lbl,html[data-theme="night"] :is(.tcb).tcb .worked .wk-row .lbl b{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .worked .wk-row .val{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .worked .wk-row.tot .lbl{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .worked .wk-row.tot .val{color:#aec7b7}
html[data-theme="night"] :is(.tcb).tcb .tier.maybe .tg{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .tier h4{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .tier p{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .registry-wrap{border-color:#53634e;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .registry-cap{background:#1d2d23;color:#c9bfa8;border-color:#53634e}
html[data-theme="night"] :is(.tcb).tcb .registry-cap .dia{background:#a9803c}
html[data-theme="night"] :is(.tcb).tcb .illus{color:#c2b79e}
html[data-theme="night"] :is(.tcb).tcb .vtable{background:#17241d}
html[data-theme="night"] :is(.tcb).tcb .vtable thead th{color:#c2b79e;background:#1d2d23;border-color:#a9803c}
html[data-theme="night"] :is(.tcb).tcb .vtable td{color:#ece3d0;border-color:#34473b}
html[data-theme="night"] :is(.tcb).tcb .vtable tbody tr:nth-child(even){background:#142019}
html[data-theme="night"] :is(.tcb).tcb .vtable tbody tr:hover{background:#1d2d23}
html[data-theme="night"] :is(.tcb).tcb .vtable td.num{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .vtable .j{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .vtable .when{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .vtable .note{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .ladder .rung .rl,html[data-theme="night"] :is(.tcb).tcb .ladder .rung .rl b{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .ladder .rung .rv{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .ladder .rung.peak{background:#30231e;border-color:#6b4a42;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .ladder .rung .step{background:#a9803c}
html[data-theme="night"] :is(.tcb).tcb .ladder .rung.peak .step{background:#793b35}
html[data-theme="night"] :is(.tcb).tcb .branch.take{border-color:#3f5c4c}
html[data-theme="night"] :is(.tcb).tcb .branch.skip{border-color:#6b4a42}
html[data-theme="night"] :is(.tcb).tcb .branch li{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .branch li b{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .tx .src-l .dot{color:#aec7b7;border-color:#4c6b58}
html[data-theme="night"] :is(.tcb).tcb .tx .src-l .nm{color:#aec7b7}
html[data-theme="night"] :is(.tcb).tcb .tx .eff{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .tx .eff b{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .po .pn{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .po .py{color:#d2b06c}
html[data-theme="night"] :is(.tcb).tcb .po .pbar{background:#e4d8bf;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .po .pbar i{background:#a9803c}
html[data-theme="night"] :is(.tcb).tcb .po .pp{color:#dfd6c3}
html[data-theme="night"] :is(.tcb).tcb .po .pp b{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .toolcard{background:#17241d;border-color:#344438;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .toolcard .tc-k{color:#c2b79e}
html[data-theme="night"] :is(.tcb).tcb .toolcard .tc-t{color:#ece3d0}
html[data-theme="night"] :is(.tcb).tcb .toolcard .tc-btn{color:#101a16;background:#e6c878;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .disclaim{color:#c2b79e;border-color:#53634e}
html[data-theme="night"] :is(.tcb).tcb .close{background:#101a16}
html[data-theme="night"] :is(.tcb).tcb .nextroom{border-color:#536047;background:#17241d;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .nextroom:hover{background:#1c2c22;box-shadow:none}
html[data-theme="night"] :is(.tcb).tcb .nextroom .nk,html[data-theme="night"] :is(.tcb).tcb .related .rh{color:#c2b79e}
html[data-theme="night"] :is(.tcb).tcb .rcard p{color:#c2b79e}
html[data-theme="night"] :is(.tcb).tcb a:focus-visible{outline:2px solid #a9803c}
html[data-theme="night"] :is(.tcb).tcb a.skip:focus{background:#17241d;color:#aec7b7}
@media (max-width: 800px){
html[data-theme="night"] :is(.tcb).tcb .dir-plate{border-right:0;border-bottom:1px solid #53634e}
}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host > div{background:#17241d !important;color:#dfd6c3 !important;border:1px solid #53634e !important;box-shadow:none !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host *{box-shadow:none !important;text-shadow:none !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host div,html[data-theme="night"] :is(.tcb).tcb #calc .sc-host span,html[data-theme="night"] :is(.tcb).tcb #calc .sc-host label{background-image:none !important;background-color:transparent !important;color:#dfd6c3 !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host b{color:#aec7b7 !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host > div > div:first-child{background:#1c4a3a !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host > div > div:first-child *{color:#ece3d0 !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host svg [stroke]:not([stroke="none"]){stroke:#a9803c}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host > div > div:first-child svg [stroke]:not([stroke="none"]){stroke:#e6c878}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host select{color:#ece3d0 !important;background:#17241d !important;border:1px solid #b9ad91 !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host input{accent-color:#aec7b7 !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host > div > div:nth-child(3) > div{border-color:#53634e !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host [style*="border-bottom"]{border-bottom-color:#53634e !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host [style*="border-top"]{border-top-color:#53634e !important}
html[data-theme="night"] :is(.tcb).tcb #calc .sc-host p{color:#c2b79e !important}
