:root {color-scheme:dark; color:#e8f4fa; background:#08131c; font:16px/1.5 system-ui,sans-serif; --border:#345262; --muted:#a9c1ce; --focus:#8de7f4}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0}
header {background:#0d1c28; border-bottom:1px solid #263b4a}
nav, main {max-width:1160px; margin:auto; padding:1rem clamp(1rem,4vw,2.5rem)}
nav {display:flex; justify-content:space-between; align-items:center; min-height:4.3rem}
nav a {font-weight:800; letter-spacing:.08em; text-transform:uppercase}
main {padding-block:clamp(1.4rem,5vw,3rem)}
a {color:#a3ecf5; text-underline-offset:4px}
h1 {font-size:clamp(2rem,6vw,3.1rem); line-height:1.12; margin:0; overflow-wrap:anywhere}
h2 {font-size:1.15rem}
#status {color:var(--muted); min-height:1.5rem; overflow-wrap:anywhere}
#account {max-width:34rem}
.toolbar,.actions {display:flex; gap:.8rem; flex-wrap:wrap; align-items:end; margin-bottom:1rem}
.toolbar label {flex:1; min-width:min(100%,15rem)}
.panels {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr)); gap:1.25rem; margin:1.2rem 0}
fieldset,#account,#legacy {border:1px solid var(--border); border-radius:14px; background:#10202b; padding:clamp(.9rem,3vw,1.5rem); min-width:0}
legend {padding:0 .4rem; font-weight:700; font-size:1.12rem}
label {display:grid; gap:.25rem; margin-bottom:.65rem; min-width:0; font-size:.91rem}
.toolbar label {margin:0}
input,textarea,select,button {font:inherit; border:1px solid var(--border); border-radius:7px; min-height:44px}
input,textarea,select {background:#081822; color:inherit; width:100%; min-width:0; padding:.5rem .7rem}
textarea {resize:vertical}
button {padding:.5rem 1rem; background:#8de7f4; color:#0a1a22; font-weight:700; cursor:pointer}
button.secondary,#logout {background:#1c3445; color:#e8f4fa}
button:disabled {opacity:.55; cursor:default}
:focus-visible {outline:2px solid var(--focus); outline-offset:3px}
.media {display:grid; gap:.8rem; align-items:center; grid-template-columns:auto minmax(0,1fr); margin-bottom:.8rem}
.media > div {grid-column:-2/-1}
.media img {width:60px; height:60px; object-fit:contain; border-radius:8px; background:#07151e}
#legacy {margin-top:1.35rem}
