:root {
  color-scheme: light;
  --ink: #183334;
  --muted: #657878;
  --line: #dbe7e5;
  --paper: #ffffff;
  --canvas: #f3f8f7;
  --teal: #176b68;
  --teal-dark: #0f504e;
  --teal-soft: #dff1ee;
  --gold: #f3c969;
  --gold-soft: #fff4d6;
  --coral: #c66355;
  --coral-soft: #fae8e4;
  --shadow: 0 12px 32px rgba(29, 74, 72, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -5%, rgba(243, 201, 105, 0.24), transparent 28rem),
    var(--canvas);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 107, 104, 0.24);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.lock-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.lock-card {
  width: min(100%, 28rem);
  padding: clamp(1.5rem, 5vw, 2.4rem);
  border: 1px solid rgba(23, 107, 104, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.brand-mark {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.3rem;
  place-items: center;
  border-radius: 1.2rem;
  background: var(--teal);
  box-shadow: 0 10px 20px rgba(23, 107, 104, 0.2);
}

.brand-mark span,
.mini-mark {
  position: relative;
  display: block;
  width: 2rem;
  height: 1.65rem;
  border: 2px solid #fff;
  border-radius: 0.25rem;
}

.brand-mark span::after,
.mini-mark::after {
  position: absolute;
  top: 0.25rem;
  left: 0.5rem;
  width: 0.7rem;
  height: 0.35rem;
  border-bottom: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  content: "";
  transform: rotate(-45deg);
}

.lock-card h1 {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  line-height: 1.25;
}

.lock-lead {
  margin: 0.9rem 0 1.3rem;
  color: var(--muted);
  line-height: 1.7;
}

.lock-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.stack-form label,
.dialog-card > label,
.compact-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #c7d8d6;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.6;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 0.65rem !important;
  color: var(--muted);
  font-weight: 600 !important;
}

.check-row input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--teal);
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--teal);
  color: #fff;
  background: var(--teal);
}

.primary-button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  border: 1px solid #c7d8d6;
  color: var(--ink);
  background: #fff;
}

.danger-button {
  border: 1px solid var(--coral);
  color: #fff;
  background: var(--coral);
}

.form-error {
  min-height: 1.2rem;
  margin: -0.35rem 0 0;
  color: #a13e31;
  font-size: 0.85rem;
  line-height: 1.45;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 5.4rem;
}

.app-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem max(1rem, calc((100vw - 66rem) / 2));
  border-bottom: 1px solid rgba(219, 231, 229, 0.9);
  background: rgba(243, 248, 247, 0.92);
  backdrop-filter: blur(14px);
}

.brand-button,
.quiet-button,
.add-button,
.icon-text-button,
.month-button,
.month-title-button,
.nav-button,
.dialog-close,
.duration-presets button,
.status-button,
.text-danger-button {
  border: 0;
  background: transparent;
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem;
  font-weight: 850;
}

.mini-mark {
  width: 1.7rem;
  height: 1.45rem;
  border-color: var(--teal);
}

.mini-mark::after {
  top: 0.18rem;
  left: 0.4rem;
}

.quiet-button,
.icon-text-button {
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

.quiet-button:hover,
.icon-text-button:hover {
  background: var(--teal-soft);
}

.page-view {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.challenge-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.challenge-select-wrap {
  display: grid;
  gap: 0.35rem;
}

.challenge-select-wrap > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.challenge-select-wrap select {
  min-width: 0;
  font-weight: 800;
}

.add-button {
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--teal);
  border-radius: 12px;
  color: var(--teal);
  background: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.add-button:hover {
  background: var(--teal-soft);
}

.empty-state {
  padding: 3rem 1.5rem;
  border: 1px dashed #b9d0cd;
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.empty-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: var(--gold-soft);
  font-size: 2rem;
  font-weight: 900;
}

.empty-state h2 {
  margin: 0;
  font-size: 1.35rem;
}

.empty-state p {
  max-width: 30rem;
  margin: 0.7rem auto 1.4rem;
  color: var(--muted);
  line-height: 1.7;
}

.challenge-summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0 1rem;
}

.challenge-summary h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  line-height: 1.3;
  word-break: break-word;
}

