* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a365d;
  --primary-light: #2b6cb0;
  --primary-bg: #ebf4ff;
  --accent: #3182ce;
  --text: #1a202c;
  --text-light: #718096;
  --bg: #f7fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --green: #38a169;
  --blue: #3182ce;
  --yellow: #d69e2e;
  --highlight-bg: #fffff0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.screen { display: none; opacity: 0; }
.screen.active { display: block; animation: screenFadeIn 0.35s ease forwards; }

@keyframes screenFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 검색 화면 */
.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.logo span { font-weight: 400; font-size: 1rem; color: var(--text-light); vertical-align: super; }

.subtitle {
  color: var(--text-light);
  margin: 0.5rem 0 2rem;
  font-size: 0.95rem;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 640px;
}

.search-box input {
  width: 100%;
  padding: 1.15rem 3.8rem 1.15rem 1.4rem;
  font-size: 1.2rem;
  border: 2px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--card-bg);
}
.search-box input:focus { border-color: var(--accent); }

.search-box button {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.search-box button:hover { background: var(--primary); }

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 4px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}
.autocomplete-list:empty { display: none; }
.autocomplete-list li {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  color: #333;
}
.autocomplete-list li:hover, .autocomplete-list li.ac-active { background: var(--primary-bg); }
.autocomplete-list mark { background: #fefcbf; font-weight: 600; }

/* 결과 화면 */
.result-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--primary);
  color: white;
  position: sticky;
  top: 42px;
  z-index: 50;
}

.back-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.header-search {
  flex: 1;
  display: flex;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: visible;
  position: relative;
}
.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  padding: 0.85rem 1.2rem;
  font-size: 1.15rem;
  outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.6); }
