[hidden]{display:none!important}
.source-scene{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 20% 10%,#193c51 0,transparent 55%),radial-gradient(ellipse at 90% 90%,#25244c 0,transparent 50%),#080d17;overflow:auto}
.source-card{width:min(620px,100%);padding:36px;border:1px solid #ffffff20;background:#0d1422e8;border-radius:24px;box-shadow:0 24px 80px #0006;animation:arrive .35s ease-out}
.source-card h1{font-size:32px;letter-spacing:-1px;margin:8px 0 12px}.source-card p{color:#a3b2c7;line-height:1.6;font-size:14px;margin-bottom:20px}.source-kicker{font-size:12px;letter-spacing:3px;color:#81d8ef}
.source-card label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#dce7f6;margin:18px 0}.source-card input,.source-card select{padding:12px;background:#080e19;color:#fff;border:1px solid #354153;border-radius:9px;width:100%;font:inherit}.source-card input:focus{outline:2px solid #6fcde4}.source-card input[type=file]{font-size:12px}
.source-card .source-note{font-size:12px;color:#91accb;margin-top:-7px;margin-bottom:8px}.source-actions{display:flex;gap:10px;align-items:center;margin-top:24px}.source-actions button{padding:12px 22px;font-size:14px}.source-actions #btnLoad{flex:1;background:#78d5e9;color:#092330}.source-error{color:#ffbdad!important;margin-top:12px;white-space:pre-wrap}.source-or{display:flex;gap:12px;align-items:center;color:#65748b;font-size:12px;margin:20px 0}.source-or:before,.source-or:after{content:'';height:1px;background:#293448;flex:1}
.loading-card{text-align:center}.loading-bars{height:110px;display:flex;gap:9px;align-items:center;justify-content:center;margin:14px 0 24px}.loading-bars i{display:block;width:13px;height:64px;border-radius:8px;background:linear-gradient(#8ee5f2,#7278e8);animation:pulse 1s ease-in-out infinite alternate}.loading-bars i:nth-child(2){animation-delay:.15s}.loading-bars i:nth-child(3){animation-delay:.3s}.loading-bars i:nth-child(4){animation-delay:.45s}.loading-card h2{margin-bottom:15px}.loading-card small{color:#8395ad}.loading-card p{min-height:44px;overflow-wrap:anywhere}
@keyframes pulse{from{transform:scaleY(.35);opacity:.45}to{transform:scaleY(1.2);opacity:1}}@keyframes arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
#hudLayoutOverlay{position:absolute;z-index:8;pointer-events:none}.hud-edit-box{position:absolute;border:1px dashed #91c9ac;pointer-events:auto;cursor:move;touch-action:none;background:#adedd208}.hud-edit-box.selected{border:2px solid #adedd2;background:#adedd215}.hud-edit-box>span{position:absolute;top:0;left:0;padding:2px 5px;font-size:11px;background:#202b2aeb;color:#c9f7df;white-space:nowrap}.hud-resize{position:absolute;right:0;bottom:0;width:16px;height:16px;padding:0;border-radius:0;background:#adedd2;cursor:nwse-resize;touch-action:none}
#hudLayoutPanel{--edit-accent:#adedd2;position:fixed;left:18px;top:92px;z-index:110;width:270px;max-height:calc(100vh - 112px);overflow:auto;padding:16px;border-radius:13px;border:1px solid #40564b;background:#151c1dfa;box-shadow:0 10px 35px #0008;color:#eef4f0;font:12px/1.45 Inter,"Segoe UI","Microsoft YaHei",sans-serif;color-scheme:dark;scrollbar-color:#536f61 #151c1d}.edit-heading{display:flex;align-items:center;justify-content:space-between}.edit-heading strong{font-size:14px;font-weight:600}.edit-hint{font-size:11px;color:#a1b1ad;line-height:1.6;margin:10px 0}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}#hudLayoutPanel label{display:flex;flex-direction:column;gap:6px;margin:12px 0;color:#dce9e1}#hudLayoutPanel input[type=number],#hudLayoutPanel select,#hudLayoutPanel textarea{width:100%;min-width:0;padding:8px;background:#101716;color:#e4eee7;border:1px solid #43594b;border-radius:5px;font:inherit}#hudLayoutPanel .edit-check{flex-direction:row;align-items:center}#hudLayoutPanel input[type=checkbox]{accent-color:var(--edit-accent)}.edit-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}#hudLayoutPanel input[type=color]{width:36px;height:25px;border:1px solid #43594b;border-radius:4px;padding:0;margin-left:auto}#hudLayoutPanel button{min-height:30px;padding:6px 10px;border:1px solid #40564b;border-radius:6px;background:#202b2a;color:#dce9e1;font-size:11px;font-weight:500;line-height:1.3;font-family:inherit;transition:background 140ms ease,border-color 140ms ease}#hudLayoutPanel #closeHudEdit{background:var(--edit-accent);color:#173c2c;border-color:transparent}#hudLayoutPanel button:hover{border-color:#91c9ac;background:#2b3b32}#hudLayoutPanel #closeHudEdit:hover{background:#c6f3dc}#hudLayoutPanel :is(button,input,select,textarea):focus-visible{outline:2px solid var(--edit-accent);outline-offset:3px}
#hudLayoutPanel .edit-range{display:grid;grid-template-columns:1fr auto;gap:5px 8px}#hudLayoutPanel .edit-range output{color:#c9f7df;font-variant-numeric:tabular-nums}#hudLayoutPanel .edit-range input,#hudLayoutPanel .edit-range small{grid-column:1/-1}#hudLayoutPanel small{font-size:10px;line-height:1.6;color:#a1b1ad}#hudLayoutPanel input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:22px;margin:0;background:transparent;cursor:pointer}#hudLayoutPanel input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--edit-accent) 0 var(--range-fill,0%),#43584b var(--range-fill,0%) 100%)}#hudLayoutPanel input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#c6f3dc;margin-top:-4px}#hudLayoutPanel input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:#43584b}#hudLayoutPanel input[type=range]::-moz-range-progress{height:4px;background:var(--edit-accent)}#hudLayoutPanel input[type=range]::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#c6f3dc}
@media(prefers-reduced-motion:reduce){#hudLayoutPanel button{transition:none}}
@media(max-width:600px){.source-scene{padding:12px}.source-card{padding:22px}.source-card h1{font-size:26px}#hudLayoutPanel{top:8px;left:8px;width:225px;max-height:60vh}}
@media(prefers-reduced-motion:reduce){.source-card,.loading-bars i{animation:none}}
.edit-heading{cursor:move;touch-action:none}
@media(max-height:740px){.source-scene{align-items:start}.source-card{margin:auto}}
