*{box-sizing:border-box}
body{margin:0;font-family:system-ui,Segoe UI,Roboto,sans-serif;background:#0f1720;color:#e8eef5}
h1{font-size:18px;margin:0 0 8px}
button,input{font:inherit;border-radius:8px;border:1px solid #3a4a5c;padding:10px 12px;background:#1b2836;color:#e8eef5}
button{cursor:pointer;background:#1f6feb;border-color:#1f6feb;color:#fff}
button.sec{background:#1b2836;border-color:#3a4a5c}
button.danger{background:#b42318;border-color:#b42318}
button:disabled{opacity:.5;cursor:default}
input{width:100%}
.card{background:#16212d;border:1px solid #2a3a4c;border-radius:12px;padding:14px;margin:10px 0}
.small{font-size:12px;opacity:.75}
.code{font-size:30px;letter-spacing:6px;font-weight:700;text-align:center;font-family:ui-monospace,Consolas,monospace}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.row>*{flex:1}
.err{color:#ff8a80}.ok{color:#7ee787}
#log{font:12px ui-monospace,Consolas,monospace;white-space:pre-wrap;background:#0b1118;border-radius:8px;padding:8px;max-height:40vh;overflow:auto}
/* carte */
#app{display:flex;height:100vh}
#side{width:340px;max-width:45vw;overflow:auto;padding:10px;border-right:1px solid #2a3a4c}
#map{flex:1}
.hidden{display:none!important}
.dev{border-left:4px solid #7ee787;padding-left:8px;margin:8px 0;font-size:13px}
.dev.off{border-color:#888;opacity:.65}
@media(max-width:700px){#app{flex-direction:column-reverse}#side{width:100%;max-width:none;height:48vh}#map{height:52vh}}
