:root{font-family:system-ui,-apple-system,sans-serif;background:#111710;color:#e4e8dc;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(145deg,#1b241a,#101510)}header{padding:18px max(16px,calc((100vw - 1100px)/2));border-bottom:1px solid #465344;background:#1a211a;display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:flex;align-items:center;gap:14px}.crest{width:56px;height:65px;border:2px solid #9b9e74;border-radius:12px 12px 24px 24px;display:grid;place-items:center;color:#b8bd91;font-size:32px}h1{margin:0;font-size:clamp(24px,5vw,35px);letter-spacing:1px}h1 span{color:#a6ad90}small,.muted{color:#aeb7a8}main{max-width:1100px;margin:25px auto;padding:0 15px;min-height:70vh}.panel,.stat{background:#222a21;border:1px solid #4b5948;border-radius:15px;padding:18px;margin-bottom:16px}.auth{max-width:430px;margin:70px auto}.auth label{display:block;margin:16px 0}input,select,button{font:inherit;border-radius:9px;border:1px solid #5a6855;background:#30392e;color:#f2f4ee;padding:11px}input{max-width:100%}label input,label select{display:block;width:100%;margin-top:7px}button{cursor:pointer}button:hover{background:#414d3d}.primary{background:#5b6d54;border-color:#819276}.danger{color:#e8a8a0}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.toolbar h2{margin-right:auto}nav{display:flex;gap:8px;overflow:auto;padding-bottom:15px}nav button{white-space:nowrap}nav .active{background:#687a5d}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat strong{display:block;font-size:29px;margin-top:8px}.positive{color:#a6d4a3}.negative{color:#e3a7a0}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:630px}th,td{text-align:left;padding:13px 10px;border-bottom:1px solid #475345}th{color:#c4cbb7}td button{padding:6px 9px;margin:2px}#notice{min-height:22px;color:#e8c78f}footer{text-align:center;color:#a8b19f;padding:25px;font-size:13px}dialog{background:#232b22;color:#edf1e6;border:1px solid #7c8970;border-radius:15px;width:min(95vw,500px)}dialog::backdrop{background:#000b}dialog label{display:block;margin:10px 0}dialog input,dialog select{width:100%}[hidden]{display:none!important}@media(max-width:650px){header{align-items:flex-start}.brand small{font-size:11px}#user{font-size:12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:12px}.stat strong{font-size:24px}.toolbar h2{width:100%}.toolbar input{width:100%}nav{position:sticky;top:0;background:#141b13;z-index:3}.panel{padding:12px}}
/* Stable, scalable brand mark on Android and desktop */
.brand{min-width:0;align-items:center}.brand>div:last-child{min-width:0}.crest{flex:0 0 58px;width:58px;height:68px;border:0;border-radius:0;display:flex;align-items:center;justify-content:center;color:#b8bd91}.crest svg{display:block;width:52px;height:60px;max-width:100%;max-height:100%}header .brand h1{line-height:1.12;overflow-wrap:normal}header .brand small{display:block;line-height:1.4;margin-top:5px}@media(max-width:650px){.brand{gap:9px}.crest{flex-basis:46px;width:46px;height:55px}.crest svg{width:44px;height:52px}header .brand h1{font-size:clamp(21px,5vw,30px)}}
