:root {
  --bg: #08090c;
  --panel: #12141a;
  --border: #23262f;
  --text: #e6e8ee;
  --muted: #7a7f8c;
  --accent: #ffaa00;
  --danger: #ff5566;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  display: flex; flex-direction: column;
}
header {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 28px; background: #0c0e12; border-bottom: 1px solid var(--border);
}
.brand {
  width: 30px; height: 30px; background: #fff; color: #000;
  border-radius: 6px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
}
.brand-name { font-weight: 700; font-size: 16px; }
.brand-tag { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; }

main {
  flex: 1; max-width: 420px; width: 100%; margin: 40px auto; padding: 0 20px;
}
.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tab {
  flex: 1; background: transparent; color: var(--muted); border: none;
  padding: 12px 16px; font-size: 14px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

.panel { display: none; flex-direction: column; gap: 14px; }
.panel.active { display: flex; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input {
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  padding: 11px 14px; border-radius: 8px; font-size: 14px;
  font-family: inherit; outline: none;
}
input:focus { border-color: var(--accent); }

button {
  background: var(--accent); color: #000; border: none; padding: 12px 18px;
  border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: opacity .15s;
}
button:hover { opacity: 0.9; }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }

.hint { color: var(--muted); font-size: 12px; text-align: center; margin: 4px 0 0; }
.hint a { color: var(--accent); text-decoration: none; }

.msg { margin-top: 20px; padding: 12px 16px; border-radius: 8px; font-size: 13px; display: none; }
.msg.error { display: block; background: #2a1518; color: var(--danger); border: 1px solid #4a1f25; }
.msg.ok    { display: block; background: #152a18; color: #6dd77a; border: 1px solid #1f4a25; }

dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 16px 0; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 0; font-size: 13px; }
hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
h2 { font-size: 18px; margin: 0 0 12px; }
