/* 정비마켓 — 모바일 우선 디자인 시스템 */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef0f4;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #ff6f0f;
  --accent-strong: #e85f00;
  --accent-soft: rgba(255, 111, 15, 0.12);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.1);
  --green: #15803d;
  --green-soft: rgba(21, 128, 61, 0.12);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.1);
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.05);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101217;
    --surface: #191c24;
    --surface-2: #20242e;
    --surface-3: #262b37;
    --border: #2e3342;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --accent: #ff8533;
    --accent-strong: #ffa15c;
    --accent-soft: rgba(255, 133, 51, 0.16);
    --blue: #60a5fa;
    --blue-soft: rgba(96, 165, 250, 0.16);
    --green: #4ade80;
    --green-soft: rgba(74, 222, 128, 0.15);
    --red: #f87171;
    --red-soft: rgba(248, 113, 113, 0.15);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", sans-serif;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(72px + var(--safe-bottom));
}
@media (min-width: 880px) {
  #app { padding-bottom: 0; }
}

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 19px;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.brand-text small { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
@media (max-width: 400px) {
  .brand-text small { display: none; }
  .top-actions .btn { padding-left: 10px; padding-right: 10px; }
}
.desktop-nav { display: none; gap: 4px; margin-left: 8px; }
@media (min-width: 880px) { .desktop-nav { display: flex; } }
.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 11px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-blue { background: var(--blue-soft); color: var(--blue); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-icon { padding: 8px 10px; }

/* ---------- 레이아웃 ---------- */
.view {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 8px;
  flex: 1;
}
.view.narrow { max-width: 560px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; margin: 22px 0 10px;
}
.section-title .count { color: var(--muted); font-size: 13px; font-weight: 700; }

/* ---------- 공지 ---------- */
.notice-banner {
  max-width: 1120px;
  margin: 10px auto 0;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}
.notice-banner span.icon { flex: 0 0 auto; }
.notice-tag {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1.5;
  margin-top: 1px;
}
@media (max-width: 879px) {
  .notice-banner { margin: 8px 12px 0; }
}

/* ---------- 필터 ---------- */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.search-row { display: flex; gap: 8px; }
.search-box { position: relative; flex: 1; min-width: 0; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.search-box input:focus { border-color: var(--accent); background: var(--surface); }
.select {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 11px;
  font-size: 13.5px;
  outline: none;
}
.select:focus { border-color: var(--accent); }
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.pill.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.pill.accent.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.chip.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-label { font-size: 11.5px; font-weight: 800; color: var(--muted); margin-right: 2px; }

/* ---------- 매물 목록 ---------- */
.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (min-width: 620px) { .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1000px) { .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 12px;
  min-width: 0;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.item-card:hover { border-color: var(--accent); }
.item-card.is-done .thumb img { filter: grayscale(0.6); opacity: 0.75; }
.thumb {
  width: 92px; height: 92px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 34px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.sm { width: 64px; height: 64px; font-size: 24px; border-radius: 10px; }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.item-body-link { display: block; color: inherit; min-width: 0; }
@media (max-width: 460px) { .hide-sm { display: none; } }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.5;
  white-space: nowrap;
}
.badge.sell { background: var(--accent-soft); color: var(--accent); }
.badge.buy { background: var(--green-soft); color: var(--green); }
.badge.cat { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge.verify { background: var(--blue-soft); color: var(--blue); }
.badge.status { background: var(--surface-3); color: var(--muted); }
.badge.reserved { background: var(--blue-soft); color: var(--blue); }
.badge.done { background: var(--green-soft); color: var(--green); }
.badge.hidden { background: var(--red-soft); color: var(--red); }
.item-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}
.item-meta { font-size: 11.8px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.price.negotiable { font-size: 13.5px; color: var(--muted); }
.mini-actions { display: flex; align-items: center; gap: 4px; }
.like-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 9px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.like-btn.liked { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.comment-count { font-size: 11.5px; color: var(--muted); font-weight: 700; }

.empty-box {
  text-align: center;
  padding: 46px 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
  background: var(--surface);
  margin-top: 12px;
  line-height: 1.7;
}
.empty-box strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.load-more { display: flex; justify-content: center; margin: 16px 0 8px; }
.loading-box { padding: 44px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- 정비질문 ---------- */
.qa-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.qa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.qa-card:hover { border-color: var(--accent); }
.qa-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; word-break: keep-all; }
.qa-preview {
  font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-line;
}
.qa-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11.8px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.answer-badge { color: var(--blue); font-weight: 800; }

/* ---------- 상세 ---------- */
.detail-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .detail-wrap { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; } }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 12px; }
.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 430px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 64px;
}
.gallery-main.no-photo {
  aspect-ratio: auto;
  height: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    radial-gradient(circle at 50% 35%, var(--accent-soft), transparent 62%),
    var(--surface-2);
  color: var(--muted);
}
.gallery-main.no-photo .ph-emoji { font-size: 72px; line-height: 1; }
.gallery-main.no-photo .ph-text { font-size: 12.5px; font-weight: 700; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 7px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.gallery-thumbs button {
  width: 64px; height: 64px; padding: 0; flex: 0 0 auto;
  border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); cursor: pointer;
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-head { margin: 14px 0 4px; }
.detail-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; margin: 8px 0 6px; }
.detail-price { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0; }
.detail-meta { font-size: 12.5px; color: var(--muted); }
.desc-box {
  font-size: 14px;
  white-space: pre-line;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px;
  margin: 14px 0;
  word-break: break-word;
}
.seller-card { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: 0 0 auto;
}
.seller-name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; flex-wrap: wrap; }
.seller-sub { font-size: 11.8px; color: var(--muted); }
.contact-box { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.contact-line {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: 11px; font-size: 13.5px;
  background: var(--surface-2);
}
.contact-line strong { font-size: 15px; letter-spacing: 0.01em; }
.contact-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.side-actions { display: flex; gap: 8px; margin-top: 12px; }
.side-actions .btn { flex: 1; }

/* ---------- 댓글 / 답변 ---------- */
.comment-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.comment-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; font-size: 13.5px; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.comment-author { font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.comment-time { font-size: 11px; color: var(--muted); }
.comment-body { white-space: pre-line; word-break: break-word; }
.comment-form { display: flex; gap: 7px; margin-top: 10px; }
.comment-form textarea { flex: 1; min-height: 42px; max-height: 140px; resize: vertical; }
.answer-item { border-left: 3px solid var(--blue-soft); }
.answer-item .comment-author::before { content: "정비사 답변"; font-size: 10px; background: var(--blue-soft); color: var(--blue); padding: 1px 6px; border-radius: 5px; }

/* ---------- 폼 ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.input, .textarea, .field select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.input:focus, .textarea:focus, .field select:focus { border-color: var(--accent); background: var(--surface); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field-error { color: var(--red); font-size: 11.5px; margin-top: 4px; display: none; }
.field.invalid .input, .field.invalid .textarea, .field.invalid select { border-color: var(--red); }
.field.invalid .field-error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 8px; margin-top: 6px; }
.form-actions .btn { flex: 1; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 11px;
  padding: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.upload-box {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}
.upload-box:hover { border-color: var(--accent); color: var(--accent); }
.upload-box input { display: none; }
.preview-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.preview {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 999px;
  border: none; background: rgba(0,0,0,0.62); color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}

/* ---------- 로그인 ---------- */
.auth-card { max-width: 440px; margin: 28px auto; }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head .brand-logo { width: 52px; height: 52px; font-size: 26px; border-radius: 16px; margin: 0 auto 10px; }
.auth-head h1 { font-size: 22px; font-weight: 800; }
.auth-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.auth-alt { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 800; }

/* ---------- 관리자 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 13px; }
.stat-num { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.stat-lbl { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.admin-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.admin-row:last-child { border-bottom: none; padding-bottom: 0; }
.admin-row-info { flex: 1; min-width: 0; }
.admin-row-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.admin-btns { display: flex; gap: 5px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* ---------- 내 정보 ---------- */
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-head .avatar { width: 52px; height: 52px; font-size: 19px; }
.profile-name { font-size: 18px; font-weight: 800; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.profile-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.menu-list { display: flex; flex-direction: column; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 2px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 700;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* ---------- 하단 탭 ---------- */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
}
@media (min-width: 880px) { .tabbar { display: none; } }
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.tab .tab-icon { font-size: 19px; line-height: 1.1; }
.tab.active { color: var(--accent); }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  max-width: calc(100vw - 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 880px) { .toast { bottom: 30px; } }

/* ---------- 기타 ---------- */
.foot-note { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 10px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pill-link { font-size: 12px; font-weight: 800; color: var(--accent); }
.banner-warn {
  background: var(--red-soft); color: var(--red);
  border-radius: 12px; padding: 11px 13px; font-size: 12.5px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.site-foot {
  max-width: 1120px; margin: 18px auto 0; padding: 18px 16px 26px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  color: var(--muted); font-size: 11.5px; width: 100%;
}
@media (max-width: 879px) { .site-foot { display: none; } }
