/* Landing shell and creation wizard layout. Shared controls live in ds-components.css. */
body:has(#home-view:not([hidden])){background:var(--ds-color-surface)}
.home-header{display:flex;align-items:center;gap:18px;padding:28px 40px;min-height:104px}
.home-main{min-height:calc(100svh - 104px);display:grid;align-content:center;justify-items:center;padding:64px 24px 144px}
.home-main:focus{outline:none}
.home-content{width:100%;max-width:860px;text-align:center}
.home-content h1{font-size:var(--ds-text-hero);line-height:1.14;font-weight:400;margin:0 0 28px;overflow-wrap:anywhere}
.home-content h1 span{display:block}
.home-description{font-size:var(--ds-text-xl);line-height:1.5;font-weight:400;margin:0 0 44px;color:var(--ds-color-text-muted)}
#site-url-form{width:100%;max-width:568px;margin:0 auto}
.site-shell .url-submit{min-width:152px}
.url-submit span{position:relative;display:block;width:24px;height:24px;font-size:0}
.url-submit span::before{content:"";position:absolute;left:0;top:11px;width:23px;height:2px;background:currentColor}
.url-submit span::after{content:"";position:absolute;right:1px;top:6px;width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}
.url-help{font-size:var(--ds-text-md);color:var(--ds-color-text-muted);margin:14px 0 0}
.url-message{font-size:var(--ds-text-base);line-height:1.5;min-height:48px;margin:16px 0 0;overflow-wrap:anywhere}
.url-message:empty{display:none}
.creation-flow{width:100%;min-height:inherit}
.creation-scene{position:relative;display:grid;min-height:calc(100svh - 192px);place-items:center;padding:48px 24px}
.creation-scene[hidden]{display:none}
.creation-scene.is-active{animation:creation-arrive .48s ease both}
@keyframes creation-arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.creation-scene-inner{width:min(100%,900px);margin:0 auto;text-align:left}
.creation-scene-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.creation-heading{max-width:820px;margin:8px 0 28px;font-size:var(--ds-text-hero);font-weight:400;line-height:1.12;overflow-wrap:anywhere}
.creation-lede{max-width:680px;margin:0 0 26px;color:var(--ds-color-text-muted);font-size:var(--ds-text-lg);line-height:1.55;overflow-wrap:anywhere}
.creation-error{max-width:680px;margin:16px 0;color:var(--ds-color-danger);font-size:var(--ds-text-base);line-height:1.5;overflow-wrap:anywhere}
.creation-error[hidden]{display:none}
.creation-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:28px}
.creation-actions>.retry-field{display:flex;align-items:center;flex:1 1 223px;max-width:223px}
.creation-actions>.retry-field>input{flex:1;min-width:0;width:100%}
.creation-choice-row{display:flex;align-items:stretch;gap:12px;flex-wrap:wrap;max-width:760px}
.creation-choice{min-width:160px;min-height:112px}
.creation-choice .ds-choice-recommendation[hidden]{display:none}
.plan-choice-disabled{position:relative;display:flex;max-width:100%;cursor:not-allowed}
.plan-choice-disabled>.creation-choice{pointer-events:none;width:100%}
.plan-choice-tooltip{display:none;position:absolute;z-index:20;left:0;top:calc(100% - 2px);width:280px;max-width:calc(100vw - 48px);padding:14px 16px;background:var(--ds-color-surface);border:1px solid var(--ds-color-border-control);border-radius:var(--ds-radius-md);box-shadow:var(--ds-shadow-md);font-size:var(--ds-text-md);line-height:1.5;color:var(--ds-color-text-muted)}
.plan-choice-tooltip a{display:block;margin-top:8px;color:var(--ds-color-brand)}
.plan-choice-disabled:hover>.plan-choice-tooltip,.plan-choice-disabled:focus-within>.plan-choice-tooltip{display:block}
.plan-choice-disabled:focus-visible{outline:var(--ds-focus-ring);outline-offset:var(--ds-focus-offset);border-radius:var(--ds-radius-xs)}
@media(max-width:600px){.plan-choice-disabled{display:block}.plan-choice-tooltip{display:block;position:relative;top:auto;width:100%;max-width:100%;box-shadow:none;margin-top:4px}}
.creation-note{max-width:620px;margin:10px 0;color:var(--ds-color-text-muted);font-size:var(--ds-text-md);line-height:1.5}
.creation-help{position:fixed;z-index:30;inset:0 0 0 auto;width:min(420px,100vw);height:100dvh;padding:28px;border:0;border-left:1px solid var(--ds-color-line);overflow:auto;display:block;border-radius:0}
.creation-help[hidden]{display:none}
.creation-help header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.creation-help h2{margin:0;font-size:var(--ds-text-xl);font-weight:500}
.creation-help p{font-size:var(--ds-text-base);line-height:1.65;color:var(--ds-color-text-muted)}
.creation-help-button{flex:0 0 var(--ds-control-height)}
.creation-help header button{flex:0 0 var(--ds-control-height)}
.creation-atlas{display:flex;align-items:center;gap:12px;margin-bottom:28px;color:var(--ds-color-text-muted);font-size:var(--ds-text-md)}
.atlas-placeholder-mark{display:grid;width:52px;height:52px;place-items:center;border:1px solid var(--ds-color-border-control);border-radius:50%;color:var(--ds-color-brand);font-size:var(--ds-text-xl);font-weight:500}
.creation-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,148px),1fr));gap:14px 24px;margin:28px 0}
.captured-pages{display:grid;gap:0;max-height:26svh;margin:0;margin-bottom:15px;padding:0;overflow:auto;list-style:none}
.captured-pages li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 16px;padding:10px 0;border-bottom:1px solid var(--ds-color-line);font-size:var(--ds-text-md);overflow-wrap:anywhere}
.captured-pages li>span:first-child{min-width:0}
.captured-pages li small{grid-column:1/-1;color:var(--ds-color-text-muted);font-size:var(--ds-text-sm);overflow-wrap:anywhere}
.capture-links{display:flex;flex-wrap:wrap;gap:8px}
.capture-links a{font-size:var(--ds-text-sm);white-space:nowrap}
.creation-log{margin-top:18px;color:var(--ds-color-text-muted);font-size:var(--ds-text-md)}
.creation-log summary{width:max-content;min-height:36px;cursor:pointer}
.creation-log ol{max-height:24svh;margin:8px 0;padding-left:22px;overflow:auto}
.creation-log li{padding:4px 0;overflow-wrap:anywhere}
.project-name-dialog{width:min(560px,calc(100vw - 32px));padding:30px}
.project-name-dialog h2{margin:8px 0 12px;font-size:var(--ds-text-2xl);font-weight:400;line-height:1.2}
.project-name-dialog p{color:var(--ds-color-text-muted);line-height:1.55}
.project-name-dialog label{display:block;margin:18px 0 6px;font-size:var(--ds-text-md);font-weight:500}
.project-name-dialog .creation-actions{justify-content:flex-end}
@media(prefers-reduced-motion:reduce){.creation-scene.is-active{animation:none!important}}
@media(max-width:600px){.home-header{padding:20px;gap:12px;min-height:88px}.home-main{min-height:calc(100svh - 88px);padding:24px 14px 32px}.home-content h1{font-size:var(--ds-text-display);line-height:1.18;margin-bottom:24px}.home-description{font-size:var(--ds-text-lg);margin-bottom:32px}.site-shell .url-submit{min-width:126px}.creation-scene{min-height:calc(100svh - 120px);padding:28px 8px}.creation-heading{font-size:var(--ds-text-display);line-height:1.15;margin-bottom:22px}.creation-lede{font-size:var(--ds-text-base)}.creation-choice-row{display:grid;grid-template-columns:1fr;width:100%;gap:8px}.creation-choice{width:100%;min-width:0;min-height:66px;font-size:var(--ds-text-lg)}.creation-help{padding:20px}.creation-actions{gap:8px}.creation-counts{gap:18px}.creation-atlas{margin-bottom:18px}.atlas-placeholder-mark{width:44px;height:44px}.creation-log ol{max-height:20svh}.project-name-dialog{padding:22px}.project-name-dialog h2{font-size:var(--ds-text-2xl)}}
.home-main:has(#scene-home:not([hidden])) .creation-flow{min-height:0}
#scene-home{min-height:0;padding:0}
#scene-home .home-content{max-width:1320px;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);gap:64px;align-items:center;text-align:left;margin:0 auto}
.home-illustration{display:block;width:100%;height:auto;aspect-ratio:700/510;object-fit:contain}
.home-copy{min-width:0}
#scene-home h1{font-family:var(--ds-font-heading);font-size:var(--ds-text-hero);font-weight:700;line-height:1.06;margin:0 0 200px;color:var(--ds-color-text)}
#scene-home .home-description{font-size:var(--ds-text-xl);line-height:1.5;color:var(--ds-color-text-muted);margin:0 0 32px;max-width:650px}
#scene-home #site-url-form{max-width:620px;margin:0}
#scene-home .url-message{min-height:24px;margin-top:12px}
@media(max-width:1200px){#scene-home .home-content{gap:40px}#scene-home h1{font-size:var(--ds-text-hero)}}
@media(max-width:900px){
 .home-main:has(#scene-home:not([hidden])){padding:24px 28px 48px}
 #scene-home .home-content{grid-template-columns:minmax(0,1fr);gap:28px;max-width:640px}
 .home-copy{grid-row:1}
 .home-illustration{width:min(100%,440px);justify-self:center}
 #scene-home h1{font-size:var(--ds-text-hero)}
}
@media(max-width:600px){
 .home-main:has(#scene-home:not([hidden])){padding:20px 20px 32px;min-height:calc(100svh - 88px)}
 #scene-home .home-content{gap:20px}
 #scene-home h1{font-size:var(--ds-text-display);margin-bottom:20px}
 #scene-home .home-description{font-size:var(--ds-text-lg);margin-bottom:24px}
 .home-illustration{max-width:330px}
}
@media(max-width:360px){#scene-home h1{font-size:var(--ds-text-display)}}
#home-view:has(:is(#scene-exploring,#scene-arrival):not([hidden])){height:100dvh;display:flex;flex-direction:column}
#home-view:has(:is(#scene-exploring,#scene-arrival):not([hidden])) .home-header{flex:none}
.home-main:has(:is(#scene-exploring,#scene-arrival):not([hidden])){flex:1;min-height:0;display:block;padding:20px 32px 24px}
.home-main:has(:is(#scene-exploring,#scene-arrival):not([hidden])) .creation-flow{height:100%;min-height:0}
:is(#scene-exploring,#scene-arrival){height:100%;min-height:0;padding:0;display:block}
:is(#scene-exploring,#scene-arrival) .creation-live-scene{width:min(100%,1160px);height:100%;display:grid;grid-template-rows:auto auto minmax(120px,1fr) auto;gap:16px;min-width:0}
:is(#scene-exploring,#scene-arrival) .creation-atlas{margin:0 0 8px;gap:9px}
:is(#scene-exploring,#scene-arrival) .atlas-placeholder-mark{width:32px;height:32px;font-size:var(--ds-text-lg)}
:is(#scene-exploring,#scene-arrival) .eyebrow{margin-bottom:4px}
:is(#scene-exploring,#scene-arrival) .creation-heading{font-size:var(--ds-text-display);line-height:1.2;margin:0 0 8px;max-width:none}
:is(#scene-exploring,#scene-arrival) .creation-lede{font-size:var(--ds-text-base);line-height:1.4;margin:0;max-width:none}
:is(#scene-exploring,#scene-arrival) .creation-counts{grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;margin:0;padding:14px 0;border-block:1px solid var(--ds-color-line)}
:is(#scene-exploring,#scene-arrival) .creation-counts dt{overflow-wrap:anywhere}
.creation-activity{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;min-height:0}
.creation-pages{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;min-width:0}
.creation-pages h2{font-size:var(--ds-text-base);font-weight:500;line-height:36px;margin:0 0 8px}
:is(#scene-exploring,#scene-arrival) .captured-pages{max-height:none;min-height:0;overscroll-behavior:contain}
:is(#scene-exploring,#scene-arrival) .captured-pages li{grid-template-columns:minmax(0,1fr);gap:4px;padding:9px 0}
#scene-exploring .creation-log{display:block;height:100%;min-height:0;min-width:0;margin:0}
#scene-exploring .creation-log:not([open]){display:block}
#scene-exploring .creation-log::details-content{height:calc(100% - 36px);min-height:0}
#scene-exploring .creation-log summary{font-size:var(--ds-text-base);font-weight:500;color:var(--ds-color-text);width:auto}
#scene-exploring .creation-log ol{height:calc(100% - 8px);min-height:0;max-height:none;margin:8px 0 0;overscroll-behavior:contain}
#scene-exploring .creation-log li time{margin-right:8px;white-space:nowrap}
:is(#scene-exploring,#scene-arrival) .creation-actions{margin:0;padding-top:12px;border-top:1px solid var(--ds-color-line)}
@media(max-width:1000px){:is(#scene-exploring,#scene-arrival) .creation-counts{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 16px}}
@media(max-width:600px){
 .home-main:has(:is(#scene-exploring,#scene-arrival):not([hidden])){padding:12px 16px 16px}
 :is(#scene-exploring,#scene-arrival) .creation-live-scene{gap:12px;grid-template-rows:auto auto minmax(160px,1fr) auto}
 :is(#scene-exploring,#scene-arrival) .creation-heading{font-size:var(--ds-text-2xl)}
 :is(#scene-exploring,#scene-arrival) .creation-counts{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 0;gap:6px 16px}
 .creation-activity{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:12px}
 .creation-activity:has(.creation-log[open]){grid-template-rows:minmax(0,1fr) minmax(0,1fr)}
 :is(#scene-exploring,#scene-arrival) .creation-actions{padding-top:10px}
}
@media(max-height:650px){
 #home-view:has(:is(#scene-exploring,#scene-arrival):not([hidden])){height:auto;min-height:100dvh}
 .home-main:has(:is(#scene-exploring,#scene-arrival):not([hidden])){height:auto}
 .home-main:has(:is(#scene-exploring,#scene-arrival):not([hidden])) .creation-flow{height:auto}
 :is(#scene-exploring,#scene-arrival){height:auto;min-height:0}
 :is(#scene-exploring,#scene-arrival) .creation-live-scene{height:auto;grid-template-rows:auto auto 280px auto}
}
