.reflection-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem 4rem;
}

.reflection-header {
  margin-bottom: 2rem;
}

.reflection-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.reflection-intro {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.reflection-privacy {
  padding: 1rem 1.15rem;
  background: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.reflection-privacy strong {
  color: var(--navy);
}

.reflection-privacy-rule {
  margin: 1.75rem 0 0;
  border: none;
  border-top: 1px solid var(--line);
}

.reflection-status {
  min-height: 1.5rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.reflection-status:empty {
  display: none;
}

.reflection-form {
  margin-bottom: 3rem;
}

.reflection-today {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 1.5rem;
}

.reflection-today-icon {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  color: var(--gold);
  margin-top: 0.08em;
}

.reflection-fieldset {
  margin: 0 0 1.75rem;
  padding: 0;
  border: none;
}

.reflection-fieldset legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  padding: 0;
  margin-bottom: 0.65rem;
}

.reflection-label {
  display: block;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.reflection-label--textarea {
  margin-top: 1rem;
}

.reflection-hint {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.reflection-select {
  width: 100%;
  max-width: 12rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white-pure);
  color: var(--text);
}

.reflection-select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.reflection-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white-pure);
  color: var(--text);
  resize: vertical;
  min-height: 4.5rem;
}

.reflection-textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.reflection-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 0;
}

.reflection-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
}

.reflection-radio input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--navy);
}

.reflection-actions {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.reflection-secondary {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.reflection-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.reflection-muted {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.reflection-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.reflection-entry {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white-pure);
  overflow: hidden;
}

.reflection-entry summary {
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  color: var(--navy);
}

.reflection-entry summary::-webkit-details-marker {
  display: none;
}

.reflection-entry summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.reflection-entry[open] summary::after {
  transform: rotate(-135deg);
}

.reflection-entry-badge {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reflection-entry-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--line);
}

.reflection-entry-block {
  margin-top: 0.85rem;
}

.reflection-entry-block:first-child {
  margin-top: 0.75rem;
}

.reflection-entry-k {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 0.25rem;
}

.reflection-entry-v {
  margin: 0;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.reflection-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.reflection-danger {
  color: #8b2942;
  border-color: rgba(139, 41, 66, 0.35);
}

.reflection-danger:hover {
  color: #6a1f33;
  border-color: rgba(139, 41, 66, 0.55);
  background: rgba(139, 41, 66, 0.06);
}
