
#daily-checkin-prototype { padding: 26px 12px; color-scheme: light dark; }
#daily-checkin-prototype .dl-app {
  --dl-bg: light-dark(#f7f8f4, #181d1b); --dl-surface: light-dark(#ffffff, #222926);
  --dl-text: light-dark(#24352e, #edf3ee); --dl-muted: light-dark(#65736c, #aebdb3);
  --dl-line: light-dark(#e5eae3, #39433e); --dl-soft: light-dark(#edf2eb, #2c3730);
  --dl-green: light-dark(#24583e, #b4dcb9); --dl-on-green: light-dark(#ffffff, #1b3524);
  --dl-green-soft: light-dark(#e8f1e6, #2a3d2e); --dl-amber: light-dark(#8b5c20, #e3bb79);
  --dl-amber-soft: light-dark(#fbf1df, #3b3223); --dl-error: light-dark(#a83d37, #f0aaa2);
  --dl-gap: 10px; --dl-card-pad: 15px;
  max-width: 490px; margin: 0 auto; background: var(--dl-bg); color: var(--dl-text);
  border: 1px solid var(--dl-line); border-radius: 28px; overflow: clip;
  box-shadow: 0 12px 36px light-dark(#20382b0d, #00000026);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.5; text-align: left;
}
#daily-checkin-prototype * { box-sizing: border-box; }
#daily-checkin-prototype button, #daily-checkin-prototype input, #daily-checkin-prototype textarea, #daily-checkin-prototype select { font: inherit; }
#daily-checkin-prototype button { color: inherit; }
#daily-checkin-prototype button:focus-visible, #daily-checkin-prototype input:focus-visible, #daily-checkin-prototype textarea:focus-visible, #daily-checkin-prototype select:focus-visible { outline: 2px solid var(--dl-green); outline-offset: 3px; }
#daily-checkin-prototype button:disabled { opacity: .45; cursor: not-allowed; }
#daily-checkin-prototype svg { flex-shrink: 0; }
#daily-checkin-prototype .dl-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px 16px; }
#daily-checkin-prototype .dl-brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
#daily-checkin-prototype .dl-mark { background: var(--dl-green); color: var(--dl-on-green); width: 35px; height: 35px; border-radius: 12px; display: grid; place-items: center; }
#daily-checkin-prototype .dl-brand-sub { display: block; font-size: 11px; font-weight: 400; letter-spacing: .5px; color: var(--dl-muted); }
#daily-checkin-prototype .dl-prototype { font-size: 11px; color: var(--dl-muted); }
#daily-checkin-prototype #dl-content { padding: 0 18px 16px; }
#daily-checkin-prototype .dl-datebar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 7px 0 10px; }
#daily-checkin-prototype .dl-date-heading { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.7px; }
#daily-checkin-prototype .dl-date-detail { color: var(--dl-muted); font-size: 12px; margin-top: 3px; }
#daily-checkin-prototype .dl-actions, #daily-checkin-prototype .dl-chips, #daily-checkin-prototype .dl-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#daily-checkin-prototype .dl-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 12px; border: 1px solid var(--dl-line); background: var(--dl-surface); border-radius: 12px; font-weight: 500; text-decoration: none; }
#daily-checkin-prototype .dl-button.dl-primary { background: var(--dl-green); color: var(--dl-on-green); border-color: var(--dl-green); }
#daily-checkin-prototype .dl-button.dl-quiet { border-color: transparent; background: transparent; color: var(--dl-muted); }
#daily-checkin-prototype .dl-button[aria-pressed="true"] { background: var(--dl-green); color: var(--dl-on-green); border-color: var(--dl-green); }
#daily-checkin-prototype .dl-button.dl-small { min-height: 35px; font-size: 12px; padding: 6px 10px; }
#daily-checkin-prototype .dl-note { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--dl-muted); margin: 10px 0 15px; }
#daily-checkin-prototype .dl-note.dl-history-note { background: var(--dl-amber-soft); color: var(--dl-amber); border-radius: 10px; padding: 10px 12px; }
#daily-checkin-prototype .dl-note svg { margin-top: 2px; }
#daily-checkin-prototype .dl-history { background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: 17px; padding: 14px; margin: 12px 0; }
#daily-checkin-prototype .dl-history-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 500; }
#daily-checkin-prototype .dl-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; margin-bottom: 14px; }
#daily-checkin-prototype .dl-day { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 7px 0; border: 0; border-radius: 11px; background: transparent; }
#daily-checkin-prototype .dl-day[aria-pressed="true"] { background: var(--dl-green); color: var(--dl-on-green); }
#daily-checkin-prototype .dl-weekday { font-size: 11px; opacity: .75; }
#daily-checkin-prototype .dl-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
#daily-checkin-prototype .dl-dot.dl-empty { opacity: 0; }
#daily-checkin-prototype .dl-date-input { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dl-muted); }
#daily-checkin-prototype .dl-date-input input { flex: 1; min-width: 0; width: auto; }
#daily-checkin-prototype .dl-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 17px 2px 9px; }
#daily-checkin-prototype .dl-section-heading span:first-child { font-size: 12px; font-weight: 500; color: var(--dl-muted); }
#daily-checkin-prototype .dl-section-heading span:last-child { font-size: 11px; color: var(--dl-muted); }
#daily-checkin-prototype .dl-card-list { display: grid; gap: var(--dl-gap); }
#daily-checkin-prototype .dl-card { background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: 17px; }
#daily-checkin-prototype .dl-card.is-open { border-color: color-mix(in srgb, var(--dl-green) 45%, var(--dl-line)); }
#daily-checkin-prototype .dl-card-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: var(--dl-card-pad); text-align: left; border: 0; border-radius: 17px; background: transparent; min-height: 70px; }
#daily-checkin-prototype .dl-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--dl-green); background: var(--dl-soft); border-radius: 11px; flex-shrink: 0; }
#daily-checkin-prototype .dl-card-copy { min-width: 0; flex: 1; }
#daily-checkin-prototype .dl-card-title { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }
#daily-checkin-prototype .dl-summary { display: block; font-size: 12px; color: var(--dl-muted); margin-top: 3px; overflow-wrap: anywhere; }
#daily-checkin-prototype .dl-mini-badge { font-size: 10px; border-radius: 5px; padding: 1px 5px; color: var(--dl-muted); background: var(--dl-soft); font-weight: 400; }
#daily-checkin-prototype .dl-mini-badge.dl-draft { color: var(--dl-amber); background: var(--dl-amber-soft); }
#daily-checkin-prototype .dl-chevron { color: var(--dl-muted); }
#daily-checkin-prototype .dl-editor { padding: 0 var(--dl-card-pad) 16px; border-top: 1px solid var(--dl-line); }
#daily-checkin-prototype .dl-editor-title { font-size: 12px; color: var(--dl-muted); padding-top: 13px; margin-bottom: 12px; }
#daily-checkin-prototype .dl-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-size: 12px; font-weight: 500; }
#daily-checkin-prototype .dl-input { width: 100%; min-width: 0; border: 1px solid var(--dl-line); border-radius: 10px; background: var(--dl-bg); color: var(--dl-text); min-height: 44px; padding: 10px 11px; font-size: 16px; font-weight: 400; }
#daily-checkin-prototype textarea.dl-input { resize: vertical; min-height: 90px; }
#daily-checkin-prototype .dl-input::placeholder { color: var(--dl-muted); opacity: .8; }
#daily-checkin-prototype .dl-input:disabled { opacity: .65; }
#daily-checkin-prototype .dl-field-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
#daily-checkin-prototype .dl-field-row.dl-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
#daily-checkin-prototype .dl-helper { font-size: 12px; color: var(--dl-muted); margin: 8px 0 12px; }
#daily-checkin-prototype .dl-chips { margin: 11px 0; gap: 6px; }
#daily-checkin-prototype .dl-chips .dl-button { font-size: 12px; padding: 7px 10px; }
#daily-checkin-prototype .dl-form-actions { margin-top: 15px; }
#daily-checkin-prototype .dl-form-actions .dl-primary { flex: 1; }
#daily-checkin-prototype .dl-error { color: var(--dl-error); font-size: 12px; margin-top: 10px; }
#daily-checkin-prototype .dl-meal { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--dl-line); }
#daily-checkin-prototype .dl-meal-copy { flex: 1; min-width: 0; }
#daily-checkin-prototype .dl-meal-copy strong { font-size: 12px; font-weight: 500; }
#daily-checkin-prototype .dl-meal-copy p { margin: 3px 0; font-size: 13px; overflow-wrap: anywhere; }
#daily-checkin-prototype .dl-meal-copy small { color: var(--dl-muted); font-size: 11px; }
#daily-checkin-prototype .dl-auto-box { padding: 12px; border-radius: 11px; background: var(--dl-soft); margin: 12px 0; }
#daily-checkin-prototype .dl-auto-box strong { display: block; font-weight: 500; font-size: 13px; }
#daily-checkin-prototype .dl-auto-box small { display: block; color: var(--dl-muted); font-size: 11px; margin-top: 4px; }
#daily-checkin-prototype .dl-measures { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 6px 0; }
#daily-checkin-prototype .dl-measure-label { color: var(--dl-muted); font-size: 11px; }
#daily-checkin-prototype .dl-measure-value { font-size: 16px; margin-top: 3px; font-variant-numeric: tabular-nums; }
#daily-checkin-prototype .dl-sync-preview { padding: 0 var(--dl-card-pad) 12px; }
#daily-checkin-prototype .dl-sync-preview .dl-measures { gap: 10px; padding-top: 10px; border-top: 1px solid var(--dl-line); }
#daily-checkin-prototype .dl-sync-preview .dl-measure-value { font-size: 15px; }
#daily-checkin-prototype .dl-sync-stamp { color: var(--dl-muted); font-size: 11px; margin-top: 9px; }
#daily-checkin-prototype .dl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
#daily-checkin-prototype .dl-tabs .dl-button { flex: 1; min-width: 53px; padding: 8px 7px; font-size: 12px; }
#daily-checkin-prototype .dl-metric-list { margin: 0; }
#daily-checkin-prototype .dl-metric-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--dl-line); }
#daily-checkin-prototype .dl-metric-row:last-child { border-bottom: 0; }
#daily-checkin-prototype .dl-metric-row dt { font-size: 12px; color: var(--dl-muted); }
#daily-checkin-prototype .dl-metric-row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#daily-checkin-prototype .dl-metric-row small { display: block; color: var(--dl-muted); font-size: 11px; font-weight: 400; }
#daily-checkin-prototype .dl-subhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; padding-top: 13px; margin: 12px 0 5px; border-top: 1px solid var(--dl-line); }
#daily-checkin-prototype .dl-subhead small { color: var(--dl-muted); font-size: 11px; font-weight: 400; }
#daily-checkin-prototype .dl-workout { border: 1px solid var(--dl-line); border-radius: 12px; margin: 10px 0; padding: 0 12px; background: var(--dl-surface); }
#daily-checkin-prototype .dl-workout > summary { display: flex; gap: 8px; align-items: center; padding: 13px 0; list-style: none; }
#daily-checkin-prototype .dl-workout > summary::-webkit-details-marker { display: none; }
#daily-checkin-prototype .dl-workout-copy { flex: 1; min-width: 0; }
#daily-checkin-prototype .dl-workout-copy strong { display: block; font-size: 13px; font-weight: 500; }
#daily-checkin-prototype .dl-workout-copy small { display: block; color: var(--dl-muted); font-size: 11px; margin-top: 4px; }
#daily-checkin-prototype .dl-workout[open] > summary .dl-chevron { transform: rotate(90deg); }
#daily-checkin-prototype .dl-zone-list { display: grid; gap: 9px; margin: 14px 0; }
#daily-checkin-prototype .dl-zone { display: grid; grid-template-columns: 28px minmax(0,1fr) 47px; gap: 8px; align-items: center; font-size: 11px; color: var(--dl-muted); }
#daily-checkin-prototype .dl-zone-track { height: 8px; border-radius: 5px; background: var(--dl-soft); overflow: hidden; }
#daily-checkin-prototype .dl-zone-fill { height: 100%; background: var(--dl-green); border-radius: 5px; }
#daily-checkin-prototype .dl-zone-time { text-align: right; font-variant-numeric: tabular-nums; }
#daily-checkin-prototype .dl-bottom { margin-top: 19px; }
#daily-checkin-prototype .dl-bottom > .dl-button { width: 100%; }
#daily-checkin-prototype .dl-finish-box { background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: 15px; padding: 14px; margin-top: 12px; }
#daily-checkin-prototype .dl-finish-box strong { font-weight: 500; }
#daily-checkin-prototype .dl-finished { display: flex; justify-content: center; gap: 7px; align-items: center; background: var(--dl-green-soft); color: var(--dl-green); border-radius: 12px; padding: 12px; font-size: 13px; }
#daily-checkin-prototype .dl-announcement { margin: 0 18px; font-size: 12px; color: var(--dl-green); }
#daily-checkin-prototype .dl-announcement:not(:empty) { background: var(--dl-green-soft); padding: 11px 13px; border-radius: 11px; }
#daily-checkin-prototype .dl-footnote { text-align: center; color: var(--dl-muted); font-size: 11px; padding: 15px 12px 20px; }
#daily-checkin-prototype .dl-log { margin-top: 12px; color: var(--dl-muted); font-size: 11px; }
#daily-checkin-prototype .dl-log summary { padding: 8px 0; }
#daily-checkin-prototype .dl-log ul { margin: 4px 0 0; padding-left: 18px; }
#daily-checkin-prototype .dl-log li { margin: 6px 0; }
#daily-checkin-prototype .dl-analysis-launch { margin: 14px 0 18px; }
#daily-checkin-prototype .dl-analysis-heading { display: flex; gap: 7px; align-items: center; color: var(--dl-green); font-size: 13px; font-weight: 500; margin-bottom: 9px; }
#daily-checkin-prototype .dl-analysis-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
#daily-checkin-prototype .dl-analysis-entry { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--dl-surface); color: var(--dl-text); border: 1px solid var(--dl-line); border-radius: 12px; padding: 11px 12px; text-align: left; font-size: 13px; font-weight: 500; }
#daily-checkin-prototype .dl-analysis-entry small { font-size: 11px; font-weight: 400; color: var(--dl-muted); }
#daily-checkin-prototype .dl-flow { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--dl-muted); font-size: 11px; margin: 12px 0 17px; }
#daily-checkin-prototype .dl-flow span { padding: 5px 8px; border-radius: 8px; }
#daily-checkin-prototype .dl-flow .is-current { background: var(--dl-green-soft); color: var(--dl-green); }
#daily-checkin-prototype .dl-review-title { font-size: 21px; font-weight: 500; margin: 12px 0 7px; }
#daily-checkin-prototype .dl-range-panel { background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: 14px; padding: 14px; margin: 13px 0; }
#daily-checkin-prototype .dl-range-main { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
#daily-checkin-prototype .dl-range-sub { margin-top: 5px; font-size: 12px; color: var(--dl-muted); }
#daily-checkin-prototype .dl-context-list { display: grid; gap: 7px; margin: 11px 0 15px; }
#daily-checkin-prototype .dl-context-day { background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: 11px; padding: 0 11px; }
#daily-checkin-prototype .dl-context-day summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; padding: 10px 0; font-size: 12px; font-weight: 500; }
#daily-checkin-prototype .dl-context-day summary small { color: var(--dl-muted); font-size: 11px; font-weight: 400; }
#daily-checkin-prototype .dl-context-body { border-top: 1px solid var(--dl-line); padding: 9px 0 12px; font-size: 12px; overflow-wrap: anywhere; }
#daily-checkin-prototype .dl-context-body p { margin: 5px 0; }
#daily-checkin-prototype .dl-context-body ul { margin: 5px 0; padding-left: 17px; }
#daily-checkin-prototype .dl-context-body li { margin: 6px 0; }
#daily-checkin-prototype .dl-context-body small { display: block; color: var(--dl-muted); font-size: 11px; margin-top: 5px; }
#daily-checkin-prototype .dl-review-actions { display: grid; gap: 8px; margin: 18px 0 4px; }
#daily-checkin-prototype .dl-analysis-drafts { background: var(--dl-amber-soft); color: var(--dl-amber); border-radius: 10px; padding: 10px 12px; font-size: 12px; }
#daily-checkin-prototype .dl-app.is-telegram { --tg-bg: light-dark(#eaf0e9,#172326); --tg-user: light-dark(#ddf2d0,#244836); --tg-incoming: light-dark(#ffffff,#26343c); --tg-blue: light-dark(#1878ab,#79bfeb); background: var(--tg-bg); }
#daily-checkin-prototype .is-telegram .dl-topbar { display: none; }
#daily-checkin-prototype .is-telegram #dl-content { padding-top: 0; }
#daily-checkin-prototype .dl-tg-header { display: flex; align-items: center; gap: 9px; padding: 15px 0 13px; border-bottom: 1px solid var(--dl-line); }
#daily-checkin-prototype .dl-tg-avatar { width: 37px; height: 37px; border-radius: 50%; background: var(--dl-green); color: var(--dl-on-green); display: grid; place-items: center; }
#daily-checkin-prototype .dl-tg-person { flex: 1; }
#daily-checkin-prototype .dl-tg-person strong { display: block; font-size: 16px; font-weight: 500; }
#daily-checkin-prototype .dl-tg-person small { color: var(--dl-muted); font-size: 11px; }
#daily-checkin-prototype .dl-tg-tag { color: var(--tg-blue); font-size: 11px; }
#daily-checkin-prototype .dl-chat-date { margin: 13px auto; width: fit-content; max-width: 100%; padding: 5px 9px; background: var(--dl-soft); color: var(--dl-muted); font-size: 11px; border-radius: 9px; }
#daily-checkin-prototype .dl-bubble { max-width: 94%; border-radius: 15px; padding: 12px 14px 10px; margin: 11px 0; background: var(--tg-incoming); font-size: 13px; overflow-wrap: anywhere; }
#daily-checkin-prototype .dl-bubble.user { margin-left: auto; background: var(--tg-user); border-bottom-right-radius: 5px; }
#daily-checkin-prototype .dl-bubble.bot { border-bottom-left-radius: 5px; }
#daily-checkin-prototype .dl-bubble p { margin: 6px 0 10px; white-space: pre-wrap; }
#daily-checkin-prototype .dl-bubble p:last-of-type { margin-bottom: 7px; }
#daily-checkin-prototype .dl-bubble .dl-bubble-label { font-size: 11px; color: var(--tg-blue); font-weight: 500; }
#daily-checkin-prototype .dl-bubble-meta { text-align: right; color: var(--dl-muted); font-size: 10px; }
#daily-checkin-prototype .dl-attached-context { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--dl-line); }
#daily-checkin-prototype .dl-attached-context > summary { font-size: 12px; color: var(--dl-green); padding: 3px 0; }
#daily-checkin-prototype .dl-chat-locked { display: flex; gap: 6px; align-items: flex-start; font-size: 11px; color: var(--dl-muted); margin: 15px 0 10px; }
#daily-checkin-prototype .dl-compose { display: flex; gap: 7px; align-items: flex-end; padding: 10px 0 3px; }
#daily-checkin-prototype .dl-compose textarea { flex: 1; min-width: 0; min-height: 47px; height: 66px; resize: vertical; background: var(--dl-surface); }
#daily-checkin-prototype .dl-compose .dl-button { flex-shrink: 0; padding: 11px 10px; font-size: 12px; }
#daily-checkin-prototype .dl-chat-footer { display: flex; justify-content: space-between; gap: 5px; margin-top: 10px; }
#daily-checkin-prototype .dl-chat-footer .dl-button { font-size: 12px; }
#daily-checkin-prototype #dl-navigation { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; margin: 0 18px 20px; padding: 5px; background: var(--dl-soft); border-radius: 14px; }
#daily-checkin-prototype .dl-nav-item { display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; border-radius: 10px; color: var(--dl-muted); min-height: 44px; padding: 8px 5px; font-size: 12px; }
#daily-checkin-prototype .dl-nav-item[aria-current="page"] { background: var(--dl-surface); color: var(--dl-green); font-weight: 500; }
#daily-checkin-prototype .dl-page-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 14px; }
#daily-checkin-prototype .dl-page-title { margin: 0; font-size: 24px; font-weight: 500; }
#daily-checkin-prototype .dl-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
#daily-checkin-prototype .dl-filters .dl-button { font-size: 12px; padding: 6px 10px; min-height: 35px; }
#daily-checkin-prototype .dl-list { background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: 15px; padding: 0 13px; }
#daily-checkin-prototype .dl-list-row { padding: 14px 0; border-bottom: 1px solid var(--dl-line); }
#daily-checkin-prototype .dl-list-row:last-child { border-bottom: 0; }
#daily-checkin-prototype .dl-item-line { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
#daily-checkin-prototype .dl-item-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
#daily-checkin-prototype .dl-item-title { font-size: 14px; font-weight: 500; }
#daily-checkin-prototype .dl-item-meta { font-size: 12px; color: var(--dl-muted); margin-top: 4px; overflow-wrap: anywhere; }
#daily-checkin-prototype .dl-check { display: flex; align-items: center; justify-content: center; width: 30px; min-height: 30px; flex-shrink: 0; }
#daily-checkin-prototype .dl-check input { accent-color: var(--dl-green); width: 19px; height: 19px; margin: 0; }
#daily-checkin-prototype .dl-task-done .dl-item-title { text-decoration: line-through; color: var(--dl-muted); }
#daily-checkin-prototype .dl-row-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
#daily-checkin-prototype .dl-row-actions .dl-button { font-size: 12px; min-height: 34px; padding: 5px 8px; }
#daily-checkin-prototype .dl-entry-form { background: var(--dl-surface); border: 1px solid var(--dl-line); border-radius: 16px; padding: 15px; margin: 14px 0; }
#daily-checkin-prototype .dl-entry-form h2 { font-size: 17px; font-weight: 500; margin: 0 0 14px; }
#daily-checkin-prototype .dl-entry-form .dl-field { margin-top: 12px; }
#daily-checkin-prototype .dl-entry-form .dl-field-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
#daily-checkin-prototype .dl-entry-form .dl-input { width: 100%; min-width: 0; }
#daily-checkin-prototype .dl-money { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#daily-checkin-prototype .dl-expense-amount { text-align: right; max-width: 45%; flex-shrink: 0; }
#daily-checkin-prototype .dl-totals { margin: 15px 0; padding: 17px; border-radius: 16px; background: var(--dl-green-soft); }
#daily-checkin-prototype .dl-totals-title { color: var(--dl-muted); font-size: 12px; margin-bottom: 7px; }
#daily-checkin-prototype .dl-total-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; margin: 5px 0; }
#daily-checkin-prototype .dl-total-line strong { font-size: 25px; font-weight: 500; font-variant-numeric: tabular-nums; }
#daily-checkin-prototype .dl-total-line small { font-size: 11px; color: var(--dl-muted); }
#daily-checkin-prototype .dl-empty-state { padding: 24px 10px; text-align: center; color: var(--dl-muted); font-size: 13px; }
#daily-checkin-prototype .dl-breakdown { margin: 12px 0 16px; font-size: 12px; }
#daily-checkin-prototype .dl-breakdown summary { padding: 8px 0; color: var(--dl-muted); }
#daily-checkin-prototype .dl-breakdown-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; padding: 7px 0; border-bottom: 1px solid var(--dl-line); }
#daily-checkin-prototype .dl-undo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 12px 0; padding: 9px 12px; background: var(--dl-amber-soft); color: var(--dl-amber); border-radius: 12px; font-size: 12px; }
#daily-checkin-prototype .dl-home-section { margin: 22px 0; }
#daily-checkin-prototype .dl-home-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
#daily-checkin-prototype .dl-home-heading h2 { font-size: 16px; font-weight: 500; margin: 0; }
#daily-checkin-prototype .dl-home-checkins { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
#daily-checkin-prototype .dl-home-checkins .dl-button { justify-content: flex-start; font-size: 12px; }
#daily-checkin-prototype .dl-home-checkins small { color: var(--dl-muted); margin-left: auto; font-size: 11px; }
#daily-checkin-prototype .dl-safe-note { font-size: 12px; color: var(--dl-muted); margin: 13px 0; }
#daily-checkin-prototype .dl-delete { color: var(--dl-error); }
#daily-checkin-prototype .dl-entry-form textarea[name="raw"] { min-height: 92px; font-size: 16px; }
#daily-checkin-prototype .dl-quick-context { font-size: 12px; color: var(--dl-muted); margin: -4px 0 13px; }
#daily-checkin-prototype .dl-expense-preview { margin: 10px 0; overflow-wrap: anywhere; }
#daily-checkin-prototype .dl-expense-preview strong { display: block; font-size: 21px; font-weight: 500; margin-bottom: 4px; }
#daily-checkin-prototype .dl-expense-preview .dl-quick-missing { font-size: 13px; color: var(--dl-muted); margin: 0; }
#daily-checkin-prototype .dl-expense-details, #daily-checkin-prototype .dl-todo-details { margin: 12px 0 18px; border-top: 1px solid var(--dl-line); }
#daily-checkin-prototype .dl-expense-details > summary, #daily-checkin-prototype .dl-todo-details > summary { padding: 12px 0 0; font-size: 13px; color: var(--dl-muted); }
#daily-checkin-prototype .dl-entry-form > .dl-actions .dl-primary { flex: 1; }
#daily-checkin-prototype .dl-natural textarea { min-height: 96px; font-size: 16px; }
#daily-checkin-prototype .dl-natural .dl-actions { margin-top: 12px; }
#daily-checkin-prototype .dl-natural-status { color: var(--dl-muted); font-size: 13px; margin: 12px 0 0; overflow-wrap: anywhere; }
#daily-checkin-prototype .dl-natural .dl-model-example { width: 100%; margin: 8px 0 0; font-size: 13px; }
#daily-checkin-prototype [hidden] { display: none !important; }
@media (max-width: 380px) {
  #daily-checkin-prototype { padding: 12px 0; }
  #daily-checkin-prototype .dl-app { border-radius: 20px; }
  #daily-checkin-prototype .dl-topbar { padding: 17px 14px 13px; }
  #daily-checkin-prototype #dl-content { padding: 0 12px 14px; }
  #daily-checkin-prototype .dl-date-heading { font-size: 22px; }
  #daily-checkin-prototype .dl-card-toggle { gap: 9px; }
  #daily-checkin-prototype .dl-prototype { max-width: 95px; text-align: right; }
  #daily-checkin-prototype .dl-field-row { gap: 6px; }
}
@media (pointer: coarse) { #daily-checkin-prototype .dl-button, #daily-checkin-prototype .dl-button.dl-small, #daily-checkin-prototype .dl-day, #daily-checkin-prototype .dl-check { min-height: 44px; } }

html{color-scheme:light dark}body{margin:0;background:light-dark(#f2f4ef,#141916)}button{cursor:pointer}
#daily-checkin-prototype .dl-trial-status{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 18px 12px;padding:10px 12px;border-radius:12px;background:var(--dl-soft);color:var(--dl-muted);font-size:11px}
#daily-checkin-prototype .dl-clock-label{display:flex;align-items:center;gap:6px;margin-left:auto}
#daily-checkin-prototype .dl-clock-label select{font:inherit;background:var(--dl-surface);border:1px solid var(--dl-line);border-radius:7px;padding:6px;color:var(--dl-text)}
#daily-checkin-prototype .dl-trial-boundary{flex-basis:100%;font-size:10px}
#daily-checkin-prototype .dl-natural-history{font-size:12px;margin:8px 0;color:var(--dl-muted)}
#daily-checkin-prototype .dl-natural-turn{padding:8px 0;border-bottom:1px solid var(--dl-line)}
#daily-checkin-prototype .dl-natural-turn p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#daily-checkin-prototype .dl-model-question{padding:12px;border-radius:10px;background:var(--dl-green-soft);color:var(--dl-green);font-size:13px}
#daily-checkin-prototype .dl-zone-progress{width:100%;height:8px;border:0;border-radius:5px;overflow:hidden;appearance:none;background:var(--dl-soft)}
#daily-checkin-prototype .dl-zone-progress::-webkit-progress-bar{background:var(--dl-soft)}
#daily-checkin-prototype .dl-zone-progress::-webkit-progress-value{background:var(--dl-green);border-radius:5px}
#daily-checkin-prototype .dl-zone-progress::-moz-progress-bar{background:var(--dl-green)}
#daily-checkin-prototype .dl-legacy{margin:20px 0;padding-top:14px;border-top:1px solid var(--dl-line);font-size:12px;color:var(--dl-muted)}
#daily-checkin-prototype .dl-legacy-row{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--dl-line)}
#daily-checkin-prototype .dl-legacy-row div{min-width:0;overflow-wrap:anywhere}
#daily-checkin-prototype .dl-legacy-row small{display:block;font-size:11px;margin-top:3px}
#daily-checkin-prototype.is-miniapp{padding:calc(8px + var(--mini-safe-top,0px)) 0 calc(10px + var(--mini-safe-bottom,0px))}
#daily-checkin-prototype.is-miniapp .dl-app{border:0;border-radius:0;box-shadow:none;min-height:var(--tg-viewport-stable-height,100vh)}
@media(max-width:360px){#daily-checkin-prototype .dl-trial-status{margin-left:12px;margin-right:12px}#daily-checkin-prototype .dl-clock-label{margin-left:0}}

.dl-production-status{margin:12px 18px 24px;padding:12px 14px;border-radius:12px;background:#edf3ec;color:#3e6250;font-size:12px;line-height:1.6;display:flex;align-items:center;justify-content:space-between;gap:10px}
.dl-app{overflow-anchor:none}
.dl-production-status[hidden]{display:none!important}
#dl-trial-status{display:flex;align-items:center;justify-content:space-between;min-height:0;padding:9px 12px}
.dl-card-list+.dl-card-list{margin-top:10px}
.dl-natural .dl-actions{margin-bottom:6px}
.dl-natural-history,.dl-model-note{font-size:12px;margin-top:10px;color:var(--dl-muted)}
.dl-bottom .dl-primary{width:100%}
.dl-sync-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.dl-sync-line .dl-sync-stamp{margin:0;font-size:12px}
.dl-sync-error{color:#b65b42;font-size:12px}

#daily-checkin-prototype .dl-scope-tag { display:inline-block; padding:2px 7px; border-radius:8px; background:var(--dl-soft); color:var(--dl-muted); font-size:11px; vertical-align:middle; white-space:nowrap; }
#daily-checkin-prototype .dl-scope-tag[data-scope="work"] { color:var(--dl-green); }
#daily-checkin-prototype .dl-reading-periods { display:grid; gap:14px; margin-top:16px; }
#daily-checkin-prototype .dl-reading-book { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; }
#daily-checkin-prototype .dl-reading-book > span { overflow-wrap:anywhere; min-width:0; }
#daily-checkin-prototype .dl-reflection-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; margin:12px 0; }
#daily-checkin-prototype [data-reading-reflection] textarea { min-height:180px; }

#daily-checkin-prototype .dl-calendar { margin:12px 0 18px; padding:12px; border:1px solid var(--dl-line); border-radius:16px; background:var(--dl-surface); }
#daily-checkin-prototype .dl-calendar-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; font-size:13px; }
#daily-checkin-prototype .dl-calendar-grid, #daily-checkin-prototype .dl-calendar-weekdays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
#daily-checkin-prototype .dl-calendar-weekdays { text-align:center; color:var(--dl-muted); font-size:11px; margin:8px 0; }
#daily-checkin-prototype .dl-calendar .dl-week { margin-bottom:10px; }
#daily-checkin-prototype .dl-calendar-day { --progress-color:var(--dl-muted); --progress-bg:var(--dl-soft); min-height:52px; color:var(--progress-color); background:var(--progress-bg); font-size:14px; font-family:inherit; }
#daily-checkin-prototype .dl-calendar [data-status="complete"] { --progress-color:var(--dl-green); --progress-bg:var(--dl-green-soft); }
#daily-checkin-prototype .dl-calendar [data-status="partial"] { --progress-color:light-dark(#9b5512,#f4bc76); --progress-bg:light-dark(#fff1dd,#493622); }
#daily-checkin-prototype .dl-calendar [data-status="in_progress"] { --progress-color:light-dark(#3a6787,#a0c9e6); --progress-bg:light-dark(#eaf3f9,#253d4d); }
#daily-checkin-prototype .dl-calendar-day[aria-pressed="true"] { color:var(--progress-color); background:var(--progress-bg); box-shadow:inset 0 0 0 2px var(--dl-green); }
#daily-checkin-prototype .dl-calendar-day small { font-size:12px; line-height:14px; min-height:14px; font-weight:600; }
#daily-checkin-prototype .dl-calendar-day:focus-visible { outline:2px solid var(--dl-green); outline-offset:2px; }
#daily-checkin-prototype .dl-calendar-day:disabled { background:transparent; opacity:.35; cursor:default; }
#daily-checkin-prototype .dl-calendar-legend { display:flex; flex-wrap:wrap; gap:14px; font-size:11px; color:var(--dl-muted); }
#daily-checkin-prototype .dl-calendar-legend span { color:var(--progress-color,var(--dl-muted)); }
#daily-checkin-prototype .dl-calendar-summary { margin:12px 0 0; font-size:12px; color:var(--dl-muted); }
#daily-checkin-prototype .dl-calendar-missing { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
#daily-checkin-prototype .dl-calendar .dl-calendar-missing button { padding:6px 10px; min-height:36px; }
#daily-checkin-prototype .dl-card.dl-needs-checkin { border-color:var(--dl-amber); box-shadow:inset 3px 0 var(--dl-amber); }
#daily-checkin-prototype .dl-needs-checkin > .dl-card-toggle { background:color-mix(in srgb,var(--dl-amber-soft) 45%,transparent); }
#daily-checkin-prototype .dl-card-title { flex-wrap:wrap; }
#daily-checkin-prototype .dl-mini-badge.dl-missing-badge { color:var(--dl-amber); background:var(--dl-amber-soft); }
#daily-checkin-prototype .dl-card-missing { display:block; margin-top:5px; font-size:12px; color:var(--dl-amber); overflow-wrap:anywhere; }
#daily-checkin-prototype .dl-field-missing { color:var(--dl-amber); }
#daily-checkin-prototype .dl-field-missing .dl-input { border-color:var(--dl-amber); }
#daily-checkin-prototype .dl-calendar-missing .dl-button { color:var(--dl-amber); border-color:var(--dl-amber); background:var(--dl-amber-soft); }
#daily-checkin-prototype .dl-calendar-error { font-size:12px; color:var(--dl-error); margin-bottom:0; }
#daily-checkin-prototype .dl-calendar .dl-date-input { margin-top:12px; }

/* Keep native iOS date/time controls inside their own grid cells. */
#daily-checkin-prototype .dl-field, #daily-checkin-prototype .dl-field-row > *, #daily-checkin-prototype .dl-analysis-entry { min-width:0; }
#daily-checkin-prototype .dl-input { max-width:100%; }
#daily-checkin-prototype input[type="date"].dl-input, #daily-checkin-prototype input[type="time"].dl-input { display:block; appearance:none; -webkit-appearance:none; min-width:0; max-width:100%; }
#daily-checkin-prototype input::-webkit-date-and-time-value { text-align:left; min-width:0; }
#daily-checkin-prototype input::-webkit-datetime-edit { min-width:0; padding:0; }
#daily-checkin-prototype .dl-button { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
#daily-checkin-prototype .dl-page-head, #daily-checkin-prototype .dl-datebar, #daily-checkin-prototype .dl-home-heading, #daily-checkin-prototype .dl-history-title { flex-wrap:wrap; }
#daily-checkin-prototype .dl-page-head > div, #daily-checkin-prototype .dl-datebar > div, #daily-checkin-prototype .dl-measures > div { min-width:0; }
#daily-checkin-prototype .dl-measure-value, #daily-checkin-prototype .dl-total-line strong { overflow-wrap:anywhere; }
#daily-checkin-prototype .dl-settlement { display:flex; align-items:center; gap:9px; margin:14px 0; font-size:13px; }
#daily-checkin-prototype .dl-settlement input { width:20px; height:20px; flex-shrink:0; }
@media (max-width:480px) {
  #daily-checkin-prototype .dl-field-row.dl-date-row, #daily-checkin-prototype .dl-entry-form .dl-field-row.dl-date-row { grid-template-columns:minmax(0,1fr); gap:0; }
  #daily-checkin-prototype .dl-date-input { flex-wrap:wrap; }
  #daily-checkin-prototype .dl-date-input input { flex-basis:100%; width:100%; }
}

#daily-checkin-prototype .dl-metric-row dt, #daily-checkin-prototype .dl-metric-row dd { min-width:0; overflow-wrap:anywhere; }
@media (max-width:380px) { #daily-checkin-prototype .dl-nav-item { min-width:0; flex-direction:column; gap:3px; } }

#daily-checkin-prototype .dl-ledger-review { margin:16px 0; border-top:1px solid var(--dl-line); }
#daily-checkin-prototype .dl-ledger-review h3 { font-size:14px; font-weight:500; }
#daily-checkin-prototype .dl-ledger-review-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 10px; padding:12px 0; border-bottom:1px solid var(--dl-line); }
#daily-checkin-prototype .dl-ledger-review-row > div { min-width:0; overflow-wrap:anywhere; }
#daily-checkin-prototype .dl-ledger-review-row small { display:block; color:var(--dl-muted); font-size:12px; margin-top:4px; }
#daily-checkin-prototype .dl-ledger-review-row > .dl-button { justify-self:start; }
#daily-checkin-prototype .dl-ledger-review-row > .dl-money { max-width:9em; text-align:right; }
