:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #174567; background: #eaf8ff; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 90% 0, #d5f9ed, transparent 60%), linear-gradient(160deg, #e6f7ff, #f5fbff); }
button, input, a { -webkit-tap-highlight-color: transparent; font: inherit; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #0077d6; outline-offset: 3px; }
button { cursor: pointer; }
.report-shell { width: min(1080px, 100%); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.report-header { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.back-button { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; text-decoration: none; font-size: 29px; color: white; background: linear-gradient(145deg, #62dafe, #13afe9); border: 2px solid white; border-radius: 50%; box-shadow: 0 4px 0 #95d5eb; }
h1 { margin: 0; color: #047bc0; font-size: clamp(23px, 3.6vw, 32px); }
.report-header p { margin: 5px 0 0; font-size: 13px; color: #60829a; }
.local-badge { margin-left: auto; padding: 8px 12px; border-radius: 20px; background: #fff9; font-size: 12px; white-space: nowrap; color: #547c94; }
.date-toolbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; margin-bottom: 18px; background: #ffffffb8; border: 1px solid white; border-radius: 20px; }
.date-step, .today-button { min-width: 44px; min-height: 44px; border: 0; border-radius: 13px; background: #dff5ff; color: #087caf; font-weight: 700; }
.date-step { font-size: 28px; }
.date-step:disabled { opacity: .35; cursor: default; }
.today-button { padding: 0 18px; }
.date-field { display: flex; align-items: center; gap: 12px; color: #587d96; font-size: 14px; }
.date-field input { min-width: 155px; max-width: 190px; min-height: 44px; border: 0; background: transparent; color: #075f96; font-weight: 700; font-size: 17px; }
.storage-warning { background: #fff4d4; color: #8b5818; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.daily-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.daily-summary > div { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 18px 8px; border: 1px solid white; border-radius: 19px; background: #ffffffc7; }
.daily-summary strong { font-size: 30px; color: #0587c1; }
.daily-summary span { font-size: 13px; }
.daily-summary .heart-summary strong, .daily-summary .heart-summary strong span { font-size: 30px; color: #eb6186; }
.course-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.course-heading h2 { margin: 0; font-size: 21px; color: #046da5; }
.course-heading span { font-size: 12px; color: #6b8c9f; }
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stage-card { min-width: 0; padding: 20px; background: #fff; border: 1px solid #d4edf9; border-radius: 22px; box-shadow: 0 6px 20px #318db40a; }
.stage-card-header { display: flex; gap: 10px; align-items: center; }
.stage-number { display: grid; flex: 0 0 35px; height: 35px; place-items: center; border-radius: 12px; color: #0076af; background: #e1f6ff; font-weight: 800; }
.stage-card h3 { margin: 0; font-size: 19px; }
.stage-status { margin-left: auto; white-space: nowrap; font-size: 12px; color: #6089a1; }
.stage-status.is-complete { color: #14866e; }
.progress-description { margin: 17px 0 9px; font-size: 14px; line-height: 1.6; }
.progress-line { display: flex; gap: 10px; align-items: center; }
.progress-track { flex: 1; height: 9px; background: #eaf3f8; border-radius: 8px; overflow: hidden; }
.progress-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #28bdeb, #4cd2ab); }
.progress-line > span { width: 38px; font-size: 12px; color: #64859a; text-align: right; }
.settlement { margin-top: 18px; border-top: 1px solid #e9f2f7; padding-top: 14px; }
.settlement-label { margin: 0 0 10px; color: #66879a; font-size: 12px; }
.settlement-metrics { display: flex; gap: 8px; justify-content: space-between; }
.settlement-metrics > div { text-align: center; flex: 1; padding: 8px 4px; background: #f2faff; border-radius: 11px; }
.settlement-metrics strong { display: block; color: #087fae; font-size: 19px; }
.settlement-metrics span { display: block; margin-top: 4px; font-size: 11px; color: #638398; }
.settlement-metrics .hearts { color: #e75f83; }
.settlement-total, .pending-note, .session-detail { font-size: 12px; line-height: 1.7; color: #66879a; }
.settlement-total { margin: 10px 0 0; }
.pending-note { margin: 14px 0 0; }
.session-list { margin-top: 10px; }
.session-list summary { min-height: 34px; display: list-item; cursor: pointer; font-size: 12px; color: #087fae; }
.session-detail { margin: 0; padding: 6px 0; border-bottom: 1px solid #eff5f8; }
.empty-state { text-align: center; padding: 38px 20px; background: #ffffffb8; border-radius: 22px; border: 1px solid white; }
.empty-state .empty-icon { font-size: 38px; color: #3ab6e0; }
.empty-state h2 { font-size: 20px; color: #277d9f; }
.empty-state p { font-size: 14px; color: #6c8a9d; line-height: 1.7; }
.home-link { display: inline-block; margin-top: 9px; padding: 12px 22px; border-radius: 22px; background: #0aaee3; color: white; text-decoration: none; font-weight: 700; }
.report-notes { margin-top: 24px; padding: 0 4px; color: #6d8b9d; font-size: 12px; line-height: 1.8; }
.report-notes p { margin: 8px 0; }
@media (max-width: 620px) {
  .report-shell { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .report-header { gap: 12px; flex-wrap: wrap; }
  .local-badge { padding: 6px 8px; font-size: 10px; }
  .date-toolbar { gap: 7px; padding: 8px; }
  .date-field { gap: 4px; }
  .date-field > span { display: none; }
  .date-field input { min-width: 140px; font-size: 15px; }
  .today-button { padding: 0 12px; }
  .daily-summary { gap: 8px; }
  .daily-summary > div { padding: 14px 4px; }
  .daily-summary > div > span { font-size: 11px; }
  .stage-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stage-card { padding: 18px; }
}
@media (max-height: 420px) and (orientation: landscape) {
  .report-header { margin-bottom: 14px; }
  .date-toolbar { padding: 6px 12px; margin-bottom: 12px; }
  .daily-summary { margin-bottom: 18px; }
  .daily-summary > div { padding: 10px 8px; }
}