.header-search button {
  background: none;
  border: none;
  color: white;
  padding: 0.85rem 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.header-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* 탭 */
.tabs {
  display: flex;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 98px;
  z-index: 40;
}

.tab {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.tab:hover { color: var(--primary); background: rgba(49,130,206,0.04); }

.tab-content { padding: 1rem; max-width: 1400px; margin: 0 auto; }
.tab-panel { display: none; opacity: 0; transform: translateY(8px); }
.tab-panel.active { display: block; animation: tabFadeIn 0.3s ease forwards; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 카드 */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  background: var(--primary-bg);
}

.card-body { padding: 1rem; }
.card-body.empty { color: var(--text-light); text-align: center; padding: 2rem; }
.card-body.loading { color: var(--text-light); text-align: center; padding: 2rem; }

/* 정보 행 */
.info-row {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.info-row:last-child { border-bottom: none; }
.info-row .label { width: 80px; font-weight: 600; color: var(--text-light); font-size: 0.85rem; flex-shrink: 0; }
.info-row .value { flex: 1; font-size: 0.9rem; }

/* 담당자 */
.contact-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.contact-item:last-child { border-bottom: none; }
.contact-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.contact-name { font-weight: 700; font-size: 1rem; }
.contact-pos { font-size: 0.8rem; color: var(--text-light); background: #edf2f7; padding: 2px 8px; border-radius: 4px; }
.contact-detail { font-size: 0.85rem; color: var(--text-light); margin: 0.15rem 0; }
.contact-detail a { color: var(--text); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }
.personality {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fffbeb;
  border-left: 3px solid var(--yellow);
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #744210;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 테이블 */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
  text-align: left;
  padding: 0.5rem;
  background: #f7fafc;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 0.5rem; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.product-cell { max-width: 300px; word-break: break-all; }
.date-cell { white-space: nowrap; font-size: 0.8rem; color: var(--text-light); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green { background: #c6f6d5; color: #22543d; }
.badge-blue { background: #bee3f8; color: #2a4365; }
.badge-orange { background: #feebc8; color: #7b341e; }
.badge-purple { background: #e9d8fd; color: #44337a; }
.badge-red { background: #fed7d7; color: #9b2c2c; }

/* 활동기록 */
.activity-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.activity-item:last-child { border-bottom: none; }
.activity-item.latest { background: var(--highlight-bg); margin: -1rem; padding: 1rem; margin-bottom: 0; border-radius: 8px; }
.activity-header { display: flex; justify-content: space-between; margin-bottom: 0.25rem; }
.activity-date { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.activity-author { font-size: 0.8rem; color: var(--text-light); }
.activity-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }

/* 활동 유형 배지 */
.activity-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.atype-user { background: #c6f6d5; color: #22543d; }
.atype-partner { background: #bee3f8; color: #2a4365; }
.atype-general { background: #e9d8fd; color: #44337a; }
.atype-biz { background: #feebc8; color: #7b341e; }
.atype-mail { background: #e2e8f0; color: #4a5568; }
.atype-etc { background: #f0f0f0; color: #666; }
.activity-note {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #4a5568;
  white-space: pre-wrap;
  word-break: break-word;
}
.note-collapsed {
  max-height: 20rem;
  overflow: hidden;
  position: relative;
}
.note-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, var(--card-bg));
  pointer-events: none;
}
.activity-note.highlight.note-collapsed::after {
  background: linear-gradient(transparent, #fefcbf);
}
.activity-note-wrap { position: relative; }
.note-expand-btn {
  background: var(--primary-bg);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  display: block;
  margin: 0.3rem 0 0 auto;
}
.note-expand-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.activity-note.highlight {
  background: #fefcbf;
  padding: 0.5rem;
  border-radius: 4px;
  border-left: 3px solid var(--yellow);
}

.place-name a { color: var(--accent); text-decoration: none; font-weight: 600; }
.place-name a:hover { text-decoration: underline; }
.place-category { font-size: 0.8rem; color: var(--text-light); }
.place-address { font-size: 0.82rem; color: #4a5568; }

.api-notice { text-align: center; padding: 1rem; }
.api-notice p { margin: 0.5rem 0; color: var(--text-light); }
.api-notice .hint { font-size: 0.8rem; }
.api-notice code { background: #edf2f7; padding: 2px 6px; border-radius: 4px; font-size: 0.78rem; }

/* 인근 고객사 */
.nearby-item {
  padding: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
}
.nearby-item:hover { background: var(--primary-bg); }
.nearby-name { font-weight: 600; color: var(--primary); }
.nearby-address { font-size: 0.82rem; color: var(--text-light); margin-top: 0.15rem; }

/* 반응형 */
@media (max-width: 640px) {
  .logo { font-size: 2rem; }
  .tab { font-size: 0.85rem; padding: 0.65rem 0.25rem; }
  .data-table { font-size: 0.82rem; }
  .data-table th, .data-table td { padding: 0.4rem; }
}

/* 검색 힌트 칩 (드롭다운 내부) */
.hint-chip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
}
.hint-chip:hover {
  background: var(--primary-bg);
  border-color: var(--accent);
}

/* 검색 드롭다운 (네이버 스타일) */
.search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
}
.search-box { position: relative; }
.sd-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem 0.4rem;
  border-bottom: 1px solid #f0f0f0;
}
.sd-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.sd-top-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.sd-clear-btn, .sd-toggle-btn {
  background: none;
  border: none;
  font-size: 0.76rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.15rem 0.3rem;
}
.sd-clear-btn:hover, .sd-toggle-btn:hover {
  color: var(--accent);
}
.sd-divider {
  color: #ddd;
  font-size: 0.7rem;
}
.sd-list {
  padding: 0.3rem 0;
}
.sd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
}
.sd-keyword {
  flex: 1;
  text-align: left;
  background: none;
  border: none;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  border-radius: 4px;
}
.sd-keyword:hover {
  background: var(--primary-bg);
}
.sd-remove {
  background: none;
  border: none;
  padding: 0.3rem 0.5rem;
  font-size: 0.72rem;
  color: var(--text-light);
  cursor: pointer;
  opacity: 0.4;
  flex-shrink: 0;
}
.sd-remove:hover { opacity: 1; color: #e53e3e; }
.sd-empty {
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 0.75rem 1rem;
  text-align: center;
}

/* 결과 요약 배너 */
.result-summary { padding: 0 1rem; }
.summary-bar {
  background: var(--primary-bg);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--primary);
  margin-top: 0.75rem;
}
.summary-bar strong { color: var(--accent); font-weight: 700; }
.summary-bar.empty {
  background: #fff5f5;
  color: #c53030;
}
.summary-keyword {
  font-weight: 700;
  color: var(--accent);
}
.summary-loading {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.search-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 매칭 고객사 칩 */
.matched-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.matched-chip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}
.matched-chip:hover { background: var(--primary-bg); border-color: var(--accent); }
.matched-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* 최신 배지 */
.latest-badge {
  display: inline-block;
  background: #fed7d7;
  color: #c53030;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

/* 장소 랭킹 & 정보 */
.place-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.place-item:last-child { border-bottom: none; }
.place-rank {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}
.place-info { flex: 1; min-width: 0; }
.place-tel { font-size: 0.82rem; color: var(--accent); margin-top: 0.1rem; }
.place-dist { font-size: 0.78rem; color: var(--text-light); margin-top: 0.1rem; }

/* 맛집 바로가기(길찾기) 버튼 */
.place-nav-btn {
  flex-shrink: 0;
  align-self: center;
  background: #276749;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.place-nav-btn:hover { background: #1a4731; }

/* Gemini 응답용 추가 스타일 */
.place-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.15rem;
}
.place-reason {
  font-size: 0.78rem;
  color: #744210;
  background: #fffbeb;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.3rem;
}
.place-type {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}
.place-fee {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}
.place-hours {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}
.source-tag {
  font-size: 0.65rem;
  font-weight: 600;
  background: #e8eaf6;
  color: #3949ab;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* 테이블 가로 스크롤 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.client-cell { white-space: nowrap; font-weight: 500; color: var(--primary); }

/* 담당자 고객사명 */
.contact-client {
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--primary-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 활동 고객사명 */
.activity-client {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

/* 로딩 스피너 */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 강조 텍스트 */
.strong { font-weight: 700; color: var(--primary); }

/* 블로그 후기 수 */
.blog-count {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 500;
  margin-top: 0.15rem;
}
.blog-count strong { color: var(--green); font-weight: 700; }

.fallback-note {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 0.5rem;
}

/* 나무위키 출처 배지 */
.source-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.source-badge:hover { background: #c8e6c9; }

.search-info {
  font-size: 0.8rem;
  color: var(--text-light);
  background: #f0f4f8;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* 상단 바 (날씨 + 로그인) */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  position: sticky;
  top: 0;
  z-index: 60;
}

.top-weather {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.weather-loading { opacity: 0.6; }
.weather-now { font-weight: 600; font-size: 1rem; }
.weather-detail { opacity: 0.75; font-size: 0.9rem; }
.weather-sep { opacity: 0.3; }

.forecast-day {
  opacity: 0.8;
  cursor: default;
  padding: 2px 6px;
  border-radius: 3px;
  transition: opacity 0.15s;
  font-size: 0.9rem;
}
.forecast-day:hover { opacity: 1; background: rgba(255,255,255,0.1); }

.top-user {
  flex-shrink: 0;
}

.login-placeholder {
  background: rgba(255,255,255,0.12);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.95rem;
}
.login-placeholder:hover { background: rgba(255,255,255,0.22); }

/* 직접검색(길찾기) 버튼 */
.direct-search-btn {
  background: var(--accent);
  color: white;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.direct-search-btn:hover { background: var(--primary); }

/* 상세검색 버튼 */
.detail-search-btn {
  margin-left: auto;
  background: #edf2f7;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.detail-search-btn:hover { background: var(--primary-bg); border-color: var(--accent); }

/* 로그인 화면 */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 38px);
  padding: 2rem;
}

.login-box {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-top: 1.5rem;
}

.login-field {
  margin-bottom: 1.2rem;
}

.login-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.login-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
}
.login-field input:focus { border-color: var(--accent); }

.login-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.login-submit:hover { background: var(--primary); }

.login-error {
  color: #d32f2f;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.4rem;
  background: #ffeaea;
  border-radius: 6px;
  margin-top: 0.3rem;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  gap: 0.8rem;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}
.login-divider span {
  font-size: 0.82rem;
  color: #999;
}

.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: #fff;
  color: #444;
  border: 1px solid #dadce0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.google-login-btn:hover {
  background: #f7f8f8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 마이페이지 */
.mypage-container {
  display: flex;
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  min-height: 400px;
}
.mypage-sidebar {
  width: 200px;
  background: #f5f7fa;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid #e8eaf0;
}
.mypage-sidebar h3 {
  font-size: 1rem;
  color: var(--primary);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.mypage-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  transition: background 0.2s;
}
.mypage-tab:hover { background: #e8eaf6; }
.mypage-tab.active { background: var(--accent); color: white; font-weight: 600; }
.mypage-back-btn {
  margin-top: auto;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #666;
  transition: background 0.2s;
}
.mypage-back-btn:hover { background: #f0f0f0; }
.mypage-content {
  flex: 1;
  padding: 2rem;
}
.mypage-panel { display: none; }
.mypage-panel.active { display: block; }
.mypage-panel h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 1.5rem;
}
.mypage-form { max-width: 350px; }
.mypage-form .login-field { margin-bottom: 1rem; }
.pw-change-msg {
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 0.8rem;
}
.pw-change-msg.error { background: #ffeaea; color: #d32f2f; }
.pw-change-msg.success { background: #e8f5e9; color: #2e7d32; }
.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.log-table th {
  background: #f5f7fa;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e0e0e0;
}
.log-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}
.log-table tr:hover td { background: #f9fafb; }
.login-log-list { max-height: 400px; overflow-y: auto; }

@media (max-width: 640px) {
  .mypage-container { flex-direction: column; margin: 1rem; }
  .mypage-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 1rem; border-right: none; border-bottom: 1px solid #e8eaf0; }
  .mypage-sidebar h3 { width: 100%; margin-bottom: 0.5rem; }
  .mypage-back-btn { margin-top: 0; }
  .mypage-content { padding: 1.2rem; }
}

/* 상단 바 사용자 정보 */
.top-user {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.logout-btn {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.logout-btn:hover { background: rgba(255,255,255,0.25); }

.home-btn {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: none;
  padding: 0.85rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.home-btn:hover { background: rgba(255,255,255,0.25); }

/* 동기화 버튼 */
.sync-btn {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: none;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-size: 1rem;
}
.sync-btn:hover { background: rgba(255,255,255,0.25); }
.sync-btn:disabled { opacity: 0.8; cursor: wait; }
.sync-btn { position: relative; }
.sync-btn.syncing { font-size: 1.1rem; }

/* 동기화 상태 점 */
.sync-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.sync-dot.ok { background: #38a169; }
.sync-dot.fail { background: #e53e3e; }
.sync-dot.warn {
  background: #ecc94b;
  animation: syncPulse 1.2s ease-in-out infinite;
}
@keyframes syncPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.4); }
}

/* 동기화 중 회전 링 */
.sync-spinner {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top: 2px solid #ecc94b;
  border-radius: 50%;
  animation: syncSpin 0.8s linear infinite;
}
@keyframes syncSpin {
  to { transform: rotate(360deg); }
}

/* 인근고객사 좌우 분할 */
.nearby-split {
  display: flex;
  gap: 1rem;
}

/* 주변정보 3컬럼 분할 (식당 + 카페 + 주차장) */
.places-split {
  display: flex;
  gap: 1rem;
}
.places-split > .card {
  flex: 1;
  min-width: 0;
}

.nearby-col {
  flex: 1;
  min-width: 0;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

.nearby-col .card-header {
  font-size: 1rem;
  padding: 1rem 1.2rem;
}

.nearby-col .nearby-item {
  padding: 0.9rem 1.2rem;
}

.nearby-col .nearby-name {
  font-size: 1rem;
}

.nearby-col .nearby-address {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.nearby-scroll {
  max-height: 500px;
  overflow-y: auto;
}

/* 맛집 필터 체크박스 */
.food-filters {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; padding: 0 1.1rem; margin-bottom: 0; }
  to { opacity: 1; max-height: 200px; padding: 0.9rem 1.1rem; margin-bottom: 0.8rem; }
}

.filter-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.7rem;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
  user-select: none;
}

.filter-check:hover {
  background: var(--primary-bg);
}

.filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.filter-apply-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.filter-apply-btn:hover {
  background: var(--primary-light);
}

@media (max-width: 640px) {
  .filter-checks {
    gap: 0.35rem 0.6rem;
  }
  .filter-check {
    font-size: 0.88rem;
    padding: 0.25rem 0.4rem;
  }
}

/* 도입/미팅 가로 레이아웃 */
.history-split {
  display: flex;
  gap: 1rem;
}

.history-col {
  flex: 1;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.history-left {
  flex: 0 0 45%;
  max-height: 750px;
  overflow-y: auto;
}

.history-right {
  flex: 1;
  max-height: 750px;
  overflow-y: auto;
}

/* 기회 카드 (좌측) */
.opp-card {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.opp-card:hover {
  background: #f0f7ff;
}

.opp-card.active {
  background: var(--primary-bg);
  border-left: 3px solid var(--accent);
}

.opp-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.opp-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  flex: 1;
  word-break: break-word;
}

.opp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-light);
}

/* 제품 리스트 (기회 카드 내부 펼침) */
.opp-products {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.opp-product-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.opp-product-name {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.opp-product-date {
  color: var(--text-light);
  font-size: 0.85rem;
}

.opp-product-amount {
  color: var(--green);
  font-weight: 500;
  font-size: 0.85rem;
}

/* 미팅기록 우측 */
.activity-placeholder {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
  font-size: 0.95rem;
}

/* 모바일 반응형: 모든 가로 레이아웃을 세로로 */

@media (max-width: 768px) {
  .history-split,
  .nearby-split,
  .places-split {
    flex-direction: column;
  }
  .history-left {
    flex: none;
    max-height: 400px;
  }
  .history-right {
    max-height: 500px;
  }
  .tab-content {
    padding: 0.5rem;
  }

  /* 모바일 폰트/카드 PC와 동일하게 유지 */
  .card-header { font-size: 0.95rem; }
  .card-body { font-size: 0.88rem; }
  .contact-name { font-size: 1rem; }
  .contact-detail { font-size: 0.85rem; }
  .personality { font-size: 0.82rem; }
  .info-row .label { font-size: 0.85rem; }
  .info-row .value { font-size: 0.9rem; }
  .activity-date { font-size: 0.8rem; }
  .activity-title { font-size: 0.9rem; }
  .activity-note { font-size: 0.82rem; }
  .place-name a { font-size: 0.9rem; }
  .place-address { font-size: 0.82rem; }
  .blog-count { font-size: 0.82rem; }
  .opp-card-name { font-size: 0.95rem; }
  .opp-card-meta { font-size: 0.88rem; }
  .nearby-name { font-size: 0.95rem; }
  .nearby-address { font-size: 0.85rem; }
  .summary-bar { font-size: 0.88rem; }
  .search-container { padding: 1.5rem; }
  .subtitle { font-size: 0.9rem; }

  /* 모바일 폰트 PC와 동일하게 강제 */
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    -webkit-text-size-adjust: 100%;
  }
  .search-box input { font-size: 1.1rem; }
  .logo { font-size: 2rem; }

  /* 모바일 상단 바: 예보만 숨기고 높이 축소 */
  .top-bar {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  .forecast-day { display: none; }
  .weather-sep { display: none; }

  /* 모바일 결과 헤더 검색창 배경 밝게 (날씨 바와 구분) */
  .result-header {
    background: #2b5a9e;
    padding: 0.75rem 1rem;
  }
  .header-search {
    background: rgba(255,255,255,0.85);
    border-radius: 10px;
  }
  .header-search input {
    font-size: 1rem;
    padding: 0.7rem 1rem;
    color: var(--text);
  }
  .header-search input::placeholder { color: var(--text-light); }
  .header-search button { color: var(--primary); }

  /* 모바일 캘린더 등록 버튼 숨김 */
  .schedule-row { display: none !important; }

  /* 모바일 플로팅 뒤로가기 버튼 표시 */
  .mobile-back-fab { display: flex; }

  /* 모바일 도입/미팅 화면 전환 */
  .history-split { display: block; }
  .history-left, .history-right {
    max-height: none;
  }
  /* 모바일: 도입내역 제품 항상 표시 */
  .opp-products { display: block !important; }
}

/* 신규 미팅 일정 등록 버튼 행 */
.schedule-row {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.schedule-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.schedule-btn:hover { background: var(--primary); }

/* 활동 필터 버튼 (미팅기록/전체내역) */
.activity-filter-btns { display: flex; gap: 0.3rem; margin-left: auto; }
.af-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.af-btn.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.af-btn:hover:not(.active) { background: #f0f0f0; }

/* 미팅 일정 등록 모달 */
.schedule-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.schedule-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.schedule-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.schedule-modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
}
.schedule-modal-close:hover { color: #e53e3e; }
.schedule-modal-body {
  padding: 1.25rem;
}
.schedule-field {
  margin-bottom: 0.85rem;
}
.schedule-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.schedule-field input,
.schedule-field textarea,
.schedule-field select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.schedule-field input:focus,
.schedule-field textarea:focus,
.schedule-field select:focus { border-color: var(--accent); }
.schedule-field input[readonly] { background: #f7fafc; color: var(--text-light); }
.schedule-field-row {
  display: flex;
  gap: 0.75rem;
}
.schedule-field-row .schedule-field { flex: 1; }
.schedule-submit-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  background: #4285f4;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.schedule-submit-btn:hover { background: #3367d6; }

@media (max-width: 640px) {
  .schedule-field-row { flex-direction: column; gap: 0; }
}

/* 마크애니 담당자 */
.markany-info { padding: 0.5rem 0; }
.markany-row {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid #e8eaf0;
  gap: 0.5rem;
}
.markany-row:last-child { border-bottom: none; }
.markany-row.sub { padding-left: 0; }
.markany-row.markany-section { border-bottom: none; padding-bottom: 0.2rem; margin-top: 0.4rem; }
.markany-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
  background: #e8eaf6;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  min-width: 140px;
  flex-shrink: 0;
}
.markany-row.sub .markany-label {
  background: #f3f4f8;
  color: #455a64;
}
.markany-value {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}
.eng-name {
  cursor: default;
  position: relative;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #90a4ae;
}
.eng-name:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}
.eng-tooltip {
  position: fixed;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: none;
}

/* 모바일 플로팅 뒤로가기 버튼 */
.mobile-back-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  align-items: center;
  justify-content: center;
  z-index: 200;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-back-fab:active { background: var(--accent); }

/* 모바일 도입/미팅 뒤로가기 버튼 */
.mobile-history-back {
  display: none;
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
  width: 100%;
  text-align: left;
}

/* 모바일 미팅기록 상단 도입내역 요약 */
.mobile-opp-summary {
  background: var(--primary-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.mobile-opp-summary-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.mobile-opp-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.mobile-opp-products {
  border-top: 1px dashed var(--border);
  padding-top: 0.4rem;
  margin-top: 0.3rem;
}

/* 길찾기 소요시간 바 */
.directions-bar {
  position: relative;
  background: #1a365d;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.8rem;
  color: #fff;
}
.dir-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}
.dir-loading .spinner {
  border-color: rgba(255,255,255,0.3);
  border-top-color: #fff;
}
.dir-header {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.dir-row {
  display: flex;
  gap: 1rem;
}
.dir-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
}
.dir-icon { font-size: 1.1rem; }
.dir-label {
  font-size: 0.8rem;
  opacity: 0.8;
  flex-shrink: 0;
}
.dir-time {
  font-size: 0.92rem;
  font-weight: 700;
  flex: 1;
}
.dir-link {
  color: #90cdf4;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.dir-link:hover { color: #fff; }

@media (max-width: 640px) {
  .dir-row { flex-direction: column; gap: 0.4rem; }
  .dir-item { padding: 0.4rem 0.6rem; }
}

/* AI 추천 타이틀 반짝 효과 */
.dir-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  background: linear-gradient(90deg, #fff 0%, #90cdf4 25%, #fff 50%, #bee3f8 75%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: none;
}
.directions-bar.sparkle-active .dir-title {
  animation: sparkleText 2s ease-in-out forwards;
}
.dir-title::after {
  content: '✨';
  -webkit-text-fill-color: initial;
  font-size: 0.8rem;
  animation: none;
}
.directions-bar.sparkle-active .dir-title::after {
  animation: sparkleIcon 2s ease-in-out forwards;
}
@keyframes sparkleText {
  0%, 100% { background-position: 200% center; }
  50% { background-position: 0% center; }
}
@keyframes sparkleIcon {
  0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}

/* directions-bar 등장 애니메이션 */
.directions-bar {
  animation: dirSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  overflow: hidden;
}
@keyframes dirSlideIn {
  0% { opacity: 0; transform: translateY(-10px); max-height: 0; }
  100% { opacity: 1; transform: translateY(0); max-height: 300px; }
}

/* directions-bar 반짝 테두리 효과 */
.directions-bar::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 11px;
  background: linear-gradient(90deg, transparent, rgba(144,205,244,0.4), transparent);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.directions-bar.sparkle-active::before {
  opacity: 1;
  animation: shimmerBorder 2s ease-in-out forwards;
  pointer-events: none;
  z-index: -1;
}
@keyframes shimmerBorder {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}

/* AI 분석 결과 */
.ai-analysis-content {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  margin-top: 0.4rem;
}
.ai-analysis-content p {
  margin: 0.25rem 0;
}
.ai-analysis-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  text-align: right;
}

/* 엑셀 드래그앤드롭 업로드 */
.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-top: 0.5rem;
}
.drop-zone:hover, .drop-zone.drop-hover {
  border-color: #3b82f6;
  background: #eff6ff;
}
.drop-zone-text { color: #94a3b8; font-size: 0.9rem; }
.drop-zone.drop-hover .drop-zone-text { color: #3b82f6; }
.drop-zone-file { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: #16a34a; font-weight: 500; }

/* 엑셀 업로드 이력 */
.upload-history {
  font-size: 0.82rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin: 0.4rem 0;
  line-height: 1.5;
}
