* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0f1220;
  background: radial-gradient(1200px 600px at 20% -10%, #1d2440 0%, #0f1220 55%);
  color: #e8eaf2;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}
.card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 32px;
}
.card.wide { max-width: 640px; }
h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
p.sub { margin: 0 0 24px; color: #9aa0b5; font-size: 14px; line-height: 1.6; }
label { display: block; font-size: 13px; color: #b8bdcf; margin: 16px 0 6px; }
input, select {
  width: 100%; height: 40px; padding: 0 12px; font-size: 14px; color: #e8eaf2;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; outline: none;
}
input:focus, select:focus { border-color: #5b8cff; }
button {
  width: 100%; height: 42px; margin-top: 20px; font-size: 15px; font-weight: 600;
  color: #fff; background: #4c6ef5; border: 0; border-radius: 8px; cursor: pointer;
}
button:hover { background: #4263e0; }
button.secondary { background: transparent; border: 1px solid rgba(255,255,255,0.18); color: #d7dbea; }
button:disabled { opacity: 0.5; cursor: default; }
.msg { margin-top: 14px; font-size: 13px; min-height: 18px; white-space: pre-wrap; }
.msg.err { color: #ff7b7b; }
.msg.ok { color: #7bd98a; }
.row { display: flex; gap: 10px; align-items: center; }
.row button { margin-top: 0; }
.kv { margin: 12px 0; }
.kv .k { color: #9aa0b5; font-size: 13px; }
.kv .v { font-size: 14px; margin-top: 2px; word-break: break-all; }
.divider { height: 1px; background: rgba(255,255,255,0.08); margin: 20px 0; }
.user-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.user-row:last-child { border-bottom: 0; }
.user-row .name { font-size: 14px; }
.tag { font-size: 12px; color: #9aa0b5; border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 1px 8px; margin-left: 8px; }
.small-btn { width: auto; height: 30px; margin: 0; padding: 0 12px; font-size: 13px; font-weight: 500; }
.link { color: #7ea0ff; cursor: pointer; font-size: 13px; }
.hint { color: #9aa0b5; font-size: 12px; margin-top: 6px; line-height: 1.5; }
