:root {
  color-scheme: light dark;
  --blue: #2563eb;
  --green: #16a34a;
  --amber: #d97706;
  --gray: #6b7280;
  --border: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1rem;
  max-width: 480px;
  margin-inline: auto;
}

h1 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

#last-dose-banner {
  font-size: 1.1rem;
  font-weight: 600;
}

.meta {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.hidden {
  display: none !important;
}

#pull-indicator {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  padding-bottom: 0.5rem;
}

#notifications-status {
  text-align: center;
  margin: 0.5rem 0 0;
}

.pending-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.pending-pill {
  background: var(--amber);
  color: white;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}

form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

form input,
form textarea {
  width: 100%;
  font-size: 1rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.button-row {
  display: flex;
  gap: 0.75rem;
}

button {
  flex: 1;
  font-size: 1.05rem;
  padding: 0.9rem;
  border: none;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
}

button.administered {
  background: var(--green);
}

button.skipped {
  background: var(--gray);
}

button.secondary {
  background: var(--blue);
  width: 100%;
  margin-top: 0.5rem;
}

#status-message {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

#status-message.error {
  color: #dc2626;
}

#status-message.conflict {
  color: var(--amber);
}

ul#history {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul#history li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

#passcode-gate {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

#passcode-gate input {
  font-size: 1.1rem;
  padding: 0.75rem;
  text-align: center;
  width: 100%;
  max-width: 260px;
}

#app {
  display: none;
}
