* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { font-family: system-ui, "Microsoft YaHei UI", sans-serif; color: #eaf7fb; background: #112730; }
body { margin: 0; }
#lab-stage { width: 100%; height: 100vh; height: 100dvh; display: grid; grid-template-rows: 42px minmax(0, 1fr); position: relative; background: #112730; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid #446472; background: #1a3440; z-index: 5; font-size: 13px; }
header span { text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
a { color: #8ee5ed; text-decoration: none; white-space: nowrap; }
button, summary { font: inherit; color: inherit; cursor: pointer; }
button { border: 1px solid #77a4b0; border-radius: 5px; padding: 5px 10px; background: linear-gradient(#33545f, #223c47); }
button:hover, button:focus-visible, summary:focus-visible { border-color: #8fecff; background: #3a5e6a; }
.tools { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
details { position: relative; }
.menu { position: absolute; top: 29px; right: -5px; background: #203c49; border: 1px solid #5b8795; border-radius: 6px; padding: 9px 16px 14px; box-shadow: 0 8px 15px #0b263b77; }
.viewport { position: relative; min-height: 0; min-width: 0; }
canvas { display: block; width: 100%; height: 100%; outline: none; background: #122c37; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 48%, #276478, #132d38 74%); }
.loader-card { max-width: min(640px, 90vw); padding: 26px 32px; border: 1px solid #608993; border-radius: 10px; background: #172f3a; box-shadow: 0 20px 75px #0a1a2599; }
.loader-card small { letter-spacing: 0.06em; color: #91e5ea; }
.loader-card h1 { margin: 10px 0 22px; font-size: clamp(18px, 3vw, 28px); }
.loader-card p { font-size: 14px; line-height: 1.6; color: #c1dce3; }
.loader-card progress { width: 100%; height: 7px; display: block; accent-color: #65cfdd; }
.loader-card button { margin-top: 14px; }
.graphene-input { position: absolute; z-index: 4; margin: 0; padding: 0 0.7em; border: 1px solid #aac1cc; border-radius: 4px; background: #fff; color: #152a38; font-family: inherit; box-shadow: inset 0 1px 3px #132b391a; }
.graphene-input:focus { outline: 2px solid #3390a5; outline-offset: -1px; }
.graphene-input::placeholder { color: #506979; }
@media (max-width: 640px) { header { padding: 0 7px; } header span { display: none; } .loader-card { padding: 20px; } }
