/* The landscape flows into a compact, shared-width workspace footer. */
.shell{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;min-width:0}
.shell>.topbar,.shell>.demo-bar{flex-shrink:0}
.shell>.page{width:100%;flex:1 0 auto;margin:0 auto;min-width:0}
.workspace-footer{--footer-gutter:37px;--muted:color-mix(in srgb,var(--ink) 70%,var(--bg));width:100%;max-width:none;margin:0;padding:0;flex:none;min-width:0}
.world-panel.world-footer-scene{position:relative;background:transparent;border:0;border-radius:0;overflow:visible;box-shadow:none}
.world-footer-scene>.forest-stage{height:clamp(280px,22vw,340px);margin:0;min-width:0;border:0;border-radius:0;background:transparent;overflow:hidden}
.world-footer-scene .world-canvas{display:block;width:100%;height:100%;background:transparent;pointer-events:none}
.world-footer-scene .world-beginning{top:22%;left:50%;right:auto;bottom:auto;transform:translateX(-50%);width:min(440px,calc(100% - 48px));max-width:none;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;text-align:center;color:var(--ink);text-shadow:none}
.world-footer-scene .world-beginning>span{font-size:clamp(20px,2vw,26px);line-height:1.3;font-weight:400;letter-spacing:-.4px}
.world-footer-scene .world-beginning>p{max-width:340px;margin:8px auto 0;font-size:12px;line-height:1.7;color:var(--muted);opacity:1}
.world-footer-scene .world-projects{left:max(var(--footer-gutter),calc(50% - 713px));bottom:12px;max-width:calc(100% - max(74px,calc(100% - 1426px)) - 156px);gap:8px;padding:4px 0;scrollbar-width:thin}
.world-footer-scene .tree-chip{flex:0 0 auto;min-width:0;min-height:40px;font-size:12px;padding:7px 12px;background:color-mix(in srgb,var(--bg) 88%,transparent)!important;border:1px solid var(--line)!important;color:var(--green)!important;box-shadow:none;backdrop-filter:none;max-width:220px;white-space:nowrap;border-radius:10px}
.world-footer-scene .tree-chip>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.world-footer-scene .tree-chip:hover{background:var(--sage)!important;border-color:var(--green)!important}
.world-footer-scene .forest-zoom{right:max(var(--footer-gutter),calc(50% - 713px));bottom:16px;display:flex;flex-direction:row;align-items:center;gap:0;padding:2px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.world-footer-scene .forest-zoom button{width:40px;height:40px;border:0;border-radius:9px;background:transparent;color:var(--green);box-shadow:none;font-size:22px;display:grid;place-items:center}
.world-footer-scene .forest-zoom button:hover:not(:disabled){background:var(--sage)}
.world-footer-scene .forest-zoom button:disabled{opacity:.35;cursor:default}
.world-footer-scene [data-world-zoom]{width:42px;text-align:center;font-size:11px;font-variant-numeric:tabular-nums;color:var(--ink)}
.world-footer-scene>.world-footer{max-width:1500px;margin:0 auto;padding:14px var(--footer-gutter) 22px;display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,240px) auto;align-items:center;gap:24px 32px;background:transparent;border:0}
.world-footer-scene .world-identity{min-width:0}
.world-eyebrow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--muted);margin-bottom:3px}
.world-eyebrow>small{font-size:12px;line-height:1.6}
.world-footer-scene .world-identity h2{margin:0;font-size:21px;line-height:1.35;font-weight:650;letter-spacing:-.45px;overflow-wrap:anywhere}
.world-footer-scene .world-eyebrow .weather-pill{padding:0;gap:5px;font-size:12px;line-height:1.6;background:none;border:0;border-radius:0;color:var(--muted)}
.world-footer-scene .weather-pill .icon{width:15px;height:15px}
.world-footer-scene .world-growth-summary{display:flex;flex-wrap:wrap;align-items:center;gap:2px 18px;margin-top:5px;font-size:12px;line-height:1.6;color:var(--ink)}
.world-growth-summary>span,.world-growth-summary>a{display:inline-flex;align-items:center;gap:6px;min-height:30px}
.world-growth-summary .icon{width:16px;height:16px;color:var(--green);flex:none}
.world-growth-summary>a{color:var(--green);border-bottom:1px solid transparent}
.world-growth-summary>a:hover{border-color:currentColor}
.world-growth-summary>a>.icon:last-child{width:13px;height:13px}
.world-level{min-width:0;color:var(--ink)}
.world-level-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px}
.world-level-heading strong{font-weight:600}
.world-level-heading>span{font-variant-numeric:tabular-nums;color:var(--green);font-weight:650}
.world-level .progress-track{min-width:0;height:6px;margin:9px 0 6px;border-radius:5px;background:var(--line);overflow:hidden}
.world-level .progress-track>i{display:block;height:100%;border-radius:inherit;background:var(--green)}
.world-level>small{font-size:11px;color:var(--muted)}
.world-footer-scene .world-settings-button{min-height:44px;padding:10px 14px;font-size:12px;gap:8px;white-space:nowrap;background:transparent;border:1px solid var(--line);box-shadow:none;color:var(--green);border-radius:10px}
.world-footer-scene .world-settings-button:hover{background:var(--sage);border-color:var(--green)}
.workspace-footer :is(button,a):focus-visible{outline:2px solid var(--green);outline-offset:3px}
.workspace-meta{max-width:1500px;margin:0 auto;padding:0 var(--footer-gutter) 12px;display:flex;align-items:center;gap:12px 28px;position:relative}
.workspace-meta:before{content:'';position:absolute;top:0;left:var(--footer-gutter);right:var(--footer-gutter);height:1px;background:var(--line)}
.workspace-links{min-width:0;flex:1}
.workspace-meta .legal-links{justify-content:flex-start;gap:0 20px;padding:9px 0 0;margin:0;font-size:11px;line-height:1.5}
.workspace-meta .legal-links>a,.workspace-meta .legal-links>button{display:inline-flex;align-items:center;min-height:36px;font-size:inherit;color:var(--muted);padding:4px 0;white-space:normal;text-align:left}
.workspace-meta .legal-links>a:hover,.workspace-meta .legal-links>button:hover{color:var(--green)}
.workspace-sync{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;max-width:330px;padding-top:9px;font-size:11px;line-height:1.6;color:var(--muted)}
.workspace-sync .sync-dot{width:6px;height:6px;flex:none;background:var(--green)}
.workspace-sync[data-state=pending] .sync-dot{background:#b38332}
.workspace-sync[data-state=offline] .sync-dot{background:var(--muted)}
.workspace-sync .text-link{font-size:inherit;min-height:36px;text-decoration:underline}
.world-weather-source{margin:0 0 6px;font-size:10px;color:var(--muted)}
.world-weather-source>a{text-decoration:underline;text-underline-offset:2px}
body.dark .world-panel.world-footer-scene,body.dark .world-footer-scene>.world-footer{background:transparent;border:0}
body.dark .world-footer-scene>.forest-stage{background:transparent!important}
body.dark .world-footer-scene .world-beginning{background:none;border:0;box-shadow:none;color:var(--ink);text-shadow:none}
.world-footer-empty{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:270px;padding:30px 22px 55px;background:transparent;text-align:center}
.world-footer-empty:before{content:'';position:absolute;z-index:-1;inset:auto -15% -75px;height:155px;border-radius:50% 50% 0 0;background:linear-gradient(var(--sage),transparent)}
.world-footer-empty>.icon{width:28px;height:28px;margin-bottom:3px;color:var(--green)}
.world-footer-empty h2{font-size:18px;line-height:1.4}
.world-footer-empty p{max-width:400px;font-size:12px;color:var(--muted);line-height:1.7}
.world-footer-empty .button{margin-top:5px;font-size:12px}
@media(max-width:1200px){.workspace-footer{--footer-gutter:25px}.world-footer-scene>.world-footer{gap:20px}.world-footer-scene .world-projects{max-width:calc(100% - 206px)}.workspace-meta{align-items:flex-start}.workspace-sync{flex-shrink:0;max-width:220px;padding-top:18px}}
@media(max-width:980px){.world-footer-scene>.world-footer{grid-template-columns:minmax(0,1fr) 200px}.world-footer-scene .world-settings-button{grid-column:2;justify-self:start}.world-footer-scene .world-identity{grid-row:1/3;align-self:start}.workspace-meta{flex-wrap:wrap;gap:0}.workspace-links{flex-basis:100%}.workspace-sync{padding-top:0;justify-content:flex-start;max-width:none;flex-basis:100%;min-height:30px}}
@media(max-width:760px){
 .workspace-footer{--footer-gutter:18px}
 .world-footer-scene>.forest-stage{height:270px}
 .world-footer-scene .world-beginning{top:19%;width:calc(100% - 40px)}
 .world-footer-scene .world-beginning>p{max-width:270px;font-size:12px}
 .world-footer-scene .world-projects{bottom:12px;max-width:calc(100% - 192px)}
 .world-footer-scene .tree-chip{min-height:44px;max-width:175px;font-size:12px}
 .world-footer-scene .forest-zoom button{width:44px;height:44px}
 .world-footer-scene>.world-footer{grid-template-columns:minmax(0,1fr);gap:16px;padding-top:12px;padding-bottom:20px}
 .world-footer-scene .world-identity{grid-row:auto}
 .world-footer-scene .world-identity h2{font-size:22px}
 .world-footer-scene .world-growth-summary{gap:0 14px;font-size:12px}
 .world-growth-summary>a{min-height:40px}
 .world-footer-scene .world-settings-button{grid-column:auto;justify-self:stretch;min-height:44px}
 .world-level-heading{font-size:13px}
 .world-level>small{font-size:12px}
 .workspace-meta .legal-links{gap:0 18px;font-size:12px}
 .workspace-meta .legal-links>a,.workspace-meta .legal-links>button{min-height:44px}
 .workspace-sync{font-size:11px;min-height:36px}
 .world-footer-empty{min-height:240px;padding-inline:18px}
}

/* Keep the world selector visible alongside the task day and search controls. */
.topbar:has(.header-world-picker){gap:15px}
.topbar:has(.header-world-picker) .top-actions{min-width:0;gap:12px}
.header-world-picker{display:flex;align-items:center;gap:6px;min-width:0;max-width:180px;flex:0 1 180px;padding:3px 5px 3px 9px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.header-world-picker>label{display:flex;align-items:center;justify-content:center;flex:none;color:var(--green)}
.header-world-picker>label>.icon,.header-world-picker>label>svg{width:15px;height:15px;flex:none}
.header-world-picker>select{width:100%;min-width:0;max-width:100%;height:28px;padding:4px 18px 4px 0;border:0;border-radius:4px;background:transparent;font-size:11px;font-weight:600;color:var(--green);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.header-world-picker>select:disabled{cursor:default;opacity:.6}
.header-world-picker:focus-within{border-color:var(--green)}

.overview-workspace{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:22px;align-items:start}
.overview-summary{min-width:0}
.overview-summary>.stats-row{margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.overview-summary>.dashboard-bottom{grid-template-columns:minmax(0,1fr);margin-top:20px}
.overview-summary .rhythm-panel{padding:18px 21px}
.overview-summary .weekly-chart{height:105px;margin-top:14px}
.overview-summary .rhythm-divider{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.overview-summary .quote{margin:0}
.overview-workspace>.focus-panel{position:sticky;top:20px}

@media(min-width:1500px){.overview-workspace{grid-template-columns:minmax(0,1fr) 300px}.overview-summary>.stats-row{grid-template-columns:repeat(4,minmax(0,1fr))}.overview-summary .stat-card{gap:9px;padding:15px 12px}.overview-summary .stat-number{font-size:21px}.overview-summary .stat-icon{width:27px;height:27px}.overview-summary .stat-label{font-size:9px}}
@media(max-width:1280px){.topbar:has(.header-world-picker) .top-divider{display:none}.topbar:has(.header-world-picker) .breadcrumbs>span{display:none}.topbar:has(.header-world-picker) .search-box input{width:115px}.header-world-picker{max-width:150px;flex-basis:150px}.topbar:has(.header-world-picker) .task-date-trigger>small{display:none}}
@media(max-width:1200px){.overview-workspace{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.overview-summary .stat-label{white-space:normal}.overview-summary .stat-number{font-size:21px}}
@media(max-width:980px){.topbar:has(.header-world-picker){gap:10px}.topbar:has(.header-world-picker) .top-actions{gap:8px}.header-world-picker{max-width:135px;flex-basis:135px}.overview-workspace{grid-template-columns:minmax(0,1fr) 235px;gap:16px}.overview-summary .stat-card{padding:14px 11px}.overview-summary .stat-icon{display:none}}
@media(max-width:760px){
  .topbar:has(.header-world-picker){display:grid;grid-template-columns:35px minmax(0,1fr);align-items:start;gap:8px;height:auto;min-height:61px;padding:10px 18px}
  .topbar:has(.header-world-picker) .breadcrumbs{padding-top:1px}
  .topbar:has(.header-world-picker) .breadcrumbs>strong{display:none}
  .topbar:has(.header-world-picker) .top-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 8px;width:100%;align-items:center}
  .topbar .header-world-picker{order:0;grid-column:1;grid-row:1;width:100%;max-width:none;padding-block:2px}
  .topbar:has(.header-world-picker) .top-actions>[data-action=reminders]{grid-column:2;grid-row:1;justify-self:end;width:32px;height:32px}
  .topbar:has(.header-world-picker) .search-box{grid-column:1;grid-row:2;min-width:0;width:100%;gap:6px}
  .topbar:has(.header-world-picker) .search-box input{width:100%;min-width:0;font-size:10px}
  .topbar:has(.header-world-picker) #task-date-header{grid-column:2;grid-row:2;justify-self:end}
  .topbar:has(.header-world-picker) #task-date-header:has(.date-pill){display:none}
  .topbar:has(.header-world-picker) .task-date-trigger{gap:4px;padding-inline:4px;font-size:10px}
  .topbar:has(.header-world-picker) .task-date-step{width:21px}
  .topbar:has(.header-world-picker) .task-date-trigger>svg{display:none}
  .topbar:has(.header-world-picker) .task-date-popover{right:-24px}
  .overview-workspace{grid-template-columns:minmax(0,1fr);gap:18px}
  .overview-workspace>.focus-panel{position:static;top:auto}
  .overview-summary>.stats-row{gap:10px}
  .overview-summary .stat-card{padding:15px;gap:10px}
  .overview-summary .stat-icon{display:grid}
  .overview-summary .stat-number{font-size:24px}
  .overview-summary>.dashboard-bottom{margin-top:16px}
}
@media(max-width:390px){.topbar:has(.header-world-picker){padding-inline:12px;column-gap:6px}.topbar:has(.header-world-picker) .top-actions{column-gap:6px}.topbar:has(.header-world-picker) .search-box input{width:100%}}
@media(max-width:520px){
  .overview-summary .stat-card{padding:13px;gap:0}
  .overview-summary .stat-icon{display:none}
  .overview-summary .stat-card>div:not(.stat-icon){min-width:0;max-width:100%}
  .overview-summary .stat-label{font-size:10px;line-height:1.55;white-space:normal;overflow-wrap:anywhere}
  .overview-summary .stat-number{font-size:clamp(19px,5.6vw,22px);letter-spacing:0}
  .overview-summary .stat-number small:empty{display:none}
}
