body{max-width:none;margin:0;padding:0;background:#10141d;color:#e8edf6}body.light{background:#f3f5f9;color:#182337}#sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#171d29;border-right:1px solid #ffffff12;padding:24px 16px;display:flex;flex-direction:column;overflow:auto;color:#e8edf6}.brand{font-size:23px;font-weight:850;letter-spacing:-1px;margin:0 8px 30px}.brand span{color:#5798ff}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:8px}.sidefoot{margin-top:auto;padding-top:24px;font-size:10px}#workspace{margin-left:224px;padding:30px 36px;max-width:1600px}#mainNav{display:none}#sideNav button{display:block;width:100%;text-align:left;border:0;background:transparent;color:#aab6c9;margin:3px 0;padding:12px}#sideNav button.active{background:#2b4164;color:white}#sideNav small{display:block;margin:22px 10px 8px;letter-spacing:1px;font-size:10px}section,dialog{background:#1a2230;border:1px solid #ffffff0c;border-radius:12px}button,input,select,textarea{background:#242e3e;border-color:#384456}body.light section{border-color:#e1e6ef}header{margin-bottom:24px}header h1{font-size:25px}.metricgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metricgrid section{margin:0;padding:20px}.metricgrid b{display:block;font-size:27px;margin-top:10px}.opform{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.opform label{flex:1;min-width:120px}.oprows{width:100%;border-collapse:collapse}.oprows td,.oprows th{text-align:left;padding:12px 8px;border-bottom:1px solid #80808033}.tablewrap{overflow:auto}.dashgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dashgrid section{min-height:180px}[hidden]{display:none!important}@media(max-width:800px){#sidebar{position:static;width:auto;padding:12px}.brand{margin:0 0 8px}#sideNav{display:flex;flex-wrap:wrap}#sideNav button{width:auto;padding:8px}#sideNav small,.sidefoot{display:none}#workspace{margin:0;padding:16px}.metricgrid{grid-template-columns:repeat(2,1fr)}.dashgrid{grid-template-columns:1fr}}

/* Warm ivory theme */
body.light{background:#F7F6F2;color:#353832}
body.light #sidebar{background:#EFEDE6;color:#353832;border-color:#DDD9CF}
body.light section,body.light dialog{background:#FCFBF8;border:1px solid #E3DFD5;color:#353832}
body.light button:not(.blue),body.light input,body.light select,body.light textarea{background:#F8F7F3;color:#353832;border-color:#D8D4CA}
body.light #sideNav button{background:transparent;color:#55584F;border:0}
body.light #sideNav button:hover{background:#E5E2D9}
body.light #sideNav button.active{background:#DCE5F0;color:#24466F}
body.light small,body.light footer{color:#696C63}
body.light label{color:#50544B}
body.light .player{background:transparent!important;border:0!important}
body.light #journalArea .day.selected{background:#E1EAF5;border-color:var(--accent,#3182f6)}
body.light #journalArea .event{background:#E5E9EF;color:#35465D}
body.light .blue{color:white}
body.light dialog::backdrop{background:#34362F66}
body.light :focus-visible{outline:2px solid var(--accent,#3182f6);outline-offset:2px}

/* Warm brown palette */
body.light{background:#F8F5EF;color:#49382D}
body.light #sidebar{background:#EBE2D5;color:#49382D;border-color:#D8C9B8}
body.light section,body.light dialog{background:#FFFCF7;border-color:#E0D4C5;color:#49382D}
body.light button:not(.blue),body.light input,body.light select,body.light textarea{background:#F8F3EB;color:#49382D;border-color:#D5C5B3}
body.light #sideNav button{color:#634D3D;background:transparent}
body.light #sideNav button:hover{background:#E0D2C1}
body.light #sideNav button.active{background:#896B53;color:#fff}
body.light .brand span{color:#896B53}
body.light small,body.light footer,body.light label{color:#776251}
body.light #journalArea .day.selected{background:#EADBCB;border-color:#896B53}
body.light #journalArea .event{background:#E9DCCB;color:#49382D}
body.light .metricgrid section{border-top:3px solid #C4AD95}
body.light .metricgrid b{color:#795A43}
body.light dialog::backdrop{background:#49382D66}
.weekgrid{display:grid;grid-template-columns:52px repeat(7,minmax(85px,1fr));min-width:660px;gap:1px;position:relative}.weekhead{text-align:center;padding:8px}.weekcell{border-radius:0!important;padding:0!important;min-height:29px;opacity:.55}.weekcell:hover{opacity:1;background:#c4ad95!important}.weekblock{z-index:1;overflow:hidden;text-align:left;background:#c4ad95!important;color:#49382d!important;border:1px solid #896b53!important;border-radius:5px!important;padding:4px!important;font-size:12px}.weekblock small{display:block;color:inherit}.weekgrid>small{text-align:right;padding:4px}.oprows input{width:100%;min-width:85px}.oprows td{min-width:80px}#recordform[hidden]{display:none!important}
