/* Daily-care views: scoped styles, no frameworks or remote assets. */
.wellness { --wellness-border: #dfe8df; --wellness-muted: #61766a; color: var(--ink, #172e29); }
.wellness *, .wellness *::before, .wellness *::after { box-sizing: border-box; }
.wellness button, .wellness input, .wellness select, .wellness textarea { font: inherit; }
.wellness button { min-height: 44px; }
.wellness button:focus-visible, .wellness input:focus-visible, .wellness select:focus-visible, .wellness textarea:focus-visible, .wellness summary:focus-visible, .wellness a:focus-visible { outline: 3px solid #8bbf9c; outline-offset: 3px; }
.wellness input, .wellness select, .wellness textarea { font-size: 16px; }
.wellness textarea { resize: vertical; }
.wellness-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wellness-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #557461; margin-bottom: 5px; }
.wellness-datebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.wellness-datebar strong { font-size: 15px; font-weight: 650; }
.wellness-datecontrols { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wellness-datecontrols input { width: 151px; max-width: 100%; min-width: 0; min-height: 44px; background: #fff; border: 1px solid var(--wellness-border); border-radius: 10px; padding: 7px 9px; color: var(--ink, #172e29); }
.wellness-datebutton { width: 44px; padding: 8px !important; flex: 0 0 44px; }
.wellness-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; overflow: hidden; border-radius: 22px; padding: 27px 30px; background: #173e2f; color: #f7fff8; }
.wellness-hero .wellness-kicker { color: #b5d7be; }
.wellness-hero h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; letter-spacing: -.6px; margin: 6px 0 12px; }
.wellness-hero p { font-size: 14px; line-height: 1.8; margin: 0; max-width: 530px; color: #e2eee5; }
.wellness-hero-note { display: block; margin-top: 15px; font-size: 12px; color: #b9d3c2; }
.wellness-hero-art { width: 96px; height: 112px; flex: 0 0 96px; position: relative; opacity: .85; }
.wellness-hero-art::before { content: ''; position: absolute; width: 76px; height: 76px; border: 1px solid #91be9a; border-radius: 50%; top: 12px; left: 8px; }
.wellness-hero-art::after { content: ''; position: absolute; width: 50px; height: 7px; border-radius: 50%; background: #89b693; bottom: 3px; left: 23px; opacity: .22; }
.wellness-hero-art span { position: absolute; width: 27px; height: 46px; background: #b0d2b0; border-radius: 85% 0 85% 0; transform: rotate(-19deg); left: 21px; top: 37px; }
.wellness-hero-art i { position: absolute; width: 22px; height: 36px; background: #e0d0a7; border-radius: 0 85% 0 85%; transform: rotate(17deg); right: 23px; top: 28px; }
.wellness-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 15px 0 18px; }
.wellness-stat { padding: 18px; background: #fff; border: 1px solid var(--wellness-border); border-radius: 15px; min-width: 0; }
.wellness-stat > span { display: block; color: var(--wellness-muted); font-size: 12px; }
.wellness-stat > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin: 5px 0; }
.wellness-stat strong { font-size: 28px; font-weight: 750; letter-spacing: -.6px; }
.wellness-stat small { font-size: 11px; color: var(--wellness-muted); }
.wellness-stat p { margin: 0; font-size: 11px; line-height: 1.6; color: var(--wellness-muted); overflow-wrap: anywhere; }
.wellness-topgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 17px; }
.wellness-stack { display: grid; gap: 17px; }
.wellness .panel { min-width: 0; }
.wellness-icon { display: grid; place-items: center; height: 43px; width: 43px; border-radius: 50%; background: #edf6ed; color: #438367; font-size: 32px; }
.wellness-badge { font-size: 11px; color: #557461; border: 1px solid #dce7d7; border-radius: 20px; padding: 5px 8px; white-space: nowrap; }
.wellness-help { font-size: 12px; line-height: 1.75; color: var(--wellness-muted); margin: 10px 0; overflow-wrap: anywhere; }
.wellness-small { font-size: 11px; }
.wellness-water-total { display: flex; align-items: baseline; gap: 9px; margin: 5px 0 11px; }
.wellness-water-total strong { font-size: 40px; line-height: 1.1; letter-spacing: -1px; }
.wellness-water-total > span { font-size: 12px; color: var(--wellness-muted); }
.wellness-water-track { overflow: hidden; height: 7px; background: #eaf0e9; border-radius: 20px; }
.wellness-water-track > span { display: block; height: 100%; border-radius: 20px; background: #6ca789; }
.wellness-water-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 13px; }
.wellness-water-buttons button { padding: 11px 5px; font-size: 14px; }
.wellness-water-custom > label { display: block; font-size: 12px; color: var(--wellness-muted); margin-bottom: 7px; }
.wellness-water-custom > div { display: flex; gap: 8px; align-items: center; }
.wellness-water-custom input { min-width: 0; width: 100%; flex: 1; border: 1px solid #d8e4dc; border-radius: 10px; min-height: 44px; padding: 9px 10px; color: var(--ink, #172e29); }
.wellness-water-custom > div > span { font-size: 12px; color: var(--wellness-muted); }
.wellness-water-custom .btn { flex-shrink: 0; }
.wellness-water-recent { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.wellness-water-recent > div { display: flex; flex-wrap: wrap; gap: 5px; }
.wellness-water-entry { padding: 4px 7px; border-radius: 5px; background: #f0f5ed; font-size: 11px; color: #5b7766; }
.wellness-water-recent button { flex-shrink: 0; font-size: 12px; }
.wellness-details { overflow: hidden; }
.wellness-details > summary { display: flex; gap: 15px; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; min-height: 47px; }
.wellness-details > summary::-webkit-details-marker { display: none; }
.wellness-details > summary > span:first-child { min-width: 0; }
.wellness-details > summary strong { display: block; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.wellness-details > summary small { display: block; color: var(--wellness-muted); font-size: 12px; line-height: 1.7; margin-top: 5px; }
.wellness-expand { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f0f5ef; color: #567864; font-size: 20px; transition: transform .15s; }
.wellness-details[open] > summary .wellness-expand { transform: rotate(45deg); }
.wellness-form[data-dirty="true"]::before { content: "有未保存的内容"; display: block; width: fit-content; max-width: 100%; margin-bottom: 13px; border-radius: 7px; padding: 5px 9px; background: #f6f0df; color: #7d693e; font-size: 11px; line-height: 1.6; }
.wellness-form { margin-top: 20px; padding-top: 17px; border-top: 1px solid #e7eee5; }
.wellness-fieldgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.wellness-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wellness-field label, .wellness-check-fieldset legend { font-size: 12px; color: #496451; font-weight: 600; }
.wellness-field input, .wellness-field select, .wellness-field textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid #d8e4dc; border-radius: 10px; background: #fff; color: #172e29; }
.wellness-field .wellness-help { margin: 0; font-size: 11px; }
.wellness-field textarea { min-height: 77px; line-height: 1.65; }
.wellness-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.wellness-meal-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.wellness-meal-chip { border-radius: 10px; background: #f6f8f1; padding: 10px 8px; }
.wellness-meal-chip span { display: block; font-size: 11px; color: var(--wellness-muted); }
.wellness-meal-chip strong { display: block; font-size: 12px; font-weight: 600; margin-top: 3px; }
.wellness-meals-preview .btn { width: 100%; margin-top: 5px; }
.wellness-body { margin-top: 18px; }
.wellness-check-fieldset { min-width: 0; border: 0; padding: 0; margin: 17px 0; }
.wellness-check-fieldset legend { padding: 0; margin-bottom: 8px; }
.wellness-checks { display: flex; gap: 7px; flex-wrap: wrap; }
.wellness-checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #dee8dc; border-radius: 10px; padding: 8px 11px; font-size: 12px; cursor: pointer; background: #fbfcf8; }
.wellness-checks label:has(input:checked) { border-color: #7ca98d; background: #eaf4eb; color: #225c3e; }
.wellness-checks input { accent-color: #277a53; width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.wellness-health-note { background: #fff7ea; border-left: 3px solid #b48553; border-radius: 0 10px 10px 0; color: #7f5d36; font-size: 12px; line-height: 1.8; padding: 12px; margin-top: 15px; }
.wellness-softnote { display: flex; align-items: baseline; gap: 10px; padding: 17px 5px 3px; color: var(--wellness-muted); }
.wellness-softnote strong { font-size: 12px; white-space: nowrap; color: #506c58; }
.wellness-softnote p { font-size: 12px; line-height: 1.8; margin: 0; }
.wellness-food-intro { background: #edf2e4; border: 1px solid #e0e8d7; border-radius: 18px; padding: 23px 25px; margin-bottom: 18px; }
.wellness-food-intro h2, .wellness-section-heading h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.5px; margin: 6px 0 10px; }
.wellness-food-intro p, .wellness-section-heading p { font-size: 13px; line-height: 1.85; margin: 0; color: #58705c; }
.wellness-meal-list { display: grid; gap: 13px; }
.wellness-meal-card summary > span:first-child { width: 100%; }
.wellness-meal-card summary strong { font-size: 15px; }
.wellness-meal-card summary .wellness-kicker { color: #235c40; font-size: 14px; margin-bottom: 6px; }
.wellness-templates { margin-top: 19px; }
.wellness-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 15px; }
.wellness-template { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 18px; border: 1px solid #e0e8d8; border-radius: 13px; background: #f9fbf5; color: #254c34; cursor: pointer; }
.wellness-template:hover { background: #edf5e9; border-color: #9fc3a2; }
.wellness-template small { color: #78846a; font-size: 11px; }
.wellness-template strong { font-size: 16px; font-weight: 650; margin-top: 2px; }
.wellness-template span { color: #617357; font-size: 12px; line-height: 1.7; }
.wellness-template em { font-size: 11px; font-style: normal; color: #36734d; margin-top: 9px; }
.wellness-section-heading { margin: 21px 0 15px; }
.wellness-review-panel { margin-top: 18px; }
.wellness-table-wrap { width: 100%; overflow-x: auto; }
.wellness-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 13px; }
.wellness-table th { text-align: left; font-weight: 600; }
.wellness-table td, .wellness-table th { border-bottom: 1px solid #e6ece2; padding: 12px 7px; overflow-wrap: anywhere; }
.wellness-table thead { color: #64795d; font-size: 12px; }
.wellness-table th:first-child { width: 19%; }
.wellness-table th:nth-child(4) { width: 24%; }
.wellness-table small { font-size: 10px; color: #748368; font-weight: 400; }
.wellness-review-date { border: 0; background: transparent; padding: 5px 0; font-size: 12px; color: #276946; text-decoration: underline; text-underline-offset: 3px; }
.wellness-settings { min-width: 0; border: 1px solid #dfe8d8; border-radius: 13px; padding: 17px; margin: 15px 0 20px; }
.wellness-settings > legend { padding: 0 7px; font-size: 15px; font-weight: 700; color: #2e5e3d; }
.wellness-settings > .wellness-help { margin-top: 0; }
.wellness-full { grid-column: 1 / -1; }
.wellness-sources { font-size: 11px; line-height: 1.8; color: var(--wellness-muted); border-top: 1px solid #e5ebdf; padding-top: 12px; margin-top: 16px; }
.wellness-sources > summary { min-height: 32px; cursor: pointer; }
.wellness-sources ul { padding-left: 19px; }
.wellness-sources li { margin: 7px 0; }
.wellness-sources a { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .wellness-topgrid { grid-template-columns: minmax(0, 1fr); }
  .wellness-stats { gap: 9px; }
  .wellness-stat { padding: 14px; }
}
@media (max-width: 690px) {
  .wellness-datebar { flex-wrap: wrap; gap: 9px; }
  .wellness-datebar > div:first-child { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .wellness-datebar .wellness-kicker { margin: 0; }
  .wellness-datecontrols { width: 100%; justify-content: space-between; }
  .wellness-datecontrols input { width: auto; flex: 1; }
  .wellness-hero { padding: 23px 19px; border-radius: 17px; }
  .wellness-hero h2 { font-size: 25px; }
  .wellness-hero p { font-size: 13px; }
  .wellness-hero-art { display: none; }
  .wellness-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .wellness-stat strong { font-size: 27px; }
  .wellness-stat p { font-size: 10px; }
  .wellness-topgrid, .wellness-stack { gap: 13px; }
  .wellness-fieldgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wellness-body { margin-top: 13px; }
  .wellness-softnote { display: block; padding: 15px 4px; }
  .wellness-softnote strong { display: block; margin-bottom: 4px; }
  .wellness-food-intro { padding: 20px 18px; }
  .wellness-food-intro h2, .wellness-section-heading h2 { font-size: 23px; }
  .wellness-template-grid { grid-template-columns: minmax(0, 1fr); }
  .wellness-template { padding: 15px; }
  .wellness-table { font-size: 11px; }
  .wellness-table td, .wellness-table th { padding: 10px 3px; }
  .wellness-table small { font-size: 9px; }
  .wellness-settings { padding: 13px; }
  .wellness-form-actions > .btn { flex-grow: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wellness *, .wellness *::before, .wellness *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
