/* CARDEN 카든 — 짙은 숲색 + 골드 + 크림 */
:root {
  --forest: #12372A; --forest-2: #1C4A39; --leaf: #2E8B57; --gold: #E8A33D; --gold-ink: #8A5A0B;
  --cream: #FBF7EE; --paper: #FFFFFF; --ink: #15241E; --muted: #55645C; --line: #E3DCCB; --soft: #F3EEE2;
  --danger: #B3261E; --ok: #1F7A4D;
  --r: 16px; --shadow: 0 1px 2px rgba(18, 55, 42, .06), 0 6px 18px rgba(18, 55, 42, .08);
  --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--forest-2); }
.hidden { display: none !important; }

/* ---------- 상단 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--forest); color: var(--cream);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; display: flex; align-items: center; gap: 10px;
}
.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .06em; font-size: 18px; }
.topbar .brand img { width: 30px; height: 30px; border-radius: 8px; }
.topbar .brand small { font-weight: 500; letter-spacing: 0; font-size: 11px; color: #CFE3D7; margin-left: 2px; }
.topbar .spacer { flex: 1; }
.topbar h1 { font-size: 17px; margin: 0; font-weight: 700; }
.icon-btn { background: transparent; border: 0; color: inherit; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:active { background: rgba(255, 255, 255, .12); }
.icon-btn svg { width: 22px; height: 22px; }

.searchbar { background: var(--forest); padding: 0 16px 14px; position: sticky; top: 62px; z-index: 19; }
.searchbar input {
  width: 100%; height: 44px; border-radius: 12px; border: 0; padding: 0 14px 0 40px; background: #FFFFFF; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355645C' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: 13px center;
}
.searchbar input::placeholder { color: #7A877F; }

main { padding: 14px 16px calc(var(--nav-h) + var(--safe-b) + 90px); max-width: 720px; margin: 0 auto; }

/* ---------- 하단 탭 ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a.on { color: var(--forest); }
.bottomnav a.on svg { stroke: var(--forest); }

.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + var(--safe-b) + 18px); z-index: 31; height: 58px; padding: 0 22px 0 18px;
  border-radius: 29px; border: 0; background: var(--gold); color: #2A1A00; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 22px rgba(138, 90, 11, .35); cursor: pointer;
}
.fab svg { width: 24px; height: 24px; }
.fab:active { transform: scale(.97); }

/* ---------- 공통 요소 ---------- */
.card-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.section-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 22px 4px 8px; letter-spacing: .02em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; text-decoration: none; font-size: 15px;
}
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--forest); color: #FFFFFF; }
.btn.primary:active { background: var(--forest-2); }
.btn.gold { background: var(--gold); color: #2A1A00; }
.btn.ghost { background: var(--paper); color: var(--forest); border-color: var(--line); }
.btn.danger { background: var(--paper); color: var(--danger); border-color: #EBC4C1; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #FDF0D8; color: var(--gold-ink); white-space: nowrap; }
.badge.green { background: #E2F2E8; color: var(--ok); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--forest); color: #FFFFFF; border-color: var(--forest); }

.notice { background: #FFF8EA; border: 1px solid #F1DDB0; color: #4A3608; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; display: flex; gap: 10px; }
.notice b { color: #3A2A05; }
.demo-banner { background: #E8F3EC; border: 1px solid #C3E0CF; color: #173D2C; }

/* ---------- 명함 목록 ---------- */
.list-meta { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 10px; font-size: 13px; color: var(--muted); }
.list-meta select { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; height: 34px; padding: 0 8px; color: var(--ink); }
.clist { display: flex; flex-direction: column; gap: 10px; }
.citem { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; text-align: left; width: 100%; }
.citem:active { background: var(--soft); }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--forest); color: #FFFFFF; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.avatar.alt { background: var(--gold); color: #2A1A00; }
.citem .info { flex: 1; min-width: 0; }
.citem .nm { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.citem .nm span.t { font-weight: 600; font-size: 13px; color: var(--muted); }
.citem .co { font-size: 14px; color: #33433B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem .star { color: var(--gold); font-size: 18px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty img { width: 96px; opacity: .95; margin-bottom: 12px; }
.empty h3 { color: var(--ink); margin: 0 0 6px; font-size: 18px; }

/* ---------- 촬영 ---------- */
.scan-hero { background: var(--forest); color: var(--cream); border-radius: 20px; padding: 22px 18px; text-align: center; }
.scan-hero h2 { margin: 8px 0 4px; font-size: 20px; }
.scan-hero p { margin: 0 0 16px; color: #D6E7DD; font-size: 14px; }
.frame { margin: 6px auto 16px; width: 100%; max-width: 360px; aspect-ratio: 9/5.4; border: 2px dashed rgba(251, 247, 238, .55); border-radius: 14px; display: grid; place-items: center; color: #D6E7DD; font-size: 14px; position: relative; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: contain; background: #0C2A1F; }
.tips { margin: 14px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; }
.progress { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }

/* ---------- 입력 폼 ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: #3A4A42; margin: 0 0 5px 2px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid #D6CFBE; background: #FFFFFF; color: var(--ink); padding: 10px 12px; font-size: 16px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--leaf); outline-offset: 0; border-color: var(--leaf); }
.field input::placeholder, .field textarea::placeholder { color: #8B968F; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; margin-bottom: 10px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--forest); flex: none; }
.check b { display: block; font-size: 15px; }
.check span { font-size: 13px; color: var(--muted); }
.thumb-prev { width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 12px; background: #F2EEE4; }
details.raw { margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
details.raw pre { white-space: pre-wrap; background: var(--soft); padding: 10px; border-radius: 10px; color: var(--ink); }

/* ---------- 상세 ---------- */
.detail-head { text-align: center; padding: 8px 0 14px; }
.detail-head .avatar { width: 72px; height: 72px; font-size: 28px; border-radius: 20px; margin: 0 auto 10px; }
.detail-head h2 { margin: 0; font-size: 24px; }
.detail-head .sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.detail-head .co { font-weight: 700; font-size: 16px; margin-top: 6px; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 16px; }
.actions a, .actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--forest); font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.actions svg { width: 22px; height: 22px; }
.actions .off { opacity: .35; pointer-events: none; }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 10px 12px; font-size: 15px; }
.kv dt { color: var(--muted); font-size: 13px; font-weight: 700; padding-top: 2px; }
.kv dd { margin: 0; word-break: break-word; }
.tagline { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 로그인 ---------- */
.login { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 40px 22px calc(30px + var(--safe-b)); max-width: 460px; margin: 0 auto; }
.login .logo { width: 88px; height: 88px; border-radius: 24px; margin: 0 auto 16px; display: block; box-shadow: var(--shadow); }
.login h1 { text-align: center; margin: 0; font-size: 30px; letter-spacing: .08em; color: var(--forest); }
.login .tag { text-align: center; color: var(--muted); margin: 4px 0 28px; }
.login .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.login .or::before, .login .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login .foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 22px; }
.gbtn { background: #FFFFFF; color: #1F1F1F; border: 1px solid #CFCFCF; }
.gbtn img { width: 20px; height: 20px; }

/* ---------- 내 명함 ---------- */
.mycard { background: linear-gradient(135deg, var(--forest) 0%, #0E2B21 100%); color: var(--cream); border-radius: 20px; padding: 20px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.mycard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(232, 163, 61, .18); }
.mycard .co { font-size: 13px; color: #E9C98F; font-weight: 700; letter-spacing: .02em; }
.mycard .nm { font-size: 24px; font-weight: 800; margin-top: 18px; }
.mycard .tt { font-size: 14px; color: #D6E7DD; }
.mycard .ct { font-size: 13px; color: #E8F1EB; margin-top: 14px; line-height: 1.7; }
.qrwrap { background: #FFFFFF; border-radius: 16px; padding: 16px; text-align: center; border: 1px solid var(--line); }
#qr svg { width: 200px; height: 200px; display: block; margin: 0 auto; }

/* ---------- 설정 ---------- */
.menu { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.menu a, .menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 16px; border: 0; background: transparent; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.menu > * + * { border-top: 1px solid var(--line); }
.menu .danger { color: var(--danger); }
.menu small { color: var(--muted); font-weight: 500; }

/* ---------- 알림·로딩 ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 92px); transform: translateX(-50%); background: #10251C; color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 100; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.overlay { position: fixed; inset: 0; background: rgba(10, 25, 19, .55); z-index: 90; display: grid; place-items: center; padding: 24px; }
.overlay .box { background: #FFFFFF; color: var(--ink); border-radius: 18px; padding: 22px; width: 100%; max-width: 360px; text-align: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #E4EFE8; border-top-color: var(--forest); animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 760px) {
  main { padding-top: 22px; }
  .bottomnav { max-width: 720px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 16px 16px 0 0; }
}

/* ===== v2 추가 ===== */
.bottomnav a { font-size: 11.5px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.sm svg { width: 17px; height: 17px; }
.icon-btn.sm { width: 32px; height: 32px; color: var(--muted); }
.lang-btn { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 16px; border: 1px solid var(--line); background: var(--paper); color: var(--forest); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.login { position: relative; }
.check.all { border-color: #C9B98F; background: #FFFBF1; }
.badge.red { background: #FCE4E2; color: #9B1C14; }
a.notice { text-decoration: none; }
.notice.moved { background: #EEF6FF; border-color: #C9DDF5; color: #12304F; }
.notice.moved b { color: #0B2440; }

.promo { display: flex; align-items: center; gap: 10px; background: #FFF6E3; border: 1px solid #F0D9A4; color: #4A3608; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; text-decoration: none; font-size: 14px; font-weight: 600; }
.promo svg { width: 22px; height: 22px; flex: none; color: var(--gold-ink); }
.promo span { flex: 1; }
.promo b { background: var(--gold); color: #2A1A00; border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.promo.bell { background: #EAF4EE; border-color: #C3E0CF; color: #173D2C; }
.promo.bell svg { color: var(--leaf); }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); margin-top: 10px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 700; padding: 8px 14px; font-size: 13.5px; cursor: pointer; }
.seg button.on { background: var(--forest); color: #FFFFFF; }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; }
main > .seg { display: flex; width: max-content; }

.tabbar { position: sticky; top: 62px; z-index: 18; background: var(--forest); display: flex; gap: 4px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar a { flex: none; color: #CFE3D7; text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.tabbar a.on { background: var(--gold); color: #2A1A00; }

.lead-p { color: var(--muted); font-size: 14px; margin: 0 2px 12px; }
.tile-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 4px; }
@media (min-width: 560px) { .tile-row { grid-template-columns: 1fr 1fr; } }
.tile { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); }
.tile.en { background: #F1F7F3; border-color: #CFE4D7; }
.tile-k { font-size: 12px; font-weight: 800; color: var(--gold-ink); margin-bottom: 4px; letter-spacing: .02em; }
.tile.en .tile-k { color: var(--leaf); }
.tile b { display: block; font-size: 15.5px; }
.tile p { margin: 4px 0 0; font-size: 13.5px; color: #3A4A42; }
.litem { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; text-decoration: none; color: var(--ink); }
.litem b { display: block; font-size: 15.5px; margin: 6px 0 2px; }
.litem p { margin: 2px 0 6px; font-size: 14px; color: #3A4A42; }
.litem.job .btn { margin-top: 6px; }
.citem.static { cursor: default; }

.post h2 { font-size: 20px; margin: 10px 0 12px; }
.byline { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
.post-body { font-size: 15.5px; line-height: 1.7; white-space: normal; word-break: break-word; }
.post-acts { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.post-acts .spacer { flex: 1; }
.btn.liked { color: #C2410C; border-color: #F5C9B3; }
.comments { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.cmt { display: flex; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.cmt-b { flex: 1; min-width: 0; }
.cmt-b p { margin: 4px 0; word-break: break-word; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.link.danger-t { color: var(--danger); }
.cform { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.cform textarea { flex: 1; min-height: 48px; max-height: 140px; border-radius: 12px; border: 1px solid #D6CFBE; background: #FFFFFF; color: var(--ink); padding: 10px 12px; font-size: 15px; resize: vertical; }

.mycard-wrap { position: relative; }
.myphoto { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #F2EEE4; display: block; }

.show { position: fixed; inset: 0; z-index: 200; background: #0C2219; color: #FBF7EE; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 20px calc(24px + var(--safe-b)); overflow-y: auto; }
.show-card { width: 100%; max-width: 380px; }
.show-card img { width: 100%; border-radius: 14px; display: block; }
.show-card .mycard { box-shadow: none; }
.show-qr { background: #FFFFFF; border-radius: 18px; padding: 14px; width: 250px; height: 250px; display: grid; place-items: center; color: #15241E; }
.show-qr svg { width: 222px; height: 222px; }
.show-hint { text-align: center; font-size: 15px; color: #E8F1EB; line-height: 1.5; }
.show-hint b { font-size: 17px; color: #FFFFFF; }
.show-code { font-size: 13px; color: #CFE3D7; }
.show-code b { color: #F2C978; letter-spacing: .12em; font-size: 16px; margin-left: 4px; }
.show-brand { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #A9C3B4; font-weight: 700; letter-spacing: .04em; }
.show-brand img { width: 20px; height: 20px; border-radius: 5px; }
.show-tap { font-size: 11.5px; color: #8FAA9B; }

.invite-hero { background: var(--forest); color: var(--cream); border-radius: 20px; padding: 22px 18px; text-align: center; }
.invite-hero > svg { width: 40px; height: 40px; color: var(--gold); }
.invite-hero h2 { margin: 6px 0 6px; font-size: 19px; }
.invite-hero p { margin: 6px 0; color: #D6E7DD; font-size: 14px; }
.invite-hero p b { color: #FFFFFF; }
.meter { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .18); overflow: hidden; margin: 14px 0 6px; }
.meter i { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.meter-txt { font-size: 13.5px; color: #E8F1EB; margin-bottom: 10px; }
.meter-txt b { font-size: 18px; color: #FFFFFF; }
.bigcode { font-size: 30px; font-weight: 800; letter-spacing: .18em; color: var(--forest); margin: 4px 0 14px; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; font-weight: 600; cursor: pointer; color: var(--ink); }
.toggle input { width: 22px; height: 22px; accent-color: var(--forest); flex: none; }
.menu > .hidden + .toggle { border-top: 0; }

.sal { padding: 14px 14px 12px; }
.sal-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sal-legend .lg { display: inline-block; width: 18px; height: 8px; border-radius: 4px; margin-right: 5px; vertical-align: middle; }
.sal-legend .lg.band { background: #CFE4D7; }
.sal-legend .lg.mid { width: 3px; height: 12px; background: var(--forest); border-radius: 1px; }
.sal-row { display: grid; grid-template-columns: 82px 1fr 54px; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.sal-lv { color: #33433B; font-weight: 600; }
.sal-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sal-bar { position: relative; height: 14px; background: var(--soft); border-radius: 7px; }
.sal-bar i { position: absolute; top: 0; height: 100%; }
.sal-bar .band { background: #CFE4D7; border-radius: 7px; }
.sal-bar .mid { width: 3px; background: var(--forest); margin-left: -1px; }
.sal-bar .you { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px var(--gold-ink); margin-left: -7px; }
.sal-bar.big { height: 18px; margin: 14px 0 8px; }
.sal-bar.big .you { width: 20px; height: 20px; top: -1px; margin-left: -10px; }
.result { margin-top: 12px; }
.result .big { font-size: 16px; }
.result .big b { color: var(--forest); font-size: 19px; }
.sal-nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.ev-head { text-align: center; padding: 6px 0 4px; }
.ev-head h2 { margin: 8px 0 4px; font-size: 21px; }

.toast.push { display: block; text-decoration: none; color: #FFFFFF; top: calc(env(safe-area-inset-top, 0px) + 12px); bottom: auto; }
select { color: var(--ink); background: #FFFFFF; }

/* 언어 고르기 (10개 언어) */
select.lang-btn { appearance: none; -webkit-appearance: none; padding: 6px 28px 6px 14px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23153A2C' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 11px center; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 12px; }
.lang-grid button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 10px 6px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; justify-content: center; text-align: center; }
.lang-grid button.on { background: var(--forest); border-color: var(--forest); color: #FFFFFF; }

/* 아랍어(오른쪽→왼쪽) */
[dir="rtl"] .citem, [dir="rtl"] .menu a, [dir="rtl"] .menu button { text-align: right; }
[dir="rtl"] .lang-btn { right: auto; left: 16px; }
[dir="rtl"] select.lang-btn { padding: 6px 14px 6px 28px; background-position: left 11px center; }
[dir="rtl"] .fab { right: auto; left: 18px; }
[dir="rtl"] .sal-v { text-align: left; }
[dir="rtl"] .sal-bar, [dir="rtl"] .sal-legend { direction: ltr; }
[dir="rtl"] .topbar .brand small { margin-left: 0; margin-right: 2px; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"] { direction: ltr; text-align: right; }

/* 상단 언어 버튼 */
.tb-lang { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border: 1px solid rgba(251, 247, 238, .45); border-radius: 999px; color: var(--cream); font-weight: 700; font-size: 12.5px; letter-spacing: .03em; cursor: pointer; flex: none; }
.tb-lang:active { background: rgba(255, 255, 255, .12); }
.tb-lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.tb-lang select option { color: #15241E; background: #FFFFFF; }

/* ===== v3 행사 멤버 공간 ===== */
.bottomnav { grid-template-columns: repeat(7, 1fr); }
.bottomnav a { font-size: 10.5px; letter-spacing: -.01em; }
.bottomnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.sp-tabs { top: 62px; }
.sp-wrap { display: block; }
.sp-side { display: none; }
.sp-main { max-width: 1180px; }
.sp-h1 { font-size: 26px; font-weight: 800; color: var(--forest); margin: 4px 2px 6px; letter-spacing: -.01em; }
.sp-sub { color: #33433B; font-size: 14.5px; margin: 0 2px 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sp-lead { color: var(--muted); font-size: 14.5px; margin: 0 2px 14px; }
.sp-evname { display: inline-block; font-weight: 800; color: var(--forest); text-decoration: none; margin: 2px 2px 12px; font-size: 16px; }
.sp-empty p { margin: 0 0 12px; color: #33433B; }
.h2 { font-size: 17px; margin: 0 0 10px; color: var(--forest); }

.sp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.sp-stat { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-height: 92px; position: relative; color: var(--ink); }
.sp-stat b { font-size: 32px; font-weight: 800; line-height: 1.1; color: var(--forest); font-variant-numeric: tabular-nums; }
.sp-stat span { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.sp-stat a { margin-top: 2px; color: var(--forest); font-weight: 700; }
.sp-stat.dark { background: var(--forest); border-color: var(--forest); }
.sp-stat.dark b { color: var(--gold); }
.sp-stat.dark span { color: #E3EFE8; }
.sp-stat .live { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 11px; font-weight: 800; color: #1F7A4D; background: #E2F2E8; border-radius: 999px; padding: 2px 8px; }
.sp-stat.dark .live { background: rgba(232, 163, 61, .18); color: #F2C978; }
.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.sp-grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .sp-grid2 { grid-template-columns: 1fr 1fr; } }
.passcard { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink); }
.passcard .qr, .done-box .qr { flex: none; width: 112px; height: 112px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: grid; place-items: center; }
.passcard .qr svg, .done-box .qr svg { width: 100%; height: 100%; }
.passcard p { margin: 0 0 4px; }
.lbl { font-size: 12px; font-weight: 800; color: var(--gold-ink); letter-spacing: .06em; text-transform: uppercase; }
.pcode { font-size: 22px; font-weight: 800; letter-spacing: .14em; color: var(--forest); margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.warn-t { color: #8A4B08; font-weight: 600; }
.u { text-decoration: underline; color: var(--forest); font-weight: 700; }
.done-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; border-color: #C3E0CF; background: #F4FAF6; }
.done-box p { margin: 0 0 6px; }

.todo { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.todo:first-of-type { border-top: 0; }
.todo > div { flex: 1; min-width: 0; }
.todo b { font-size: 15px; color: var(--ink); }
.todo p { margin: 2px 0 0; }
.tdk { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #CDC5B2; display: grid; place-items: center; color: #FFFFFF; }
.tdk.ok { background: var(--leaf); border-color: var(--leaf); }
.tdk svg { width: 16px; height: 16px; }
.todo .btn { flex: none; }
.meter.light { background: var(--soft); margin: 4px 0 8px; height: 10px; }

.sp-code { display: flex; gap: 8px; margin: 4px 0 6px; }
.sp-code input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid #D6CFBE; background: #FFFFFF; color: var(--ink); padding: 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: .1em; }
.sp-code .btn { flex: none; }

.evlist { display: flex; flex-direction: column; gap: 10px; }
.evrow { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.evd { flex: none; width: 54px; height: 58px; border-radius: 12px; background: var(--forest); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.evd b { font-size: 22px; line-height: 1; color: var(--gold); }
.evd span { font-size: 11px; color: #E3EFE8; margin-top: 3px; }
.evi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.evi b { font-size: 15.5px; }
.evs { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.sp-searchrow { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; }
.sp-search { flex: 1; min-width: 200px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); padding: 0 14px 0 40px; font-size: 15.5px; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355645C' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: 13px center; }
.sp-search::placeholder { color: #7A877F; }
.sp-filter { flex: none; }
.sp-filter[open] { flex: 1 1 100%; order: 3; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.sp-filter summary { list-style: none; height: 46px; }
.sp-filter summary::-webkit-details-marker { display: none; }
.sp-filter[open] summary { margin-bottom: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 10px; }
.chip b { font-weight: 800; margin-left: 2px; opacity: .75; }

.pgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pgrid > .empty { grid-column: 1 / -1; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; color: var(--ink); box-shadow: var(--shadow); }
.pcard:hover { border-color: #CDBF98; }
.pcard:focus-visible { outline: 2px solid var(--leaf); }
.pc-top { display: flex; gap: 12px; align-items: flex-start; }
.pav { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 19px; overflow: hidden; background: var(--soft); color: var(--forest); }
.pav img { width: 100%; height: 100%; object-fit: cover; }
.pav.lg { width: 84px; height: 84px; font-size: 28px; }
.pav.xl { width: 104px; height: 104px; font-size: 34px; margin: 0 auto 10px; }
.pc-id { flex: 1; min-width: 0; }
.pc-nm { font-size: 17px; font-weight: 800; display: block; line-height: 1.3; word-break: break-word; }
.pc-nat { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: #33433B; margin-top: 2px; }
.pc-role { font-size: 14px; color: var(--muted); margin-top: 3px; }
.pstar { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #FFFFFF; color: #A79F8C; display: grid; place-items: center; cursor: pointer; }
.pstar svg { width: 20px; height: 20px; }
.pstar.on { color: var(--gold); border-color: #F0D9A4; background: #FFF8EA; }
.ptags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--soft); color: #33433B; white-space: nowrap; }
.ptag.sec { background: #FDF0D8; color: #7A4E08; }
.ptag.need { background: #E2F2E8; color: #1D6B44; }
.ptag.ok { background: #DCEFE3; color: #1A6A41; }
.ptag.warn { background: #FCE4E2; color: #9B1C14; }
.pc-why { margin: 0; font-size: 13px; color: #1D5A3C; display: flex; gap: 6px; align-items: flex-start; }
.pc-why svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.pc-why.big { font-size: 14.5px; background: #EEF7F1; border: 1px solid #C3E0CF; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.pc-memo { margin: 0; font-size: 13px; color: #4A3608; background: #FFF8EA; border-radius: 10px; padding: 7px 10px; display: flex; gap: 6px; }
.pc-memo svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; font-size: 13.5px; color: var(--muted); }
.edb { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 800; color: var(--gold-ink); border: 1.5px dashed #D9B46C; border-radius: 8px; padding: 2px 8px; }
.st-arrived, .st-attended { color: #1A6A41; font-weight: 700; }
.st-registered { color: var(--muted); }

.evhero { background: linear-gradient(135deg, var(--forest) 0%, #0D2A20 100%); color: #FBF7EE; border-radius: 20px; padding: 20px 18px; position: relative; overflow: hidden; }
.evhero::after { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; background: rgba(232, 163, 61, .16); }
.evhero-k { font-size: 12.5px; font-weight: 800; color: #F2C978; letter-spacing: .04em; }
.evhero h1 { font-size: 23px; margin: 6px 0 4px; color: #FFFFFF; line-height: 1.3; }
.evhero p { margin: 0; color: #DCEBE2; font-size: 14.5px; }
.evhero .evhero-m { margin-top: 6px; color: #F2C978; font-weight: 700; }
.evmore { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 0 0 12px; }
.evmore summary { font-weight: 800; color: var(--forest); cursor: pointer; }
.prog { list-style: none; margin: 10px 0 4px; padding: 0; }
.prog li { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.prog li:first-child { border-top: 0; }
.prog b { flex: none; width: 54px; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.partner { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); background: #FFFFFF; display: flex; flex-direction: column; }
.partner span { font-size: 12.5px; color: var(--muted); }
.sp-acts { margin: 12px 0 4px; flex-wrap: wrap; }
.sp-acts > * { flex: none; }
.jprev { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 12px; margin: 10px 0 12px; }
.jprev .ptags { margin-top: 6px; }

.face-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.face-row .row > * { flex: none; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pk { position: relative; cursor: pointer; }
.pk input { position: absolute; opacity: 0; pointer-events: none; }
.pk span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid #D6CFBE; background: #FFFFFF; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.pk input:checked + span { background: var(--forest); border-color: var(--forest); color: #FFFFFF; }
.pk input:focus-visible + span { outline: 2px solid var(--leaf); }

.person-head { text-align: center; padding: 6px 0 14px; }
.person-head h2 { margin: 0; font-size: 24px; color: var(--ink); }
.person-head .sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.person-head .pc-nat { margin: 4px 0 10px; }
.person-head .btn { margin-top: 10px; }
.evlink { color: var(--forest); font-weight: 700; text-decoration: none; }
#memoIn { width: 100%; min-height: 96px; border-radius: 12px; border: 1px solid #D6CFBE; background: #FFFFFF; color: var(--ink); padding: 10px 12px; font-size: 15px; resize: vertical; }

.co-me { display: flex; gap: 14px; align-items: flex-start; }
.co-me .btn { flex: none; }
.co-nm { font-size: 17px; }
.co-logo { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--forest); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.co-logo svg { width: 26px; height: 26px; }
.co-logo.sm { width: 40px; height: 40px; border-radius: 10px; font-size: 16px; background: var(--soft); color: var(--forest); }
.codir { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.corow { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink); }
.co-b { flex: 1; min-width: 0; }
.co-pp { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13.5px; }
.co-pp a { color: var(--forest); text-decoration: none; font-weight: 600; }

/* 패스 */
.pass-card { width: 100%; max-width: 380px; margin: 0 auto; background: linear-gradient(160deg, #12372A 0%, #0C2219 100%); color: #FBF7EE; border-radius: 24px; padding: 22px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 10px 30px rgba(12, 34, 25, .25); }
.pass-brand { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #F2C978; margin-bottom: 6px; }
.pass-brand img { width: 20px; height: 20px; border-radius: 5px; }
.pass-nm { font-size: 22px; font-weight: 800; color: #FFFFFF; margin-top: 4px; }
.pass-co { font-size: 14px; color: #CFE3D7; margin-bottom: 8px; }
.pass-card .show-qr { width: 230px; height: 230px; }
.pass-card .show-qr svg { width: 206px; height: 206px; }
.pass-code { font-size: 24px; font-weight: 800; letter-spacing: .16em; color: #FFFFFF; margin-top: 6px; }
.pass-ev { font-size: 14px; color: #E3EFE8; margin-top: 4px; }
.pass-st { display: flex; gap: 6px; justify-content: center; min-height: 4px; }
.pass-h { font-size: 13px; color: #CFE3D7; margin: 6px 0 0; }
.pass-w { font-size: 12.5px; color: #F2C978; margin: 2px 0 0; font-weight: 600; }
.sp-pass { background: #081A13; }

@media (min-width: 980px) {
  .sp-tabs { display: none; }
  .sp-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
  .sp-side { display: flex; flex-direction: column; justify-content: space-between; position: sticky; top: 62px; height: calc(100vh - 62px); background: var(--forest); color: #FBF7EE; padding: 18px 12px calc(var(--nav-h) + 20px); }
  .sp-side nav { display: flex; flex-direction: column; gap: 4px; }
  .sp-side nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: #E3EFE8; text-decoration: none; font-weight: 700; font-size: 15.5px; }
  .sp-side nav a svg { width: 20px; height: 20px; }
  .sp-side nav a:hover { background: rgba(255, 255, 255, .08); }
  .sp-side nav a.on { background: #1E4B3B; color: #F2C978; }
  .sp-side p { color: #BFD6C9; padding: 0 14px; word-break: break-all; }
  .sp-main { margin: 0; max-width: none; padding: 26px 32px calc(var(--nav-h) + 60px); }
  .sp-h1 { font-size: 34px; }
}
[dir="rtl"] .sp-stat .live { right: auto; left: 12px; }
[dir="rtl"] .sp-search { padding: 0 40px 0 14px; background-position: right 13px center; }
.ptag.typ { background: #E3EAF6; color: #1E3A6B; }
.sp-stat.goldbg { background: #FBF0D9; border-color: #EED9A6; }
.cp-card { padding-bottom: 6px; }
.cp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cp-h b { color: var(--gold-ink); font-size: 14px; white-space: nowrap; }
.meter.gold i { background: var(--gold); }
.cp-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cp-row b { flex: 1; font-size: 15px; }
.cp-row span:last-child { font-size: 13px; font-weight: 700; }
.ok-t { color: var(--ok); }
.evgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .evgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .evgrid { grid-template-columns: repeat(3, 1fr); } }
.evgrid > p { grid-column: 1 / -1; }
.evcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.evc-img { position: relative; aspect-ratio: 4 / 5; max-height: 340px; background: #0C2219 center / cover no-repeat; }
.evc-img.plain { aspect-ratio: 16 / 10; background: linear-gradient(150deg, #12372A 0%, #0A1F17 100%); }
.evc-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; color: #FBF7EE; gap: 6px; }
.evc-ph span { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: #F2C978; text-transform: uppercase; }
.evc-ph b { font-size: 20px; line-height: 1.3; }
.evc-ph em { font-style: normal; font-size: 14px; color: #CFE3D7; }
.evc-rel { position: absolute; top: 12px; right: 12px; background: rgba(8, 26, 19, .86); color: #F2C978; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.evc-past { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .9); color: #33433B; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.evc-b { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 4px; }
.evc-b h3 { margin: 0; font-size: 20px; color: var(--ink); font-weight: 800; }
.evc-b h3 em { font-style: normal; color: var(--gold-ink); }
.evc-b p { margin: 0; }
.evc-g { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.evc-g > div:last-child { display: flex; flex-direction: column; }
.stack { display: flex; }
.stack .pav { margin-left: -8px; border: 2px solid #FFFFFF; }
.stack .pav:first-child { margin-left: 0; }
.pav.xs { width: 30px; height: 30px; font-size: 11px; }
.evc-f { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 10px; padding: 12px 0 8px; font-weight: 800; color: var(--forest); }
.evc-f span:last-child { color: var(--gold-ink); }
.prof-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 980px) { .prof-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); } .preview { position: sticky; top: 80px; } }
.preview { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-top: 12px; }
.preview .lbl { margin-bottom: 8px; }
.preview .pstar { display: none; }
.preview .pcard { cursor: default; }
.co-logo.img { background: #FFFFFF; border: 1px solid var(--line); overflow: hidden; padding: 4px; }
.co-logo.img img { width: 100%; height: 100%; object-fit: contain; }
.co-logo.lg { width: 84px; height: 84px; font-size: 30px; border-radius: 18px; }
.preview .corow { background: #FFFFFF; }
.ed-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.ed-top .sp-code { flex: 1; min-width: 240px; }
.ed-top .seg { margin-top: 0; }
.cal-box { padding: 14px; margin-top: 10px; }
.cal-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cal-h b { font-size: 20px; color: var(--forest); min-width: 150px; text-align: center; }
.cal-nav { border: 1px solid var(--line); color: var(--forest); font-size: 22px; font-weight: 700; width: 38px; height: 38px; border-radius: 50%; }
.cal-h .btn { margin-left: auto; }
.cal-leg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #33433B; margin-bottom: 10px; }
.cal-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--c); vertical-align: 0; }
.cal { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-w span { padding: 8px 6px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--soft); text-align: center; }
.cal-d { min-height: 86px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; background: #FFFFFF; }
.cal-d:nth-child(7n+1) { border-left: 0; }
.cal-d.out { background: #FAF7F0; }
.cal-n { font-size: 13px; font-weight: 700; color: var(--ink); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-d.today .cal-n { border: 2px solid var(--gold); color: var(--gold-ink); }
.cal-e { display: block; font-size: 11.5px; line-height: 1.3; padding: 3px 5px; border-radius: 6px; text-decoration: none; color: var(--ink); background: #F6F2E8; border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-e b { color: var(--c-ink, var(--forest)); }
.cal-e.past { opacity: .55; }
.o-kofa { --c: #E8A33D; --c-ink: #7A4E08; }
.o-gceo { --c: #12372A; --c-ink: #12372A; }
.o-hr { --c: #2F5FA8; --c-ink: #1E3A6B; }
.o-kofen { --c: #C2416B; --c-ink: #8A2140; }
.o-etc { --c: #8A968F; --c-ink: #33433B; }
@media (max-width: 560px) { .cal-d { min-height: 64px; padding: 2px; } .cal-e { font-size: 10px; padding: 2px 3px; } .cal-e b { display: none; } }
.chip .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 0; }
.chip.on .dot { box-shadow: 0 0 0 2px #FFFFFF; }
/* v3.2 내 회사 */
.co-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.co-tab { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 10px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.co-tab span { display: flex; flex-direction: column; min-width: 0; }
.co-tab b { font-size: 15.5px; }
.co-tab small { color: var(--muted); font-size: 12.5px; }
.co-tab.on { border: 2px solid var(--forest); box-shadow: var(--shadow); }
.co-tab .pri { color: var(--gold); font-style: normal; }
.co-tab.add { justify-content: center; border: 1.5px dashed #D9B46C; color: var(--gold-ink); font-weight: 800; background: #FFFBF1; min-width: 160px; }
.co-logo.xs { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.co-logo.md { width: 64px; height: 64px; border-radius: 14px; font-size: 24px; }
.co-logo.bg-white { background: #FFFFFF; }
.co-logo.bg-dark { background: #0E1B15; border-color: #0E1B15; }
.co-logo.bg-clear { background: repeating-conic-gradient(#EEE 0 25%, #FFF 0 50%) 0 0 / 12px 12px; }
.wl.dark .co-logo.bg-clear { background: transparent; border-color: rgba(255,255,255,.2); }
.perm { display: flex; gap: 8px; align-items: center; min-height: 46px; flex-wrap: wrap; }
.logo-row { display: flex; gap: 14px; align-items: stretch; margin: 10px 0; }
.logo-drop { flex: 1; border: 1.5px dashed #D9B46C; background: #FFFBF1; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #6B5320; cursor: pointer; font: inherit; text-align: center; }
.logo-drop b { color: var(--ink); font-size: 15px; }
.logo-drop span { font-size: 12.5px; }
.logo-tools { margin-top: 8px; flex-wrap: wrap; align-items: center; }
.logo-tools > * { flex: none; }
.cnt { text-align: right; font-size: 12px; color: var(--muted); margin-top: 3px; }
.mk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mk-c { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; font-size: 14px; color: var(--ink); }
.mk-c button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; font-size: 15px; line-height: 1; }
.mk-add { height: 38px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); padding: 0 12px; font-size: 14px; max-width: 220px; }
.team { display: flex; flex-direction: column; gap: 8px; }
.tm { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; color: var(--ink); flex-wrap: wrap; }
.tm b { flex: 1; min-width: 80px; }
.tm .link { font-weight: 700; color: var(--forest); }
.tm .link.danger-t { color: var(--danger); }
.pub-box { display: flex; align-items: center; gap: 14px; margin-top: 12px; background: #FBF0D9; border: 1px solid #EED9A6; border-radius: 16px; padding: 14px 16px; color: #4A3608; }
.pub-box > div { flex: 1; }
.pub-box b { color: var(--ink); font-size: 15.5px; }
.pub-box p { margin: 4px 0 0; font-size: 13.5px; }
.switch { position: relative; flex: none; width: 58px; height: 32px; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #CFC6B2; transition: .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; transition: .2s; }
.switch input:checked + i { background: var(--forest); }
.switch input:checked + i::after { left: 30px; background: var(--gold); }
.switch input:disabled + i { opacity: .5; cursor: default; }
.co-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.co-acts .btn { flex: none; }
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.wl { border-radius: 16px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; }
.wl.light { background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); }
.wl.dark { background: #0E1B15; color: #FFFFFF; }
.wl.dark b { color: #FFFFFF; }
a.co-link { text-decoration: none; color: inherit; display: block; }
a.co-link .corow:hover { border-color: #CDBF98; }
/* v3.2 행사 화면 보강 */
.first { color: #1A6A41; font-weight: 700; margin-left: 4px; }
.ev-me { margin-top: 14px; }
.ev-me .sp-stats { margin-top: 10px; }
.ev-me .sp-stat { min-height: 80px; }
.eta { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.eta .pick { margin-top: 8px; }
.pk-b { padding: 8px 14px; border-radius: 999px; border: 1px solid #D6CFBE; background: #FFFFFF; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pk-b.on { background: var(--forest); color: #FFFFFF; border-color: var(--forest); }
.sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 22px 2px 10px; }
.sec-h b { font-size: 13px; letter-spacing: .12em; color: var(--gold-ink); font-weight: 800; }
.sec-h a { color: var(--gold-ink); font-weight: 700; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hscroll > * { flex: 0 0 min(320px, 84%); scroll-snap-align: start; }
.reco { background: var(--forest); color: #FBF7EE; border-radius: 20px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.reco .pc-nm { color: #FFFFFF; }
.reco .pc-role { color: #CFE3D7; }
.reco .pav { border: 2px solid var(--gold); }
.reco ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #F2E6CC; }
.pitch { background: linear-gradient(160deg, #12372A, #0A1F17); color: #FBF7EE; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.pitch-n { display: flex; justify-content: space-between; align-items: center; font-size: 34px; font-weight: 300; color: var(--gold); line-height: 1; }
.pitch-n span { font-size: 12px; font-weight: 700; color: #F2C978; border: 1px solid rgba(242, 201, 120, .5); border-radius: 999px; padding: 4px 10px; }
.pitch-co { display: flex; align-items: center; gap: 10px; }
.pitch-co img, .pitch-co i { width: 46px; height: 46px; border-radius: 12px; background: var(--gold); object-fit: contain; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #2A1A00; }
.pitch-co b { font-size: 20px; color: #FFFFFF; }
.pitch p { margin: 0; font-size: 14.5px; color: #E3EFE8; line-height: 1.55; }
.ptag.dk { background: rgba(255, 255, 255, .1); color: #F2E6CC; border: 1px solid rgba(255, 255, 255, .2); }
.pitch-who { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 10px; display: flex; flex-direction: column; }
.pitch-who b { color: #FFFFFF; }
.pitch-who span { font-size: 13px; color: #CFE3D7; }
/* 아래에서 올라오는 편집 시트 */
.sheet-ov { position: fixed; inset: 0; z-index: 150; background: rgba(10, 25, 19, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; background: #FFFFFF; color: var(--ink); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet-grip { width: 48px; height: 5px; border-radius: 3px; background: #E3DCCB; margin: 10px auto 0; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px 6px; }
.sheet-h b { font-size: 19px; }
.sheet-h .icon-btn { color: var(--ink); }
.sheet-b { padding: 6px 20px 10px; overflow-y: auto; }
.sheet-f { padding: 12px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .sheet-ov { align-items: center; } .sheet { border-radius: 24px; } }

/* v3.4 OCR로 채운 칸 표시 */
input.ocrfill, textarea.ocrfill { background: #FFF6D6 !important; border-color: #E7C25A !important; }

/* ===== v3.8 KOFA 모임 탭 ===== */
.bottomnav a svg { width: 22px; height: 22px; }
.meet-main .kb-cols { grid-template-columns: 1fr; }
.meet-main .kb-side { position: static; order: 2; }
.meet-main .kb-cover { height: 130px; }
.meet-main .kb-head h2 { font-size: 20px; }
.meet-main .kb-room { margin-bottom: 10px; }

/* Open Pay Index 바로가기 (내 명함, v3.8.1) */
.promo.opi { background: #EEF3FC; border-color: #C8D6F0; color: #0E2A6B; }
.promo.opi svg { color: #012A84; }
.promo.opi small { display: block; font-size: 12px; font-weight: 500; color: #3B4656; margin-top: 2px; }

/* v3.8.2 「연봉」 탭 + 오른쪽 위 설정 톱니 */
.topbar .tb-gear { color: inherit; text-decoration: none; margin-left: 2px; }
.pay .pay-hero { background: linear-gradient(135deg, #00134A, #012A84); color: #FFFFFF; border-radius: var(--r); padding: 18px 18px 16px; margin: 4px 0 14px; box-shadow: var(--shadow); }
.pay .pay-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #E8C56A; border: 1px solid #E8C56A; border-radius: 999px; padding: 3px 10px 3px 6px; }
.pay .pay-tag svg { width: 16px; height: 16px; }
.pay .pay-hero h2 { font-size: 20px; line-height: 1.35; margin: 12px 0 6px; color: #FFFFFF; }
.pay .pay-hero p { font-size: 13.5px; line-height: 1.6; margin: 0; color: #DCE5F7; }
.pay .pay-mode { display: flex; margin: 0 0 14px; }
.pay .pay-mode button { flex: 1; }
.pay .pay-hint { display: block; font-size: 12px; color: var(--muted); margin: 5px 2px 0; }
.pay .pay-list { list-style: none; margin: 0 0 12px; padding: 6px 16px; }
.pay .pay-list li { position: relative; padding: 9px 0 9px 22px; font-size: 14px; color: var(--ink); border-bottom: 1px dashed var(--line); }
.pay .pay-list li:last-child { border-bottom: 0; }
.pay .pay-list li::before { content: "\2713"; position: absolute; left: 0; top: 9px; color: #1F7A4D; font-weight: 800; }

/* v3.8.3 상단 언어 버튼 [KO][EN][🌐 Lang ▾] */
.tb-langs { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.tb-lb { height: 30px; min-width: 34px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(251, 247, 238, .45); background: transparent; color: var(--cream); font: inherit; font-weight: 800; font-size: 12px; letter-spacing: .03em; cursor: pointer; }
.tb-lb.on, .tb-lang.on { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.tb-langs .tb-lang { height: 30px; padding: 0 8px; gap: 3px; font-size: 12px; }
.tb-langs .tb-lang svg { width: 14px; height: 14px; }
.tb-langs .tb-lang i { font-style: normal; font-size: 10px; opacity: .8; }
.topbar .tb-gear { width: 34px; height: 34px; }
@media (max-width: 400px) {
  .tb-lb { min-width: 30px; padding: 0 6px; font-size: 11.5px; }
  .tb-langs .tb-lang span { display: none; }
  .tb-langs .tb-lang.on span { display: inline; }
  .topbar .brand small { display: none; }
  .topbar h1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
