*{box-sizing:border-box}body{margin:0;font-family:'neue-haas-grotesk-text',sans-serif;font-weight:400;-webkit-font-smoothing:antialiased}button,a,select{font:inherit;color:inherit}button{border:0;background:none;padding:0;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}a{text-decoration:none}button:disabled{cursor:default}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}button:focus-visible,a:focus-visible,summary:focus-visible{outline:none;text-decoration:underline;text-underline-offset:5px}button,a{transition:opacity 180ms ease}@media(hover:hover){button:not(:disabled):hover,a:hover{opacity:.6}}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.paths-header{position:absolute;z-index:3;top:max(8px,env(safe-area-inset-top));left:24px;right:24px;display:flex;justify-content:center;align-items:center;height:44px;font-size:12px}.paths-header>button{min-height:44px}.paths-header details{position:absolute;right:0;top:0}.paths-header summary{list-style:none;display:grid;place-items:center;min-width:44px;min-height:44px;cursor:pointer}.paths-header summary::-webkit-details-marker{display:none}.paths-header .paths-popup{top:48px;right:0;bottom:auto;width:205px}.paths-popup label{display:block;padding:10px 0 6px;font-size:11px;opacity:.6}.paths-popup select{border:0;background:transparent;width:100%;min-height:40px}.paths-popup select option{background:var(--paper);color:var(--ink)}
#paths-stage{min-height:100svh;display:grid;place-items:center;padding:max(104px,calc(env(safe-area-inset-top) + 88px)) 28px max(138px,calc(env(safe-area-inset-bottom) + 116px));outline:none}.paths-encounter{width:min(100%,var(--encounter-width,500px));font-size:var(--encounter-font,20px);line-height:var(--encounter-leading,1.6);animation:paths-arrive 240ms ease both}.paths-encounter h1,.paths-encounter h2{font-size:inherit;font-weight:400;line-height:1.5;margin:0 0 28px;text-wrap:balance}.paths-encounter p{margin:0 0 1.4em}.paths-encounter p:last-child{margin-bottom:0}.paths-encounter[data-kind=menu],.paths-encounter[data-kind=choice],.paths-encounter[data-kind=line]{text-align:center}.paths-encounter[data-kind=line]{font-size:clamp(24px,3vw,34px);line-height:1.5;max-width:570px;text-wrap:balance}.paths-encounter[data-kind=menu]{font-size:20px}.paths-entrances,.paths-choices{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;align-items:center;gap:12px}.paths-choices button,.paths-entrances button{min-height:44px;line-height:1.5}.paths-entrances li{position:relative}.paths-soon{font-size:10px;position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);opacity:.5}.paths-choices{gap:8px;font-size:var(--encounter-choice-font,16px)}.paths-invitations{display:flex;gap:12px 26px;flex-wrap:wrap;margin-top:28px;font-size:14px}.paths-invitations button{min-height:44px;text-decoration:underline;text-underline-offset:5px}.paths-encounter figure{margin:0;text-align:center}.paths-encounter img{display:block;margin:auto;max-width:100%;max-height:56svh;width:auto;height:auto;object-fit:contain}.paths-encounter figcaption{font-size:11px;opacity:.55;margin-top:14px}body[data-paths-advance] #paths-stage{cursor:pointer}
.paths-footer{position:fixed;z-index:5;bottom:max(10px,env(safe-area-inset-bottom));left:20px;right:20px;min-height:62px;pointer-events:none}.paths-footer button{pointer-events:auto}.paths-edge{position:absolute;bottom:9px;min-width:44px;min-height:44px;display:grid;place-items:center}.paths-left{left:0}.paths-right{right:0}#paths-dock{width:max-content;max-width:calc(100% - 100px);margin:0 auto;display:flex;gap:clamp(8px,2vw,22px);align-items:center;justify-content:center;pointer-events:auto}#paths-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:38px;min-height:62px;font-size:10px}#paths-dock button[aria-pressed=true]{text-decoration:underline;text-underline-offset:4px}.paths-popup{position:absolute;z-index:12;background:var(--paper);border:1px solid color-mix(in srgb,currentColor 16%,transparent);border-radius:12px;padding:14px 18px;box-shadow:0 8px 30px #0000000d;font-size:13px}#paths-tools-menu{position:fixed;bottom:calc(max(10px,env(safe-area-inset-bottom)) + 76px);left:50%;transform:translateX(-50%);width:min(310px,calc(100vw - 40px));display:grid;grid-template-columns:repeat(3,1fr);gap:12px 8px}#paths-tools-menu button,#paths-tools-menu a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:56px;font-size:11px}
.paths-tool-window{position:fixed;z-index:20;inset:76px max(32px,calc((100vw - 1120px)/2)) max(100px,calc(env(safe-area-inset-bottom) + 90px));background:var(--paper);border:1px solid color-mix(in srgb,currentColor 20%,transparent);border-radius:12px;box-shadow:0 12px 55px #0002;display:flex;flex-direction:column;overflow:hidden}.paths-tool-window>header{display:flex;align-items:center;gap:20px;min-height:50px;padding:0 10px 0 20px;font-size:12px;flex-shrink:0}.paths-tool-name{margin-right:auto}.paths-tool-full{display:flex;align-items:center;font-size:11px}.paths-tool-minimize{display:grid;place-items:center;min-width:44px;min-height:44px}.paths-tool-frames{position:relative;flex:1;min-height:0;background:var(--paper)}.paths-tool-frames iframe{width:100%;height:100%;border:0;display:block}.paths-tool-status{position:absolute;top:45%;left:10%;right:10%;text-align:center;font-size:14px;pointer-events:none}.paths-tool-retry{position:absolute;top:55%;align-self:center;min-height:44px;font-size:13px}
@keyframes paths-arrive{from{opacity:0}to{opacity:1}}@media(max-width:600px){.paths-header{left:16px;right:12px}.paths-encounter{font-size:var(--encounter-mobile-font,18px);max-width:390px}.paths-encounter[data-kind=menu]{font-size:18px}.paths-tool-window{inset:max(10px,env(safe-area-inset-top)) 8px max(92px,calc(env(safe-area-inset-bottom) + 78px));border-radius:10px}.paths-footer{left:8px;right:8px}#paths-dock{gap:9px;max-width:calc(100% - 76px)}.paths-soon{font-size:9px;left:calc(100% + 8px)}}@media(max-width:360px){.paths-encounter[data-kind=menu]{font-size:16px}#paths-stage{padding-left:22px;padding-right:22px}#paths-dock{gap:3px}#paths-dock button{min-width:34px;font-size:9px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

body[data-paths-tool-open] .paths-edge{visibility:hidden}

.paths-tool-name{min-height:44px;text-align:left}.paths-tool-name:disabled{opacity:1}.paths-tool-expand{display:grid;place-items:center;min-width:36px;min-height:44px}.paths-tool-window[data-expanded]{inset:max(8px,env(safe-area-inset-top)) 8px max(94px,calc(env(safe-area-inset-bottom) + 82px));border-radius:8px}

/* A shared footer text row: labels keep the exact same coordinates when icons
   disappear. Its 12px/1.4 type, 44px row and bottom inset match site actions. */
.paths-footer{bottom:max(8px,env(safe-area-inset-bottom));min-height:0;z-index:5000}
#paths-dock{gap:0;align-items:end}
#paths-dock button{display:grid;grid-template-rows:24px 44px;gap:0;min-width:0;min-height:0;font-size:12px;line-height:1.4}
#paths-dock button>svg{grid-row:1;align-self:start;justify-self:center;transition:opacity 160ms ease}
#paths-dock button>span{grid-row:2;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px;line-height:1.4;white-space:nowrap}
.paths-edge{bottom:0}
body[data-workspace-expanded] #paths-dock button{grid-template-rows:0px 44px}
body[data-workspace-expanded] #paths-dock button>svg{opacity:0;visibility:hidden;transition:opacity 160ms ease,visibility 0s 160ms}
#paths-tools-menu{z-index:6000}
.paths-tool-window{inset:auto;position:fixed;min-width:0;min-height:0;right:auto;bottom:auto}
.paths-tool-window>header{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.paths-tool-window>header:active{cursor:grabbing}
.paths-tool-window>header :is(button,a){cursor:pointer;touch-action:manipulation}
.paths-tool-window>header button:disabled{cursor:inherit}
.paths-tool-window[data-expanded]{inset:auto;border-radius:0;border-top:0;border-left:0;border-right:0;box-shadow:none}
.paths-tool-window[data-expanded]>header{min-height:30px;padding-left:12px;gap:12px;cursor:default;font-size:12px}
.paths-tool-window[data-expanded]>header :is(button,a){min-height:30px;line-height:1.4}
.paths-tool-window[data-expanded] :is(.paths-tool-expand,.paths-tool-minimize){min-width:30px}
.workspace-resize{position:absolute;z-index:10;touch-action:none;user-select:none}
.workspace-resize[data-edge=n],.workspace-resize[data-edge=s]{height:7px;left:14px;right:14px;cursor:ns-resize}
.workspace-resize[data-edge=n]{top:0}.workspace-resize[data-edge=s]{bottom:0}
.workspace-resize[data-edge=e],.workspace-resize[data-edge=w]{width:7px;top:14px;bottom:14px;cursor:ew-resize}
.workspace-resize[data-edge=e]{right:0}.workspace-resize[data-edge=w]{left:0}
.workspace-resize:is([data-edge=ne],[data-edge=nw],[data-edge=se],[data-edge=sw]){width:14px;height:14px}
.workspace-resize[data-edge=ne]{top:0;right:0;cursor:nesw-resize}.workspace-resize[data-edge=nw]{top:0;left:0;cursor:nwse-resize}
.workspace-resize[data-edge=se]{bottom:0;right:0;cursor:nwse-resize}.workspace-resize[data-edge=sw]{bottom:0;left:0;cursor:nesw-resize}
.paths-tool-window[data-expanded] .workspace-resize{display:none}
body[data-window-gesture]{user-select:none;-webkit-user-select:none}
body[data-window-gesture] .paths-tool-window iframe{pointer-events:none}
@media(max-width:600px){#paths-dock button>span{padding:10px 6px}}
@media(pointer:coarse){.paths-tool-window[data-expanded]>header,.paths-tool-window[data-expanded]>header :is(button,a){min-height:44px}.workspace-resize:is([data-edge=ne],[data-edge=nw],[data-edge=se],[data-edge=sw]){width:20px;height:20px}}

body[data-folder-gesture] .paths-tool-window iframe{pointer-events:none}

/* Spotlight opens as a compact search surface; responses use a larger workspace. */

/* Workspace chrome uses the same current color as the page, with a little contrast. */
:root[data-workspace]{--workspace-background:var(--paper);--workspace-chrome:color-mix(in srgb,var(--workspace-background) 94%,var(--ink));--workspace-line:color-mix(in srgb,var(--ink) 16%,transparent)}
:root[data-workspace] .paths-tool-window{background:var(--workspace-background);border-color:var(--workspace-line);box-shadow:0 3px 16px #0000000a}
:root[data-workspace] .paths-tool-window>header{background:var(--workspace-chrome);border-bottom:1px solid var(--workspace-line)}
:root[data-workspace] .paths-popup{background:var(--workspace-chrome);border-color:var(--workspace-line);box-shadow:0 3px 16px #0000000a}
:root[data-workspace] .paths-header{z-index:7000;pointer-events:none}
#paths-appearance{pointer-events:auto}
body[data-workspace-expanded] #paths-appearance{display:none!important}
#paths-appearance[data-in-window]{position:fixed;right:auto;z-index:7000}
#paths-appearance[data-in-window] summary{min-height:30px;height:30px}
#paths-appearance .paths-popup{position:absolute;top:calc(100% + 8px);right:0;width:min(300px,calc(100vw - 24px));max-height:calc(100dvh - 80px);overflow:auto;padding:6px 14px;font-size:12px;line-height:1.35}
#paths-appearance fieldset{border:0;border-top:1px solid var(--workspace-line);padding:4px 0;margin:0;min-width:0}
#paths-appearance .workspace-native-choice{display:none!important}
#paths-appearance #atmosphere-toggle{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;font-size:12px}
.workspace-scheme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
#paths-appearance .workspace-scheme-options label{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0;font-size:12px;opacity:1;cursor:pointer}
.workspace-choice-circle{display:grid;place-items:center;flex:none;width:13px;height:13px;border:1px solid currentColor;border-radius:50%}
.workspace-choice-circle::after{content:'';width:6px;height:6px;background:currentColor;border-radius:50%;opacity:0}
input:checked+.workspace-choice-circle::after,[aria-pressed=true]>.workspace-choice-circle::after{opacity:1}
#paths-appearance label:has(input:focus-visible){text-decoration:underline;text-underline-offset:4px}
#paths-appearance .paths-popup>a{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:4px;border-top:1px solid var(--workspace-line);line-height:1.4}
#paths-dock button[aria-pressed=true]{text-decoration:none}
#paths-dock button{position:relative}
#paths-dock button[aria-pressed=true]::after{content:'';position:absolute;width:3px;height:3px;border-radius:50%;background:currentColor;left:calc(50% - 1.5px);bottom:2px}
.workspace-tabs{position:fixed;top:0;left:4px;z-index:7000;display:flex;max-width:calc(100% - 340px);overflow:auto;scrollbar-width:none;height:30px;font-size:12px;align-items:center;gap:2px;white-space:nowrap}
.workspace-tabs button{min-height:30px;padding:0 10px;border-radius:3px}
.workspace-tabs button[aria-current=true]{background:color-mix(in srgb,var(--ink) 10%,transparent)}
.paths-tool-window[data-expanded] .paths-tool-name{visibility:hidden;pointer-events:none;width:0;min-width:0;overflow:hidden}

.workspace-arrange{display:grid;place-items:center;min-width:30px;min-height:30px}
.workspace-arrange-menu{position:fixed;z-index:7100;display:flex;gap:4px;padding:6px}
.workspace-arrange-menu button{min-height:44px;padding:6px 10px}
#workspace-snap-preview{position:fixed;pointer-events:none;z-index:6900;background:color-mix(in srgb,var(--ink) 7%,transparent);border:1px solid var(--workspace-line);border-radius:6px}
#workspace-divider{position:fixed;z-index:1500;width:12px;cursor:col-resize;touch-action:none;background:none}
#workspace-divider::after{content:'';position:absolute;left:5px;width:2px;top:12px;bottom:12px;border-radius:2px;background:color-mix(in srgb,var(--ink) 20%,transparent)}
@media(max-width:600px){.workspace-tabs{max-width:calc(100% - 144px)}.paths-tool-window[data-expanded] .paths-tool-full{display:none}.paths-tool-window[data-expanded]>header{gap:8px}.workspace-arrange{display:none}}
@media(pointer:coarse){#paths-appearance[data-in-window] summary{min-height:44px;height:44px}.workspace-tabs,.workspace-tabs button{height:44px;min-height:44px}}



#paths-appearance summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}

/* Visible, parked and closed are distinct. Closing never deletes saved work. */
#paths-dock button[data-window-state=minimized]::after{content:'';position:absolute;width:5px;height:5px;border:1px solid currentColor;border-radius:50%;left:calc(50% - 2.5px);bottom:1px;background:transparent}
.workspace-close{display:grid;place-items:center;min-width:30px;min-height:30px}
.workspace-close svg{width:16px;height:16px}
.workspace-arrange-menu{flex-wrap:wrap;max-width:calc(100vw - 16px)}
.workspace-tabs{max-width:calc(100% - 380px)}
@media(max-width:600px){.workspace-arrange{display:grid}.paths-tool-window .paths-tool-full{display:none}.paths-tool-window>header{gap:4px;padding-left:10px;padding-right:4px}.paths-tool-window[data-expanded]>header{gap:4px}.workspace-tabs{max-width:calc(100% - 184px)}}
/* Window controls must fit a narrow floating window, even on a wide monitor. */
.paths-tool-window{container-type:inline-size}
@container (max-width:500px){.paths-tool-full{display:none}.paths-tool-window>header{gap:4px;padding-left:10px;padding-right:4px}.paths-tool-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}}
/* Pending frames never expose a temporary window geometry or unfinished app. */
.paths-tool-window[data-loading] .paths-tool-frames iframe{visibility:hidden!important;pointer-events:none}
@media(hover:hover){.paths-popup button:hover,.workspace-tabs button:hover,#paths-dock button:hover{transition-duration:0s}.desktop-folders button{border-radius:8px;transition:background-color 280ms ease-out}.desktop-folders button:hover{background:color-mix(in srgb,var(--ink) 6%,transparent);transition-duration:0s}}
.paths-tool-window>header :is(button,a){display:inline-flex;align-items:center;justify-content:center;align-self:stretch;flex-shrink:0;height:inherit;line-height:1.4}
.paths-tool-window>header .paths-tool-name{justify-content:flex-start;min-width:0;flex-shrink:1}
.workspace-view{min-width:30px;min-height:30px}
.workspace-view svg{width:17px;height:17px}

.workspace-tabs{max-width:none;width:auto;right:auto;overflow:visible}
.workspace-tab-list{display:flex;gap:2px;align-items:center;overflow-x:auto;overscroll-behavior:contain;scrollbar-width:none;min-width:0;height:100%}
.workspace-tab-list::-webkit-scrollbar{display:none}
.workspace-tabs>button{flex:none}
.workspace-tab-list button{flex:none}
@media(max-width:900px),(pointer:coarse){.workspace-arrange{display:none!important}}
@container (max-width:600px){.workspace-arrange{display:none!important}}
body[data-workspace-phone] .paths-tool-window{border-radius:0}
body[data-workspace-phone] .paths-tool-expand,body[data-workspace-phone] .workspace-arrange,body[data-workspace-phone] .workspace-resize{display:none!important}
body[data-workspace-phone] .paths-tool-window>header{height:44px;min-height:44px;gap:4px;padding:0 4px}
body[data-workspace-phone] .paths-tool-window>header :is(button,a){min-height:44px;min-width:40px}
body[data-workspace-phone] .paths-tool-window .paths-tool-full{display:none!important}
body[data-workspace-phone] .paths-tool-window .paths-tool-name{min-width:0;width:0;padding:0}
body[data-workspace-phone] .workspace-tabs{height:44px}
body[data-workspace-phone] .workspace-tabs button{min-height:44px;height:44px}

/* The popup and its dock launcher use the same subtle running indicators. */
:is(#paths-dock,#paths-tools-menu) button[data-window-state]{position:relative}
:is(#paths-dock,#paths-tools-menu) button:is([data-window-state=visible],[data-window-state=minimized])::after{content:'';position:absolute;width:3px;height:3px;box-sizing:border-box;border:0;border-radius:50%;left:calc(50% - 1.5px);bottom:2px;background:currentColor}
:is(#paths-dock,#paths-tools-menu) button[data-window-state=minimized]::after{border:1px solid currentColor;background:transparent}
@media(max-width:600px){#paths-dock button>span{padding-inline:4px}body[data-desktop] #paths-dock{max-width:100%;gap:0}}


.paths-tool-frames,.paths-tool-frames iframe{background:var(--workspace-background,var(--paper))}


/* Identical three-column sections; only a hairline separates destinations. */
.workspace-tool-group{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
.workspace-tool-group+.workspace-tool-group{border-top:1px solid var(--workspace-line);padding-top:12px;margin-top:4px}
.workspace-tool-group>button{width:100%;min-width:0;text-align:center}
/* Window section geometry is defined once below, including compact states. */
body[data-workspace-phone] .workspace-size-controls{display:none!important}
body[data-workspace-group] .paths-tool-name{visibility:hidden;width:0;min-width:0;padding:0;pointer-events:none}
body[data-workspace-group] .paths-tool-window{border-radius:0;border-top:0;border-left:0;border-right:0;box-shadow:none}
body[data-desktop][data-workspace-expanded] :is(#paths-stage,#desktop-home){visibility:hidden}
#workspace-divider{background:var(--site-surface,var(--paper))}
/* Hide icons before collapsing their row so they never pass over the labels. */
body[data-workspace-expanded] #paths-dock button>svg{transition:none}

.workspace-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.workspace-tab-symbols{display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:none;pointer-events:none}
.workspace-tab-symbols svg{display:block;width:16px;height:16px;flex:none}
.workspace-tab-label{white-space:nowrap;pointer-events:none}
.workspace-tabs .workspace-home-tab{min-width:36px}
.workspace-tabs button:focus-visible{outline:1px solid currentColor;outline-offset:-3px}
body[data-workspace-phone] .workspace-tab-label{display:none}
body[data-workspace-phone] .workspace-tabs button{min-width:44px}
/* A pending full-screen app keeps its own opaque shell above the background. */
.paths-tool-window[data-loading]{background:var(--workspace-background,var(--paper))}

/* Live timer uses the same dock baseline, with stable-width numerals. */
#paths-dock button[data-tool=timer]>span{font-variant-numeric:tabular-nums;min-width:52px}
#paths-dock button[data-timer-phase=paused]>span{opacity:.6}
/* Separators bound the whole section: no extra header gap or trailing gutter. */
body .paths-tool-window>header:has(.workspace-control-group){column-gap:0;padding-right:0}
/* The toolbar edges frame tabs; one vertical divider separates neighbors. */
.workspace-tabs{left:0;gap:0}
.workspace-tab-list{gap:0;padding-inline:8px;margin-inline:-8px;isolation:isolate}
.workspace-tabs .workspace-home-tab{position:relative;z-index:2;background-color:var(--workspace-chrome)}
.workspace-tabs button{height:100%;border:0;border-right:1px solid var(--workspace-rule);border-radius:0;box-shadow:none;box-sizing:border-box}
.workspace-tabs button[aria-current=true]{position:relative;z-index:1;background-color:var(--workspace-background);background-image:linear-gradient(var(--workspace-rule),var(--workspace-rule));background-size:1px calc(100% - 8px);background-position:right top;background-repeat:no-repeat;background-origin:border-box;border-right-color:transparent;box-shadow:0 1px 0 var(--workspace-background)}
.workspace-tabs button[aria-current=true]::before,.workspace-tabs button[aria-current=true]::after{content:"";position:absolute;bottom:0;width:8px;height:8px;pointer-events:none}
.workspace-tabs button[aria-current=true]::before{left:-8px;background:radial-gradient(circle at left top,transparent 7px,var(--workspace-rule) 7px 8px,var(--workspace-background) 8px)}
.workspace-tabs button[aria-current=true]::after{right:-8px;background:radial-gradient(circle at right top,transparent 7px,var(--workspace-rule) 7px 8px,var(--workspace-background) 8px)}
@media(hover:hover) and (pointer:fine){.workspace-tabs{height:36px}}
/* Navigation, sizing and lifecycle share the same outer control gutters. */
body .paths-tool-window>header .workspace-navigation-controls{border-left:0;gap:4px}
body[data-workspace-phone] .workspace-navigation-controls:not(:has(:is(.workspace-view,.workspace-paper):not([hidden]))){display:none}
@container(max-width:500px){.workspace-navigation-controls:not(:has(:is(.workspace-view,.workspace-paper):not([hidden]))){display:none}}

/* Tab contents use equal insets; hovering must not reveal chrome through the active page seam. */
.workspace-tabs button{padding-inline:12px;gap:8px}
.workspace-tabs button:is(:hover,:active,:focus-visible){opacity:1}
@media(hover:hover) and (pointer:fine){.workspace-tabs button:not([aria-current=true]):hover{--workspace-tab-fill:color-mix(in srgb,var(--ink) 6%,var(--workspace-chrome));background-color:var(--workspace-tab-fill)}}
/* Home keeps only quiet shortcuts to the full-screen views already open. */
body[data-workspace-home-tabs] .workspace-tabs{left:16px;top:max(8px,env(safe-area-inset-top));height:44px}
body[data-workspace-home-tabs] .workspace-tabs .workspace-home-tab,body[data-workspace-home-tabs] .workspace-tab-label{display:none}
body[data-workspace-home-tabs] .workspace-tab-list{padding:0;margin:0}
body[data-workspace-home-tabs] .workspace-tabs button{border:0;box-shadow:none;background:transparent;min-width:36px;padding-inline:8px;cursor:pointer}

body[data-workspace-home-tabs][data-workspace-phone] .workspace-tabs button{min-width:44px}

/* Composite the divider once so curved overlaps cannot darken its stroke. */
:root[data-workspace]{--workspace-rule:color-mix(in srgb,var(--ink) 16%,var(--workspace-chrome))}
.paths-tool-window>header{border-bottom-color:var(--workspace-rule)}
.paths-tool-window>header .workspace-control-group{border-left-color:var(--workspace-rule)}
.workspace-tabs button[draggable=true]{cursor:pointer}
body[data-tab-drag] .workspace-tabs button{cursor:grabbing}
.workspace-tab-drop{position:fixed;z-index:8000;pointer-events:none;width:2px;background:var(--ink)}
.workspace-tab-drop>*{display:none}
.workspace-tab-drop[data-mode=pair]{display:flex;align-items:center;justify-content:center;gap:6px;width:116px;padding:4px 8px;border:1px solid var(--workspace-rule);border-radius:6px;background:var(--workspace-chrome);color:var(--ink);font-size:11px;white-space:nowrap}
.workspace-tab-drop[data-mode=pair]>*{display:block}
.workspace-tab-drop svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}

.workspace-tab-label{max-width:240px;overflow:hidden;text-overflow:ellipsis}
.paths-tool-window>header .paths-tool-name{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(#paths-dock,.workspace-tabs,.workspace-pair-picker,.paths-tool-window>header) :is(button,a):focus-visible{text-decoration:none;outline:1px solid currentColor;outline-offset:-4px}
.workspace-pair-picker{position:fixed;z-index:500;display:flex;flex-direction:column;background:var(--workspace-background);color:var(--ink)}
.workspace-pair-picker>header{height:36px;flex:none;display:flex;justify-content:flex-end;background:var(--workspace-chrome);border-bottom:1px solid var(--workspace-rule)}
.workspace-pair-picker>header button{width:36px;height:36px;font-size:20px;line-height:1}
.workspace-pair-options{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:4px;padding:28px}
.workspace-pair-heading{margin:0 0 12px;font-size:12px;opacity:.6}
.workspace-pair-list{display:flex;flex-direction:column;gap:4px;flex:none;width:max-content;max-width:100%}
.workspace-pair-options button{display:flex;align-items:center;justify-content:flex-start;text-align:left;width:100%;gap:10px;min-height:44px;padding:10px 16px;font-size:15px;max-width:100%}

.workspace-title-dot{display:inline-block;padding-inline:clamp(2px,.3vw,5px);white-space:pre}
@container(max-width:500px){.workspace-title-dot{padding-inline:2px}}

/* The parent alone returns to the collection; current work stays plain text. */
.workspace-breadcrumb{display:flex;align-items:center;min-width:0;max-width:60%;margin-right:auto;overflow:hidden;white-space:nowrap}
.paths-tool-window>header .workspace-breadcrumb .paths-tool-name{flex:none;max-width:none;margin-right:0}
.workspace-current-title{min-width:0;overflow:hidden;text-overflow:ellipsis}
.workspace-tab-label,.workspace-tab-symbols{pointer-events:auto}
.workspace-title-parent{cursor:inherit}
.workspace-title-dot{flex:none}
.paths-tool-window[data-expanded] .workspace-breadcrumb,body[data-workspace-group] .workspace-breadcrumb{visibility:hidden;width:0;max-width:0;pointer-events:none}
@media(hover:hover){.workspace-tabs [aria-current=true] .workspace-title-parent:hover{text-decoration:underline;text-underline-offset:3px}}

.workspace-paper{position:relative;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding-inline:10px;font-size:11px;line-height:1.4;white-space:nowrap}
@container(max-width:500px){.workspace-paper{font-size:10px}}

.workspace-paper::before{content:'';position:absolute;left:3px;top:calc(50% - 1.5px);width:3px;height:3px;border-radius:50%;background:currentColor;opacity:0}
.workspace-paper[aria-pressed=true]::before{opacity:1}

.workspace-pair-options button svg{flex:none}

.workspace-tab-pair-mark{display:inline-block;flex:none;font-size:10px;line-height:1;opacity:.6;margin-inline:1px;pointer-events:none}
.workspace-tab-label:has(>.workspace-tab-pair-mark){display:inline-flex;align-items:center;gap:3px}
.workspace-tab-symbols>.workspace-tab-pair-mark{display:none}
body:is([data-workspace-home-tabs],[data-workspace-phone]) .workspace-tab-symbols>.workspace-tab-pair-mark{display:block}
body:is([data-workspace-home-tabs],[data-workspace-phone]) .workspace-tab-label{display:none}

/* Match the perceived weight of neighboring toolbar symbols, retaining targets. */
.paths-tool-full svg{width:17px;height:17px}
.paths-tool-expand[aria-pressed=true] svg{width:18px;height:18px}

/* One spacing contract for navigation, sizing and lifecycle sections.
   States change tokens; text controls never inherit an icon's fixed width. */
:root{--workspace-section-inset:8px;--workspace-control-gap:4px;--workspace-label-inset:12px;--workspace-strip-size:36px}
.paths-tool-window{--window-control-size:44px;--window-header-size:52px}
.paths-tool-window[data-expanded],body[data-workspace-group] .paths-tool-window{--window-control-size:36px;--window-header-size:var(--workspace-strip-size)}
body .paths-tool-window>header:has(.workspace-control-group){height:var(--window-header-size);min-height:var(--window-header-size);gap:0;padding:0 0 0 16px}
body .paths-tool-window>header .workspace-control-group{display:flex;flex:none;align-self:stretch;align-items:center;justify-content:center;height:auto;gap:var(--workspace-control-gap);padding:0 var(--workspace-section-inset);border-left:1px solid var(--workspace-rule)}
body .paths-tool-window>header .workspace-navigation-controls{margin-left:auto;border-left:0}
body .paths-tool-window>header .workspace-control-group>:is(button,a){display:grid;place-items:center;align-self:center;flex:none;box-sizing:border-box;width:var(--window-control-size);min-width:var(--window-control-size);height:var(--window-control-size);min-height:var(--window-control-size);padding:0;margin:0;border:0;line-height:1.4}
body .paths-tool-window>header .workspace-control-group>:is(button,a):not(:has(svg)){width:auto;padding-inline:var(--workspace-label-inset);white-space:nowrap}
@media(pointer:fine){@container(max-width:500px){body:not([data-workspace-phone]) .paths-tool-window>header{--window-control-size:36px}}}
@container(max-width:400px){.workspace-size-controls .workspace-arrange{display:none!important}}
@container(max-width:320px){.workspace-size-controls{display:none}}
@media(pointer:coarse){:root{--workspace-strip-size:44px}.paths-tool-window[data-expanded],body[data-workspace-group] .paths-tool-window{--window-control-size:44px}}
body[data-workspace-phone] .paths-tool-window{--window-control-size:44px;--window-header-size:44px}
.workspace-pair-picker>header{height:var(--workspace-strip-size);padding-inline:var(--workspace-section-inset);gap:var(--workspace-control-gap)}
.workspace-pair-picker>header button{width:var(--workspace-strip-size);height:var(--workspace-strip-size);padding:0}
#paths-tools-menu{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#paths-tools-menu .workspace-tool-group>button{padding:8px;min-height:72px}
/* Responsive visibility takes precedence over the shared button display rule. */
@container(max-width:500px){body .paths-tool-window>header .workspace-navigation-controls>.paths-tool-full{display:none}}
@container(max-width:320px){body .paths-tool-window>header .workspace-size-controls{display:none}}

/* Reuse the timer's existing tick; no second clock or animation loop. */
.workspace-timer-progress .workspace-timer-track{opacity:.15}
.workspace-timer-progress .workspace-timer-remaining{stroke-linecap:butt}
#paths-dock button[data-timer-phase=paused] .workspace-timer-progress{opacity:.6}

/* Personal retains one native Finder/reader surface with folder-level history. */
.workspace-folder-navigation{display:flex;flex:none;align-items:center;gap:4px;min-height:44px;padding:0 12px;border-bottom:1px solid var(--workspace-rule);font-size:12px}
.workspace-folder-navigation button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0}
.workspace-folder-navigation button:disabled{opacity:.3}
.workspace-folder-navigation svg{width:18px;height:18px}
.workspace-folder-navigation .workspace-folder-section{width:auto;padding-inline:12px;opacity:.6}

.paths-tool-window>header:has(.workspace-explore-controls){position:relative}.workspace-explore-controls{position:absolute;left:50%;top:0;bottom:0;transform:translateX(-50%);display:flex;align-items:center;gap:16px;font-size:12px}.workspace-explore-controls button{font:inherit;color:inherit;background:none;border:0;min-height:44px;padding:8px;opacity:.55}.workspace-explore-controls button[aria-pressed=true]{opacity:1}.workspace-explore-controls .workspace-explore-play{position:absolute;left:100%;right:auto;top:0;bottom:0;width:44px;padding:12px}.workspace-explore-play svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.workspace-explore-controls[hidden]{display:none}

/* Home stays opaque above scrolling tabs, with the first active tab's native join. */
.workspace-tabs:not([data-tab-scrolled]):has(.workspace-tab-list>button:first-child[aria-current=true]) .workspace-home-tab::after{content:'';position:absolute;right:-1px;bottom:-1px;width:8px;height:8px;pointer-events:none;background:radial-gradient(circle at left top,var(--workspace-tab-fill,var(--workspace-chrome)) 7px,var(--workspace-rule) 7px 8px,var(--workspace-background) 8px)}

/* Fullscreen pointer work uses the full height. Revealing the dock overlays it. */
.workspace-dock-edge{position:fixed;z-index:5500;left:0;right:0;bottom:0;height:8px}
body[data-dock-auto-hide]>.paths-footer{bottom:0;left:50%;right:auto;width:max-content;max-width:calc(100% - 24px);padding:6px 28px max(6px,env(safe-area-inset-bottom));background:transparent;isolation:isolate;transform:translate(-50%,100%);opacity:0;pointer-events:none;transition:transform 180ms ease,opacity 180ms ease}
body[data-dock-auto-hide]:is([data-dock-revealed],:has(#paths-tools-menu:not([hidden])))>.paths-footer{transform:translate(-50%,0);opacity:1}
body[data-dock-auto-hide]:not([data-dock-revealed]):not(:has(#paths-tools-menu:not([hidden]))) #paths-dock{pointer-events:none}
body[data-sketch-focus]>.paths-footer,body[data-sketch-focus]>.workspace-tabs,body[data-sketch-focus] [data-tool-window=sketch]>header{display:none!important}
body[data-sketch-focus] [data-tool-window=sketch]{height:100dvh!important;border:0}
.workspace-folder-navigation .workspace-notes-view{margin-left:auto;padding-inline:12px;font-size:12px;opacity:.6}
.workspace-folder-navigation .workspace-notes-view[data-notes-view=slideshow]{opacity:1}
@media(prefers-reduced-motion:reduce){body[data-dock-auto-hide]>.paths-footer{transition:none}}

/* A rising notch hugs only the dock, leaving the surrounding canvas unobscured. */
body[data-dock-auto-hide]>.paths-footer::before{content:'';position:absolute;inset:0 -12px;z-index:-1;pointer-events:none;background:var(--workspace-background,var(--paper));--dock-notch:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 56' preserveAspectRatio='none'%3E%3Cpath d='M0 56Q12 56 12 44V12Q12 0 24 0H216Q228 0 228 12V44Q228 56 240 56Z'/%3E%3C/svg%3E");-webkit-mask:var(--dock-notch) center/100% 100% no-repeat;mask:var(--dock-notch) center/100% 100% no-repeat}
/* Only fullscreen pointer Sketch swaps the host bar for its native canvas header. */
.workspace-header-edge{position:fixed;z-index:7500;left:0;right:0;top:0;height:8px}
body[data-sketch-header-auto] [data-tool-window=sketch]>header{position:absolute!important;z-index:40;top:0;left:0;right:0;transform:translateY(-100%);opacity:0;transition:transform 180ms ease,opacity 180ms ease}
body[data-sketch-header-auto]>.workspace-tabs{transform:translateY(-100%);opacity:0;transition:transform 180ms ease,opacity 180ms ease}
body[data-sketch-header-auto][data-sketch-header-revealed] :is([data-tool-window=sketch]>header,.workspace-tabs){transform:none;opacity:1}
@media(hover:hover) and (pointer:fine){body[data-desktop]:not([data-workspace-phone]) .workspace-folder-navigation{min-height:32px;height:32px;font-size:11px}body[data-desktop]:not([data-workspace-phone]) .workspace-folder-navigation button{min-height:32px;min-width:32px}body[data-desktop]:not([data-workspace-phone]) .workspace-folder-navigation svg{width:16px;height:16px}body[data-desktop]:not([data-workspace-phone]) .workspace-folder-navigation .workspace-notes-view{font-size:11px}}
@media(prefers-reduced-motion:reduce){body[data-sketch-header-auto] :is([data-tool-window=sketch]>header,.workspace-tabs){transition:none}}

/* The pinned Home surface must carry the same bottom rule as the host header. */
body[data-workspace-expanded] .workspace-tabs .workspace-home-tab{border-bottom:1px solid var(--workspace-rule)}

/* A closed, softly rounded active tab, seated into the page below. Chrome
   shows around its upper corners; touch targets retain their full height. */
body[data-workspace-expanded] .workspace-tabs button[aria-current=true]{
 height:100%;
 border:1px solid var(--workspace-rule);border-bottom:0;border-radius:8px 8px 0 0;
 background-image:none;
}

/* The preceding inactive divider must end at the active tab's curved join. */
.workspace-tab-list>button:has(+button[aria-current=true]){border-right-color:transparent}
.workspace-tabs:not([data-tab-scrolled]):has(.workspace-tab-list>button:first-child[aria-current=true]) .workspace-home-tab{border-right-color:transparent}

/* Match the first tab's 1px closed border, so Home paints the same S join. */
body[data-workspace-expanded] .workspace-tabs:not([data-tab-scrolled]):has(.workspace-tab-list>button:first-child[aria-current=true]) .workspace-home-tab::after{right:-2px}

/* Hover follows the outside of the neighboring active tab's top corners.
   The active tab keeps ownership of its outline and lower outward curves. */
.workspace-tabs button:not([aria-current=true]){position:relative}
@media(hover:hover) and (pointer:fine){
 body[data-workspace-expanded] .workspace-tab-list>button:not([aria-current=true]):hover:has(+button[aria-current=true])::after,
 body[data-workspace-expanded] .workspace-tabs:not([data-tab-scrolled]):has(.workspace-tab-list>button:first-child[aria-current=true]) .workspace-home-tab:hover::before{content:'';position:absolute;top:0;right:-9px;width:8px;height:8px;pointer-events:none;background:radial-gradient(circle at right bottom,transparent 8px,var(--workspace-tab-fill) 8px)}
 body[data-workspace-expanded] .workspace-tab-list>button[aria-current=true]+button:hover::before{content:'';position:absolute;top:0;left:-8px;width:8px;height:8px;pointer-events:none;background:radial-gradient(circle at left bottom,transparent 8px,var(--workspace-tab-fill) 8px)}
}
