/* base.css — 앱의 web/style.css 에서 커뮤니티가 쓰는 토큰과 공용 부품만 뽑은 것(scripts/build_web_community.py 가 만든다. 직접 고치지 말 것) */
:root { --grey50: #F9FAFB; --grey100: #F2F4F6; --grey200: #E5E8EB; --grey300: #D1D6DB; --grey400: #B0B8C1; --grey500: #8B95A1; --grey600: #6B7684; --grey700: #4E5968; --grey800: #333D4B; --grey900: #191F28; --blue50: #E8F3FF; --blue100: #C9E2FF; --blue500: #3182F6; --blue600: #2272EB; --blue700: #1B64DA; --red500: #F04452; --green500: #03B26C; --yellow500: #FFC342; --bg: #FFFFFF; --bg-grey: var(--grey100); --layer: #FFFFFF; --text: var(--grey900); --text-2: var(--grey700); --text-3: var(--grey500); --border: var(--grey200); --fill: var(--grey100); --primary: var(--blue500); --primary-press: var(--blue700); --primary-weak: var(--blue50); --primary-weak-text: var(--blue600); --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif; --cta-h: 56px; }
* { box-sizing: border-box; min-width: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.top-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); border-radius: 12px; }
.top-btn:active { background: var(--fill); }
.top-spacer { flex: 1; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grey100); }
.progress i { display: block; height: 100%; background: var(--primary); transition: width .35s cubic-bezier(.2,.8,.2,1); border-radius: 0 3px 3px 0; }
.title { font-size: 26px; line-height: 35px; font-weight: 700; margin: 12px 0 8px; letter-spacing: -0.02em; text-wrap: balance; }
.desc { font-size: 15px; line-height: 22.5px; color: var(--text-2); margin: 0 0 20px; }
.caption { font-size: 13px; line-height: 19.5px; color: var(--text-3); margin: 8px 0; }
.section { margin-top: 28px; }
.section-title { font-size: 15px; font-weight: 600; color: var(--text-2); margin: 0 0 8px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 0; }
.row.tap { cursor: pointer; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 14px; }
.row.tap:active { background: var(--fill); }
.row-body { flex: 1; }
.row-title { font-size: 17px; line-height: 25px; font-weight: 500; color: var(--text); }
.row-desc { font-size: 14px; line-height: 20px; color: var(--text-3); margin-top: 2px; }
.row-value { font-size: 15px; color: var(--text-3); white-space: nowrap; }
.chev { width: 8px; height: 8px; border-right: 2px solid var(--grey400); border-bottom: 2px solid var(--grey400); transform: rotate(-45deg); margin-right: 6px; flex: none; }
.rows.compact .r { color: var(--text-3); font-size: 14px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--fill); color: var(--text-2); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 500; }
.chip.active { background: var(--primary-weak); color: var(--primary-weak-text); }
.chips.small .chip { padding: 6px 11px; font-size: 13px; }
.seg { display: flex; background: var(--fill); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; border-radius: 10px; padding: 10px 4px; font-size: 15px; font-weight: 500; color: var(--text-3); }
.seg button.active { background: var(--layer); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.10); }
.field { margin: 0 0 16px; }
.field label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.field input { width: 100%; background: var(--fill); border: 2px solid transparent; border-radius: 14px; padding: 14px 16px; font-size: 17px; }
.field input:focus { outline: none; border-color: var(--primary); background: var(--layer); }
.btn { display: block; width: 100%; height: var(--cta-h); border-radius: 16px; font-size: 17px; font-weight: 600; text-align: center; line-height: var(--cta-h); text-decoration: none; transition: transform .08s, background .12s, opacity .12s; user-select: none; }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:active { background: var(--primary-press); }
.btn.secondary { background: var(--fill); color: var(--text-2); }
.btn.weak { background: var(--primary-weak); color: var(--primary-weak-text); height: 48px; line-height: 48px; border-radius: 14px; font-size: 15px; }
.btn.danger { background: var(--red500); color: #fff; }
.btn:disabled { opacity: .4; cursor: default; }
.btn:disabled.primary { background: var(--grey200); color: var(--grey500); opacity: 1; }
@keyframes sd-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--layer); border-radius: 22px 22px 0 0; padding: 8px 20px calc(16px + env(safe-area-inset-bottom)); max-height: 80vh; overflow-y: auto; animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.handle { width: 40px; height: 4px; border-radius: 2px; background: var(--grey300); margin: 4px auto 14px; }
.sheet-title { font-size: 20px; font-weight: 700; line-height: 29px; margin: 4px 0 8px; }
.sheet .rows { margin-bottom: 12px; }
.sheet .row-desc { font-size: 13px; }
.modal-root { position: fixed; inset: 0; z-index: 70; }
.modal-root .dim { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: fade .2s ease-out; }
.login-btns { display: grid; gap: 10px; margin: 16px 0 8px; }
.btn.login { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; line-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 600; border: 1px solid transparent; }
.btn.login svg { width: 20px; height: 20px; flex: none; }
.btn.login.apple { background: #000; color: #fff; }
.btn.login.kakao { background: #FEE500; color: #191919; }
.btn.login.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.row.me .row-title { color: var(--primary); font-weight: 700; }
.row-value b { font-size: 16px; color: var(--text); margin-right: 2px; }
.row-title.danger { color: var(--red500); }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex: none; }
.map-toggle .ico, .map-expand .ico, .chip .ico { width: 16px; height: 16px; vertical-align: -3px; }
.chip .ico.wish { color: #F5A623; }
.sheet-title .ico, .br-banner .ico { width: 1em; height: 1em; vertical-align: -0.12em; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.section-head .section-title { margin: 0; }
.section-title.big { font-size: 19px; font-weight: 700; color: var(--text); }
.section-more { font-size: 14px; font-weight: 500; color: var(--primary); padding: 4px 0 4px 8px; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg { display: flex; background: var(--fill); border-radius: 14px; padding: 4px; margin: 0 0 14px; }
.seg button { flex: 1; height: 40px; border-radius: 11px; font-size: 15px; font-weight: 600; color: var(--text-3); }
.seg button.on { background: var(--layer); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.10); }
