/* Destination navigation belongs to the Aurora shell; sprite surfaces retain their colors. */
.space-hub{padding:16px 28px 20px;background:radial-gradient(ellipse at 70% 0,#58416c40,transparent 65%),#0c1b37;border-bottom:1px solid #33486e}.space-kicker{display:flex;justify-content:space-between;gap:14px;color:#b7c8df;font-size:10px;margin-bottom:12px}.space-kicker span:first-child{font-size:9px;letter-spacing:2px;font-weight:700;color:#73f9ff}.space-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:1644px;margin:auto}.space-nav .space-link{display:flex;align-items:center;gap:12px;text-align:left;min-height:76px;padding:14px 16px;border:1px solid #34496b;border-radius:12px;background:#142641;color:#eef4ff;position:relative;transition:background .15s,border-color .15s,transform .15s}.space-nav .space-link:hover{background:#213b5e;transform:translateY(-2px);filter:none}.space-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;background:#ffffff0a;border:1px solid #ffffff16;border-radius:11px;color:#8fe6e6}.space-icon svg{display:block;width:24px;height:24px}.space-copy{min-width:0}.space-copy strong{display:block;font-family:'Space Grotesk',sans-serif;font-size:16px;line-height:1.25}.space-copy small{display:block;font-size:11px;color:#b9c9de;margin-top:5px}.space-indicator{margin-left:auto;color:#8eabc9;font-size:16px}.space-nav .space-forge{background:linear-gradient(120deg,#382b54,#1e2d4c);border-color:#9474b6}.space-forge .space-icon,.space-forge .space-indicator{color:#e5b5ff}.space-world .space-icon{color:#e8cb92}.space-library .space-icon{color:#c5b6dd}.space-nav .space-link[aria-current=page]{border-color:#8be5e6;background:linear-gradient(115deg,#214654,#19334f);box-shadow:inset 0 -3px #73f9ff}.space-nav .space-link[aria-current=page] .space-indicator{color:#73f9ff}.space-nav .space-link:focus-visible{outline:3px solid #e8c0ff;outline-offset:3px}.topbar{gap:24px;height:82px}.topbar .header-actions{margin-left:auto}.topbar .button{min-height:42px}.account-bar{font-size:11px;padding-top:8px;padding-bottom:8px}.library{padding-top:22px}.library h1{font-size:23px;margin-top:14px}.library .intro{margin-top:8px}.library .section-label{margin-top:22px}.character-search{display:block;margin:0 0 12px}.character-search span{display:block;font-size:10px;color:#b9c9de;margin-bottom:7px}.character-search input{width:100%;min-height:40px;border:1px solid #415579;border-radius:8px;background:#10234b;color:#fff;padding:9px;font-size:11px}.character-search input::placeholder{color:#abbcd4}.template-list{max-height:520px;overflow:auto;padding-right:5px;scrollbar-color:#53658a transparent;scrollbar-width:thin}.template-list [hidden],.character-empty[hidden]{display:none!important}.character-empty{font-size:12px;color:#c5b6dd;line-height:1.6}.library .quest{margin-top:22px}.worlds-label,.use-list{display:none}.library .help-link{margin-top:12px;padding-top:12px}.workspace-heading{margin-bottom:18px}.fantasy-starter{margin-bottom:18px}
.space-dialog{padding-top:0!important}.space-dialog-bar{position:sticky;top:0;z-index:20;display:flex;gap:12px;align-items:center;background:#0c1b37;border-bottom:1px solid #405174;padding:12px;box-shadow:0 4px 15px #06132920;margin:0 -28px 0}.space-dialog-bar .space-nav{flex:1;min-width:0;gap:7px}.space-dialog-bar .space-link,#forge-dialog .space-dialog-bar .space-link{min-height:56px;padding:9px 10px;background:#142641;color:#eef4ff;border:1px solid #34496b;border-radius:9px;display:flex;gap:9px}.space-dialog-bar .space-link[aria-current=page],#forge-dialog .space-dialog-bar .space-link[aria-current=page]{border-color:#8be5e6;background:#214654;box-shadow:inset 0 -3px #73f9ff}.space-dialog-bar .space-forge,#forge-dialog .space-dialog-bar .space-forge{border-color:#9474b6}.space-dialog-bar .space-copy strong{font-size:12px}.space-dialog-bar .space-copy small,.space-dialog-bar .space-indicator{display:none}.space-dialog-bar .space-icon{width:29px;height:29px;border:0;background:none}.space-dialog-bar .space-icon svg{width:22px;height:22px}.space-close,#forge-dialog .space-close{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:46px;min-height:52px;background:#ffffff0b;color:#fff;border:1px solid #ffffff30;border-radius:8px;padding:4px;gap:0}.space-close>span{font-size:23px;line-height:1}.space-close small{font-size:9px}.space-session-note{font-size:10px;color:#766c83;line-height:1.6;margin:12px 0 17px}.space-dialog>.dialog-header .close-dialog,.space-dialog>.forge-header #forge-close{display:none!important}#forge-dialog .space-dialog-bar{margin:0}#forge-dialog>.space-session-note{padding:0 24px}.space-dialog>.dialog-header{padding-top:10px}#forge-dialog .forge-header{padding-top:16px;padding-bottom:16px}#forge-dialog .forge-header h2{font-size:22px}.space-dialog:not(#forge-dialog){overflow:auto}.space-dialog .dialog-header h2{font-size:24px}
@media(min-width:1100px){.space-hub{position:sticky;top:0;z-index:15}.space-kicker{max-width:1644px;margin-left:auto;margin-right:auto}}
@media(max-width:1100px){.space-hub{padding:12px 18px}.space-nav .space-link{padding:12px;gap:9px}.space-copy strong{font-size:14px}.space-copy small{font-size:10px}.space-indicator{display:none}.space-icon{width:32px;height:32px}.space-dialog-bar{margin-left:-20px;margin-right:-20px}.topbar{flex-wrap:wrap;height:auto;min-height:82px;padding:15px 20px;gap:12px}.topbar .brand{width:auto}.topbar .project-heading{min-width:150px}}
@media(max-width:650px){.space-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.space-nav .space-link{min-height:66px;padding:10px;gap:8px}.space-copy strong{font-size:13px}.space-copy small{font-size:9px}.space-kicker span:last-child{display:none}.space-hub{padding:12px}.topbar{padding:12px;gap:12px}.topbar .project-heading{min-width:100px}.topbar .header-actions{width:100%;display:flex;gap:6px}.topbar .header-actions .button{flex:1;padding:9px;font-size:11px}.space-dialog-bar{margin:0 -16px;padding:8px;gap:8px}.space-dialog-bar .space-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.space-dialog-bar .space-link,#forge-dialog .space-dialog-bar .space-link{min-height:42px;padding:6px;gap:5px}.space-dialog-bar .space-copy strong{font-size:10px}.space-dialog-bar .space-icon{width:20px;height:20px}.space-dialog-bar .space-icon svg{width:18px;height:18px}.space-dialog-bar .space-close{min-width:36px}.space-session-note{font-size:9px;margin-top:9px}.library .template-list{max-height:300px}}
@media(prefers-reduced-motion:reduce){.space-nav .space-link{transition:none}.space-nav .space-link:hover{transform:none}}
#world-dialog .space-dialog-bar{margin-left:-26px;margin-right:-26px}.world-save-drawer{border:1px solid #ded6e7;border-radius:9px;margin:14px 0;background:#f5f1f8}.world-save-drawer>summary{cursor:pointer;padding:12px 14px;color:#60516f;font-weight:600;font-size:12px}.world-save-drawer>summary span{font-size:10px;font-weight:400;margin-left:12px;color:#82748f}.world-save-drawer .world-profile-bar{margin:0;border:0;border-top:1px solid #ded6e7;border-radius:0 0 9px 9px}.space-dialog{scrollbar-gutter:stable}#creations-dialog{max-height:94dvh}#forge-dialog .forge-stage{max-width:760px;margin-inline:auto}
@media(max-width:780px){#world-dialog .space-dialog-bar{margin-left:-17px;margin-right:-17px}}
@media(max-width:650px){#creations-dialog .space-dialog-bar{margin-left:-20px;margin-right:-20px}.world-save-drawer>summary span{display:none}}
@media(max-width:430px){#world-dialog .space-dialog-bar{margin-left:-12px;margin-right:-12px}}

/* Character cards share one name + supported-animation summary format. */
.preset-card strong{min-height:2.7em;display:flex;align-items:center;justify-content:center;}
.preset-card>span{min-height:3.8em;line-height:1.4;}
.template-card small{line-height:1.45;}

.collection-controls{display:grid;gap:8px;margin:10px 0 14px}.collection-controls label{display:block;font-size:12px}.collection-controls input,.collection-controls select{width:100%;box-sizing:border-box;min-height:42px;margin-top:5px;border:1px solid #afb8c8;border-radius:8px;padding:9px;background:#fff;color:#263851;font:inherit}.collection-controls small{font-size:10px;opacity:.75}.collection-empty{font-size:12px;padding:12px}.favorite-wrap{position:relative;min-width:0}.favorite-wrap:has([hidden]){display:none}.favorite-wrap .preset-card{height:100%;width:100%}.favorite-star{position:absolute;right:6px;top:6px;width:36px;height:36px;border:1px solid #b9abc7;border-radius:50%;background:#fff9dc;color:#72541a;font-size:23px;cursor:pointer}.favorite-star[aria-pressed=true]{background:#f8dc83}.library .template-list{max-height:clamp(220px,45dvh,520px);overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-gutter:stable}.library .template-card{flex-shrink:0}.library{overflow:visible!important}#preset-dialog{max-height:92dvh;overflow:auto}#preset-dialog .preset-grid{max-height:none;overflow:visible}#world-dialog .space-dialog-bar{margin-left:-14px;margin-right:-14px;padding:8px 12px}#world-dialog .space-dialog-bar .space-link{min-height:44px;padding:8px}#world-dialog .space-dialog-bar .space-icon{width:24px;height:24px}#world-dialog .space-dialog-bar .space-copy strong{font-size:12px}
body:has(dialog[open]){overflow:hidden}
/* Large destination buttons keep icons and words together in every space. */
.space-dialog-bar .space-link,#forge-dialog .space-dialog-bar .space-link,#world-dialog .space-dialog-bar .space-link{min-height:58px;border-width:2px;padding:10px;gap:8px}.space-dialog-bar .space-icon,#world-dialog .space-dialog-bar .space-icon{width:30px;height:30px}.space-dialog-bar .space-copy strong,#world-dialog .space-dialog-bar .space-copy strong{font-size:13px}.space-link[aria-current=page] .space-copy strong:before{content:'✓ ';color:#85ffff}.space-dialog-bar .space-link[aria-current=page],#forge-dialog .space-dialog-bar .space-link[aria-current=page]{border:2px solid #8bffff;background:#28525e;box-shadow:inset 0 -4px #7ef8ff}.space-close,#forge-dialog .space-close{min-height:56px;min-width:48px}.space-close small{font-size:11px}#undo,#redo{min-width:72px;min-height:44px;padding:7px 10px;font-size:14px;border:1px solid #a6a0b2;border-radius:8px;background:#f0ebf6;color:#4c3b61}
@media(max-width:650px){.space-dialog-bar .space-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.space-dialog-bar .space-link,#forge-dialog .space-dialog-bar .space-link,#world-dialog .space-dialog-bar .space-link{min-height:52px;padding:7px;gap:5px}.space-dialog-bar .space-copy strong,#world-dialog .space-dialog-bar .space-copy strong{font-size:11px}.space-dialog-bar .space-icon,#world-dialog .space-dialog-bar .space-icon{width:23px;height:23px}.space-dialog-bar .space-icon svg{width:22px;height:22px}#world-dialog .space-dialog-bar{margin-left:-8px;margin-right:-8px}#undo,#redo{min-width:58px;font-size:12px}}

/* Main creative modes occupy the whole workspace; only small tools are modal. */
body.workspace-destination> :not(dialog):not(script):not(style){display:none!important}
#world-dialog.space-page,#forge-dialog.space-page{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;box-sizing:border-box;border:0;border-radius:0;box-shadow:none;overflow:auto;z-index:30;scrollbar-gutter:auto}
#world-dialog.space-page{padding:0 14px 14px}
#forge-dialog.space-page{padding:0}
#world-dialog.space-page .space-dialog-bar{margin:0 -14px;padding:8px 14px}
#forge-dialog.space-page .space-dialog-bar{margin:0;padding:8px 14px}
.space-page .space-dialog-bar .space-nav{max-width:none}
#forge-dialog.space-page .forge-stage{max-width:none}
@media(max-width:650px){#world-dialog.space-page{padding:0 8px 8px}#world-dialog.space-page .space-dialog-bar{margin:0 -8px;padding:6px 8px}#forge-dialog.space-page .space-dialog-bar{padding:6px 8px}}
