:root {
  /* Brand colors: primary is #F65B66 brought to ~75% saturation (between the
     70-80% range requested); secondary is #237B94 brought to 45% brightness. */
  --dl-blue: #1B5F73;
  --dl-accent: #E96871;
  --dl-accent-dark: #d6525c;
  --dl-bg: #f5f7fa;
  --dl-border: #dde3ea;
  --dl-text: #1c2733;
  --dl-muted: #64707c;
  --tag-test: #9b59b6;
  --tag-pilot: #e08e0b;
  --tag-live: #1f9254;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--dl-bg);
  color: var(--dl-text);
  margin: 0;
}
a { color: var(--dl-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  background: var(--dl-blue);
  color: white;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: white; opacity: 0.9; }
.topbar .brand { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 26px; height: 26px; display: block; }
.topbar nav a { margin-left: 18px; font-size: 0.92rem; }
.container { max-width: 960px; margin: 0 auto; padding: 28px 20px 60px; }
.card {
  background: white;
  border: 1px solid var(--dl-border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.15rem; }
.muted { color: var(--dl-muted); }
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-not_started { background: #eceff3; color: #56626d; }
.badge-in_progress { background: #fdf1da; color: #9a6a08; }
.badge-completed { background: #e2f4e9; color: #1a7a44; }
.badge-locked { background: #f0e3fb; color: #6b2fa3; margin-left: 6px; }
.tag-mode { padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; color: white; text-transform: uppercase; }
.tag-test { background: var(--tag-test); }
.tag-pilot { background: var(--tag-pilot); }
.tag-live { background: var(--tag-live); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--dl-border); font-size: 0.92rem; }
th { color: var(--dl-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
tr:last-child td { border-bottom: none; }
input[type=text], input[type=email], input[type=password], input[type=date], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--dl-border);
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  margin-top: 4px;
}
textarea { min-height: 110px; resize: vertical; }
label.field-label { font-weight: 600; display: block; margin-top: 20px; margin-bottom: 2px; }
.required-star { color: #c0392b; }
button, .btn {
  display: inline-block;
  background: var(--dl-accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
button.secondary, .btn.secondary { background: white; color: var(--dl-text); border: 1px solid var(--dl-border); }
.link-button { background: none; border: 0; padding: 0; color: white; font: inherit; text-decoration: underline; }
button.danger, .btn.danger { background: #c0392b; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.notice { background: #eaf1fd; border: 1px solid #c7dbfa; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.error-notice { background: #fdecea; border: 1px solid #f5c2bc; color: #92221a; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.login-wrap { max-width: 380px; margin: 80px auto; }
.likert-table td, .likert-table th { text-align: center; font-size: 0.82rem; }
.likert-table td:first-child, .likert-table th:first-child { text-align: left; max-width: 220px; }
.autosave-status { font-size: 0.8rem; color: var(--dl-muted); margin-top: 8px; }
.small { font-size: 0.82rem; }
.section-title { margin-top: 28px; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--dl-muted); }
.badge-rejected { background: #fdecea; color: #92221a; }
.notes-card { background: #fffaf0; border: 1px solid #f0e0bd; border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
.notes-card .private-tag { color: #9a6a08; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.note-entry { border-top: 1px solid #f0e0bd; padding: 10px 0; }
.note-entry:first-of-type { border-top: none; }
.note-entry .note-meta { font-size: 0.78rem; color: var(--dl-muted); margin-bottom: 3px; }
.note-entry .note-text { white-space: pre-wrap; }
.confetti-piece { position: fixed; top: -40px; will-change: transform, opacity; pointer-events: none; z-index: 9999; }
.progress-wrap { margin-bottom: 6px; }
.progress-track { background: var(--dl-border); border-radius: 100px; height: 12px; overflow: hidden; }
.progress-fill { background: var(--dl-accent); height: 100%; border-radius: 100px; transition: width 0.4s ease; }
.progress-label { font-size: 0.85rem; color: var(--dl-muted); margin-top: 6px; }
