* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f3f5f9;
  color: #1d2433;
  line-height: 1.4;
}
header {
  background: #1f3a68;
  color: #fff;
  padding: 16px 16px 0;
  text-align: center;
}
.logo { display: block; margin: 0 auto 10px; height: 150px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
@media (min-width: 600px) { .logo { height: 190px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.week-note { font-weight: 400; color: #5b6476; font-size: .85rem; margin-top: 4px; }
.tabs { display: flex; justify-content: center; gap: 4px; }
.tab {
  background: transparent; color: #fff; border: 0;
  padding: 10px 18px; font-size: 1rem; cursor: pointer;
  border-radius: 8px 8px 0 0;
}
.tab.active { background: #f3f5f9; color: #1f3a68; font-weight: 600; }

main { max-width: 760px; margin: 0 auto; padding: 16px; }
.card {
  background: #fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 16px;
}
h2 { margin: 0 0 12px; font-size: 1.15rem; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; flex: 1; }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px;
  font: inherit; font-weight: 400; padding: 10px;
  border: 1px solid #c5ccd8; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #3b6fd1; border-color: transparent; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > label { min-width: 160px; }

.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days label { flex: 0 0 auto; margin: 0; font-weight: 400; }
.days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.days span {
  display: inline-block; padding: 8px 14px; border: 1px solid #c5ccd8;
  border-radius: 999px; cursor: pointer; user-select: none;
}
.days input:checked + span { background: #1f3a68; color: #fff; border-color: #1f3a68; }
.days input:focus-visible + span { outline: 2px solid #3b6fd1; }

button {
  font: inherit; padding: 10px 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid #c5ccd8; background: #fff; color: #1d2433;
}
button.primary { background: #1f3a68; color: #fff; border-color: #1f3a68; font-weight: 600; }
button:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.msg { min-height: 1.2em; margin: 4px 0 10px; font-size: .95rem; }
.msg.ok { color: #1b7a3a; }
.msg.err { color: #b42318; }
.hint { color: #5b6476; font-size: .9rem; margin: -6px 0 12px; }

.item {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-top: 1px solid #e6e9ef;
}
.item:first-child { border-top: 0; }
.item .meta { color: #5b6476; font-size: .9rem; }
.item .btns { display: flex; gap: 6px; flex-shrink: 0; }
.item .btns button { padding: 6px 10px; font-size: .85rem; }
.empty { color: #5b6476; font-style: italic; }

.output { font-family: Arial, sans-serif; font-size: 11pt; overflow-x: auto; }

.banner { background: #fff4d6; color: #6b4e00; padding: 12px 16px; text-align: center; }
.hidden { display: none !important; }
