:root {
  --blue: #1769e0;
  --blue-dark: #0d47a1;
  --bg: #f4f8fd;
  --text: #172033;
  --muted: #667085;
  --line: #d9e2ef;
  --white: #ffffff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--blue); text-decoration: none; font-weight: 700; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 105, 224, 0.08);
}
.login-card { width: min(420px, 100%); padding: 30px; }
h1, h2 { margin-top: 0; color: var(--blue-dark); }
form, label { display: grid; gap: 12px; }
label { font-weight: 700; }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
button {
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
}
button.secondary { background: #e8f1ff; color: var(--blue-dark); }
.admin-link { text-align: center; margin-top: 8px; }
.alert { background: #fff1f0; color: #b42318; padding: 12px; border-radius: 6px; }
.appbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(18px, 4vw, 36px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.appbar span { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.appbar h1 { margin: 4px 0 0; }
.shell { width: min(1120px, 100%); margin: 0 auto; padding: 22px; }
.panel { padding: 20px; margin-bottom: 20px; }
.today-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.today-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.today-grid span { color: var(--muted); display: block; margin-bottom: 8px; }
.today-grid strong { color: var(--blue-dark); overflow-wrap: anywhere; }
.actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.status { min-height: 24px; color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; }

@media (max-width: 760px) {
  .appbar { align-items: flex-start; gap: 14px; }
  .today-grid { grid-template-columns: 1fr; }
}
