*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #faf7f4;
  color: #2c2c2a;
  min-height: 100vh;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.app-header {
  border-bottom: 2px solid #2c2c2a;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.app-header h1 {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 0.9rem;
  color: #888780;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
}

.nav-btn {
  padding: 8px 20px;
  border: 1px solid #2c2c2a;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #2c2c2a;
  transition: all 0.15s;
}

.nav-btn:hover { background: #f0ebe6; }
.nav-btn.active { background: #2c2c2a; color: #faf7f4; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-header h2 {
  font-size: 1.4rem;
  font-weight: 500;
}

.cal-nav-btn {
  background: none;
  border: 1px solid #d3d1c7;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 16px;
  color: #2c2c2a;
  transition: background 0.12s;
}

.cal-nav-btn:hover { background: #f0ebe6; }

.day-label {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888780;
  padding: 4px 0;
}

.day-cell {
  aspect-ratio: 1;
  border: 1px solid #e8ddd5;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  background: #fff;
  transition: all 0.12s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 70px;
}

.day-cell:hover { border-color: #c4826a; background: #fdf5f2; }
.day-cell.today { border-color: #c4826a; border-width: 2px; }
.day-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.day-cell.has-data { background: #fdf5f2; }

.day-number {
  font-size: 13px;
  font-weight: 500;
  color: #2c2c2a;
}

.day-cell.today .day-number {
  background: #c4826a;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.day-dots {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4826a;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,44,42,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal {
  background: #faf7f4;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e8ddd5;
  padding-bottom: 1rem;
}

.modal-header h2 { font-size: 1.2rem; font-weight: 500; }

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888780;
  line-height: 1;
}

.modal-close:hover { color: #2c2c2a; }

.form-section {
  margin-bottom: 1.5rem;
}

.form-section h3 {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888780;
  margin-bottom: 10px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row label {
  font-size: 13px;
  font-weight: 500;
  color: #2c2c2a;
}

.form-row input, .form-row select, .form-row textarea {
  padding: 8px 12px;
  border: 1px solid #e8ddd5;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #2c2c2a;
  outline: none;
  transition: border-color 0.12s;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: #c4826a;
}

.scale-row {
  display: flex;
  gap: 8px;
}

.scale-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid #e8ddd5;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  color: #2c2c2a;
}

.scale-btn:hover { border-color: #c4826a; }
.scale-btn.active { background: #c4826a; border-color: #c4826a; color: #fff; }

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-pill {
  padding: 6px 14px;
  border: 1px solid #e8ddd5;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s;
  color: #2c2c2a;
  user-select: none;
}

.checkbox-pill:hover { border-color: #c4826a; }
.checkbox-pill.active { background: #c4826a; border-color: #c4826a; color: #fff; }

.save-btn {
  width: 100%;
  padding: 12px;
  background: #c4826a;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
  margin-top: 1rem;
}

.save-btn:hover { background: #b5715a; }

.summary-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.summary-card {
  background: #fff;
  border: 1px solid #e8ddd5;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.summary-card h3 {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888780;
  margin-bottom: 10px;
}

.hidden { display: none; }