/* Progress and rewards share the same palette, spacing and controls as the app. */
.practice-card{display:block;width:100%;padding:20px;margin-top:24px;border:0;border-radius:24px;background:var(--surface);color:var(--text);text-align:left}
.practice-card-heading,.practice-card-heading>span,.practice-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.practice-card-heading>span{justify-content:flex-start}.practice-card-heading svg{color:var(--accent-ink)}
.practice-card-heading strong{font-size:14px;font-weight:600}.practice-card-heading>b{font-size:22px;font-weight:650;font-variant-numeric:tabular-nums}.practice-card-heading>b>small{font-size:12px;color:var(--muted);font-weight:400}
.practice-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:22px 0 18px}
.practice-day{display:grid;place-items:center;gap:9px;min-width:0;padding:0;border:0;background:transparent;color:var(--muted)}
.practice-day small{font-size:10px}.practice-day i{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--surface-2);color:var(--muted);font-size:12px;font-style:normal}
.practice-day.is-active i{background:var(--accent);color:var(--accent-contrast)}.practice-day.is-active b{width:7px;height:7px;background:currentColor;border-radius:50%}.practice-day.is-future i{background:transparent;border:1px solid var(--line)}
.practice-card-foot{color:var(--muted);font-size:11px}.practice-card-foot>svg{flex:none}
.practice-summary{display:grid;gap:26px}.practice-summary-top{text-align:center}.practice-eyebrow{display:block;color:var(--accent-ink);font-size:10px;font-weight:650;letter-spacing:1.5px}.practice-summary h3{font-size:22px;letter-spacing:-.5px;margin:16px 0 9px}.practice-summary p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.practice-big-ring{width:210px;height:210px;position:relative;display:grid;place-items:center;margin:20px auto}.practice-big-ring>svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:var(--ring-track);stroke-width:8;transform:rotate(-90deg)}.practice-big-ring circle:last-child{stroke:var(--accent-graphic);stroke-linecap:round}.practice-big-ring>strong{font-size:62px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.2}.practice-big-ring small{display:block;font-size:14px;color:var(--muted);font-weight:400}
.practice-summary>.practice-week{margin:0}.practice-summary .practice-day{min-height:62px}.practice-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.practice-metrics>div{display:grid;gap:8px;text-align:center;min-width:0}.practice-metrics strong{font-size:24px;letter-spacing:-.5px}.practice-metrics span{font-size:11px;line-height:1.5;color:var(--muted)}
.experience-settings{display:grid;gap:32px}.experience-settings>.editor-section{display:grid;gap:16px;border:0;padding:0}.experience-settings h3{margin:0;font-size:16px}.experience-settings p{margin:0;font-size:12px;line-height:1.7;color:var(--muted)}.experience-settings .field{margin:0}.experience-volume{display:grid;gap:14px}.experience-volume>span{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.experience-volume input{min-height:40px;width:100%;accent-color:var(--accent)}.experience-settings .btn.ghost{justify-self:start}
.practice-particles{position:fixed;z-index:1900;pointer-events:none;width:0;height:0}.practice-particles>i{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:2px;background:var(--accent-graphic);animation:practice-spark .65s var(--delay) ease-out both}.practice-particles>i:nth-child(even){border-radius:50%;background:var(--green)}
@keyframes practice-spark{0%{opacity:0;transform:rotate(var(--angle)) translateY(-8px) scale(.5)}18%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(-1 * var(--distance))) scale(.65)}}
.practice-celebrating{overflow:hidden}.practice-reward{position:fixed;inset:0;z-index:1650;display:flex;flex-direction:column;background:var(--bg);color:var(--text);padding:calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;animation:practice-reward-enter .3s ease-out}.practice-reward-close{position:absolute;top:calc(16px + env(safe-area-inset-top));right:16px}.practice-reward-body{width:100%;max-width:420px;text-align:center;margin:auto;display:grid;justify-items:center;gap:16px;padding:38px 0 22px}.practice-reward-body>.practice-eyebrow{margin:0}.practice-medal{width:210px;height:210px;color:var(--accent-graphic)}.practice-medal svg{width:100%;height:100%;overflow:visible}.practice-medal-ribbon{fill:color-mix(in srgb,var(--accent) 16%,var(--surface));stroke:currentColor;stroke-width:3;stroke-linejoin:round}.practice-medal-halo{stroke:currentColor;stroke-width:2;opacity:.15;transform-origin:110px 96px;animation:practice-medal-bloom .8s ease-out both}.practice-medal-disc{fill:var(--accent);stroke:currentColor;stroke-width:3;transform-origin:110px 96px;animation:practice-medal-bloom .65s cubic-bezier(.2,.8,.2,1) both}.practice-medal-check{stroke:var(--accent-contrast);stroke-width:9;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:100;stroke-dashoffset:100;animation:practice-medal-check .45s .35s ease-out forwards}.practice-medal-ray{stroke:currentColor;stroke-width:4;stroke-linecap:round;opacity:0;animation:practice-medal-rays .6s .3s ease-out forwards}.practice-reward-number{font-size:68px;line-height:1.1;font-weight:700;letter-spacing:-3px;color:var(--accent-ink);animation:practice-number .5s .15s ease-out both}.practice-reward h2{font-size:26px;font-weight:650;letter-spacing:-.6px;line-height:1.3;margin:0}.practice-reward-body>p:not(.practice-eyebrow){max-width:32ch;font-size:13px;color:var(--muted);line-height:1.8;margin:0}.practice-reward .practice-week{width:100%;margin:10px 0}.practice-reward>footer{width:100%;max-width:420px;margin:0 auto}.practice-reward>footer button{width:100%;min-height:48px;display:flex;justify-content:center;align-items:center;gap:8px}
@keyframes practice-reward-enter{from{opacity:0}to{opacity:1}}@keyframes practice-medal-bloom{0%{transform:scale(.55);opacity:0}65%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}@keyframes practice-medal-check{to{stroke-dashoffset:0}}@keyframes practice-medal-rays{to{opacity:.65}}@keyframes practice-number{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.replan-row-heading{display:flex;align-items:center;gap:10px;min-width:0}.replan-row-heading>.plan-row-select{flex:1;min-width:0}.replan-grip{display:grid;place-items:center;width:40px;min-width:40px;height:44px;padding:0;border:0;background:transparent;color:var(--muted);touch-action:none;cursor:grab}.replan-row-note{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.replan-edit-row>.plan-row-editor{margin-top:12px;padding-top:16px;border-top:1px solid var(--line)}.replan-edit-row .plan-row-copy strong{white-space:normal;overflow-wrap:anywhere}.replan-edit-row .plan-row-actions{gap:8px;margin-top:12px}.replan-edit-row .plan-order-buttons{flex:none}.replan-edit-row .plan-time-button{min-width:0}.replan-edit-row .plan-time-button>span{overflow-wrap:anywhere}.replan-edit-row .plan-time-button>svg{flex:none}
.calendar-momentum{display:grid;gap:12px;padding:16px 18px;margin:4px 0 20px;background:var(--surface);border:1px solid var(--line);border-radius:20px}.calendar-momentum-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}.calendar-momentum-top strong{font-weight:550}.calendar-momentum-top>span{color:var(--muted);font-variant-numeric:tabular-nums}.calendar-momentum .progress-track{height:5px}.calendar-next{display:flex;align-items:center;gap:10px;min-width:0;width:100%;padding:0;min-height:40px;border:0;background:transparent;text-align:left;color:var(--text)}.calendar-next>span{display:grid;gap:5px;min-width:0;flex:1}.calendar-next small{color:var(--muted);font-size:10px}.calendar-next strong{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-next>svg{color:var(--accent-ink);flex:none}
.calendar-move-handle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:40px;padding:4px 8px;border:0;background:transparent;color:var(--muted);font-size:11px;touch-action:none;cursor:grab}.calendar-move-handle svg{width:15px;height:15px}.agenda-row-links{gap:8px;flex-wrap:wrap}.agenda-event[data-calendar-drop-target=swap]{outline:2px solid var(--accent-graphic);outline-offset:-2px;border-radius:18px}.agenda-gap[data-calendar-drop-target=gap]{outline:2px dashed var(--accent-graphic);outline-offset:-3px;border-radius:16px}.calendar-reordering [data-calendar-drop-target] .agenda-title{color:var(--accent-ink)}
/* Controls fit labels and keep one surface in both colour modes. */
.companion-settings{display:grid;gap:24px}.companion-settings .settings-group{padding:20px;border-radius:22px;display:grid;gap:18px;min-width:0}.companion-settings .settings-group>h3{font-size:16px;line-height:1.4;margin:0}.companion-settings .settings-switch{margin:0;padding:6px 0;gap:18px;min-height:52px}.companion-settings .settings-switch>span{gap:6px}.companion-settings .settings-switch strong{font-size:14px;line-height:1.4}.companion-settings .settings-switch small{font-size:11px;line-height:1.6;max-width:32ch}.companion-settings .settings-note{margin:0;font-size:11px;line-height:1.7}.companion-settings .companion-fields{display:grid;gap:16px;min-width:0}.companion-settings .companion-fields .field{margin:0}.companion-settings .notification-sound-choice{display:grid;gap:14px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}.notification-sound-choice>div{min-width:0;display:grid;gap:7px}.notification-sound-choice strong{font-size:12px;font-weight:500}.notification-sound-choice span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.notification-sound-choice>.btn{justify-self:start}.notification-test{display:grid;gap:12px}.notification-test>button{width:100%;min-width:0;white-space:normal;line-height:1.5}.notification-test-result{font-size:11px;line-height:1.7;margin:0;color:var(--muted)}.companion-settings .choice-control{width:100%}.companion-settings .choice-control>summary{white-space:normal}.companion-settings .field>span{line-height:1.6;min-height:0}.settings-screen .settings-menu{gap:12px}.settings-card{min-width:0;gap:14px;padding:16px}.settings-card>span:not(.settings-card-icon){display:grid;gap:6px;min-width:0}.settings-card small{line-height:1.6}.settings-card>svg{flex:none}
.icon-picker-option:hover{background:color-mix(in srgb,var(--accent) 12%,var(--surface))}.icon-picker-option:focus-visible{outline:2px solid var(--accent-ink);outline-offset:1px}.icon-picker-option>svg{flex:none}
.wd-widget{padding:18px;border-radius:24px;box-shadow:none;gap:15px}.wd-widget-heading>h3{font-size:15px;font-weight:650}.wd-widget-symbol{width:28px;height:28px}.wd-widget-menu{color:var(--wd-muted)}.wd-habit-current{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0}.wd-habit-current>div{display:grid;gap:7px;min-width:0}.wd-widget-value{font-size:25px;line-height:1.2}.wd-widget-action{display:grid;place-items:center;flex:none;width:44px;height:44px;background:var(--wd-tint);color:var(--wd-tint-contrast);border-radius:50%;font-size:28px;line-height:1}.wd-widget-action svg{width:24px;height:24px;stroke-width:2.2}.wd-widget-action.is-done{opacity:.65}.wd-widget-meta{font-size:11px;line-height:1.5}.wd-week{gap:6px}.wd-week .wd-day-square{border-radius:50%;max-width:30px}.wd-week small{font-size:9px}.wd-size-compact .wd-widget-action,.wd-size-wide .wd-widget-action{width:38px;height:38px;font-size:24px}.wd-size-compact .wd-widget-value,.wd-size-wide .wd-widget-value{font-size:17px}.wd-size-compact .wd-widget-meta{font-size:10px}.wd-size-small .wd-widget-value{font-size:19px}.wd-size-small .wd-widget-action{width:38px;height:38px}.wd-size-small .wd-habit-current{gap:6px}.wd-preview-stage{padding:18px;background:var(--surface-2);gap:16px}.wd-options{gap:10px}.wd-controls{gap:28px}.wd-habit-field .choice-control>summary{min-height:50px}.wd-widget .wd-plan-list{gap:9px}.wd-widget .wd-plan-row{min-height:24px}.wd-widget .wd-plan-row>span:last-child{font-size:12px}.wd-options .wd-variant-art{height:60px;border-radius:12px}.wd-variant-option>span{padding:13px;gap:6px}.wd-variant-option small{font-size:10px;line-height:1.6}.wd-controls .choice-options{max-height:280px;overflow-y:auto}.wd-widget .wd-progress>span{font-weight:650}
[data-experience-motion=calm] .practice-reward *,[data-experience-motion=off] .practice-reward *{animation:none!important}[data-experience-motion=calm] .practice-medal-check,[data-experience-motion=off] .practice-medal-check{stroke-dashoffset:0}[data-experience-motion=off] *,[data-experience-motion=off] *::before,[data-experience-motion=off] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(min-width:600px){.companion-settings .companion-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-card{max-width:740px}}
@media(max-width:359px){.practice-card{padding:16px}.practice-week{gap:5px}.practice-day i{width:28px;height:28px}.practice-metrics strong{font-size:21px}.practice-reward{padding-inline:18px}.practice-medal{width:170px;height:170px}.practice-reward h2{font-size:23px}.companion-settings .settings-group{padding:16px}.calendar-momentum{padding:14px}.plan-order-buttons>.icon-btn{width:36px;min-width:36px}}
@media(max-height:680px){.practice-medal{width:145px;height:145px}.practice-reward-number{font-size:50px}.practice-reward-body{gap:10px;padding-top:22px}.practice-reward .practice-week{margin:6px 0}}
@media(prefers-reduced-motion:reduce){.practice-reward,.practice-reward *,.practice-particles,.practice-particles *{animation:none!important}.practice-particles{display:none}.practice-medal-check{stroke-dashoffset:0}.practice-medal-ray{opacity:.65}}

.wd-options .wd-variant-art{display:flex;align-items:center;justify-content:center;height:76px;background:transparent;border:0}.wd-options .wd-variant-art>svg{width:100%;height:76px;stroke:none;max-width:128px}.wd-options .wd-variant-option>span{padding:10px;gap:8px}.wd-options .wd-variant-option small{text-align:left}

/* Keep inactive notification options readable without suggesting an active alarm. */
.companion-settings .settings-group{margin-bottom:0}
.companion-settings .companion-fields{margin-top:0}
.notification-options{border:0;padding:0;margin:0;min-width:0;display:grid;gap:18px}
.notification-options[aria-disabled=true] .settings-switch{cursor:default}
.notification-options[aria-disabled=true] .settings-switch input:checked{background:var(--surface-3);border-color:var(--line)}
.notification-options[aria-disabled=true] .settings-switch input:checked::before{background:var(--muted)}
.notification-options[aria-disabled=true] .value-trigger{opacity:1;color:var(--muted)}
.notification-options[aria-disabled=true] .choice-control{color:var(--muted)}
.settings-screen .settings-group>.btn,.companion-settings .settings-group>.btn,.companion-settings .companion-fields>.btn,.notification-sound-choice>.btn{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.companion-settings .notification-plan-status{padding-bottom:16px;border-bottom:1px solid var(--line)}
@media(max-width:359px){
 .editor-form .form-grid:has(>.icon-select-field):has(>.value-field),.editor-form .goal-form-row:has(>.icon-select-field):has(>.value-field){grid-template-columns:minmax(0,1fr)}
 .habit-detail-dashboard .habit-detail-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .habit-detail-dashboard .habit-detail-actions-grid>.btn{font-size:11px;min-width:0;min-height:64px;white-space:normal;padding-inline:3px}
}

[data-experience-motion=off]{scroll-behavior:auto!important}

/* Notes belong below their switch label, including goal and feedback forms. */
.sheet .settings-switch>span:has(>small){display:grid;align-content:center;gap:5px}
.sheet .settings-switch>span>small{display:block;color:var(--muted);font-size:12px;line-height:1.6;font-weight:400}
.editor-form [data-goal-metric]>.goal-form-row{align-items:end}
.companion-settings>.settings-intro{margin:0}
