/* Aurora shell colors match Spellkeys. Drawing workspace and art tokens stay local and unchanged. */
body{background:#08152e}
.topbar,.library,.account-bar{--ink:#f7f9fc;--muted:#bcc9df;--line:#33486e;--green:#73f9ff;--purple:#c5b6dd;color:#f7f9fc;color-scheme:dark}
.topbar{background:#08152e;border-color:#33486e}
.topbar .brand{width:215px;gap:10px;letter-spacing:0;color:#f7f9fc}
.pixelcraft-mark{display:block;width:42px;height:42px;min-width:42px;max-width:42px;flex:none}
.brand-wordmark{display:flex;flex-direction:column;gap:3px;line-height:1}
.brand .brand-sub{font:700 8px 'DM Sans',sans-serif;letter-spacing:3px;color:#73f9ff;margin:0}
.brand-wordmark strong{font:700 24px 'Space Grotesk',sans-serif;letter-spacing:-1px;white-space:nowrap}
.brand-wordmark strong span{color:#e49aff}
.topbar input{color:#f7f9fc}
.topbar .button,.account-bar .button{background:#1b315b;color:#f7f9fc;border:1px solid #33486e}
.topbar .button.primary,.account-bar .button.primary{background:linear-gradient(105deg,#e49aff,#73f9ff);color:#082572;border-color:#e2d8f1}
.topbar .button.subtle{background:transparent}
.topbar .save-state:before{color:#73f9ff}
.library{background:linear-gradient(180deg,#08257255,#08152e 65%);border-color:#33486e}
.library .school-dot{background:#73f9ff}
.library .template-card{background:#10234b;border-color:#33486e;color:#f7f9fc}
.library .template-card.selected{background:linear-gradient(110deg,#7554a150,#12659b30);border-color:#c5b6dd;box-shadow:inset 3px 0 #e49aff}
.library .selected-tick{color:#73f9ff}
.library .quest{background:#10234b;border:1px solid #33486e}
.library .quest-label,.library .quest button{color:#e2d8f1}
.library .use-list{color:#c5b6dd}.library .use-list b{color:#bcc9df}
.account-bar{background:#10234b;border-color:#33486e}
.account-bar a{color:#73f9ff}.account-bar strong{color:#e2d8f1}
.topbar :focus-visible,.library :focus-visible,.account-bar :focus-visible{outline-color:#73f9ff}
/* Preserve the full existing light work surface, including preview and palette controls. */
.workspace,.inspector{background:var(--paper)}
@media(max-width:1200px){.topbar .brand{width:190px}.brand-wordmark strong{font-size:22px}}
@media(max-width:700px){.topbar .brand{width:auto}.pixelcraft-mark{width:36px;height:36px;min-width:36px;max-width:36px}.brand-wordmark strong{font-size:22px}}

/* Approved Worldweaver identity: decoration stays outside the canvas and arena. */
.topbar .brand{width:242px;gap:7px;flex-shrink:0;text-decoration:none}
.brand-wordmark{gap:0}.brand .brand-sub{padding-left:26px}
.pixelcraft-wordmark{display:block;width:190px;height:63px;object-fit:contain}
.space-brand{display:grid;place-items:center;flex:0 0 150px;min-width:0;padding:0 4px;border:0;background:transparent;cursor:pointer;border-radius:8px}
.space-brand img{width:100%;height:50px;object-fit:contain;display:block}
.space-brand:focus-visible{outline:3px solid #8bffff;outline-offset:2px}
.worldweaver-spark{display:block;width:88px;height:82px;object-fit:contain;margin:0 auto 10px}
.worldweaver-export{display:block;width:88px;height:82px;object-fit:contain;margin:0 0 8px}
.worldweaver-entry{float:right;width:100px;height:94px;object-fit:contain;margin:0 0 8px 18px}
.forge-entry header{display:flow-root}
.worldweaver-empty{display:block;width:110px;height:104px;object-fit:contain;margin:0 auto 12px}
.library-empty:has(.worldweaver-empty){display:flex;flex-direction:column;align-items:center;text-align:center;grid-column:1/-1;padding:22px;border-radius:12px;background:#efebf5;color:#3c4859}
.worldweaver-world{float:right;width:54px;height:51px;object-fit:contain;margin:0 0 4px 6px}
.world-sidebar:has(.builder-panel:not([hidden]))>.worldweaver-world{display:none}
@media(max-width:1100px){.space-brand{flex-basis:116px}.space-brand img{height:44px}}
@media(max-width:700px){.topbar .brand{width:auto}.pixelcraft-wordmark{width:170px;height:56px}.worldweaver-entry{width:72px;height:68px;margin-left:10px}}
/* Narrow navigation retains the same number of rows and usable touch targets. */
@media(max-width:800px){.space-dialog-bar>.space-brand{display:none}}
#forge-dialog.arena-hud-active .space-brand{display:none}
#forge-dialog .space-dialog-bar>.space-brand{background:transparent;border:0;padding:0 4px;box-shadow:none;min-height:50px;color:#fff}

.library .quest .spark-theme-label{display:block;margin:14px 0 5px;font-size:11px;color:#bcc9df}
.library .quest #spark-theme{display:block;width:100%;min-height:42px;border:1px solid #52678b;border-radius:7px;background:#142641;color:#f7f9fc;padding:8px;font:inherit;font-size:12px}
.library .quest .spark-count{display:block;font-size:10px;line-height:1.5;color:#bcc9df;margin:10px 0}
.library .quest #new-prompt{min-height:44px;width:100%;padding:9px 12px;background:#244653;color:#d4ffff;border:1px solid #79bec6;border-radius:7px;text-align:left}
.library .quest #new-prompt:focus-visible{outline:3px solid #e8c0ff;outline-offset:3px}
