:root{color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#193247;background:#edf3f8}*{box-sizing:border-box}body{margin:0}button,input,select,a.primary{font:inherit;font-size:16px}button,select,input,a.primary{border:1px solid #c2cfdd;border-radius:12px;min-height:46px;padding:10px 14px;background:#fff;color:#193247}button,a.primary{cursor:pointer}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #6f54df;outline-offset:3px}button:hover:not(:disabled){border-color:#7458c9}a{color:#56429a}button[aria-pressed=true]{background:#5b36a6;color:#fff;border-color:#5b36a6}[hidden]{display:none!important}.space-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 28px;background:#fff;border-bottom:1px solid #dce5ed}.space-brand{display:flex;flex-direction:column;text-decoration:none;color:#193247}.space-brand strong{font-size:19px;letter-spacing:.025em}.space-brand span{font-size:14px;color:#577086}.space-header nav{display:flex;flex-wrap:wrap;gap:18px}.space-header nav a{font-size:16px;font-weight:650;text-decoration:none;padding:6px 0}.space-header nav a[aria-current]{color:#193247}.space-layout{display:grid;grid-template-columns:340px minmax(0,1fr);max-width:1600px;margin:auto;min-height:calc(100dvh - 85px)}#space-library{background:#f8fafc;border-right:1px solid #d2deea;padding:24px 18px;max-height:calc(100dvh - 85px);overflow:auto;position:sticky;top:0}.library-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}h1{font-size:30px;line-height:1.1;margin:4px 0}h2{font-size:clamp(23px,2.4vw,34px);line-height:1.15;margin:5px 0}.eyebrow{font-size:12px;letter-spacing:.11em;font-weight:750;color:#626a9d}#space-library label{display:block;margin:14px 0 6px;font-weight:650;font-size:14px}#space-library input,#space-library select{width:100%;min-width:0}#space-count{font-size:14px;color:#577086;margin:14px 0}.space-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.space-card{padding:0;overflow:hidden;text-align:left;background:#fff;min-width:0;border-radius:13px;display:flex;flex-direction:column}.space-card[aria-pressed=true]{background:#eee8fa;color:#362665;border:2px solid #7851bc}.space-card img{display:block;width:100%;height:auto;aspect-ratio:1.35;object-fit:contain;background:#132239}.space-card strong{display:block;font-size:14px;line-height:1.3;padding:9px 9px 4px}.space-card small{font-size:12px;color:#526b7d;padding:0 9px 10px}.space-workbench{padding:26px 30px;min-width:0}.space-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}#space-stage{height:clamp(360px,55vh,640px);position:relative;background:#0c1b2e;border-radius:20px;overflow:hidden;box-shadow:0 8px 32px #16314614}#space-canvas{display:block;width:100%;height:100%;touch-action:none}#space-loading,#space-error{position:absolute;inset:35% 12% auto;text-align:center;color:#fff;background:#172b46ee;padding:18px;border-radius:14px;font-size:17px;line-height:1.5}#space-assembly-state,.space-gesture-hint{position:absolute;left:16px;font-size:13px;padding:8px 11px;border-radius:10px;color:#d9eaf8;background:#172b46d9;pointer-events:none}#space-assembly-state{top:14px}.space-gesture-hint{bottom:14px}.space-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.space-actions button{flex:1;padding:9px;min-width:75px}.space-open-row{display:flex;gap:10px;margin:16px 0 18px}.space-open-row>*{flex:1;text-align:center}.space-open-row .primary{background:#5d369f;border-color:#5d369f;color:#fff;text-decoration:none;font-weight:750;padding:14px}.space-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:14px;color:#4e6479}.space-meta span:first-child{color:#193247;font-weight:750}#space-description{font-size:18px;line-height:1.5;margin:13px 0 8px}.space-note{font-size:15px;line-height:1.5;color:#546c82;margin:6px 0 16px;max-width:820px}.space-about{font-size:14px;line-height:1.6;border-top:1px solid #cbd8e4;padding:12px 0;color:#536a7f}.space-about summary{font-size:15px;color:#4b3788;font-weight:650;cursor:pointer;min-height:30px}.space-about p{margin:9px 0}#close-space-library,#browse-spacecraft{display:none}#space-library-scrim{position:fixed;inset:0;background:#09182e88;z-index:19}@media(max-width:850px){.space-header{padding:12px 16px;gap:12px}.space-header nav{gap:12px}.space-header nav a{font-size:14px}.space-header nav a:nth-child(2){display:none}.space-brand strong{font-size:16px}.space-brand span{font-size:12px}.space-layout{display:block}.space-workbench{padding:18px 14px}.space-title-row{gap:10px;margin-bottom:12px}.space-title-row h2{font-size:23px}#browse-spacecraft{display:block;flex-shrink:0;max-width:116px;padding:9px;font-weight:650}#space-library{position:fixed;inset:0 auto 0 0;max-height:none;width:min(92vw,410px);z-index:20;transform:translateX(-105%);transition:transform .18s ease;box-shadow:12px 0 35px #0b17292b;padding:max(20px,env(safe-area-inset-top)) 18px 24px}#space-library.is-open{transform:translateX(0)}#close-space-library{display:block}#space-stage{height:48dvh;min-height:300px;max-height:600px;border-radius:16px}.space-actions{gap:6px}.space-actions button{font-size:14px;min-width:56px}.space-open-row{margin:12px 0 16px}.space-open-row>*{font-size:15px;padding:12px 8px}.space-meta{font-size:13px;gap:7px 12px}#space-description{font-size:16px}.space-note{font-size:14px}.space-header nav{margin-left:auto}}@media(prefers-reduced-motion:reduce){#space-library{transition:none}}@media(max-width:360px){.space-header nav a:last-child{display:none}.space-actions{display:grid;grid-template-columns:repeat(3,1fr)}}
.collection-switch,#space-view-modes{display:flex;gap:8px}.collection-switch{margin-bottom:8px}.collection-switch button{flex:1;font-weight:750;min-height:50px}#space-collection-note{color:#546c82;font-size:15px;line-height:1.45;margin:8px 0 22px}#space-view-modes{margin:0 0 10px}#space-view-modes button{padding:8px 16px;min-height:44px;font-size:14px;font-weight:650}.space-open-row .secondary{background:#fff;color:#5d369f}#space-forms-used{margin:16px 0;font-size:14px;color:#425e75}#space-forms-used ul{display:flex;flex-wrap:wrap;gap:7px;padding:0;list-style:none;margin:9px 0}#space-forms-used li{padding:7px 10px;border:1px solid #d1dbe6;border-radius:9px;background:#f8fafc}@media(max-width:600px){.collection-switch button{font-size:15px;padding:10px 5px}#space-collection-note{font-size:13px;margin-bottom:16px}.space-open-row{display:grid;grid-template-columns:1fr 1fr}.space-open-row #space-edit-forms{grid-column:1/-1}#space-view-modes button{flex:1}}
