:root { --bg: #f3f7fb; --ink: #14243a; --soft: #52606f; --blue: #17406b; --line: #d6e0ea; --ok: #1f7a4d; --bad: #b3261e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 22px; margin: 0 0 4px; }
.sub { color: var(--soft); margin: 0 0 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mod-name { font-weight: 600; }
.mod-hint { color: var(--soft); font-size: 14px; margin-top: 2px; }
input[type=password] { width: 100%; padding: 12px; font-size: 18px; border: 1px solid var(--line); border-radius: 10px; letter-spacing: 4px; }
button { font: inherit; padding: 12px 16px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
button.ghost { background: transparent; color: var(--blue); border: 1px solid var(--line); }
.msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #b9c4cf; border-radius: 30px; transition: .15s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(22px); }
.pending { color: #9a5b00; font-size: 14px; margin-top: 8px; }
