:root {
  color-scheme: dark;
  --bg: #181b1a;
  --card: #212524;
  --line: #343a38;
  --text: #e6e9e8;
  --dim: #9aa3a0;
  --accent: #20744a;
  --bad: #e5735f;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
h1 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
}
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
form[hidden],
[hidden] {
  display: none;
}
label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--dim);
  font-size: 13px;
}
input,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}
textarea {
  resize: vertical;
  word-break: break-all;
}
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
button {
  font: inherit;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
button.plain {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line);
}
.hint {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}
.msg {
  margin: 0;
  min-height: 1.5em;
  color: var(--dim);
  font-size: 13px;
}
.msg.bad {
  color: var(--bad);
}
/* 비밀번호 칸 오른쪽 눈 아이콘(10-09) — 눌러 보이기·숨기기 */
.pw {
  position: relative;
  display: flex;
}
.pw input {
  flex: 1;
  min-width: 0;
  padding-right: 42px;
}
button.eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 6px;
  color: var(--dim);
  background: transparent;
  border: 0;
  line-height: 0;
}
button.eye .off,
button.eye[aria-pressed="true"] .on {
  display: none;
}
button.eye[aria-pressed="true"] .off {
  display: inline;
}
/* 초대 키 첫 등록(10-11) — OTP QR 은 흰 바탕이어야 폰 카메라가 읽는다 */
.qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  image-rendering: pixelated;
}
.secret {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--text);
  word-break: break-all;
  user-select: all;
}
