:root{--red:#E4002B;--green:#1f5d3a;--bg:#fbf7f2;--line:#e3d8cc}
*{box-sizing:border-box}
body{margin:0;font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:#2b2b2b;padding-bottom:5rem}
header{background:#fff;color:#2b2b2b;padding:1.25rem 1rem;text-align:center;border-bottom:1px solid var(--line)}
.logo{height:90px;width:auto;display:block;margin:0 auto .5rem}
header h1{margin:0 0 .25rem;color:var(--red)}header p{margin:0}
main{max-width:960px;margin:0 auto;padding:1rem}
h2{color:var(--red)}
.hint{color:#555}
.days{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:.75rem}
.day{background:#fff;border:1px solid var(--line);border-radius:10px;padding:.75rem}
.day.market{border-color:var(--green);border-width:2px}
.day h3{margin:0;font-size:1.05rem}.day h3::first-letter{text-transform:uppercase}
.loc{font-size:.85rem;color:#666;margin:0 0 .5rem}
.day.market .loc{color:var(--green);font-weight:600}
.slot{display:flex;flex-direction:column;align-items:center;width:100%;margin:.3rem 0;padding:.55rem;border:2px solid transparent;border-radius:8px;font:inherit;cursor:pointer;color:#1b1b1b}
.slot .t{font-weight:700;font-size:1.05rem}
.slot .st{font-size:.8rem}
.slot.free{background:#c8f0c8;border-color:#8fcf8f}
.slot.free:hover{border-color:#1f5d3a}
.slot.sel{background:#fff3a8;border-color:#b89b00;box-shadow:0 0 0 2px #b89b00}
.slot.held,.slot.mine{background:#fff3a8;border-color:#e0c200;cursor:not-allowed}
.slot.taken{background:var(--red);border-color:var(--red);color:#fff;cursor:not-allowed}
.legend{display:flex;flex-wrap:wrap;gap:.5rem 1rem;font-size:.9rem;margin:.5rem 0 1rem}
.legend span::before{content:"";display:inline-block;width:1em;height:1em;border-radius:3px;margin-right:.35em;vertical-align:-.15em;border:1px solid #0003}
.legend .l1::before{background:#c8f0c8}.legend .l2::before{background:#fff3a8}.legend .l3::before{background:var(--red)}
.notice{background:#fff3a8;border:1px solid #e0c200;border-radius:8px;padding:.6rem .9rem}
.slot:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
.bar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:.75rem 1rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;box-shadow:0 -2px 8px #0001}
button{font:inherit;background:var(--red);color:#fff;border:0;border-radius:8px;padding:.7rem 1.4rem;cursor:pointer}
button.secondary{background:#fff;color:var(--red);border:1px solid var(--red)}
button:disabled{opacity:.6;cursor:wait}
form{display:grid;gap:1rem;max-width:520px}
label{display:grid;gap:.25rem;font-weight:600}
input,textarea{font:inherit;padding:.6rem;border:1px solid #bbb;border-radius:8px;font-weight:400}
.err{color:#b00020;font-size:.9rem;font-weight:400;min-height:0;margin:0}
.buttons{display:flex;gap:.75rem}
.summary{background:#fff;border:1px solid var(--line);border-radius:10px;padding:.75rem 1rem;margin-bottom:1rem}
.summary ul{margin:.25rem 0 0;padding-left:1.2rem}
[hidden]{display:none!important}
.slot:disabled{opacity:1}
.info{background:#e8f1fb;border:1px solid #9bbfe6;border-radius:8px;padding:.7rem 1rem;margin-bottom:1rem;max-width:520px}
footer{max-width:960px;margin:2rem auto 0;padding:1rem;text-align:center;font-size:.9rem;color:#666;border-top:1px solid var(--line)}
footer a{color:var(--red)}
