:root{--green:#2b7a66;--teal:#77baa8;--ink:#363435;--maroon:#7b1d3a}*{box-sizing:border-box}body{font:15px/1.4 system-ui,sans-serif;margin:0;background:#f4f6f8;color:#1b2430}
header{background:var(--green);color:#fff;padding:10px 16px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
header a,header button{color:#fff;text-decoration:none;background:none;border:0;font:inherit;cursor:pointer;padding:0}
header .brand{font-weight:700;margin-right:auto}main{max-width:960px;margin:16px auto;padding:0 12px}
.card{background:#fff;border-radius:8px;padding:14px;margin-bottom:14px;box-shadow:0 1px 3px #0002}
h1,h2{margin:.2em 0 .5em}h1{font-size:1.3em}h2{font-size:1.1em}
input,select{padding:7px;border:1px solid #bbc;border-radius:5px;font:inherit;max-width:100%}
button.btn,.btn{background:var(--green);color:#fff;border:0;border-radius:5px;padding:8px 14px;font:inherit;cursor:pointer;text-decoration:none;display:inline-block}
button.small{padding:3px 8px;font-size:.85em}button.danger{background:var(--maroon)}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.row label{display:flex;flex-direction:column;font-size:.85em;gap:2px}
.flash{background:#fff7d6;border:1px solid #e6d27a;padding:8px 12px;border-radius:6px;margin-bottom:12px}
.day{border-top:1px solid #dde;padding:8px 0}.day.today{background:#e7f3ef}.day h3{margin:0 0 4px;font-size:.95em}
.slot{display:inline-block;margin:2px 6px 2px 0;padding:4px 8px;border-radius:5px;background:#d9dde3}
.slot.mine{border:1px solid var(--green);background:#cde8df}.slot form{display:inline}table{width:100%;border-collapse:collapse}
td,th{padding:5px 6px;border-bottom:1px solid #e3e6ea;text-align:left;font-size:.92em}.muted{color:#667}
.stats{display:flex;gap:12px;flex-wrap:wrap}.stat{flex:1;min-width:150px}.stat b{font-size:1.4em;display:block}
.login{max-width:340px;margin:60px auto}.login input{width:100%;margin-bottom:10px}

header{background:var(--teal);color:var(--ink);border-bottom:3px solid var(--green)}
a{color:var(--green)}header a,header button{color:var(--ink);font-weight:600}
.hero{height:190px;background:url(/static/hero.jpg) 68% 55%/cover no-repeat;position:relative}
.hero.big{height:300px}.hero span{position:absolute;left:16px;bottom:12px;color:#fff;font-size:1.6em;font-weight:700;
 letter-spacing:.04em;text-shadow:0 1px 6px #000a}
.login{margin-top:-28px;position:relative}
.stat b{color:var(--green)}th{color:var(--green)}
input:focus{outline:2px solid var(--green);border-color:var(--green)}
@media(max-width:600px){.hero{height:130px}.hero.big{height:200px}}

main{max-width:1100px}
.slot.maint{background:#f2d9a8;border:1px solid #c58b1a}

.lockbar{background:#a11;color:#fff;padding:10px 14px;border-radius:6px;margin-bottom:12px;font-weight:600}.lockbar a{color:#fff}
.dot{background:#c22;color:#fff;border-radius:50%;padding:0 6px;font-size:.8em}
.chip{font-size:.65em;padding:3px 8px;border-radius:10px;vertical-align:middle;margin-left:8px;color:#fff;background:#2b7a66}
.chip.warn{background:#c58b1a}.chip.due{background:#a11}.chip.unset{background:#889}
.state-due{border-left:5px solid #a11}.state-warn{border-left:5px solid #c58b1a}
.tsel{display:inline-flex;align-items:center;gap:3px}
.dmy{display:inline-flex;align-items:center;gap:2px;border:1px solid #bbc;border-radius:5px;padding:0 6px;background:#fff;height:34px}
.dmy input{border:0;padding:0;width:2.1em;text-align:center;background:transparent;outline:0}.dmy input:last-child{width:3.4em}
.dmy:focus-within{outline:2px solid var(--green);border-color:var(--green)}

.weekwrap{overflow-x:auto;margin-top:8px}
.week{display:grid;grid-template-columns:repeat(7,minmax(112px,1fr));min-width:800px;position:relative}
.wh{padding:6px;font-weight:600;color:var(--green);border-bottom:1px solid #dde;border-left:1px solid #e3e6ea;font-size:.88em}
.wh.today{background:#e7f3ef}.wbg{border-left:1px solid #e3e6ea;min-height:96px}.wbg.today{background:#f1f8f5}
.bar{margin:3px 2px;padding:5px 8px;border-radius:5px;font-size:.82em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:1;line-height:1.25}
.bar.click{cursor:pointer}.bar.click:hover{filter:brightness(1.08);box-shadow:0 0 0 2px #0003}
.bar.clipl{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:0}.bar.clipr{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}
.s-booked{background:#2f6fb3;color:#fff}.s-out{background:#77baa8;color:#363435;font-weight:700}
.s-maint{background:#111;color:#fff}.s-closed{background:#b9bec4;color:#363435}
.legend{margin:8px 0;font-size:.85em;color:#556}.legend .sw{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px;margin:0 4px 0 12px}
#bk{border:0;border-radius:10px;padding:0;max-width:760px;width:94%;box-shadow:0 8px 40px #0006}#bk::backdrop{background:#0008}
.dlg{padding:18px}.dlg .row{margin-bottom:8px}button.btn.danger{background:var(--maroon)}
details summary{list-style:none;cursor:pointer;display:inline-block}details summary::-webkit-details-marker{display:none}
/* consistent control heights */
:root{--ctl:38px}
input:not([type=hidden]):not([type=checkbox]),select,.btn,button.btn,.dmy{height:var(--ctl);box-sizing:border-box;font:inherit;line-height:1.2}
input:not([type=hidden]),select{padding:0 10px}
.dmy{padding:0 8px}.dmy input{height:100%;padding:0;border:0}
.tsel select{padding:0 6px}
button.btn.small,.btn.small,summary.btn.small{height:30px;padding:0 10px;display:inline-flex;align-items:center}
.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;padding:0 16px}
.row{align-items:flex-end}.row label{justify-content:flex-end}
.row label>*:last-child{margin:0}
