:root{color-scheme:light;--bg:#e5eaf0;--panel:#fff;--rule:#d8e0ea;--text:#172538;--muted:#506075;--input:#fff;--hover:#f0f5fa;--link:#115bab;--blue:#1264c9;--blue-hover:#0b55ad;--focus:#276bc0;--glass:linear-gradient(140deg,#fffefde8,#ebf3fbe3);--shadow:0 3px 14px #223d6319;--error:#a02035;--side:linear-gradient(145deg,#25486e,#14283f 64%);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#0e1420;--panel:#1a2331;--rule:#354154;--text:#e7eef6;--muted:#a5b1c3;--input:#151e2b;--hover:#263448;--link:#95c3ff;--blue:#175dba;--blue-hover:#205fba;--focus:#8db9f8;--glass:linear-gradient(140deg,#2b3c52e8,#1c2839e6);--shadow:0 3px 14px #05091459;--error:#ffb3c3;--side:linear-gradient(145deg,#213a54,#101c2c 64%)}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--text)}
.bar{padding:8px clamp(12px,3vw,34px);display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;background:var(--glass);border-bottom:1px solid var(--rule)}
.brand,.tools{display:flex;align-items:center;gap:10px}.brand img{object-fit:contain}.brand small{display:block;color:var(--muted);font-size:.74rem}
button,input{font:inherit;padding:8px 12px;min-height:42px;border-radius:11px;border:1px solid var(--rule);background:var(--input);color:var(--text)}
button{cursor:pointer;font-weight:600}button:hover{background:var(--hover)}button:disabled{opacity:.6;cursor:wait}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
#theme{width:44px;display:grid;place-items:center;color:var(--link);padding:0}#theme svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.sun,[data-theme=dark] .moon{display:none}[data-theme=dark] .sun{display:block}
#entry{flex:1;display:grid;place-items:center;padding:clamp(14px,4vw,56px)}
.entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:875px;width:100%}
.intro,#login{padding:clamp(18px,3.5vw,40px);border-radius:16px;border:1px solid var(--rule);box-shadow:var(--shadow);min-width:0}
.intro{background:var(--side);color:#edf3fb;display:flex;flex-direction:column;justify-content:center}.intro p{color:#c5d5e7}.suite{font-size:.75rem;letter-spacing:.10em;font-weight:660}
h1{font-size:clamp(1.65rem,3.7vw,2.8rem);line-height:1.08;margin:16px 0 4px}h2{margin:0;font-size:1.34rem}
#login{display:flex;flex-direction:column;gap:7px;background:var(--panel)}#login p,#login small{color:var(--muted);font-size:.88rem;line-height:1.45}#login p{margin:0 0 8px}
#login input{width:100%;font-size:16px}#login label{font-size:.86rem;font-weight:600}#login label:not(:first-of-type){margin-top:6px}
.primary{background:var(--blue);color:#fff;border-color:var(--blue);margin-top:7px}.primary:hover{background:var(--blue-hover)}
#status:not(:empty){color:var(--error);font-size:.88rem;line-height:1.35;margin:5px 0}#foot{flex:none;padding:10px 14px;text-align:center;color:var(--muted);font-size:.73rem}
body.in-studio{height:100dvh;overflow:hidden}#studio{min-height:0;flex:1}#est-app{display:block;border:0;width:100%;height:100%}
@media(max-width:640px){.entry-grid{grid-template-columns:1fr;max-width:430px}.intro p{margin:8px 0 0}button,input{min-height:44px}}
