.preset-dialog {
  --preset-background:#10222b; --preset-surface:#182f37; --preset-text:#f0f5ef;
  --preset-muted:#c7dad3; --preset-accent:#b9e4cd; --preset-border:#42645e; --preset-heat1:#24443f;
  position:fixed; inset:auto; margin:0; padding:0;
  top:calc(var(--explore-top, 0px) + max(12px, env(safe-area-inset-top)));
  left:calc(var(--explore-left, 0px) + var(--explore-width, 100vw) / 2); transform:translateX(-50%);
  width:min(920px, calc(var(--explore-width, 100vw) - max(12px, env(safe-area-inset-left), env(safe-area-inset-right)) * 2));
  height:min(790px, calc(var(--explore-height, 100dvh) - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))));
  max-width:none; max-height:none; min-width:0; overflow:hidden;
  color:var(--preset-text); background:var(--preset-background); border:1px solid var(--preset-border);
  border-radius:24px; box-shadow:0 24px 90px #0005; font-family:inherit;
}
.preset-dialog[open]{display:flex;flex-direction:column}
.preset-dialog::backdrop{background:#031319b8;backdrop-filter:blur(8px)}
.preset-dialog button,.preset-dialog input,.preset-dialog textarea,.preset-dialog select{font:inherit;color:var(--preset-text);touch-action:manipulation}
.preset-dialog button{cursor:pointer}
.preset-dialog button:focus-visible{outline:2px solid var(--preset-accent);outline-offset:-3px}
.preset-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px 15px;background:var(--preset-background);z-index:1}
.preset-head>div{min-width:0}.preset-head h2{margin:7px 0;font-size:25px;font-weight:450;letter-spacing:-.035em}.preset-head .eyebrow{color:var(--preset-accent);font-size:9px}.preset-head p{font-size:11px;line-height:1.5;color:var(--preset-muted);margin:0}
.preset-dialog .preset-close{display:grid;place-items:center;flex:0 0 48px;min-width:48px;width:48px;height:48px;border:1px solid var(--preset-border);border-radius:50%;background:var(--preset-surface);font-size:28px;line-height:1;padding:0}
.preset-search-wrap{position:relative;flex:none;padding:0 24px 17px;border-bottom:1px solid var(--preset-border)}
.preset-search-wrap input{width:100%;height:48px;padding:12px 48px 12px 15px;border:1px solid var(--preset-border);border-radius:12px;background:var(--preset-surface);font-size:16px}
.preset-search-wrap input::placeholder{color:var(--preset-muted);opacity:.85}.preset-search-wrap button{position:absolute;right:28px;top:2px;width:44px;height:44px;border:0;background:transparent;font-size:22px}.preset-search-wrap button[hidden]{display:none}
.preset-browser{flex:1;min-height:0;min-width:0;display:grid;grid-template-columns:205px minmax(0,1fr)}
.preset-categories{min-height:0;min-width:0;overflow:auto;padding:14px 10px;border-right:1px solid var(--preset-border);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.preset-categories button{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;text-align:left;border:1px solid transparent;border-radius:11px;background:transparent;font-size:11px;padding:9px;margin:0 0 4px;white-space:nowrap}
.preset-categories button[aria-pressed=true]{color:var(--preset-accent);border-color:var(--preset-border);background:var(--preset-heat1)}
.preset-categories svg{width:22px;height:22px;flex:none}.preset-categories button[aria-pressed=true] svg{animation:preset-breathe 3.6s ease-in-out infinite}
.preset-results{min-width:0;min-height:0;overflow:auto;padding:18px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom}
.preset-result-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:15px}.preset-result-heading h3{margin:0;font-size:17px;font-weight:500}.preset-result-heading>span{font-size:10px;color:var(--preset-muted)}
.preset-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:0;margin-bottom:9px;border:1px solid var(--preset-border);border-radius:14px;background:var(--preset-surface);overflow:hidden}.preset-row.selected{border-color:var(--preset-accent)}
.preset-choice{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:12px;min-width:0;min-height:78px;padding:13px;border:0;background:transparent;text-align:left}
.preset-choice>span:nth-child(2){min-width:0}.preset-choice b{display:block;font-size:12px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}.preset-choice small{display:block;font-size:10px;line-height:1.6;color:var(--preset-muted);margin-top:4px}.preset-choice em{font-size:17px;font-style:normal;color:var(--preset-accent)}
.preset-icon{width:38px;height:38px;display:grid;place-items:center;background:var(--preset-heat1);color:var(--preset-accent);border-radius:12px;pointer-events:none;transition:transform .25s}.preset-icon svg{width:25px;height:25px}.preset-choice:active .preset-icon{transform:scale(.9) rotate(-3deg)}
.preset-dialog .preset-favourite{width:44px;height:48px;padding:0;align-self:center;border:0;background:transparent;font-size:24px;color:var(--preset-muted)}.preset-dialog .preset-favourite[aria-pressed=true]{color:var(--preset-accent)}
.preset-edit{grid-column:1/-1;min-height:36px;padding:5px 13px;text-align:left;border:0;border-top:1px solid var(--preset-border);background:transparent;font-size:10px}
.preset-more{width:100%;padding:13px;border:1px solid var(--preset-border);border-radius:11px;background:var(--preset-surface);font-size:12px}
.preset-footer{display:flex;flex:none;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px 24px;border-top:1px solid var(--preset-border);background:var(--preset-background)}.preset-footer>span{font-size:10px;color:var(--preset-muted)}.preset-footer button,.preset-form-actions button{min-height:44px;border:1px solid var(--preset-border);border-radius:11px;background:var(--preset-heat1);padding:10px 14px;font-size:12px}
.preset-empty{text-align:center;padding:28px 10px;color:var(--preset-muted)}.preset-empty>span svg{width:42px;height:42px;color:var(--preset-accent)}.preset-empty h4{color:var(--preset-text);font-weight:500;font-size:18px}.preset-empty p{font-size:12px;line-height:1.8;max-width:320px;margin-inline:auto}
.preset-custom-form{display:grid;gap:11px;min-width:0}.preset-custom-form label{font-size:12px}.preset-custom-form label small{color:var(--preset-muted);margin-left:8px;font-size:10px}.preset-custom-form input,.preset-custom-form textarea,.preset-custom-form select{width:100%;max-width:100%;padding:12px;background:var(--preset-surface);border:1px solid var(--preset-border);border-radius:10px;font-size:16px}.preset-custom-form textarea{resize:vertical;min-height:90px}.preset-custom-form option{background:var(--preset-background)}.preset-custom-form>small{color:var(--preset-muted);font-size:10px;line-height:1.7}.preset-form-actions{display:flex;flex-wrap:wrap;gap:8px}.preset-form-actions button[type=submit]{background:var(--preset-accent);color:var(--preset-on-accent,#10212c)}.preset-form-status{font-size:12px;line-height:1.6;margin:0;color:var(--preset-accent)}
.daily-custom-fields{margin-top:9px}.daily-custom-fields summary{font-size:11px;color:var(--accent2);cursor:pointer;min-height:36px;padding:9px 0}.daily-custom-fields label{display:block;font-size:11px;margin:8px 0}.daily-custom-fields input{margin-top:6px;width:100%;font-size:16px}.daily-custom-fields button{margin-top:6px;min-height:40px}
.onboard-cats{display:flex;overflow:auto;max-width:100%;flex-wrap:nowrap!important;touch-action:pan-x pan-y pinch-zoom}.onboard-cats button{flex:none;display:flex;gap:7px;align-items:center}.onboard-cats svg{width:18px;height:18px}.onboard-grid{min-width:0}
@keyframes preset-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.055)}}

