/* The Desktop edition shares Finder rows and window fitting with the other apps. */
*{box-sizing:border-box}body{margin:0;font-family:'neue-haas-grotesk-text',sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;height:100dvh;display:grid;grid-template-rows:minmax(0,1fr) 52px;overflow:hidden}button,a{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer;padding:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}[hidden]{display:none!important}a{text-decoration:none}button:focus-visible,a:focus-visible{outline:1px solid currentColor;outline-offset:4px;border-radius:2px}button{transition:opacity 180ms ease}@media(hover:hover){button:hover{opacity:.6}}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#paths-stage{grid-row:1;min-height:0;display:flex;flex-direction:column;align-items:center;overflow:auto;overscroll-behavior:contain;padding:28px 28px 20px;outline:none}.paths-encounter{flex:none;width:min(100%,540px);max-width:540px;margin:auto;font-size:20px;line-height:1.6;outline:none}.paths-encounter h1{font:inherit;font-weight:400;line-height:1.5;margin:0 0 24px}.paths-encounter p{margin:0 0 1.25em}.paths-encounter[data-kind=choice],.paths-encounter[data-kind=line],.paths-encounter[data-kind=menu]{text-align:center}.paths-encounter p:last-child{margin-bottom:0}.paths-choices,.paths-entrances{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;align-items:center}.paths-choices{font-size:16px;margin-top:24px}.paths-choices button,.paths-entrances button{display:block;min-height:44px;line-height:1.5;padding:8px 0}.practice-browse{min-height:44px;font-size:12px;opacity:.6}.practice-tools{display:flex;justify-content:center;gap:8px 24px;flex-wrap:wrap;margin-top:24px;font-size:13px}.practice-tools button{min-height:44px;text-decoration:underline;text-underline-offset:4px}.paths-encounter figure{margin:0;text-align:center}.paths-encounter img{display:block;margin:auto;max-width:100%;max-height:calc(100dvh - 180px);width:auto;height:auto;object-fit:contain}.paths-encounter figcaption{margin-top:12px;font-size:11px;opacity:.6}
.practice-navigation{position:relative;grid-row:2;display:flex;justify-content:space-between;align-items:center;padding:4px 12px;min-height:52px}.practice-navigation button{display:flex;align-items:center;justify-content:center;gap:10px;min-width:44px;min-height:44px;font-size:12px}.practice-navigation svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.practice-next-label:empty{display:none}body[data-practice-advance] #paths-stage{cursor:pointer}
html[data-desktop-practices][data-workspace-folder] #paths-stage{min-height:0;display:block;padding:8px 16px 24px}html[data-desktop-practices][data-workspace-folder] .paths-encounter{margin:0;max-width:none}html[data-desktop-practices][data-workspace-folder] .paths-entrances{align-items:stretch}
body[data-practice-menu=true] .practice-navigation{justify-content:flex-start}
@media(max-width:600px){.paths-encounter{font-size:18px}#paths-stage{padding:22px 22px 16px}.paths-choices{font-size:15px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
#practice-next{margin-left:auto}

/* Align by role: prose shares a left edge; headings and controls may center. */
.paths-encounter :is(h1,figcaption){text-align:center}
.paths-encounter p{text-align:left}
.paths-choices li{max-width:100%}.paths-choices button,.practice-tools button{max-width:100%;text-align:center}
.paths-encounter .practice-wrapped{text-align:left}

.practice-navigation .practice-browse{position:absolute;left:50%;transform:translateX(-50%);margin:0;white-space:nowrap}
/* Reuse Smart Search's adaptive pill material, computed by shared theme.js. */
:root[data-desktop-practices]{--atmosphere-jelly:1;--practice-choice-fill:#eae8e2;--practice-choice-hover:#e4e1d9;--practice-choice-ink:#686961;--practice-choice-hover-ink:var(--ink);background-color:var(--workspace-background,var(--paper))}
:root[data-desktop-practices][data-theme=dark]{--practice-choice-fill:#292929;--practice-choice-hover:#343434;--practice-choice-ink:#b6b2ab}
:root[data-desktop-practices][data-atmosphere]{--practice-choice-fill:var(--home-jelly-fill);--practice-choice-hover:var(--home-jelly-hover-fill);--practice-choice-ink:var(--home-jelly-ink);--practice-choice-hover-ink:var(--home-jelly-hover-ink)}
.paths-choices li{width:min(100%,360px)}
.paths-choices button{width:100%;min-height:44px;padding:8px 14px;border-radius:8px;background:var(--practice-choice-fill);color:var(--practice-choice-ink);transition:background-color 180ms ease,color 180ms ease}
.paths-choices button:focus-visible{background:var(--practice-choice-hover);color:var(--practice-choice-hover-ink)}
@media(hover:hover){.paths-choices button:hover{opacity:1;background:var(--practice-choice-hover);color:var(--practice-choice-hover-ink)}}
@media(prefers-reduced-motion:reduce){.paths-choices button{transition:none}}
/* Self-contained writing and comparison; never shrink editable work to fit. */
.practice-fields{display:grid;gap:20px;margin-top:24px;text-align:left;font-size:16px}.practice-fields label{display:grid;gap:8px}.practice-fields label>span{font-size:13px;line-height:1.5}.practice-fields textarea{display:block;box-sizing:border-box;width:100%;min-height:72px;padding:12px;border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);border-radius:6px;background:color-mix(in srgb,var(--ink) 3%,transparent);color:var(--ink);font:inherit;font-size:16px;line-height:1.6;resize:vertical}.practice-fields textarea:focus-visible{outline:1px solid currentColor;outline-offset:2px}.paths-encounter .practice-writing-help{font-size:11px;opacity:.6;text-align:left;line-height:1.5;margin:0}.practice-review{display:grid;gap:16px;margin:24px 0;text-align:left;overflow-wrap:anywhere}.practice-review h2{font-size:12px;font-weight:400;opacity:.6;margin:0 0 8px}.practice-review p{font-size:16px;white-space:pre-wrap;text-align:left;margin:0}.practice-comparison{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.practice-word-actions{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:12px}.practice-word-actions button{font-size:11px;opacity:.65}
body[data-practice-running] #paths-stage{padding-top:64px}.practice-progress .tap-reading-menu{display:grid;place-items:center;flex:none;width:32px;height:44px;min-height:44px;padding:0;background:transparent}:root[data-workspace-follow] .practice-progress{top:4px}
@media(max-width:500px){.practice-comparison{grid-template-columns:1fr}}

.practice-fields textarea.practice-long-input{min-height:128px}

.practice-feedback{position:absolute;bottom:52px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);font-size:11px;line-height:1.5;text-align:center;pointer-events:none;background:var(--workspace-background,var(--paper));border-radius:4px}.practice-feedback:not(:empty){padding:4px 8px}

/* Standalone uses its own site header/atmosphere; the embedded app uses its host. */
:root:not([data-workspace-follow]) #paths-stage{padding-top:max(76px,calc(env(safe-area-inset-top) + 68px))}
:root:not([data-workspace-follow]) body[data-practice-running] #paths-stage{padding-top:max(108px,calc(env(safe-area-inset-top) + 100px))}
:root[data-workspace-follow] .practice-site-home{display:none}

.practice-optional-writing{margin-top:20px}.practice-write-toggle{display:block;min-height:44px;margin-inline:auto;font-size:12px;opacity:.6}.practice-optional-writing .practice-fields{margin-top:12px}

/* Keep scrolling encounters below the fixed header and progress rail. */
body[data-practice-running] #paths-stage{margin-top:48px;padding-top:16px}
:root:not([data-workspace-follow]) body[data-practice-running] #paths-stage{margin-top:max(96px,calc(env(safe-area-inset-top) + 88px));padding-top:12px}
