:root{color-scheme:dark;--navy:#071a35;--base:#081c39;--panel:#0c274e;--panel2:#102f59;--ink:#f1f8ff;--muted:#a4bdd9;--fine:#7094b7;--line:#285078;--cyan:#7ad8f7;--gold:#e1bb72;--green:#74e3c2;--border:#315577;--font-body:'Calibri','Noto Sans Georgian',sans-serif;--font-head:'GL Tatishvili Metal Bold','GL Tatishvili Metal','Noto Sans Georgian',sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#031024;color:var(--ink)}body{font-family:var(--font-body);font-weight:700;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}a{color:#a9dfff}a:hover{color:#fff}input{accent-color:var(--cyan)}input[type=number],input[type=date]{color:var(--ink);background:#0d2a51;border:1px solid #37628c;border-radius:5px;padding:8px 9px;min-width:0}input:focus-visible,button:focus-visible,.viewport:focus-visible{outline:2px solid #88e1ff;outline-offset:2px}.heading-font{font-family:var(--font-head);font-weight:700;letter-spacing:.015em}
.app-shell{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(140deg,rgba(4,19,41,.97),rgba(7,29,56,.97)),repeating-linear-gradient(0deg,transparent 0 55px,#23426140 56px 57px),repeating-linear-gradient(90deg,transparent 0 55px,#23426140 56px 57px)}
.topbar{height:78px;flex-shrink:0;padding:0 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #244b73;background:#06182fdb;box-shadow:0 2px 30px #0005}.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand-mark{width:50px;height:50px;display:grid;place-items:center;border:1px solid #376b91;border-radius:12px;background:#0c3157;box-shadow:0 0 24px #21669c30}.brand-mark svg{width:39px}.brand-name{font-size:22px;white-space:nowrap;line-height:1.2}.brand-sub{font-size:11px;color:#a2c9e1;font-weight:700;letter-spacing:.01em;margin-top:3px}.brand-edition{color:#71bce3}.topbar-right{display:flex;align-items:center;gap:24px}.top-status{color:#d5eaf9;font-size:11px;letter-spacing:.03em;display:flex;align-items:center;gap:7px;white-space:nowrap}.status-dot,.tiny-led{width:6px;height:6px;border-radius:50%;display:inline-block;background:#59eac0;box-shadow:0 0 11px #59eac0}.status-sub{color:#7aa4c4;border-left:1px solid #46708f;padding-left:9px;margin-left:5px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:36px;padding:7px 12px;border-radius:5px;border:1px solid transparent;transition:background .15s,border-color .15s;color:#eef8ff;font-size:12px;font-weight:700;white-space:nowrap;user-select:none}.button svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;fill:none}.button.primary{background:#17778e;border-color:#2eacc0;color:white;box-shadow:inset 0 1px #ffffff30}.button.primary:hover{background:#1a92aa}.button.outline{background:#10325780;border:1px solid #3c6386}.button.outline:hover{background:#1b426c;border-color:#7dbbdb}.button.subtle{background:transparent;color:#bdd5e8;border-color:transparent}.button.subtle:hover{background:#ffffff12;color:white}.button.small{min-height:32px;padding:5px 10px}.button.tiny{min-height:38px;min-width:36px;padding:6px 8px}.button.wide{width:100%}
.app-body{width:100%;max-width:2260px;margin:0 auto;padding:15px;display:grid;grid-template-columns:minmax(218px,255px) minmax(430px,1fr) minmax(300px,348px);gap:13px;flex:1;min-height:0}.panel{border:1px solid #284b70;background:linear-gradient(168deg,#0c274bbd,#0a2241c7);box-shadow:inset 0 1px #ffffff0b,0 4px 24px #00102445;min-width:0}.panel-caption{font-family:Consolas,monospace;font-size:10px;color:#7fc4e9;letter-spacing:1.1px;font-weight:700}.section-title{font-size:18px;margin:9px 0 8px;line-height:1.4}.sidebar-help,.inspector-desc{font-size:12px;color:#a7c4de;line-height:1.65;margin:5px 0 17px}.minor-heading{font-size:12px;color:#b9d9ed;margin:0 0 12px;font-weight:700}.micro-note{font-size:10px;color:#8ba9c5;line-height:1.65;margin:12px 0 0}.planet-sidebar{padding:20px 14px;display:flex;flex-direction:column;overflow:auto;scrollbar-color:#335a7c transparent}.planet-list{display:grid;gap:4px}.planet-button{width:100%;border:1px solid transparent;background:transparent;color:#d4e7f5;min-height:41px;padding:6px 10px;display:flex;align-items:center;gap:11px;text-align:left;border-radius:5px;font-size:13px;font-weight:700}.planet-button:hover{background:#1a4266}.planet-button.selected{background:#153f68;border-color:#4a8bab;box-shadow:inset 3px 0 #7ad8f7}.planet-marker{height:16px;width:16px;flex-shrink:0;background:var(--marker);border-radius:50%;box-shadow:inset -4px -3px 7px #00152b8c,0 0 8px #ffffff0f}.planet-button .planet-meta{margin-left:auto;color:#658aa8;font-size:10px;font-family:Consolas,monospace}.sidebar-bottom{margin-top:14px;padding-top:0}.fine-rule{height:1px;background:#284d74;margin:0 0 19px}.check-row{display:flex;align-items:center;gap:9px;margin:10px 0;color:#c2dced;font-size:12px;cursor:pointer}.check-row input{width:15px;height:15px;margin:0}.control-label{font-size:11px;color:#a7c2dc;margin-top:19px}.line-between{display:flex;align-items:center;justify-content:space-between;gap:6px}.control-label output{color:#80e5f2}.slider{width:100%;cursor:pointer;accent-color:#72ddf2;margin-top:10px}
.stage-column{min-width:0;display:flex;flex-direction:column;gap:13px}.scene-panel{padding:16px 16px 13px;display:flex;flex-direction:column;min-height:0}.scene-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 1px 13px}.scene-title{font-size:20px;margin:4px 0 0;line-height:1.2}.scene-actions{display:flex;align-items:center;gap:7px}.chip{display:inline-flex;align-items:center;gap:7px;background:#174267;border:1px solid #38658b;color:#9ee1f1;border-radius:2px;font-family:Consolas,monospace;font-size:9px;white-space:nowrap;letter-spacing:.3px;padding:6px 8px}.viewport{height:clamp(425px,calc(100vh - 328px),870px);min-height:390px;border:1px solid #30608c;background:radial-gradient(ellipse at 46% 48%,#102c52 0%,#06152d 77%);position:relative;overflow:hidden;isolation:isolate}.viewport canvas{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:2;touch-action:none}.blueprint-grid{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(#3976a71a 1px,transparent 1px),linear-gradient(90deg,#3976a71a 1px,transparent 1px);background-size:46px 46px;z-index:0}.blueprint-grid:after{content:'';position:absolute;inset:0;background-image:linear-gradient(#3976a710 1px,transparent 1px),linear-gradient(90deg,#3976a710 1px,transparent 1px);background-size:230px 230px}.viewport-sheen{position:absolute;inset:0;z-index:5;pointer-events:none;box-shadow:inset 0 0 70px #020e2573;background:linear-gradient(180deg,#00122755 0%,transparent 20%,transparent 79%,#0011276e 100%)}.scene-hud{position:absolute;z-index:8;display:flex;justify-content:space-between;width:100%;gap:10px;pointer-events:none}.scene-hud-top{top:12px;left:0;padding:0 13px}.coordinate-label{font:600 10px/1.5 Consolas,monospace;color:#7aaecb;letter-spacing:.1px}.axis-legend{position:absolute;z-index:8;bottom:42px;left:14px;display:flex;align-items:center;gap:8px;color:#6f9abd;font:700 10px Consolas,monospace}.axis{display:inline-flex;align-items:center;justify-content:center;border:1px solid #396a8d;width:20px;height:20px;background:#0b2b51}.axis.x{color:#ff8d83}.axis.y{color:#91e6cb}.axis.z{color:#9cc6ff}.nav-hint{position:absolute;z-index:8;bottom:10px;left:10px;right:10px;text-align:center;color:#91bad5;font-size:11px;pointer-events:none}.canvas-placeholder{position:absolute;inset:0;z-index:1;overflow:hidden;opacity:.84;pointer-events:none}.placeholder-orbit{position:absolute;left:50%;top:49%;border-radius:50%;border:1px solid #5083a465;transform:translate(-50%,-50%) rotate(-15deg)}.orbit-a{height:130px;width:250px}.orbit-b{height:240px;width:450px}.orbit-c{height:340px;width:650px}.orbit-d{height:550px;width:1000px}.placeholder-sun{position:absolute;width:44px;height:44px;border-radius:50%;left:50%;top:49%;transform:translate(-50%,-50%);background:radial-gradient(circle at 34% 35%,#fff2ba,#f7a943 55%,#df5d26);box-shadow:0 0 33px #ee993f7a}.planet-labels{position:absolute;inset:0;z-index:7;pointer-events:none}.floating-label{position:absolute;display:none;transform:translate(0,-50%);font-family:var(--font-body);font-weight:700;white-space:nowrap;color:#e8f6ff;background:#071b34d9;border:1px solid #40799d;border-left:2px solid var(--label-color,#8ed7fa);padding:3px 8px 4px;border-radius:4px;box-shadow:0 2px 13px #0009;text-shadow:0 1px 1px #000;font-size:12px;line-height:1.3;pointer-events:auto;cursor:pointer}.floating-label.selected{border-color:#84e0f7;color:#fff;background:#135074ed;box-shadow:0 0 17px #5ab4db42}.floating-label:before{content:'';position:absolute;width:6px;height:6px;border-radius:50%;background:var(--label-color);left:-4px;top:calc(50% - 3px)}.load-error{position:absolute;z-index:15;top:46%;left:50%;transform:translate(-50%,-50%);padding:20px 25px;background:#092c4d;box-shadow:0 4px 30px #000c;border:1px solid #db9c64;max-width:440px;text-align:center}.load-error h3{margin:0 0 10px}.load-error p{margin:0;color:#bad7e9;font-size:12px}.load-error[hidden]{display:none!important}
.timeline-area{margin-top:12px;border-top:1px solid #325478;padding-top:11px}.timeline-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.timeline-header .minor-heading{margin:0}.micro-chip{color:#6be4bd;background:#0e493e66;border:1px solid #246b64;font-size:10px;padding:2px 7px}.timeline-controls{display:flex;align-items:end;gap:6px;flex-wrap:wrap;margin-top:10px}.play-button{min-width:114px}.time-input-group{display:flex;flex-direction:column;gap:2px;min-width:0}.time-input-group label{font-size:9px;color:#a7bfda}.time-input-group input{height:36px;font-size:12px;max-width:148px}.time-speed input{width:82px}.timeline-foot{display:flex;justify-content:space-between;gap:10px;margin-top:10px;color:#8fb0ca;font-size:10px;flex-wrap:wrap}.timeline-foot strong{color:#daf1ff;font-weight:700}.time-valid{font-family:Consolas,monospace;letter-spacing:.3px}
.math-strip{padding:15px 16px 13px}.math-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:10px}.math-heading h2{font-size:16px;line-height:1.35;margin:4px 0 0}.math-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#254d73;border:1px solid #254d73}.math-cell{padding:11px 10px;background:#0d2a50;min-width:0}.math-symbol{font-family:'Cambria Math','STIX Two Math','Times New Roman',serif;font-size:16px;color:#eef7ff;white-space:nowrap}.math-label{font-size:10px;color:#9dbcd4;margin:6px 0 4px}.math-value{color:#78dcf5;font:700 15px/1.2 Consolas,monospace;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.math-value.coords{font-size:12px}.math-note{font-size:10px;color:#88a7c3;margin-top:11px}
.inspector{display:flex;flex-direction:column;max-height:calc(100vh - 107px);min-height:620px}.inspector-top{padding:18px 17px 0}.inspector-top .section-title{margin-bottom:6px}.inspector-desc{margin:4px 0 12px}.selected-body{display:flex;align-items:center;gap:10px;padding:13px 15px;background:#12365d;border-top:1px solid #2c5277;border-bottom:1px solid #2c5277}.selected-dot{width:32px;height:32px;border-radius:50%;background:#648ddd;flex-shrink:0;box-shadow:inset -8px -6px 12px #00172b99,0 0 11px #ffffff30}.selected-name{font-size:17px;line-height:1.3}.selected-note{font-size:10px;color:#8fb3d2}.reset-body{margin-left:auto;min-height:30px;font-size:22px;padding:0 8px}.tab-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#285077;border-bottom:1px solid #3e6486}.tab{font-size:12px;padding:10px 3px;border:0;background:#103052;color:#97b7d2;font-weight:700}.tab.active{background:#19456d;color:#fff;border-bottom:2px solid #7cd9f2}.editor-scroll{overflow:auto;flex:1;padding:14px 15px;min-height:120px;scrollbar-color:#376088 #0a2747}.editor-fields{display:grid;gap:11px}.field{display:block}.field label{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#c7dff1;font-size:11px;line-height:1.5;margin-bottom:5px}.field label span:last-child{font-family:Consolas,monospace;color:#70a5c8;font-weight:500;font-size:10px}.field input{width:100%;font:700 13px Consolas,monospace;background:#071c37;border:1px solid #365f86;min-height:36px;padding:7px 10px;color:#e5faff}.field input:focus{border-color:#79ddf8;outline:1px solid #79ddf8}.field input:invalid{border-color:#c27477}.editor-help{font-size:11px;line-height:1.7;color:#90b6d2;border-left:2px solid #4886ab;padding-left:9px;margin:15px 0 0}.inspector-footer{padding:14px 15px 16px;border-top:1px solid #355e85}.footer-actions{display:flex;gap:7px;margin-bottom:8px}.footer-actions .button{flex:1}.change-warning{margin-bottom:8px;font-size:11px;color:#efcd8b}.change-warning[hidden]{display:none}.bottom-bar{min-height:34px;border-top:1px solid #2c5278;padding:8px 17px;display:flex;justify-content:space-between;align-items:center;gap:15px;color:#719bbd;font-size:10px}.footer-dot{color:#60dfbd;margin-right:5px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;transition:all .2s;z-index:50;pointer-events:none;background:#164468;color:#f1faff;padding:11px 20px;border:1px solid #83d2ef;box-shadow:0 8px 30px #000a;border-radius:5px;max-width:90vw;text-align:center;font-size:12px}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1430px){.app-body{grid-template-columns:218px minmax(390px,1fr) 310px;padding:10px;gap:9px}.scene-panel{padding:12px}.scene-actions .chip{display:none}.time-input-group input{max-width:132px}.math-symbol{font-size:14px}.math-value{font-size:13px}.brand-name{font-size:19px}}
@media(max-width:1100px){.app-body{grid-template-columns:215px minmax(0,1fr);grid-template-areas:'nav scene' 'nav inspector'}.planet-sidebar{grid-area:nav}.stage-column{grid-area:scene}.inspector{grid-area:inspector;min-height:470px;max-height:none}.editor-scroll{overflow:visible}.editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.viewport{height:clamp(440px,58vw,740px)}.math-grid{grid-template-columns:repeat(2,1fr)}.topbar-right .top-status{display:none}.planet-sidebar{max-height:none}}
@media(max-width:730px){.topbar{height:auto;padding:12px;min-height:72px}.brand-name{font-size:17px}.brand-sub{font-size:9px}.brand-edition{display:none}.brand-mark{width:44px;height:44px;flex:none}.topbar-right .button span{display:none}.app-body{display:flex;flex-direction:column;padding:8px;gap:9px}.planet-sidebar{padding:13px;display:block}.planet-sidebar .section-title,.planet-sidebar .sidebar-help{display:none}.planet-list{display:flex;overflow-x:auto;gap:6px;margin-top:10px}.planet-button{min-width:max-content;padding:6px 10px}.planet-button .planet-meta{display:none}.sidebar-bottom{padding:5px 0 0}.sidebar-bottom .fine-rule,.sidebar-bottom .minor-heading,.sidebar-bottom .check-row,.sidebar-bottom .control-label,.sidebar-bottom .slider,.sidebar-bottom .micro-note{display:none}.scene-toolbar{flex-wrap:wrap}.scene-title{font-size:17px}.scene-actions{width:100%;justify-content:flex-end}.viewport{height:65vh;min-height:360px;max-height:650px}.math-strip{padding:11px}.math-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.math-symbol{font-size:13px}.math-value{font-size:13px}.bottom-bar{flex-wrap:wrap;font-size:9px}.inspector{min-height:0}.editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.timeline-controls{align-items:flex-end}.time-input-group{flex:1}.time-input-group input{width:100%;max-width:none}.nav-hint{font-size:9px}.floating-label{font-size:11px}.coordinate-label{font-size:9px}}
@media(max-width:420px){.scene-toolbar{gap:10px}.scene-actions .button{font-size:11px}.math-heading{flex-wrap:wrap}.math-grid{grid-template-columns:1fr 1fr}.math-cell{padding:9px 7px}.math-symbol{font-size:12px}.math-value.coords{font-size:10px}.editor-fields{grid-template-columns:1fr 1fr}.timeline-controls .button.small{min-height:33px}}
:fullscreen .app-shell{height:100vh;overflow:auto}:fullscreen .viewport{height:calc(100vh - 320px);max-height:none}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
