:root {
  --bg: #03141f; --bg-2: #0a2233; --card: #0d2b3e; --line: #17415c;
  --txt: #e6f2f8; --dim: #7fa6bd; --accent: #2ec5c1; --danger: #ff6b6b;
  --on-accent: #03141f;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f8fa; --bg-2: #e8f0f4; --card: #ffffff; --line: #cfdde5;
    --txt: #06202e; --dim: #4f6b7a; --accent: #0b8f8b; --danger: #c62828;
    --on-accent: #ffffff;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--txt); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
.wrap { max-width: 520px; margin: 0 auto; padding: 16px 16px 96px; }
.guest .wrap { padding-bottom: 32px; }
h1 { font-size: 1.5rem; margin: 8px 0 16px; }
.muted { color: var(--dim); font-size: .92rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: .9rem; color: var(--dim); margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 1.05rem;
  color: var(--txt); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.error { color: var(--danger); font-size: .9rem; margin: 6px 0 0; }
.notice { border-left: 4px solid var(--accent); padding: 10px 12px; background: var(--bg-2); border-radius: 8px; margin-bottom: 14px; }
.btn {
  display: block; width: 100%; min-height: 54px; padding: 14px; font-size: 1.05rem; font-weight: 600;
  font-family: inherit; text-align: center; text-decoration: none; cursor: pointer;
  color: var(--txt); background: transparent; border: 1px solid var(--line); border-radius: 14px;
}
.btn + .btn, form + .btn, .btn + form, form + form { margin-top: 10px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.hero { text-align: center; padding: 48px 0 24px; }
.hero .logo { font-size: 4rem; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex;
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .78rem; color: var(--dim); text-decoration: none;
}
.tabbar a b { font-size: 1.4rem; font-weight: 400; }
.tabbar a.on { color: var(--accent); }
.empty { text-align: center; padding: 48px 12px; color: var(--dim); }
.empty b { display: block; font-size: 3rem; }
