.daily-records { --dr-ink: #234f4b; --dr-muted: #637874; --dr-border: #d7e2d9; color: var(--dr-ink); background: #f8f6ef; padding-bottom: 88px; }
.daily-records *, .daily-records *::before, .daily-records *::after { box-sizing: border-box; }
.daily-records [hidden] { display: none !important; }
.daily-records .dr-shell { width: min(100% - 48px, 900px); margin-inline: auto; }
.daily-records .dr-hero { padding: 76px 0 55px; }
.daily-records .dr-kicker { font-size: 11px; letter-spacing: .18em; line-height: 1.6; margin: 0 0 14px; color: #667e72; font-weight: 600; }
.daily-records h1 { font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: clamp(32px, 5vw, 48px); font-weight: 500; line-height: 1.55; letter-spacing: .07em; margin: 0 0 22px; }
.daily-records .dr-lead { font-size: 15px; line-height: 2; margin: 0 0 20px; }
.daily-records .dr-text-link { color: #245b50; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; line-height: 1.8; }
.daily-records .dr-content { display: grid; gap: 28px; }
.daily-records .dr-card { background: #fffdf8; border: 1px solid var(--dr-border); border-radius: 22px; padding: 36px; }
.daily-records h2 { font-size: 23px; font-family: "Noto Serif JP", "Yu Mincho", serif; font-weight: 500; line-height: 1.7; margin: 0 0 15px; }
.daily-records h3 { font-size: 17px; line-height: 1.7; margin: 0 0 12px; }
.daily-records p { font-size: 14px; line-height: 1.9; margin: 0 0 14px; }
.daily-records .dr-caption { font-size: 12px; line-height: 1.8; color: var(--dr-muted); }
.daily-records .dr-status { font-size: 13px; line-height: 1.9; margin-top: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.daily-records .dr-status:empty { display: none; }
.daily-records .dr-status.is-error { color: #9a352e; }
.daily-records .dr-status.is-success { color: #236448; }
.daily-records .dr-button { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid #315a50; border-radius: 999px; padding: 14px 24px; min-height: 48px; line-height: 1.5; cursor: pointer; transition: background-color .15s; }
.daily-records .dr-button--primary { background: #24594e; color: #fff; }
.daily-records .dr-button--line { background: #087e37; color: #fff; border-color: #087e37; }
.daily-records .dr-button--quiet { color: #2b554a; background: transparent; }
.daily-records .dr-button--danger { color: #fff; background: #963e35; border-color: #963e35; }
.daily-records .dr-button:hover { filter: brightness(.95); }
.daily-records button:disabled { cursor: default; opacity: .55; filter: none; }
.daily-records :focus-visible { outline: 3px solid #bf9844; outline-offset: 4px; }
.daily-records .dr-consent { border-top: 1px solid var(--dr-border); padding-top: 25px; margin-top: 28px; }
.daily-records .dr-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7; cursor: pointer; }
.daily-records .dr-check input { width: 19px; height: 19px; margin: 3px 0 0; accent-color: #24594e; flex-shrink: 0; }
.daily-records .dr-consent .dr-button { margin-top: 18px; }
.daily-records .dr-account { border-top: 1px solid var(--dr-border); margin-top: 20px; padding-top: 18px; }
.daily-records .dr-account p { margin: 0; font-size: 12px; }
.daily-records .dr-account code { display: inline; overflow-wrap: anywhere; font-size: 12px; }
.daily-records .dr-summary { display: grid; grid-template-columns: repeat(3, 1fr); background: #e8eee5; border-radius: 18px; padding: 25px 12px; }
.daily-records .dr-summary > div { text-align: center; padding: 0 10px; }
.daily-records .dr-summary > div + div { border-left: 1px solid #cedbce; }
.daily-records .dr-summary span { display: block; font-size: 12px; margin-bottom: 9px; }
.daily-records .dr-summary strong { font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.daily-records .dr-summary small { margin-left: 5px; font-size: 12px; }
.daily-records .dr-card-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 8px; }
.daily-records .dr-card-heading .dr-kicker { margin-bottom: 8px; }
.daily-records form > fieldset { padding: 0; border: 0; margin: 22px 0 0; min-width: 0; }
.daily-records .dr-field { margin-bottom: 24px; }
.daily-records .dr-field > label, .daily-records .dr-enrollment label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.daily-records .dr-field label > span, .daily-records legend > span { margin-left: 7px; font-size: 11px; font-weight: 400; color: var(--dr-muted); }
.daily-records input[type="date"], .daily-records input[type="text"], .daily-records select, .daily-records textarea { font: inherit; font-size: 16px; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; border: 1px solid #b9cdc1; border-radius: 9px; padding: 11px 13px; color: var(--dr-ink); background: #fff; }
.daily-records textarea { resize: vertical; line-height: 1.8; }
.daily-records textarea + p { margin-top: 7px; }
.daily-records .dr-choice-field { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.daily-records .dr-choice-field legend { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.daily-records .dr-intake { display: flex; flex-wrap: wrap; gap: 15px 32px; margin-bottom: 10px; }
.daily-records .dr-rating { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 410px; gap: 12px; }
.daily-records .dr-rating label { position: relative; cursor: pointer; }
.daily-records .dr-rating input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.daily-records .dr-rating span { display: grid; place-items: center; min-height: 50px; background: #fff; border: 1px solid #b9cdc1; border-radius: 12px; font-size: 18px; }
.daily-records .dr-rating input:checked + span { background: #24594e; color: #fff; border-color: #24594e; }
.daily-records .dr-rating input:focus-visible + span { outline: 3px solid #bf9844; outline-offset: 4px; }
.daily-records .dr-optional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.daily-records .dr-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.daily-records .dr-history-filter fieldset { display: flex; align-items: end; gap: 15px; }
.daily-records .dr-history-filter .dr-field { flex: 1; min-width: 0; margin-bottom: 0; }
.daily-records .dr-history-list { display: grid; gap: 14px; margin-top: 18px; }
.daily-records .dr-history-row { background: #f0f3eb; border-radius: 14px; padding: 20px; overflow-wrap: anywhere; }
.daily-records .dr-history-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 9px; }
.daily-records .dr-history-heading strong { font-size: 16px; }
.daily-records .dr-history-heading button { padding: 7px 18px; min-height: 40px; font-size: 12px; }
.daily-records .dr-history-row p { font-size: 13px; margin-bottom: 6px; }
.daily-records .dr-history-note { white-space: pre-wrap; }
.daily-records .dr-inline-form { display: flex; align-items: center; gap: 14px; }
.daily-records .dr-inline-form .dr-button { flex-shrink: 0; }
.daily-records .dr-delete { padding: 10px 12px; }
.daily-records .dr-delete h2 { font-size: 18px; }
.daily-records .dr-delete p { font-size: 12px; }
.daily-records .dr-delete-confirm { margin-top: 20px; padding: 20px; border-radius: 14px; background: #f5e9de; }
.daily-records .dr-delete-confirm .dr-button { margin: 5px 5px 0 0; }
@media (max-width: 600px) {
  .daily-records { padding-bottom: 55px; }
  .daily-records .dr-shell { width: calc(100% - 32px); }
  .daily-records .dr-hero { padding: 42px 4px 35px; }
  .daily-records .dr-card { border-radius: 17px; padding: 24px 20px; }
  .daily-records h2 { font-size: 20px; }
  .daily-records .dr-card-heading { display: block; }
  .daily-records .dr-card-heading > .dr-caption { display: block; margin-bottom: 18px; }
  .daily-records .dr-summary { padding: 22px 5px; }
  .daily-records .dr-summary > div { padding: 0 5px; }
  .daily-records .dr-summary span { font-size: 10px; }
  .daily-records .dr-summary strong { font-size: 28px; }
  .daily-records .dr-optional-grid { grid-template-columns: 1fr; gap: 0; }
  .daily-records .dr-rating { gap: 9px; }
  .daily-records .dr-history-filter fieldset { flex-wrap: wrap; gap: 12px; }
  .daily-records .dr-history-filter .dr-field { flex-basis: calc(50% - 6px); }
  .daily-records .dr-history-filter .dr-button { width: 100%; }
  .daily-records .dr-form-actions { flex-direction: column; }
  .daily-records .dr-form-actions .dr-button { width: 100%; }
  .daily-records .dr-inline-form { flex-direction: column; align-items: stretch; }
}
