/* ===== 중차픽 브랜드 토큰 (라이브 사이트에서 추출) ===== */
:root {
  --blue: #3182F6;
  --blue-dark: #1B64DA;
  --blue-soft: #EAF2FF;
  --text-1: #191F28;
  --text-2: #4E5968;
  --text-3: #8B95A1;
  --card: #FFFFFF;
  --bg: #FFFFFF;
  --border: #EEF1F4;
  --red: #F04452;
  --green: #1FA971;
  --amber: #F5A623;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 20px rgba(0,0,0,.05);
  --shadow-float: 0 20px 40px rgba(49,130,246,.18);
  --font-sans: "AppleSDGothicNeoL00", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Grace Serif", serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* floating cta 공간 */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-serif); margin: 0 0 12px; line-height: 1.3; }
p { margin: 0 0 8px; color: var(--text-2); line-height: 1.6; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
select, input, textarea { font-family: inherit; font-size: 15px; }

.section-inner, .header-inner, .footer-inner, .hero-inner, .cars-page-inner, .car-detail-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 버튼 ===== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-float); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--blue-soft); color: var(--blue-dark); }
.btn-secondary:hover { background: #dcebff; }
.btn-block { width: 100%; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand-logo { height: 32px; }
.site-nav { display: flex; gap: 20px; flex: 1; }
.nav-link { color: var(--text-2); font-weight: 600; font-size: 15px; }
.nav-link.active, .nav-link:hover { color: var(--blue); }
.header-cta {
  background: var(--blue); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-weight: 700; font-size: 14px;
}

/* ===== 히어로 (컴팩트 — 매물이 먼저 보이도록 축소) ===== */
.hero { padding: 28px 0 20px; background: linear-gradient(180deg, var(--blue-soft), #fff 100%); }
.hero-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 420px; }
.hero-eyebrow { color: var(--blue-dark); font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; font-size: 13px; }
.hero h1 { font-size: 28px; color: var(--text-1); margin-bottom: 8px; }
.hero-desc { font-size: 14px; margin: 8px 0 16px; }
.hero-cta-group { display: flex; gap: 10px; flex-wrap: wrap; }

.quick-search {
  max-width: 1120px; margin: 32px auto 0; padding: 16px 20px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.quick-search select {
  flex: 1 1 140px; padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: #fafbfc; color: var(--text-1);
}
.quick-search .btn-primary { flex: 1 1 140px; }

/* ===== 브랜드 퀵필터 (heydealer 메인 참고) ===== */
.brand-quickfilter { max-width: 1120px; margin: 20px auto 0; padding: 0 20px; display: flex; gap: 10px; overflow-x: auto; }
.brand-pill {
  flex-shrink: 0; padding: 10px 18px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border); font-weight: 700; font-size: 13px; color: var(--text-2);
}
.brand-pill:hover { border-color: var(--blue); color: var(--blue-dark); }
.brand-pill span { color: var(--text-3); font-weight: 400; }

/* ===== 통계 바 ===== */
.stats-bar { background: var(--text-1); color: #fff; padding: 28px 0; }
.stats-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: 16px; }
.stat strong { display: block; font-size: 28px; font-family: var(--font-serif); color: #fff; }
.stat span { color: #C6CDD6; font-size: 13px; }

/* ===== 공통 섹션 ===== */
.section { padding: 64px 0; }
.section h2 { font-size: 28px; }
.section-desc { margin-bottom: 28px; }
.section-more { margin-top: 28px; text-align: center; }
.recommended-section, .review-section { background: #fafbfc; }
.recommended-section--top { padding-top: 32px; }

/* ===== 가로 캐러셀 (heydealer 메인 참고) ===== */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .car-card { flex: 0 0 240px; scroll-snap-align: start; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-card); font-size: 16px; color: var(--text-2);
}
.carousel-nav.prev { left: -20px; }
.carousel-nav.next { right: -20px; }

/* ===== 매물 카드 ===== */
.car-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.car-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
.car-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.09); }
.car-card-thumb { position: relative; aspect-ratio: 4/3; background: #f1f3f5; overflow: hidden; }
.car-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
}
.badge-selling, .badge.badge-selling { background: var(--blue); }
.badge-reserved, .badge.badge-reserved { background: var(--amber); }
.badge-sold, .badge.badge-sold { background: var(--text-3); }
.car-card-body { padding: 16px; }
.car-card-title { font-size: 16px; font-weight: 700; font-family: var(--font-sans); margin: 0 0 6px; color: var(--text-1); }
.car-card-meta { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.car-card-auction { font-size: 13px; color: var(--text-3); margin-bottom: 2px; }
.car-card-auction s { color: var(--red); }
.car-card-price { font-size: 20px; font-weight: 800; color: var(--blue-dark); margin: 0; }
.empty-state { text-align: center; color: var(--text-3); padding: 40px 0; }

/* ===== 경매가 비교 ===== */
.price-compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.price-compare-card, .price-compare-card.detail {
  background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-card);
}
.pc-title { font-weight: 700; color: var(--text-1); margin-bottom: 12px; }
.pc-rows { display: flex; flex-direction: column; gap: 8px; }
.pc-row { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: #f7f8fa; }
.pc-row span { color: var(--text-3); font-size: 13px; }
.pc-row strong { font-size: 15px; }
.pc-row.highlight { background: var(--blue-soft); }
.pc-row.highlight strong { color: var(--blue-dark); font-size: 18px; }

/* ===== 이유 섹션 ===== */
.reason-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.reason-card { background: #fff; border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-card); }
.reason-card h3 { font-size: 18px; color: var(--blue-dark); }

/* ===== 후기 ===== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.review-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.review-card img { aspect-ratio: 4/3; object-fit: cover; }
.review-card h3 { font-size: 15px; margin: 14px 16px 6px; font-family: var(--font-sans); }
.review-card p { font-size: 13px; margin: 0 16px 10px; }
.review-tag { display: block; margin: 0 16px 16px; font-size: 12px; color: var(--blue); }

/* ===== 상담 폼 ===== */
.consult-section { background: var(--blue-soft); padding: 64px 0; }
.consult-inner { max-width: 560px; margin: 0 auto; padding: 0 20px; text-align: center; }
.consult-form { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); text-align: left; margin-top: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #fafbfc; color: var(--text-1); resize: vertical;
}
.consult-result { margin-top: 12px; font-size: 14px; min-height: 20px; }
.consult-result.ok { color: var(--green); }
.consult-result.error { color: var(--red); }

/* ===== 푸터 ===== */
.site-footer { background: #f7f8fa; padding: 40px 0 100px; margin-top: 20px; }
.footer-logo { height: 24px; opacity: .7; margin-bottom: 12px; }
.footer-copy { font-size: 13px; }
.footer-biz, .footer-meta { font-size: 12px; color: var(--text-3); line-height: 1.7; }

/* ===== 플로팅 CTA ===== */
.floating-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.floating-cta-btn { flex: 1; text-align: center; padding: 16px 0; font-weight: 700; font-size: 15px; }
.floating-cta-btn.phone { background: var(--text-1); color: #fff; }
.floating-cta-btn.consult { background: var(--blue); color: #fff; }

/* ===== 매물 목록 페이지 (encar/heydealer 참고 — 좌측 필터 사이드바 + 우측 리스트) ===== */
.cars-page { padding: 32px 0 64px; }
.cars-page-inner { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }

.filter-sidebar {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: flex; flex-direction: column; gap: 4px;
}
.filter-promo {
  background: var(--text-1); color: #fff; border-radius: var(--radius-md);
  padding: 20px; margin-bottom: 16px;
}
.filter-promo-eyebrow { color: #8FB8FF; font-weight: 700; font-size: 12px; margin-bottom: 8px; }
.filter-promo h3 { color: #fff; font-size: 18px; margin: 0; }

.filter-group-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 10px; }
.filter-group-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.filter-reset-link { background: none; border: none; color: var(--blue); font-size: 12px; font-weight: 600; padding: 0; }

.filter-accordion { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 16px; margin-bottom: 10px; }
.filter-accordion summary { padding: 12px 0; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filter-accordion summary::-webkit-details-marker { display: none; }
.filter-accordion summary::after { content: '⌄'; color: var(--text-3); }
.filter-accordion[open] summary::after { content: '⌃'; }
.filter-accordion .filter-row-list { padding-bottom: 8px; }

.filter-row-list { max-height: 260px; overflow-y: auto; }
.filter-row {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: none; border: none; text-align: left; padding: 8px 6px; border-radius: 8px;
  font-size: 13px; color: var(--text-2);
}
.filter-row:hover { background: #f7f8fa; }
.filter-row.active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.filter-row span { color: var(--text-3); font-size: 12px; }
.filter-row.active span { color: var(--blue-dark); }

.cars-list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.toolbar-right { display: flex; gap: 8px; align-items: center; }
#sort-select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-size: 13px; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.view-toggle button { width: 36px; height: 36px; background: #fff; border: none; border-left: 1px solid var(--border); font-size: 15px; color: var(--text-3); }
.view-toggle button:first-child { border-left: none; }
.view-toggle button.active { background: var(--blue-soft); color: var(--blue-dark); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination button {
  min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-weight: 600;
}
.pagination button.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* 목록형 뷰 (encar 일반등록 스타일) */
.car-row-list { display: flex; flex-direction: column; gap: 12px; }
.car-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px;
}
.car-row:hover { border-color: var(--blue); }
.car-row-thumb { position: relative; width: 140px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #f1f3f5; }
.car-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-row-thumb .badge { padding: 3px 8px; font-size: 11px; top: 6px; left: 6px; }
.car-row-title { font-size: 15px; margin: 0 0 6px; color: var(--text-1); font-family: var(--font-sans); }
.car-row-meta { font-size: 12px; color: var(--text-3); margin: 0; }
.car-row-price { text-align: right; white-space: nowrap; }
.car-row-auction { font-size: 12px; color: var(--text-3); margin: 0; }
.car-row-auction s { color: var(--red); }
.car-row-selling { font-size: 18px; font-weight: 800; color: var(--blue-dark); margin: 0; }

/* ===== 매물 상세 페이지 ===== */
.car-detail { padding: 28px 0 64px; }
.car-detail-inner.detail-lower { display: block; margin-top: 32px; }
.car-detail > .car-detail-inner:first-child { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.detail-gallery { }

/* 스와이프 슬라이더 (매물 사진 + 성능점검기록부 공용) */
.gallery-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #f1f3f5; }
.gallery-slide-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 4/3; border-radius: var(--radius-lg);
}
.gallery-slide-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-zoom-hint {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 999px;
  padding: 8px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .6; flex-shrink: 0; }
.gallery-thumb.active { opacity: 1; outline: 2px solid var(--blue); }

.inspection-slider { border-radius: var(--radius-md); overflow: hidden; background: #f1f3f5; }
.inspection-slider .gallery-slide-track { aspect-ratio: 3/4; }
.inspection-slider .gallery-slide img { object-fit: contain; background: #fff; }
.swipe-hint { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* 라이트박스 (사진 확대보기) */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,12,16,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  width: 100%; height: 100%;
}
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.lightbox-slide img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 18px; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 22px; cursor: pointer;
}
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.detail-price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 16px); box-shadow: var(--shadow-card);
}
.detail-price-card h1 { font-size: 22px; font-family: var(--font-sans); color: var(--text-1); }
.detail-meta { font-size: 13px; color: var(--text-3); }
.detail-selling-price { font-size: 30px; font-weight: 800; color: var(--blue-dark); margin: 6px 0 20px; }
.detail-cta-group { display: flex; flex-direction: column; gap: 10px; }
.detail-main-col { max-width: 720px; }
.detail-block { margin-bottom: 36px; }
.detail-block h2 { font-size: 20px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-table th { width: 130px; color: var(--text-3); font-weight: 600; }
.spec-table td { color: var(--text-1); font-weight: 600; }

/* 사고/수리 부위 다이어그램 */
.accident-diagram { }
.accident-history-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 14px;
}
.accident-history-badge.clean { background: var(--blue-soft); color: var(--blue-dark); }
.accident-history-badge.accident { background: #FDEAEC; color: var(--red); }
.accident-diagram-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.accident-diagram-svg { width: 130px; height: auto; flex-shrink: 0; }
.accident-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.accident-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: middle; border: 1px solid var(--border); }
.accident-checklist { display: flex; flex-direction: column; gap: 14px; }
.accident-check-group h4 { font-size: 12px; color: var(--text-3); font-weight: 700; margin: 0 0 6px; }
.accident-check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.accident-check-item {
  font-size: 12px; color: var(--text-2); background: #F7F8FA; border-radius: 8px; padding: 6px 10px;
}
.accident-check-item b { font-weight: 700; margin-left: 4px; }
.accident-check-item.marked { background: #FDEAEC; color: var(--red); }
.accident-note { font-size: 11px; color: var(--text-3); margin-top: 14px; }

/* 중차픽 이용 이유 (상세페이지) */
.why-us-card { display: flex; gap: 20px; background: #fafbfc; border-radius: var(--radius-md); overflow: hidden; align-items: stretch; flex-wrap: wrap; }
.why-us-img { width: 240px; flex: 0 0 240px; object-fit: cover; }
.why-us-text { padding: 20px 20px 20px 0; flex: 1 1 260px; }
.why-us-text h3 { font-size: 16px; color: var(--blue-dark); margin-bottom: 8px; }
.why-us-text p { font-size: 14px; }

/* ===== 반응형 ===== */
@media (max-width: 860px) {
  .hero h1 { font-size: 32px; }
  .cars-page-inner { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .car-detail > .car-detail-inner:first-child { grid-template-columns: 1fr; }
  .detail-price-card { position: static; }
  .site-nav .nav-link:not([href="/cars"]) { display: none; }
  .header-cta { display: none; }
  .car-row { grid-template-columns: 96px 1fr; }
  .car-row-price { grid-column: 2; text-align: left; }
  .car-row-thumb { width: 96px; }
  .carousel-nav { display: none; }
}

/* ===== Admin ===== */
.admin-body { background: #f7f8fa; padding-bottom: 40px; }
.admin-header { display: flex; align-items: center; gap: 14px; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--border); }
.admin-logo { height: 26px; }
.admin-header h1 { font-size: 18px; font-family: var(--font-sans); margin: 0; }
.admin-main { max-width: 1040px; margin: 24px auto; padding: 0 20px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-weight: 600; }
.admin-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.admin-panel { display: none; background: #fff; border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-card); }
.admin-panel.active { display: block; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.admin-toolbar input, .admin-toolbar select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.admin-table select { padding: 6px; border-radius: 8px; border: 1px solid var(--border); }
.admin-table button { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 12px; margin-right: 4px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.admin-form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.admin-form-grid input, .admin-form-grid select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); font-weight: 400; }
.admin-upload-block { margin-bottom: 20px; padding: 16px; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.admin-upload-block h3 { font-size: 14px; font-family: var(--font-sans); }
.admin-accident-rank { margin-bottom: 16px; }
.admin-accident-rank h4 { font-size: 12px; color: var(--text-3); font-weight: 700; margin: 0 0 8px; }
.admin-accident-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.admin-accident-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.admin-accident-grid select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); font-weight: 400; }
.admin-photo-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.admin-photo-preview .thumb-wrap { position: relative; width: 96px; }
.admin-photo-preview img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.admin-photo-preview .thumb-status { font-size: 10px; color: var(--text-3); text-align: center; }
.admin-result { font-size: 13px; margin-top: 12px; }
.admin-hint { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
#admin-c2j-preview { margin: 16px 0; max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 12px; }
