:root {font-family:"DM Sans","PingFang TC",system-ui,sans-serif;color:#1d2838;background:#fbfcfe;color-scheme:light;line-height:1.55}
* {box-sizing:border-box} body {margin:0;min-height:100dvh;display:flex;flex-direction:column}
header,footer {display:flex;align-items:center;gap:18px;padding:19px clamp(20px,5vw,72px);font-size:14px}
header {justify-content:space-between;border-bottom:1px solid #e1e5eb;background:white}
.brand {font-size:23px;font-weight:750;letter-spacing:-1.3px;color:#1e293b;text-decoration:none}
.brand span {color:#2366dc}.brand small {margin-left:9px;letter-spacing:0;font-size:13px;font-weight:550;color:#526277}
nav,.switch,.dialog-actions {display:flex;align-items:center;gap:18px} nav a,.link {color:#36557b;text-decoration:none}
a:hover,.link:hover {color:#184eb0;text-decoration:underline}
main {width:min(100% - 40px,780px);margin:clamp(30px,6vh,76px) auto 40px;flex:1}
.auth {max-width:430px;margin:0 auto} h1 {font-size:clamp(31px,4.2vw,46px);letter-spacing:-1.3px;line-height:1.2;margin:0 0 12px}
h2 {font-size:19px;margin:0 0 12px} p {margin:0 0 21px;color:#566579}
.panel,dialog {padding:clamp(20px,3.8vw,30px);border:1px solid #dce2ea;border-radius:16px;background:white;box-shadow:0 5px 19px #1a2d4a07}
.panel+.panel {margin-top:16px}
.switch {gap:3px;background:#f0f3f8;border-radius:10px;padding:3px;margin-bottom:22px}
.switch button {flex:1;border-radius:8px;padding:8px;background:transparent;color:#4f5d73}
.switch [aria-pressed=true] {background:#fff;color:#1a407a;box-shadow:0 1px 3px #24385823}
button,input,textarea {font:inherit}button {cursor:pointer;border:0;background:none;border-radius:8px}
button:disabled {opacity:.6;cursor:wait}button:focus-visible,a:focus-visible {outline:3px solid #79aaf3;outline-offset:3px}
label {display:block;font-size:14px;font-weight:650;margin:0 0 6px} input,textarea {border:1px solid #bec9d7;border-radius:8px;width:100%;padding:10px 12px;color:inherit;background:white}
input:focus,textarea:focus {outline:2px solid #80b1ff;outline-offset:1px}form label:not(:first-child) {margin-top:15px}small {color:#627188}
.primary {color:white;background:#245ecc;font-size:15px;padding:10px 18px;font-weight:650}
.primary:hover {background:#1e50ad}#auth-submit {width:100%;margin-top:20px}
.link {padding:4px;background:transparent}.new-key {display:flex;align-items:end;gap:12px}.new-key div {flex:1}
.key {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e3e8f0;padding-top:14px;margin-top:14px}.key strong,.key small {display:block;overflow-wrap:anywhere}
.key button {color:#a43e30}.key small,#reset,#who {font-size:13px}#who {margin-bottom:6px}
dl {display:grid;grid-template-columns:1fr auto;gap:5px;margin:0 0 10px}dd {font-variant-numeric:tabular-nums}
footer {justify-content:center;border-top:1px solid #e2e7ed;color:#54647a}#notice {text-align:center;margin:14px 0;color:#994025}#notice:empty {display:none}
dialog {width:min(100% - 32px,420px);color:inherit}dialog::backdrop {background:#10254455}textarea {font-family:"IBM Plex Mono",monospace;font-size:14px}.dialog-actions {justify-content:flex-end;margin-top:16px}
[hidden] {display:none!important}
@media(max-width:480px) {header {padding:13px 15px}nav {gap:8px}.new-key {align-items:stretch;flex-direction:column}.brand small{display:none}footer{gap:8px}}
