/* Teamchaja base styles. One mobile-width column; the native wrapper reuses it unchanged. */
:root {
  --green: #167A45;
  --green-deep: #0E5C34;
  --green-light: #E4F3EA;
  --ink: #141414;
  --muted: #4B5563;
  --line: #E3E7E3;
  --line-strong: #D9DED9;
  --chip: #F3F5F3;
  --amber: #B45309; --amber-bg: #FEF3C7; --amber-text: #92400E;
  --red: #991B1B;
  --bg: #FFFFFF;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.2px; }
.brand svg { width: 28px; height: 28px; }
.pill { height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.iconbtn { width: 36px; height: 36px; border: 0; border-radius: 18px; background: var(--chip); display: inline-flex; align-items: center; justify-content: center; }

.chips { display: flex; gap: 8px; padding: 6px 20px 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }

.main { flex: 1 1 auto; padding: 0 20px 100px; display: flex; flex-direction: column; gap: 10px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.card.muted { opacity: .6; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag.match { color: var(--green-deep); background: var(--green-light); }
.tag.guest { color: #7C3AED; background: #EFE9FB; }
.tag.slot { color: #1D4ED8; background: #E3EBFC; }
.tag.avail { color: #0F766E; background: #DDF4F1; }
.status { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.status.open { color: var(--green-deep); border: 1px solid var(--green-deep); }
.status.almost { color: var(--amber-text); background: var(--amber-bg); }
.status.closed { color: var(--muted); background: #EEF0EE; }
.title { font-size: 15px; font-weight: 500; }
.sub { font-size: 12px; color: var(--muted); }
.name { font-size: 14px; font-weight: 700; }

.fab { position: fixed; right: max(20px, calc(50% - 220px)); bottom: 92px; width: 56px; height: 56px; border: 0; border-radius: 28px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(22,122,69,.35); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 480px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); background: #fff; }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 500; padding: 6px 0; }
.tabbar button.on { color: var(--green); font-weight: 700; }

.btn { height: 52px; border-radius: 14px; border: 0; background: var(--green); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; width: 100%; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.kakao { background: #FEE500; color: #191919; }
.btn.naver { background: #03C75A; color: #fff; }
.btn.google { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field textarea, .field select { height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink); background: #fff; }
.field textarea { height: auto; padding: 10px 12px; resize: none; }
.center { text-align: center; }
.hero { padding: 48px 20px 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.hero h1 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -0.5px; }
.hero p { margin: 0; color: var(--muted); }
.error { padding: 12px 14px; border-radius: 12px; background: #FEE2E2; color: var(--red); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 13px; opacity: 0; transition: all .2s; pointer-events: none; z-index: 50; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
a.card { color: inherit; }
select { appearance: none; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center; padding-right: 32px; }
input[type=date], input[type=time] { min-width: 0; }
