/* P-02 / habits: current palette and actions, a clearer visual hierarchy. */
.habits-v2 .habits-list{gap:16px}
.habits-v2 .habit-card{grid-template-columns:44px minmax(0,1fr) 52px;column-gap:14px;row-gap:0;padding:20px 18px 12px;min-height:0;border:1px solid var(--line);border-radius:24px;background:var(--surface)}
.habits-v2 .habit-card>.icon-tile{width:44px;height:44px;min-width:44px;border-radius:15px;background:color-mix(in srgb,var(--habit-color) 22%,var(--surface));color:var(--text)}
.habits-v2 .habit-body h3{font-size:17px;font-weight:650;line-height:1.4;letter-spacing:-.3px;margin:0}
.habits-v2 .habit-body .habit-progress{font-size:13px;line-height:1.5;font-weight:450;color:var(--muted);margin-top:5px}
.habits-v2 .habit-card[data-measurement=count] .habit-progress,.habits-v2 .habit-card[data-measurement=time] .habit-progress{font-size:16px;font-weight:550;color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.habits-v2 .habit-card>.habit-action{width:52px;min-width:52px;height:52px;min-height:52px;border-radius:18px;background:var(--accent-wash);color:var(--accent-ink)}
.habits-v2 .habit-card>.habit-action[data-goal-type=check]{background:var(--surface-2)}
.habits-v2 .habit-card>.habit-action.done{background:var(--green-soft);color:var(--green)}
.habits-v2 .habit-card.is-running>.habit-action{background:var(--accent);color:var(--accent-contrast)}
.habits-v2 .habit-card.is-running .habit-action .ring-value{stroke:var(--accent-contrast)}
.habits-v2 .habit-card.is-running{border-color:var(--accent-border)}
.habits-v2 .habit-card>.habit-action>.habit-progress-ring{inset:3px;width:46px;height:46px;stroke-width:2;opacity:.85}
.habits-v2 .habit-card .habit-action-glyph>svg{width:23px;height:23px}
.habits-v2 .habit-card .habit-action .empty-circle{border:1.7px solid var(--muted)!important;width:23px;height:23px}
.habits-v2 .habit-card>.habit-action:disabled{opacity:.45}
.habits-v2 .habit-card.is-paused .habit-progress,.habits-v2 .habit-card.is-skipped .habit-progress{font-weight:450;color:var(--muted)}
.habits-v2 .habit-card-history{margin-top:18px;padding-top:8px;border-top:1px solid var(--line)}
.habit-mini-week .mini-day{gap:5px;min-height:54px;border-radius:10px}
.habit-mini-week .mini-day>span{width:29px;height:29px;border-radius:10px;background:transparent;color:var(--muted)}
.habit-mini-week .mini-day.completed>span{background:var(--green-soft);color:var(--green)}
.habit-mini-week .mini-day.partial>span{background:var(--surface-2);border-radius:50%}
.habit-mini-week .mini-day.has-percent b{font-size:10px;font-weight:600}
.habit-mini-week .mini-day small{font-size:11px;line-height:1.4}
.habit-mini-week .mini-day.selected{background:var(--surface-2)}
.habit-mini-week .mini-day.selected small{font-weight:650;color:var(--text)}
.week-open-mark{display:block;width:5px;height:5px;border:1px solid var(--faint);border-radius:50%}
.habit-mini-week .mini-day.future .week-open-mark{border-style:dotted}
.habits-v2 .habit-day-summary{margin:0 4px 20px;row-gap:12px}
.habit-day-summary>span{font-size:13px}
.habit-day-summary>strong{font-size:19px;letter-spacing:-.3px;font-variant-numeric:tabular-nums}
.habits-v2 .habit-week-strip{border-radius:22px;margin-bottom:22px;padding:5px}
.habits-v2 .habit-week-strip .day{height:auto;min-height:70px;border-radius:17px;gap:6px;padding:8px 0}
.habits-v2 .habit-week-strip .day>*{flex-shrink:0}
.habits-list-heading{font-size:14px;line-height:1.5;font-weight:550;color:var(--muted);margin:0 4px 18px}
.habits-v2 .habit-card.can-reorder{grid-template-columns:20px 38px minmax(0,1fr) 48px;gap:10px;padding-inline:14px}
.habits-v2 .habit-card.can-reorder>.icon-tile{width:38px;height:38px;min-width:38px;border-radius:13px}
.habits-v2 .habit-card.can-reorder>.habit-action{width:48px;height:48px;min-width:48px;min-height:48px}
.habit-history-day{display:grid;gap:16px;padding:20px;border-radius:22px;background:var(--surface)}
.habit-history-day>p{margin:0;font-size:14px;line-height:1.6}
.habit-history-day>h3{font-size:24px;line-height:1.3;letter-spacing:-.4px;margin:0}
.habit-history-day>.btn{min-height:52px;border-radius:16px}
/* E-045–046: readable results and the complete existing detail sections. */
.habit-detail-dashboard{display:grid;gap:22px}
.habit-detail-dashboard .detail-hero{display:flex;align-items:center;gap:16px;padding:20px;border:0;border-radius:24px;background:var(--surface);margin:0}
.habit-detail-dashboard .detail-hero>.icon-tile{width:48px;height:48px;min-width:48px;border-radius:17px;display:grid;place-items:center;background:color-mix(in srgb,var(--habit-color) 22%,var(--surface))}
.habit-detail-dashboard .detail-hero>div:last-child{min-width:0;flex:1}
.habit-detail-dashboard .detail-hero p{font-size:12px;line-height:1.5;margin:0;color:var(--muted)}
.habit-detail-dashboard .detail-hero h2{font-size:25px;line-height:1.3;letter-spacing:-.5px;margin:10px 0}
.habit-detail-dashboard .habit-result-edit{gap:10px;min-height:44px}
.habit-detail-dashboard .habit-detail-primary{margin:0}
.habit-detail-dashboard .habit-detail-primary>.btn{width:100%;min-height:54px;border-radius:17px}
.habit-detail-dashboard>.btn{margin:0;min-height:48px;border-radius:15px}
.habit-detail-dashboard .habit-detail-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.habit-detail-dashboard .habit-detail-actions-grid .btn{display:flex;flex-direction:column;gap:9px;justify-content:center;min-height:78px;padding:12px 5px;background:var(--surface);border:0;border-radius:17px;font-size:12px;line-height:1.4}
.habit-detail-dashboard .detail-series-link{padding:18px;border:0;border-radius:20px;background:var(--surface);margin:0}
.habit-detail-dashboard .stat-card{padding:20px 14px;border:0;border-radius:22px;margin:0}
.habit-detail-dashboard .history-month-header{margin:0 0 20px;gap:8px}
.habit-detail-dashboard .history-month-header h3{font-size:21px;line-height:1.3}
.habit-detail-dashboard .history-month-header h3>small{font-size:12px;margin-top:5px}
.habit-detail-dashboard .history-legend{gap:12px;margin:20px 4px 0}
.habit-detail-dashboard .history-legend>span{font-size:11px}
.habit-detail-dashboard .bars{margin-top:16px}
.habit-detail-dashboard .bar>small{font-size:11px;line-height:1.5;white-space:normal}
.habit-management>h3{font-size:14px;line-height:1.5;font-weight:550;color:var(--muted);margin:0 4px 12px}
.habit-management .menu-actions{display:grid;gap:0;background:var(--surface);border-radius:18px;overflow:hidden}
.habit-management .menu-actions>.btn{justify-content:flex-start;min-height:56px;padding:16px;border:0;border-radius:0;background:transparent;text-align:start;font-size:14px;line-height:1.5}
.habit-management .menu-actions>.btn+.btn{border-top:1px solid var(--line)}
/* E-047–050: scope to the mounted wizard, not the now-empty original wrapper. */
[data-habit-editor-mode] .editor-step{gap:24px}
[data-habit-editor-mode] .habit-name>span{font-size:14px!important;color:var(--text)!important}
[data-habit-editor-mode] .habit-name>input{font-size:20px!important;min-height:64px!important;padding:18px!important;border-radius:18px!important;background:var(--surface)!important;border-color:transparent!important;letter-spacing:-.3px}
[data-habit-editor-mode] .editor-step>.habit-appearance{display:flex;flex-wrap:wrap;gap:12px}
[data-habit-editor-mode] .habit-appearance>.field{flex:1 1 13rem;min-width:0}
[data-habit-editor-mode] .habit-appearance .field>span{font-size:13px;margin-bottom:10px}
[data-habit-editor-mode] .habit-appearance .icon-select-trigger,[data-habit-editor-mode] .habit-appearance .value-trigger{min-height:68px;padding:14px 12px;border:0;border-radius:18px;background:var(--surface);gap:8px}
[data-habit-editor-mode] .habit-appearance .icon-select-trigger{grid-template-columns:24px minmax(0,1fr) 14px}
[data-habit-editor-mode] .habit-appearance [data-icon-label],[data-habit-editor-mode] .habit-appearance [data-value-label]>span{font-size:12px;line-height:1.4}
[data-habit-editor-mode] .habit-appearance .icon-select-trigger>svg,[data-habit-editor-mode] .habit-appearance .value-trigger>svg{width:14px;height:14px}
[data-habit-editor-mode] .habit-appearance .value-color-dot{width:28px;height:28px;min-width:28px;border-radius:10px}
[data-habit-editor-mode] .habit-goal-segment{display:flex;flex-wrap:wrap;padding:4px;gap:4px;border:0;border-radius:17px;background:var(--surface)}
[data-habit-editor-mode] .habit-goal-segment>button{flex:1 1 auto;min-width:max-content;max-width:100%;white-space:normal;min-height:50px;border:0;border-radius:13px;padding:10px 6px;font-size:13px;line-height:1.5;color:var(--muted);background:transparent}
[data-habit-editor-mode] .habit-goal-segment>button[aria-pressed=true]{background:var(--accent-wash);color:var(--accent-ink);font-weight:600}
[data-habit-editor-mode] #habit-target-panel{display:grid;gap:16px;margin:4px 0 0;padding:20px;border-radius:20px;background:var(--surface)}
[data-habit-editor-mode] #habit-target-panel[hidden]{display:none}
[data-habit-editor-mode] #habit-target-panel .field>span{font-size:13px}
[data-habit-editor-mode] #habit-target-panel .value-trigger{min-height:72px;border:0;background:var(--surface-2);border-radius:16px}
[data-habit-editor-mode] #habit-target-panel [data-value-label]{font-size:30px;font-variant-numeric:tabular-nums;font-weight:550;line-height:1.3}
[data-habit-editor-mode] .habit-estimate{padding-top:20px!important;border-top:1px solid var(--line)!important;gap:10px}
[data-habit-editor-mode] .habit-estimate .field>span{font-size:14px;color:var(--text)}
[data-habit-editor-mode] .habit-field-note{font-size:12px;color:var(--muted)}
[data-habit-editor-mode] .habit-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:4px 0}
[data-habit-editor-mode] .habit-weekdays label>span{min-height:48px;border-radius:14px;font-size:14px}
[data-habit-editor-mode] .habit-weekdays input:checked+span{background:var(--accent);color:var(--accent-contrast);border-color:transparent}
[data-habit-editor-mode] #habit-exclusions-panel{margin-top:8px;padding-top:20px;border-top:1px solid var(--line)}
[data-habit-editor-mode] .habit-advanced-body{gap:20px;padding-top:20px;border-top:1px solid var(--line)}
[data-habit-editor-mode] .date-set-field small[hidden]{display:none}
[data-habit-editor-mode] [data-habit-period-note][hidden]{display:none!important}
@media(max-width:359px){.habits-v2 .habit-card{grid-template-columns:36px minmax(0,1fr) 48px;gap:10px;padding:18px 14px 10px}.habits-v2 .habit-card>.icon-tile{width:36px;height:36px;min-width:36px;border-radius:12px}.habits-v2 .habit-card>.habit-action{width:48px;height:48px;min-width:48px;min-height:48px}.habits-v2 .habit-body h3{font-size:16px}.habits-v2 .habit-card>.habit-action>.habit-progress-ring{inset:1px}.habit-detail-dashboard .detail-hero{gap:12px!important}.habit-detail-dashboard .habit-detail-actions-grid .btn{font-size:11px}}
@media(prefers-reduced-motion:reduce){.habits-v2 .habit-card *{transition:none!important}}
/* E-051–055: one reading, one main action; corrections retain their real history. */
.timer-sheet .focus-timer{gap:24px;padding:12px 0 24px}
.timer-sheet .focus-habit{display:flex;flex-direction:row;justify-content:center;gap:10px}
.timer-sheet .focus-habit p{font-size:13px}
.timer-sheet .focus-clock{width:min(100%,320px);height:auto;min-height:280px;aspect-ratio:1;position:relative;margin:6px 0}
.timer-sheet .focus-clock>div{position:relative;width:100%;height:auto;min-height:280px;display:flex;flex-direction:column;justify-content:center;padding:38px 26px;gap:18px}
.timer-sheet .focus-progress{position:absolute;inset:0;width:100%;height:100%;stroke-width:4}
.timer-sheet [data-timer-status]{font-size:13px;color:var(--muted)}
.timer-sheet .focus-time-edit{width:100%;padding:0;gap:14px;white-space:normal}
.timer-sheet .focus-time-edit strong{font-size:48px;line-height:1.12;letter-spacing:-1.8px;max-width:100%;overflow-wrap:anywhere;font-weight:550}
.timer-sheet .focus-time-edit>span{font-size:12px;min-height:28px}
.timer-sheet .focus-clock small{font-size:13px;line-height:1.5;color:var(--muted)}
.timer-sheet .focus-controls{max-width:100%}
.timer-sheet .focus-controls .btn{width:100%;min-height:56px;border-radius:18px;font-size:16px}
.timer-sheet .focus-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
.timer-sheet .focus-more>.btn{display:flex;flex-direction:column;min-height:78px;padding:12px 10px;gap:8px;background:var(--surface);border:0;border-radius:18px;font-size:13px;line-height:1.5}
.timer-sheet .focus-note{font-size:12px;line-height:1.6;max-width:100%;margin:0}
.timer-sheet .timer-achievement{width:100%;padding:15px;border-radius:18px;font-size:14px;min-height:52px}
#running-banner .running-banner{gap:10px;padding:12px 16px;border:1px solid var(--accent-border);border-radius:20px;background:var(--surface);box-shadow:none}
#running-banner .running-banner>button:first-of-type{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;text-align:start;font-size:14px;font-weight:550;line-height:1.4}
#running-banner [data-running]{font-size:17px;font-variant-numeric:tabular-nums;color:var(--accent-ink)}
#running-banner .running-banner>.icon-btn{width:44px;min-width:44px;height:44px;border-radius:14px}
#running-banner .running-banner>.icon-btn:last-child{background:var(--accent-wash);color:var(--accent-ink)}
.habit-quick-entry{gap:20px}
.habit-quick-entry .quick-entry-heading strong{font-size:21px;line-height:1.4}
.habit-quick-entry .value-trigger,.habit-entry-form .field:has([name=value]) .value-trigger{min-height:86px;background:var(--surface);border:0;border-radius:22px}
.habit-quick-entry [data-value-label],.habit-entry-form .field:has([name=value]) [data-value-label]{font-size:32px;line-height:1.3;font-variant-numeric:tabular-nums;font-weight:550;letter-spacing:-.6px}
.habit-entry-form .habit-entry-heading h3{font-size:22px}
.habit-entry-form .habit-entry-heading p{font-size:13px}
.habit-entry-form .habit-entry-note{font-size:12px;line-height:1.65}
.habit-entry-form .habit-entry-sessions>summary{min-height:56px;font-size:14px;font-weight:550;color:var(--text);cursor:pointer}
.habit-entry-form .habit-entry-sessions .session-row{padding:18px 0}
.habit-entry-form .habit-entry-sessions .session-row .btn{min-height:46px;border-radius:14px}
.session-assignment,.occurrence-move,.habit-period-skip{display:grid;gap:24px}
.session-summary{display:grid;gap:10px;background:var(--surface);border-radius:22px;padding:22px}
.session-summary>span{font-size:13px;line-height:1.6;color:var(--muted)}
.session-summary>strong{font-size:32px;line-height:1.3;font-variant-numeric:tabular-nums}
.session-assignment [data-split-day][hidden]{display:none}
.session-assignment>.small,.occurrence-move>.small,.habit-period-skip>p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}
.habit-period-skip{margin-bottom:24px}
/* E-056–062: consistent library and management rows. */
.habit-archive-list{display:grid;gap:12px}
.habit-archive-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;border-radius:20px;background:var(--surface)}
.habit-archive-row .icon-tile{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--habit-color) 22%,var(--surface))}
.habit-archive-row>h3{font-size:15px;line-height:1.5;overflow-wrap:anywhere;margin:0}
.habit-archive-row>.btn{min-height:46px;border-radius:14px;font-size:13px;padding:10px}
.collection-toolbar{margin:0 0 20px}
.collection-grid.collection-library{display:grid;grid-template-columns:1fr;gap:12px}
.collection-library .collection-card{display:grid;grid-template-columns:46px minmax(0,1fr) 20px;gap:16px;align-items:center;padding:20px;border:0;border-radius:22px;min-height:92px;text-align:left;background:var(--surface);box-shadow:none}
.collection-library .collection-card>svg:first-child{width:46px;height:46px;padding:11px;border-radius:15px;background:var(--accent-wash);color:var(--accent-ink)}
.collection-library .collection-card>svg:last-child{color:var(--muted)}
.collection-library .collection-card h3{font-size:17px;font-weight:550;line-height:1.4;margin:0 0 5px}
.collection-library .collection-card p{font-size:13px;line-height:1.4;margin:0;color:var(--muted)}
.collection-detail .collection-heading{padding:20px;border-radius:20px;background:var(--surface);gap:14px;font-size:17px}
.collection-detail .collection-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.collection-detail .collection-actions>.btn{min-height:72px;display:flex;flex-direction:column;justify-content:center;gap:8px;border-radius:18px;padding:14px 10px;font-size:13px;line-height:1.5}
.collection-detail .collection-habits{margin-top:24px}
.collection-editor{display:grid;gap:24px}
#modal .collection-editor input[name=title]{min-height:64px;padding:18px;font-size:20px;line-height:1.4;border:0;border-radius:18px;background:var(--surface)}
.collection-editor .icon-select-trigger{min-height:68px;border:0;border-radius:18px;background:var(--surface)}
.collection-delete-action{padding-top:24px;border-top:1px solid var(--line)}
.collection-members>h3{font-size:24px;line-height:1.3;margin:0 0 12px}
.collection-members>.muted{font-size:13px;line-height:1.65;margin:0 0 22px}
.collection-member-list{display:grid;gap:0;border-radius:22px;background:var(--surface);overflow:hidden}
.collection-member-list .collection-member{display:grid;grid-template-columns:24px 40px minmax(0,1fr);gap:14px;padding:18px 16px;align-items:center;margin:0;min-height:80px;border:0;border-radius:0;background:transparent}
.collection-member-list .collection-member+.collection-member{border-top:1px solid var(--line)}
.collection-member-list .collection-member strong{font-size:15px;line-height:1.5;font-weight:550}
.collection-member-list .collection-member small{font-size:12px;line-height:1.5;margin-top:3px}
.collection-member-list .collection-member-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:var(--surface-2)}
.collection-delete{display:grid;gap:20px;font-size:15px;line-height:1.65}
.collection-delete p{margin:0}
@media(max-width:359px){.timer-sheet .focus-clock{min-height:244px}.timer-sheet .focus-clock>div{min-height:244px;padding:30px 22px}.habit-archive-row{grid-template-columns:36px minmax(0,1fr);padding:14px}.habit-archive-row .icon-tile{width:36px;height:36px}.habit-archive-row>.btn{grid-column:2;justify-self:start}}