.summary-period {
  margin: 0;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.stat-card {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.9rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  text-align: center;
}

.stat-card strong {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.stat-done strong {
  color: var(--teal);
}

.stat-missed strong {
  color: var(--coral);
}

.stat-empty strong {
  color: #768582;
}

.calendar-card {
  padding: clamp(0.8rem, 3vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.month-button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 2rem;
  line-height: 1;
}

.month-title-button {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  padding: 0.35rem;
  border-radius: 10px;
  font-weight: 850;
}

.month-title-button span {
  font-size: 1.15rem;
}

.month-title-button small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  padding-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.weekday-row span:first-child {
  color: var(--coral);
}

.calendar-grid {
  gap: 0.25rem;
}

.calendar-day,
.calendar-spacer {
  min-width: 0;
  aspect-ratio: 0.86;
}

.calendar-day {
  position: relative;
  display: grid;
  align-content: space-between;
  justify-items: center;
  min-height: 4.6rem;
  padding: 0.35rem 0.15rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f8fbfa;
}

.calendar-day:hover:not(:disabled) {
  border-color: #a7c7c3;
  background: #f1f8f6;
}

.calendar-day:disabled {
  cursor: default;
  opacity: 0.43;
}

.calendar-day.is-today {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.day-number {
  font-size: 0.77rem;
  font-weight: 800;
}

.day-status {
  display: grid;
  width: clamp(1.8rem, 7vw, 2.35rem);
  height: clamp(1.8rem, 7vw, 2.35rem);
  place-items: center;
  border-radius: 50%;
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 900;
}

.calendar-day.is-done .day-status {
  color: #fff;
  background: var(--teal);
}

.calendar-day.is-missed .day-status {
  color: var(--coral);
  background: var(--coral-soft);
}

.calendar-day.is-unrecorded .day-status {
  color: #91a29f;
  background: #edf3f2;
}

.calendar-day.is-future .day-status,
.calendar-day.is-outside .day-status {
  color: #b5c1bf;
  background: transparent;
}

.day-comment-dot {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px #fff;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  padding: 1rem 0.25rem 0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-mark {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
}

.legend-mark.done {
  color: #fff;
  background: var(--teal);
}

.legend-mark.missed {
  color: var(--coral);
  background: var(--coral-soft);
}

.legend-mark.unrecorded {
  color: #8fa09d;
  background: #edf3f2;
}

.comment-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

.gentle-message {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: #47615f;
  background: var(--gold-soft);
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: center;
}

.settings-view {
  width: min(100% - 2rem, 42rem);
}

.settings-heading {
  margin: 0.6rem 0 1.3rem;
}

.settings-heading h1 {
  margin: 0;
  font-size: 2rem;
}

.settings-card {
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.settings-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.settings-card p {
  margin: 0.55rem 0;
  color: var(--muted);
  line-height: 1.7;
}

.important-note {
  border-left: 5px solid var(--gold);
}

.danger-card {
  border-color: #edcac4;
}

.settings-footnote {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.compact-form {
  margin-top: 1rem;
}

.bottom-nav {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 4.6rem;
  padding: 0.35rem max(1rem, calc((100vw - 28rem) / 2)) max(0.35rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(29, 74, 72, 0.08);
  backdrop-filter: blur(14px);
}

.nav-button {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-height: 3.75rem;
  align-content: center;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.nav-button.is-active {
  color: var(--teal);
  background: var(--teal-soft);
}

.nav-icon {
  font-size: 1.25rem;
}

.app-dialog {
  width: min(calc(100% - 1.5rem), 31rem);
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(14, 40, 39, 0.56);
  backdrop-filter: blur(3px);
}

.dialog-card {
  display: grid;
  gap: 1rem;
  max-height: calc(100vh - 2rem);
  padding: 1.25rem;
  border-radius: 24px;
  overflow-y: auto;
  background: #fff;
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 1.4rem;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #edf3f2;
  font-size: 1.4rem;
}

.duration-fieldset,
.status-fieldset {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.duration-fieldset legend,
.status-fieldset legend {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 750;
}

.duration-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.duration-presets button {
  min-height: 2.75rem;
  padding: 0.45rem;
  border: 1px solid #c7d8d6;
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 750;
}

.duration-presets button.is-selected {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}

.custom-days-label {
  display: grid;
  grid-template-columns: 1fr 6rem auto;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.custom-days-label input {
  text-align: right;
}

.open-ended-row {
  padding: 0.8rem;
  border-radius: 10px;
  background: #f5f9f8;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0.7rem;
}

.dialog-danger-area {
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.text-danger-button {
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  color: #a13e31;
  font-size: 0.88rem;
  font-weight: 750;
}

.status-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.status-button {
  display: grid;
  min-height: 6.6rem;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.status-button strong {
  font-size: 2.4rem;
  line-height: 1;
}

.status-button span {
  font-weight: 800;
}

.status-button.done strong {
  color: var(--teal);
}

.status-button.missed strong {
  color: var(--coral);
}

.status-button.done.is-selected {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.status-button.missed.is-selected {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.supportive-copy {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.confirm-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 5.5rem;
  left: 1rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: #fff;
  background: #183334;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 520px) {
  .app-header {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .brand-button {
    font-size: 0.9rem;
  }

  .page-view {
    width: min(100% - 1rem, 64rem);
    padding-top: 0.8rem;
  }

  .challenge-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
  }

  .add-button {
    width: 3rem;
    padding: 0;
    overflow: hidden;
    color: transparent;
    white-space: nowrap;
  }

  .add-button span {
    display: grid;
    color: var(--teal);
    font-size: 1.45rem;
  }

  .stats-grid {
    gap: 0.35rem;
  }

  .stat-card {
    padding: 0.75rem 0.2rem;
  }

  .stat-card span {
    font-size: 0.66rem;
  }

  .calendar-card {
    padding: 0.65rem 0.45rem 0.8rem;
    border-radius: 18px;
  }

  .calendar-grid {
    gap: 0.12rem;
  }

  .calendar-day {
    min-height: 4.25rem;
    border-radius: 9px;
  }

  .calendar-legend {
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }
}

@media (min-width: 760px) {
  .page-view {
    padding-top: 2rem;
  }

  .challenge-bar {
    max-width: 38rem;
  }

  .calendar-day {
    aspect-ratio: 1.12;
    min-height: 5.4rem;
  }

  .bottom-nav {
    right: 50%;
    left: auto;
    width: 30rem;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- ログイン画面 ---------- */

.consent-note {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--gold-soft);
  font-size: 0.86rem;
  line-height: 1.7;
}

.consent-note p {
  margin: 0.2rem 0;
}

.lock-switch {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.link-button {
  padding: 0.2rem;
  border: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- 保存状態 ---------- */

.sync-status {
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.sync-status[data-state="syncing"],
.sync-status[data-state="pending"] {
  color: var(--muted);
}

.sync-status[data-state="offline"],
.sync-status[data-state="error"] {
  border-color: #edcac4;
  background: var(--coral-soft);
  color: var(--coral);
}

.sync-detail {
  font-size: 0.82rem;
}

/* ---------- 先月の振り返りのお誘い ---------- */

.reflect-banner {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.reflect-banner p {
  margin: 0;
  font-weight: 800;
  line-height: 1.6;
}

.reflect-banner-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ---------- 月の振り返り ---------- */

.report-toolbar {
  margin: 0.5rem 0 1rem;
}

.report-month-label {
  font-size: 1.15rem;
  font-weight: 850;
}

.report-empty {
  color: var(--muted);
  line-height: 1.7;
}

.report-card h2 {
  font-size: 1.15rem;
}

.report-card h3,
.reflection-card h3 {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
}

.report-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.report-numbers div {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.2rem;
  border-radius: 12px;
  background: var(--canvas);
}

.report-numbers strong {
  font-size: 1.2rem;
}

.report-numbers span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.report-facts {
  font-size: 0.85rem;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-top: 0.6rem;
}

.mini-head {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.mini-day {
  display: grid;
  justify-items: center;
  min-height: 2.6rem;
  padding: 0.2rem 0;
  border-radius: 8px;
  background: var(--canvas);
}

.mini-day small {
  color: var(--muted);
  font-size: 0.62rem;
}

.mini-day b {
  font-size: 1rem;
}

.mini-day.is-done {
  background: var(--teal-soft);
  color: var(--teal);
}

.mini-day.is-missed {
  background: var(--coral-soft);
  color: var(--coral);
}

.mini-day.is-outside {
  opacity: 0.35;
}

.report-comments {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-comments li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.5rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.report-comment-date {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.reflection-card {
  border-left: 5px solid var(--teal);
}

.reflection-card textarea {
  width: 100%;
}

.reflection-lead {
  font-size: 0.88rem;
}

.share-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.print-only {
  display: none;
}

#reflectionPrint p {
  white-space: pre-wrap;
}

@media print {
  body.is-printing-report {
    background: #fff;
  }

  body.is-printing-report .app-header,
  body.is-printing-report .bottom-nav,
  body.is-printing-report .report-heading,
  body.is-printing-report .report-toolbar,
  body.is-printing-report .no-print,
  body.is-printing-report .print-hide,
  body.is-printing-report .reflection-lead,
  body.is-printing-report #toast {
    display: none !important;
  }

  body.is-printing-report .print-only {
    display: block;
  }

  body.is-printing-report .settings-card {
    break-inside: avoid;
    border-color: #ccc;
  }

  body.is-printing-report .page-view {
    width: 100%;
    padding: 0;
  }
}
