:root { font: 16px/1.5 system-ui, sans-serif; color: #193e36; background: #f3f7f5; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 5vw; background: #fff; border-bottom: 1px solid #c6d9d4; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.35rem; }
main { max-width: 1500px; margin: auto; padding: 20px 3vw; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid #b9cdc5; border-radius: 8px; background: #fff; color: inherit; padding: 7px 12px; min-height: 42px; }
button:hover { background: #e6f2ec; }
button:disabled { opacity: .65; cursor: wait; }
#login, dialog { background: white; width: min(92vw, 420px); border: 1px solid #c6d9d4; border-radius: 16px; padding: 22px; }
#login { margin: 6vh auto; }
dialog::backdrop { background: #102d2566; }
label { display: grid; gap: 4px; margin: 12px 0; }
input, select, textarea { width: 100%; min-width: 0; min-height: 42px; padding: 6px 9px; border: 1px solid #b9cdc5; border-radius: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.toolbar input { width: auto; }
#add, button[type=submit], #login button { background: #17624e; color: white; }
#week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: #fff; border: 1px solid #c6d9d4; border-radius: 10px; min-width: 0; }
.day h3 { font-size: 1rem; background: #e7f0eb; padding: 8px; border-radius: 9px 9px 0 0; }
.day.today { border-color: #17624e; }
.list { display: grid; gap: 6px; padding: 6px; }
.item { text-align: left; overflow-wrap: anywhere; }
.item.b { background: #edf3fb; }
.item.inactive { background: #eee; color: #515151; }
.item small { display: block; }
.empty { padding: 8px; color: #526a62; }
[role=alert] { color: #a32323; }
[role=alert]:not(:empty), #message:not(:empty) { margin: 8px 0; }
@media (max-width: 780px) {
  #week { grid-template-columns: 1fr; }
  .day:not(.selected) { display: none; }
}
