* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #f2f3f5;
  --black: #000;
  --blue: #4a76ee;
  --red: #e0333c;
  --green: #16a37b;
  --line: #ececf0;
  --t1: #1a1a1a;
  --t2: #6b6b76;
  --t3: #9a9aa3;
}
html { font-size: 19.5px; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
  font-size: 0.72rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; border: 0; background: none; outline: none; }
img { display: block; max-width: 100%; }
#app { min-height: 100vh; }
.page { min-height: 100vh; background: var(--bg); padding-bottom: 1.2rem; }
.page.has-tab { padding-bottom: 4.4rem; }

/* ---------- header ---------- */
.hd {
  position: sticky; top: 0; z-index: 30;
  height: 2.26rem; display: flex; align-items: center; justify-content: center;
  background: var(--black); color: #fff; font-size: 0.87rem; font-weight: 600;
}
.hd .back { position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%); width: 1.2rem; height: 1.2rem; display: flex; align-items: center; justify-content: center; }
.hd .back i { display: block; width: 0.5rem; height: 0.5rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.hd .right { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); font-size: 0.68rem; font-weight: 400; color: #fff; }
.hd.light { background: #fff; color: var(--t1); }
.hd.light .back i { border-color: var(--t1); }
.hd .logo { height: 0.95rem; }
.hd .logo-text { font-weight: 800; letter-spacing: 0.02em; font-size: 0.95rem; }

/* ---------- cells / cards ---------- */
.card { background: #fff; border-radius: 0.6rem; margin: 0.5rem 0.75rem; overflow: hidden; }
.card.flat { border-radius: 0; margin: 0.5rem 0; }
.group { background: #fff; margin-top: 0.5rem; }
.cell { display: flex; align-items: center; min-height: 2.4rem; padding: 0 0.9rem; background: #fff; position: relative; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 0.9rem; right: 0; height: 1px; background: var(--line); }
.cell .label { font-size: 0.75rem; color: var(--t1); }
.cell .value { margin-left: auto; color: var(--t3); font-size: 0.72rem; }
.cell .arrow { margin-left: 0.35rem; width: 0.4rem; height: 0.4rem; border-top: 1px solid #c6c6cd; border-right: 1px solid #c6c6cd; transform: rotate(45deg); flex: none; }
.cell .icon { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #f0f0f3; display: flex; align-items: center; justify-content: center; margin-right: 0.55rem; flex: none; font-size: 0.68rem; }
.section-title { padding: 1rem 0.9rem 0.4rem; font-size: 0.66rem; color: var(--t3); }

/* ---------- forms ---------- */
.field { background: #fff; padding: 0.7rem 0.9rem; }
.field + .field { border-top: 1px solid var(--line); }
.field .cap { font-size: 0.74rem; color: var(--t1); margin-bottom: 0.5rem; display: block; }
.field input { width: 100%; height: 2.1rem; background: #f5f5f8; border-radius: 0.4rem; padding: 0 0.7rem; font-size: 0.75rem; }
.field input::placeholder { color: #b6b6bf; }
.hint { font-size: 0.62rem; color: var(--t3); padding: 0.5rem 0.9rem; line-height: 1.5; }

/* ---------- buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; height: 2.2rem; border-radius: 1.3rem; font-size: 0.8rem; font-weight: 600; width: 100%; }
.btn-main { background: var(--blue); color: #fff; }
.btn-dark { background: #111; color: #fff; }
.btn:disabled { opacity: 0.45; }
.btn-wrap { padding: 1rem 0.9rem; }
.pillbtn { display: inline-flex; align-items: center; justify-content: center; height: 1.9rem; padding: 0 1.4rem; border-radius: 1rem; background: #111; color: #fff; font-size: 0.78rem; font-weight: 700; }

/* ---------- tabbar ---------- */
#tabbar-slot { position: fixed; left: 0; right: 0; bottom: 0.8507rem; z-index: 50; }
.tabbar {
  margin: 0 0.6rem; height: 3.3rem; border-radius: 1.7rem; background: #fff;
  display: flex; align-items: center; box-shadow: 0 2px 14px rgba(0,0,0,.10);
}
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.18rem; height: 2.6rem; border-radius: 1.3rem; }
.tabbar .tab.cur { background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.07); }
.tabbar .tab img { width: 1.25rem; height: 1.25rem; opacity: .55; }
.tabbar .tab.cur img { opacity: 1; }
.tabbar .tab span { font-size: 0.6rem; color: #77777f; }
.tabbar .tab.cur span { color: #111; font-weight: 600; }

/* ---------- misc ---------- */
.empty { text-align: center; color: var(--t3); font-size: 0.7rem; padding: 2.2rem 0; }
.loader { display: flex; justify-content: center; padding: 3rem 0; }
.loader i { width: 1.6rem; height: 1.6rem; border: 2px solid #d9d9de; border-top-color: #8a8a94; border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
#toast-slot { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 100; pointer-events: none; }
#toast-slot.on { display: flex; }
.toast { background: rgba(0,0,0,.78); color: #fff; padding: 0.55rem 0.9rem; border-radius: 0.4rem; font-size: 0.7rem; max-width: 70%; text-align: center; }
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 80; display: flex; align-items: center; justify-content: center; }

/* auth (login/register) */
.auth { background: #ebebee; min-height: 100vh; padding: 0.9rem 0.75rem 2rem; }
.auth-card { background: #fff; border-radius: 0.7rem; padding: 1.15rem 0.95rem 1.2rem; }
.auth-brand { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 1.9rem; padding: 0.5rem 0.55rem 0.5rem 0.7rem; margin-bottom: 0.75rem; }
.auth-brand .l { display: flex; align-items: center; gap: 0.45rem; font-weight: 800; font-size: 0.92rem; }
.auth-brand .l .dot { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #f3d3d6; display: grid; place-items: center; font-size: 0.5rem; color: #9d5d63; font-weight: 800; }
.auth-brand .cs { border: 1px solid #ddd; border-radius: 1rem; padding: 0.3rem 0.7rem; font-size: 0.66rem; color: #555; }
.auth-eyebrow { font-size: 0.62rem; letter-spacing: 0.14em; color: var(--t3); margin-bottom: 0.4rem; }
.auth-title { font-size: 1.28rem; font-weight: 800; line-height: 1.35; margin-bottom: 0.55rem; }
.auth-sub { font-size: 0.7rem; color: var(--t2); line-height: 1.5; margin-bottom: 1.1rem; }
.auth-label { display: block; font-size: 0.74rem; font-weight: 600; margin: 0.75rem 0 0.45rem; }
.auth-input { width: 100%; height: 2.4rem; border: 1px solid #e2e2e7; border-radius: 0.4rem; padding: 0 0.7rem; font-size: 0.78rem; }
.auth-btn { width: 100%; height: 2.5rem; background: #0d0d0d; color: #fff; border-radius: 0.35rem; font-size: 0.85rem; font-weight: 700; margin-top: 0.8rem; display: flex; align-items: center; justify-content: center; }
.auth-sep { text-align: center; font-size: 0.7rem; color: var(--t summar); color: #8e8e96; margin: 0.9rem 0; }
.auth-foot { margin-top: 1rem; }
.company { background: #f4f4f6; border-radius: 0.7rem; padding: 1rem 0.95rem; margin-top: 0.75rem; font-size: 0.66rem; color: #77777f; line-height: 1.75; }
.company h4 { font-size: 1rem; color: #22222a; margin: 0.35rem 0 0.7rem; }
