:root {
  color-scheme: light;
  --green: #173d35;
  --green-soft: #e7f0eb;
  --ink: #1d2925;
  --muted: #66736d;
  --line: #e3e9e5;
  --paper: #f4f7f5;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; padding: 28px 16px;
  background: var(--paper); color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { width: min(100%, 540px); margin: 0 auto; }
.brand {
  text-align: center; color: white; background: var(--green);
  border-radius: 22px 22px 0 0; padding: 30px 20px 26px;
}
.lock { font-size: 25px; }
.eyebrow { margin: 8px 0; font-size: .72rem; letter-spacing: .13em; font-weight: 800; }
.brand h1 { margin: 7px 0; font-size: clamp(1.7rem, 7vw, 2.35rem); }
.subtitle { margin: 0; color: #d1e1d9; }
.panel {
  background: white; padding: 23px; margin-top: 14px;
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 5px 20px #173d350a;
}
#login-panel { margin-top: 0; border-radius: 0 0 18px 18px; }
h2 { margin: 0 0 12px; font-size: 1.2rem; }
.muted, .small-muted, .footnote, footer { color: var(--muted); }
.muted { line-height: 1.5; }
label { display: block; font-weight: 650; margin: 18px 0 7px; }
input {
  display: block; width: 100%; padding: 14px; border: 1px solid #cbd6cf;
  border-radius: 10px; font: inherit; font-size: 1rem; background: white;
}
button {
  width: 100%; margin-top: 13px; padding: 14px 18px; border: 0;
  border-radius: 10px; background: var(--green); color: white;
  font: inherit; font-weight: 750; cursor: pointer;
}
button:disabled { opacity: .6; cursor: wait; }
button.secondary { background: transparent; color: var(--green); border: 1px solid #b8c9bf; }
.error { color: #a32929; font-size: .92rem; }
.next-duty { text-align: center; padding: 28px 20px; }
.next-duty .eyebrow { color: var(--muted); }
.date { margin: 10px 0 22px; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 850; }
.responsible-label { margin: 0; color: var(--muted); }
.person { color: var(--green); font-size: 2.35rem; margin: 4px 0 15px; }
.duration { display: inline-block; padding: 8px 13px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-weight: 750; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.section-heading h2 { margin-bottom: 5px; }
.small-muted { font-size: .75rem; }
.schedule-list { list-style: none; padding: 0; margin: 12px 0 0; }
.schedule-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.schedule-list li:last-child { border-bottom: 0; }
.schedule-list .date-label { color: var(--muted); }
.schedule-list strong { text-align: right; }
.footnote { font-size: .82rem; margin: 12px 0 0; }
.status { min-height: 1.2em; color: var(--muted); text-align: center; font-size: .85rem; }
footer { text-align: center; font-size: .75rem; padding: 15px 8px; }
[hidden] { display: none !important; }
.brand-icon { font-size: 25px; }
.substitute-label { margin: -7px 0 15px; color: #8a5a13; font-weight: 750; }
.substitute-tag { display: block; color: #8a5a13; font-size: .76rem; margin-top: 3px; }
.entry-details { display: flex; flex-direction: column; text-align: right; }
.hint { color: var(--muted); font-size: .9rem; margin: 8px 0; }
.admin-list { list-style: none; padding: 0; margin: 10px 0 0; }
.admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-list li:last-child { border-bottom: 0; }
.admin-list li span { line-height: 1.4; font-size: .9rem; }
button.small-button { width: auto; flex: 0 0 auto; margin: 0; padding: 8px 10px; font-size: .8rem; background: #f5eaea; color: #8c2929; }
footer a { color: var(--green); font-weight: 700; }
