:root {
  --primary: #D85A30;
  --primary-dark: #b84925;
  --text: #2b2b2b;
  --muted: #7a7a7a;
  --border: #e6e0dc;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
}

.container {
  width: 100%;
  max-width: 420px;
  margin-top: 24px;
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand .logo {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 20px;
  margin: 0 0 20px;
  text-align: center;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field {
  margin-bottom: 16px;
}

input {
  width: 100%;
  padding: 14px 14px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  color: var(--text);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

button {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s ease;
}

button:active {
  background: var(--primary-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.message.success {
  display: block;
  background: #fdf0ec;
  color: var(--primary-dark);
  border: 1px solid #f3d3c6;
}

.message.error {
  display: block;
  background: #fdecec;
  color: #a12c2c;
  border: 1px solid #f3c6c6;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.card + .card {
  margin-top: 16px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

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

.section-header .section-label {
  margin-bottom: 0;
}

.section-header button {
  width: auto;
  padding: 10px 16px;
  font-size: 14px;
  margin-top: 0;
}

.dose-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 0 4px;
}

.dose-progress::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.dose-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.dose-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

.dose-step.current .dose-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px #fdf0ec;
}

.dose-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.dose-step.current .dose-label {
  color: var(--primary-dark);
  font-weight: 700;
}

.symptom-buttons,
.site-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.symptom-btn,
.site-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.symptom-btn:active,
.site-btn:active {
  background: #fdf0ec;
  border-color: var(--primary);
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.welcome-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.welcome-name {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
  text-align: left;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.card-title i {
  color: var(--primary);
  font-size: 16px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.card-title-row .card-title {
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-pending {
  background: #f2f2f2;
  color: var(--muted);
}

.badge-logged {
  background: #e6f4ea;
  color: #2e7d32;
}

.badge-coral {
  background: #fdf0ec;
  color: var(--primary-dark);
}

.last-site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chart-wrap {
  position: relative;
  height: 140px;
  margin-bottom: 8px;
}

.weight-log-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.weight-log-row input {
  flex: 1;
  margin: 0;
}

.weight-log-row button {
  width: auto;
  padding: 0 20px;
  margin: 0;
}