/* The full page has a unique class; legacy .world-progress bars cannot style it. */
.momentum-progress-page{height:auto;min-height:280px;max-height:none;overflow:visible;--progress-background:#10222b;--progress-surface:#182f37;--progress-text:#f0f5ef;--progress-muted:#c7dad3;--progress-accent:#b9e4cd;--progress-border:#42645e}
.momentum-progress-page .progress-content>*{min-width:0;max-width:100%}.momentum-progress-page .progress-title>div:first-child{min-width:0}.momentum-progress-page .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.momentum-progress-page .metric-card{min-width:0}.momentum-progress-page .metric-card b{overflow-wrap:anywhere;font-size:26px}.momentum-progress-page .metric-card small{line-height:1.5}
.momentum-progress-page .week-bars-v2{grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(5px,1.5vw,14px);min-width:0}.momentum-progress-page .week-day{min-width:0}.momentum-progress-page .week-bar-shell{width:100%;max-width:100%;height:120px}.momentum-progress-page .week-day small{font-size:10px}
.progress-world-context{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.progress-world-context>div{min-width:0}.progress-world-level small{line-height:1.65}
.progress-data-status{font-size:12px;line-height:1.7;padding:12px 16px;border:1px solid var(--progress-border);border-radius:12px;color:var(--progress-muted);background:var(--progress-surface);margin-bottom:20px}.progress-data-status[hidden]{display:none}.progress-data-status button{margin-left:12px}
.progress-today-list{display:grid;gap:10px;margin:17px 0 0;padding:0;list-style:none}.progress-today-list li{display:flex;align-items:flex-start;gap:12px;padding:12px;background:var(--progress-heat0);border-radius:12px}.progress-today-list .progress-goal-state{width:24px;height:24px;flex:none;display:grid;place-items:center;border:1px solid var(--progress-border);border-radius:50%;font-size:12px;color:var(--progress-accent)}.progress-today-list b{font-size:12px;font-weight:500;line-height:1.5}.progress-today-list small{display:block;font-size:10px;line-height:1.6;margin-top:3px}
.progress-section-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}.progress-section-heading h2{margin:0 0 8px}.progress-section-heading p{font-size:12px;line-height:1.6;margin:0}.progress-empty-copy{font-size:12px;line-height:1.8;color:var(--progress-muted)}
.progress-achievements{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;list-style:none;margin:20px 0;padding:0}.progress-achievements li{padding:12px;border:1px solid var(--progress-border);border-radius:11px;min-width:0;background:var(--progress-heat0)}.progress-achievements b{display:block;font-size:11px;font-weight:500;line-height:1.5}.progress-achievements small{display:block;font-size:9px;margin-top:5px;line-height:1.5}.progress-achievements li[aria-current=step]{border-color:var(--progress-accent);background:var(--progress-heat1)}
.progress-award-preview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:18px}.progress-award-preview article{min-width:0;text-align:center;border-radius:13px;padding:8px;background:var(--progress-heat0);border:1px solid var(--progress-border)}.progress-award-preview .world-award-art{width:100%;max-width:100px;margin:0 auto 5px}.progress-award-preview b{font-size:10px;line-height:1.5;font-weight:500;display:block}.progress-award-preview small{font-size:9px;line-height:1.6;display:block;margin-top:5px}.progress-award-preview .locked .world-award-art{filter:grayscale(.8);opacity:.5}.progress-award-preview .world-award-art *{animation:none!important}
.progress-metric-loading{display:inline-block;width:50px;height:18px;border-radius:8px;background:var(--progress-heat1)}
.progress-today-list li>div{min-width:0;flex:1;overflow-wrap:anywhere}.consistency-detail{overflow-wrap:anywhere}.preset-choice small{overflow-wrap:anywhere}
@media(max-width:760px){.preset-browser{display:flex;flex-direction:column}.preset-categories{flex:none;display:flex;gap:5px;padding:9px 14px;border-right:0;border-bottom:1px solid var(--preset-border);overflow-x:auto;touch-action:pan-x pan-y pinch-zoom}.preset-categories button{width:auto;flex:none;margin:0;font-size:10px}.preset-results{flex:1;padding:14px}.preset-head{padding:15px 16px 12px}.preset-head h2{font-size:20px}.preset-search-wrap{padding:0 16px 12px}.preset-search-wrap button{right:20px}.preset-footer{padding:10px 16px}.preset-footer>span{display:none}.preset-footer button{width:100%}.preset-choice{grid-template-columns:30px minmax(0,1fr) 14px;gap:9px;padding:11px 8px 11px 11px}.preset-icon{width:30px;height:34px}.preset-icon svg{width:22px;height:22px}.preset-choice b{font-size:11px}.preset-choice small{font-size:10px}.progress-award-preview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.momentum-progress-page .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-world-context{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-achievements{grid-template-columns:repeat(2,minmax(0,1fr))}.momentum-progress-page .section-head{flex-wrap:wrap;gap:10px}.momentum-progress-page .progress-title{align-items:flex-start}.momentum-progress-page .score-orb{width:70px;height:70px}.momentum-progress-page .score-orb span{font-size:6px}.momentum-progress-page h1{font-size:29px}}
@media(max-width:360px){.progress-world-context{grid-template-columns:minmax(0,1fr)}.preset-dialog{border-radius:18px}.preset-head h2{font-size:18px}.preset-head p{display:none}.preset-choice small{font-size:9px}.momentum-progress-page .consistency-controls{gap:4px}.momentum-progress-page .consistency-controls button{padding:8px;min-height:44px}}
@media(max-height:450px){.preset-head{padding-block:8px}.preset-head h2{font-size:18px;margin:3px 0}.preset-head p{display:none}.preset-search-wrap{padding-bottom:8px}.preset-categories{padding-block:4px}.preset-footer{padding-block:6px}}
@media(prefers-reduced-motion:reduce){.preset-dialog *{animation:none!important;transition:none!important}}
body[data-motion=calm] .preset-dialog *{animation:none!important;transition:none!important}
