:root{color-scheme:dark}body{margin:0;background:#1c2933;color:#dce6ec;font:14px/1.5 system-ui,sans-serif}.home{max-width:1280px;margin:auto;padding:28px 24px 36px}.home-intro{margin-bottom:22px}.eyebrow{color:#ffda61;font-size:11px;letter-spacing:.14em;font-weight:700;margin:0 0 6px}.home h1{font-size:clamp(26px,4vw,40px);line-height:1.15;margin:0 0 10px;letter-spacing:-.025em}.home p{margin:0;color:#b7cad6}.home-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-card{display:block;color:inherit;text-decoration:none;background:#263b48;border:1px solid #425a6b;border-radius:10px;overflow:hidden;transition:border-color .15s}.home-card:hover{border-color:#ffda61}.home a:focus-visible{outline:3px solid #ffda61;outline-offset:4px}.home-card>svg{display:block;width:100%;height:160px;background:#20323e}.home-card>div{padding:16px}.home h2{font-size:19px;margin:0 0 7px}.home-card h2{display:flex;justify-content:space-between}.home-card h2 span{color:#ffda61}.home small{display:block;font-size:12px;color:#93afbf;margin-top:12px}.home-install{display:flex;gap:22px;margin-top:24px;padding:22px;background:#233540;border:1px solid #425a6b;border-radius:10px}.home-install>svg{flex:0 0 100px;width:100px;height:100px}.home-install>div{flex:1}.install-steps{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:14px 0}.install-steps strong{color:#edf3f6}.home-note{font-size:12px}.home small a{color:#a7cbe0}@media(max-width:700px){.home{padding:20px 14px}.home-tools{grid-template-columns:1fr}.home-card{display:grid;grid-template-columns:120px 1fr}.home-card>svg{height:100%;min-height:150px}.home-install{gap:10px;padding:16px}.home-install>svg{flex-basis:52px;width:52px;height:70px}.install-steps{grid-template-columns:1fr;gap:12px}}
body[data-workshop] main.home{padding:28px 24px 36px!important;max-height:none!important;height:auto!important;overflow:visible!important}body[data-workshop] .home h1{font-size:clamp(26px,4vw,40px)!important;line-height:1.15!important}body[data-workshop] .home h2{font-size:19px!important}@media(max-width:700px){body[data-workshop] main.home{padding:20px 14px!important}}
body[data-workshop=home],body[data-workshop=index]{height:auto!important;min-height:100vh;overflow:auto!important}body[data-workshop] main.home{display:block!important;flex:none!important}
.home>.workshop-content-scroll{overflow:visible!important;max-height:none!important;height:auto!important}
.home-workflow{margin:0 0 20px;padding:14px;background:#233540;border:1px solid #425a6b;border-radius:10px}.home-workflow a{color:#edf3f6;text-decoration:none}.home-build-flow{display:grid;grid-template-columns:minmax(0,1.2fr) 28px minmax(0,1.2fr) 28px minmax(140px,.65fr);gap:8px;align-items:center;margin-top:12px}.flow-container{padding:12px;border:1px solid #6b899a;border-radius:8px;background:#1c2e39;min-width:0}.flow-profile{border-color:#c4ab58}.flow-title{font-size:19px;font-weight:700;display:block}.home .flow-caption{font-size:14px;margin:3px 0 10px}.flow-ingredients{display:grid;grid-template-columns:1fr 18px 1fr;gap:6px;align-items:center}.flow-item{display:flex;flex-direction:column;align-items:center;text-align:center;padding:8px 6px;border:1px solid #425e70;border-radius:6px;background:#2c4250;min-height:96px}.flow-item svg{width:52px;height:38px;color:#a6cfdf;margin-bottom:7px}.flow-item strong{font-size:15px}.flow-item span,.flow-result span{font-size:13px;color:#b7cad6;margin-top:5px}.flow-arrow,.flow-plus{color:#ffda61;text-align:center;font-size:25px}.flow-plus{font-size:20px}.flow-result{display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 6px}.flow-result svg{width:110px;height:85px}.flow-result strong{font-size:17px;margin-top:8px}@media(max-width:850px){.home-build-flow{grid-template-columns:1fr}.flow-arrow{transform:rotate(90deg);line-height:1}.flow-result svg{width:100px;height:75px}.flow-item{min-height:100px}}
html:has(main.home){height:auto!important;overflow:auto!important}html body[data-workshop]:has(main.home){height:auto!important;min-height:100vh;overflow:visible!important;display:block!important}

.flow-build-inputs{display:flex;flex-direction:column;min-width:0}.flow-sketch{display:flex;gap:10px;align-items:center;padding:9px 12px;border:1px solid #67adb9;border-radius:8px;background:#203a46}.flow-sketch svg{width:48px;height:36px;color:#83d4d9;flex-shrink:0}.flow-sketch strong,.flow-sketch span{display:block}.flow-sketch span{font-size:13px;color:#b7cad6;margin-top:3px}.flow-sketch-arrow{text-align:center;color:#83d4d9;font-size:26px;line-height:30px}.home-build-flow>.flow-arrow{align-self:end;margin-bottom:108px}.home-build-flow>.flow-profile,.home-build-flow>.flow-result{align-self:end}.home-build-flow>.flow-result{margin-bottom:44px}@media(max-width:850px){.home-build-flow>.flow-arrow{align-self:center;margin-bottom:0}.home-build-flow>.flow-result{margin-bottom:0}.flow-build-inputs{width:100%}}

.flow-parallel-inputs{display:flex;flex-direction:column;gap:12px;min-width:0}.flow-merge{width:100%;height:100%;min-height:265px;color:#ffda61}.home-build-flow>.flow-build{align-self:center}.home-build-flow>.flow-arrow{align-self:center;margin-bottom:0}.home-build-flow>.flow-result{align-self:center;margin-bottom:0}@media(max-width:850px){.flow-merge{height:30px;min-height:30px;width:40px;justify-self:center;transform:rotate(90deg)}.flow-parallel-inputs{width:100%}}

.flow-sketch strong{font-size:16px}
.home-card.world-builder-card:hover{border-color:#425a6b;cursor:default}

body[data-workshop] main.home-launch{max-width:none;width:100%;box-sizing:border-box}
.home-launch .home-intro{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
body[data-workshop] .home-launch h1{font-size:22px!important;line-height:1.3!important;margin:0}
.home-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.home-entry{padding:18px;background:#263b48;border:1px solid #425a6b;border-radius:6px;min-width:0}
.home-entry p{margin:0 0 16px;min-height:42px}.home-entry button{margin:3px 4px 0 0}
.home-recent{margin-top:26px}.home-recent-table{overflow-x:auto}.home-recent table{width:100%;border-collapse:collapse;text-align:left}
.home-recent th,.home-recent td{padding:12px 10px;border-bottom:1px solid #425a6b;overflow-wrap:anywhere}.home-recent th{color:#b7cad6;font-weight:500}.home-recent td:first-child{width:25%}.home-recent td:last-child{text-align:right;white-space:nowrap}.home-recent button{margin:0}
.home-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.home-recent td{vertical-align:middle}.home-recent td:last-child button{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;box-sizing:border-box;height:30px;min-width:48px;line-height:1;gap:4px}.home-recent .home-pin{margin-right:6px}.home-pin svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.home-pin[data-pinned=true]{color:var(--accent,#ffda61);border-color:var(--accent,#ffda61)}
@media(max-width:700px){.home-entry-grid{grid-template-columns:1fr}.home-entry p{min-height:0}.home-recent th:nth-child(2),.home-recent td:nth-child(2){display:none}}

.home-recent-view{display:flex;align-items:center;gap:8px;margin:0 0 10px;justify-content:flex-end}.home-recent-view select{width:auto;min-width:140px}
.home-project-media{position:relative;box-sizing:border-box;display:inline-block;width:112px;aspect-ratio:4/3;vertical-align:middle;margin-right:12px;overflow:hidden;border:1px solid var(--line,#425a6b);border-radius:4px;background:var(--ts-raised,#232629)}
.home-project-preview{display:block;width:100%;height:100%;object-fit:contain;visibility:hidden}
.home-project-media[data-preview=ready] .home-project-preview{visibility:visible}
.home-project-preview-status:not([hidden]){position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:5px;color:var(--muted,#b7cad6);font-size:11px}
.home-project-name{font-size:14px;line-height:1.3;text-wrap:pretty}
.home-recent td:nth-child(3){font-variant-numeric:tabular-nums}
.home-recent[data-view=large] .home-project-media{display:block;width:min(100%,256px);margin:0 0 8px}
.home-recent[data-view=large] .home-recent-table{overflow:visible}.home-recent[data-view=large] table,.home-recent[data-view=large] tbody{display:block}.home-recent[data-view=large] thead{display:none}.home-recent[data-view=large] tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:12px}.home-recent[data-view=large] tr{display:flex;flex-direction:column;padding:12px;border:1px solid var(--line,#425a6b);border-radius:5px;min-width:0}.home-recent[data-view=large] td{display:block!important;width:auto!important;padding:5px 0;border:0}.home-recent[data-view=large] td:last-child{margin-top:auto;text-align:left}

/* One compact header and equal spacing for every row/card action. */
.home-recent{margin-top:20px}
.home-recent-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-bottom:8px}
.home-recent-heading h2{margin:0}
.home-recent-heading .home-recent-view{margin:0;gap:8px}
.home-project-actions{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.home-project-actions>button,.home-project-actions>.home-pin{margin:0!important}
.home-recent .home-project-actions>.home-project-open{color:var(--ts-on-accent,#1c252d);background:var(--accent,#ffda61);border-color:var(--accent,#ffda61);font-weight:600}
.home-recent .home-project-actions>.home-project-open:hover:not(:disabled){filter:brightness(1.08)}

.home-recent-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 12px}
.home-recent-controls>button{margin:0!important}

/* Phone recent projects retain readable names/dates instead of squeezing columns. */
@media(max-width:700px){
 .home-recent:not([data-view=large]) table,.home-recent:not([data-view=large]) tbody{display:block;width:100%}
 .home-recent:not([data-view=large]) thead{display:none}
 .home-recent:not([data-view=large]) tr{display:grid;grid-template-columns:minmax(0,1fr);padding:12px 0;border-bottom:1px solid var(--line,#425a6b);gap:8px}
 .home-recent:not([data-view=large]) td{display:block;width:auto!important;min-width:0;padding:0;border:0;text-align:left;white-space:normal}
 .home-recent:not([data-view=large]) td:nth-child(2){display:none}
 .home-recent:not([data-view=large]) td:nth-child(3)::before{content:'Last edited: ';color:var(--muted)}
 .home-recent[data-view=small] td:first-child{display:flex;align-items:center;gap:10px}
 .home-recent[data-view=small] .home-project-label{max-width:none;flex:1;min-width:0}
 .home-recent[data-view=small] .home-project-media{flex:0 0 80px;width:80px;margin:0}
 .home-recent-controls{justify-content:flex-start;width:100%}
 .home-project-actions{flex-wrap:wrap}
}

/* Reuse the original Home terrain motif across three quiet vector scenes. */
.home-launch .home-intro{padding-top:16px}
.home-entry-art{display:block;width:100%;height:112px;margin:0 0 14px;overflow:visible}
@media(max-width:700px){.home-entry-art{height:100px}.home-launch .home-intro{padding-top:12px}}
