:root {
  --teal: #2b6777;
  --teal-dark: #1f4959;
  --gray-border: #d7dee3;
  --gray-text: #5a6b7a;
  --text: #1f2d3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #f7f9fa;
}

h1 { color: var(--teal); }

a { color: var(--teal); }

.button, button {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

button.danger { background: #b3413c; }

.login-page {
  max-width: 380px;
  margin: 60px auto;
  text-align: center;
}

.login-page .subtitle { color: var(--gray-text); margin-top: -8px; }

.login-form, form { display: flex; flex-direction: column; gap: 12px; text-align: left; }

.login-form label, .content form label, fieldset label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: bold;
  font-size: 13px;
}

input[type="text"], input[type="email"], input[type="password"], textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 8px;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
}

textarea { min-height: 70px; resize: vertical; }

.error { color: #b3413c; font-weight: bold; }

.lead { color: var(--gray-text); margin-top: 0; }

.logos {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logos img { height: 24px; }

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--gray-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar nav { display: flex; flex-direction: column; gap: 8px; }

.week-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }

.week-list li a { display: block; padding: 4px 8px; border-radius: 4px; }

.week-list li.week-done a { background: #e4f1ee; font-weight: bold; }

.week-list li.week-empty a { color: var(--gray-text); }

.admin-banner { background: #fff4e5; border: 1px solid #f0c896; padding: 8px; border-radius: 4px; font-size: 13px; }

.export-btn { margin-top: auto; text-align: center; }

.content { flex: 1; padding: 32px; max-width: 640px; }

.content form, .content fieldset { margin-bottom: 20px; }

fieldset { border: 1px solid var(--gray-border); border-radius: 6px; padding: 12px; }

legend { color: var(--teal); font-weight: bold; padding: 0 6px; }

.checkbox-field { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: normal !important; }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }

.date-range { display: flex; gap: 16px; }

.admin-page { padding: 32px; max-width: 900px; margin: 0 auto; }

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.admin-header-actions { display: flex; align-items: center; gap: 16px; }

table { width: 100%; border-collapse: collapse; background: #fff; }

th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--gray-border); font-size: 14px; }

.actions { display: flex; gap: 12px; align-items: center; }

.actions form { display: inline; }

.logout-form { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-text); margin-bottom: 12px; }

.sidebar .logout-form { justify-content: space-between; border-bottom: 1px solid var(--gray-border); padding-bottom: 12px; }

.link-button { background: none; color: var(--teal); border: none; padding: 0; font-size: 13px; text-decoration: underline; cursor: pointer; }