/* W6 / HAB-002: the existing day's facts, composed as the selected daily pulse. */
.habits-v2 .habit-day-summary.habit-day-pulse{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin:0 0 22px;padding:20px;border:1px solid var(--line);border-radius:26px;background:var(--surface);color:var(--text)}
.habit-day-pulse .habit-pulse-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}
.habit-pulse-header>span{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;color:var(--muted)}
.habit-pulse-series{display:flex;align-items:center;gap:5px;min-height:44px;padding:6px 0;border:0;background:none;color:var(--accent-ink);font:inherit;font-size:12px;line-height:1.5;white-space:normal}
.habit-pulse-series>svg{flex:none}
.habit-day-pulse .habit-pulse-middle{display:flex;align-items:center;flex-wrap:wrap;gap:22px 16px}
.habit-pulse-copy{flex:1 1 11ch;min-width:0}
.habit-pulse-copy h2{font:500 25px/1.18 Manrope,system-ui,sans-serif;letter-spacing:-.8px;margin:0 0 12px;color:var(--text);max-width:11ch;overflow-wrap:normal}
.habit-pulse-copy p{font-size:13px;line-height:1.6;color:var(--muted);margin:0;max-width:23ch}
.habit-pulse-ring{position:relative;flex:0 1 132px;min-width:min(100%,max(112px,7em));max-width:100%;aspect-ratio:1;display:grid;place-items:center;padding:18px;text-align:center}
.habit-pulse-ring>svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:7;pointer-events:none}
.habit-pulse-track{stroke:var(--ring-track)}
.habit-pulse-value{stroke:var(--accent-graphic);stroke-linecap:round}
.habit-pulse-ring>div{position:relative;min-width:0;display:grid;gap:4px;padding:5px}
.habits-v2 .habit-day-summary .habit-pulse-ring strong{font:500 27px/1.2 Manrope,system-ui,sans-serif;letter-spacing:-.8px;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
.habit-pulse-ring strong>span{color:var(--text);font-size:inherit}
.habit-pulse-ring small{color:var(--muted);font-size:11px;line-height:1.5}
.habit-day-pulse .habit-pulse-next{display:flex;align-items:center;gap:14px;width:100%;min-height:56px;margin:0;padding:17px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;text-align:left;color:var(--text);font:inherit}
.habit-pulse-next>span:first-child{display:grid;gap:5px;min-width:0;flex:1}
.habit-pulse-next small{font-size:11px;line-height:1.5;color:var(--muted)}
.habits-v2 .habit-day-summary .habit-pulse-next strong{font-size:14px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.habit-pulse-arrow{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:var(--accent-wash);color:var(--accent-ink)}
.habit-day-pulse button:focus-visible{outline:2px solid var(--accent-ink);outline-offset:4px}
@media(max-width:359px){.habits-v2 .habit-day-summary.habit-day-pulse{padding:18px;gap:16px}.habit-pulse-copy h2{font-size:23px}.habit-pulse-ring{flex-basis:114px;padding:15px}.habits-v2 .habit-day-summary .habit-pulse-ring strong{font-size:25px}}

/* Wrap whole metrics when their real text width needs more room. In WebView,
   textZoom does not reliably enlarge an em-based grid minimum. */
#modal .habit-detail-dashboard .stat-summary .metrics-grid{display:flex;flex-wrap:wrap;gap:18px 14px}
#modal .habit-detail-dashboard .stat-summary .metrics-grid>.metric{flex:1 1 calc(50% - 7px);min-width:min-content;max-width:100%}
#modal .habit-detail-dashboard .stat-summary .metrics-grid>.metric-link{flex-basis:100%;min-width:0;flex-wrap:wrap;gap:8px 14px}
.habit-detail-dashboard .stat-summary .metric{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left}
.habit-detail-dashboard .stat-summary .metric>strong{display:block;font-size:28px;line-height:1.3}
.habit-detail-dashboard .stat-summary .metric>strong>small{font-size:.5em;font-weight:500;color:var(--muted)}
.habit-detail-dashboard .stat-summary .metric>span{font-size:12px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.habit-detail-dashboard .stat-summary .metric-link{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;padding:14px 0;border-block:1px solid var(--line);border-radius:0}
@media(max-width:340px){#modal .habit-detail-dashboard .stat-summary .metrics-grid{gap:16px 10px}#modal .habit-detail-dashboard .stat-summary .metrics-grid>.metric{flex-basis:calc(50% - 5px)}#modal .habit-detail-dashboard .stat-summary .metrics-grid>.metric-link{flex-basis:100%}}
