:root {
  --brand: #243b53;
  --brand-light: #d9e2ec;
  --danger: #b91c1c;
  --success: #166534;
  --text: #102a43;
  --bg: #f7f9fc;
  --tile-size: 140px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
}

.screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  min-height: 100vh;
}

.center-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 24px;
}

.logo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  margin: 16px 0 32px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border: 2px solid var(--brand-light);
  border-radius: 10px;
  margin-bottom: 16px;
}

input[type="date"], input[type="datetime-local"] {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border: 2px solid var(--brand);
  border-radius: 10px;
  margin-bottom: 16px;
}

label { font-weight: 600; display: block; margin-bottom: 6px; }

button.primary {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background: var(--brand);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

button.secondary {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  background: transparent;
  border: 2px solid var(--brand);
  border-radius: 12px;
  cursor: pointer;
  margin-top: 10px;
}

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.checkbox-row input { width: 24px; height: 24px; }
.warning-text { color: var(--danger); font-size: 15px; margin: -8px 0 16px 34px; }

.link-row { text-align: center; margin-top: 12px; }
.link-row a { color: var(--brand); text-decoration: underline; }

.error-banner {
  background: #fee2e2;
  color: var(--danger);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: none;
}

.inactive-banner {
  background: #fee2e2;
  color: var(--danger);
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
}

.urgent-banner {
  background: #b91c1c;
  color: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.urgent-banner h3 { margin: 0 0 8px; }
.urgent-banner button {
  margin-top: 10px;
  background: white;
  color: var(--danger);
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.welcome-header { font-size: 22px; font-weight: 700; margin: 8px 0 20px; }

.top-nav {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.top-nav button {
  width: auto;
  padding: 10px 16px;
  margin: 0;
  font-size: 15px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tile {
  background: white;
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  min-height: var(--tile-size);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}
.tile .material-symbols-outlined { font-size: 34px; color: var(--brand); }

.section-title { font-size: 16px; font-weight: 700; margin: 24px 0 10px; color: var(--brand); }

.card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.badge.urgent { background: #fee2e2; color: var(--danger); }
.badge.normal { background: var(--brand-light); color: var(--brand); }
