* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; background: #f3f4f6; margin: 0; color: #111827; }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.4rem; margin: 8px 0 0; }
h2 { font-size: 1.1rem; margin-top: 0; }
.sub { color: #6b7280; margin-top: 4px; }
.card { background: #fff; border-radius: 12px; padding: 16px; margin: 16px 0; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head button { border: 0; background: #e5e7eb; border-radius: 8px; width: 36px; height: 36px; font-size: 1.2rem; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dow { font-size: .75rem; color: #6b7280; }
.grid button { border: 0; background: #eef2ff; border-radius: 8px; padding: 10px 0; cursor: pointer; }
.grid button:disabled { background: transparent; color: #cbd5e1; cursor: not-allowed; }
.sel { background: #4f46e5 !important; color: #fff !important; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { border: 1px solid #86efac; background: #dcfce7; border-radius: 8px; padding: 8px 0; cursor: pointer; }
.slot.booked { background: #fee2e2; border-color: #fca5a5; color: #991b1b; text-decoration: line-through; cursor: not-allowed; }
.summary { margin-top: 12px; font-size: .85rem; color: #374151; }
.summary p { margin: 4px 0; }
.summary .warn { color: #b45309; }
.legend { font-size: .8rem; color: #4b5563; margin-bottom: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 10px; }
.dot.free { background: #86efac; } .dot.booked { background: #fca5a5; } .dot.sel { background: #4f46e5; }
label { display: block; margin-bottom: 12px; font-size: .9rem; }
input { display: block; width: 100%; padding: 10px; margin-top: 4px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; }
textarea { display: block; width: 100%; padding: 10px; margin-top: 4px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; resize: vertical; }
input[readonly] { background: #f9fafb; }
#pay { width: 100%; padding: 12px; border: 0; border-radius: 8px; background: #4f46e5; color: #fff; font-size: 1rem; cursor: pointer; }
#pay:disabled { opacity: .6; }
#msg { color: #b91c1c; min-height: 1.2em; }
