/* 조선왕조 타임라인 스타일 */

/* 기본 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;line-height:1.6;color:#1f2937;background:#e9eef5;min-height:100vh}

/* 컨트롤 패널 */
.control-panel{position:sticky;top:0;z-index:90;display:flex;flex-direction:column;gap:10px;padding:12px;margin:0 16px 12px 16px;background:#e9eef5;border-radius:16px;box-shadow:10px 10px 22px #c5cad1,-10px -10px 22px #fff;border:1px solid #e5e7eb}

.control-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

.row-2{margin-top:4px}
.control-row + .control-row{padding-top:8px;border-top:1px dashed #d1d5db}

.control-mobile-header{display:none}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-grow {
  flex: 1 1 280px;
  min-width: 200px;
}

.control-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.control-input {
  height: 36px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  padding: 0 10px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.control-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.control-number {
  width: 90px;
}

.control-text {
  width: 100%;
}

.control-sep {
  color: #9ca3af;
  font-size: 14px;
}

.level-toggle{display:flex;gap:6px;background:#eaf0ff;padding:6px;border-radius:12px}

.level-btn {
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.level-btn.active {
  background: #667eea;
  color: #fff;
}

/* 태그 칩 */
.tag-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 420px;
  margin-left: 4px;
  margin-top: 4px;
}

.tag-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.tag-chip.active {
  background: #4338ca;
  color: #fff;
  border-color: #4338ca;
}

/* 반응형: 컨트롤 패널 열 정리 */
@media (max-width: 980px) {
  .control-grow {
    min-width: 0;
  }
  .tag-chips {
    max-width: none;
  }
}

@media (max-width: 768px){
  .control-panel{
    position: fixed;
    inset: 0;
    z-index: 1200;
    margin: 0;
    border-radius: 0;
    padding: 12px;
    display: none;
    overflow-y: auto;
  }
  body[data-kh-menu="open"] .control-panel{display:block}
  .control-mobile-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:8px;
  }
  .control-mobile-title{font-weight:800;color:#374151}
  .control-mobile-close{margin-left:auto}
}

.control-panel button{height:36px;line-height:36px;padding:0 14px}
.primary-btn{padding:0 14px;border:none;border-radius:12px;background:#e9eef5;color:#374151;font-weight:700;cursor:pointer;box-shadow:8px 8px 18px #c5cad1,-8px -8px 18px #fff}

.primary-btn:hover {
  filter: brightness(1.05);
}

/* 보기 선택 버튼 (컨트롤 패널 내 배치) */
.view-selector {
  position: static;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: flex;
  gap: 6px;
}

.view-btn {
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.view-btn:hover {
  background: #f0f0f0;
}

.view-btn.active{background:#e9eef5;color:#374151;box-shadow:inset 6px 6px 14px #c5cad1,inset -6px -6px 14px #fff}

/* 네오모픽(3D) 버튼 스타일 */
.neo {
  background: #f7f9fc;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  box-shadow: 8px 8px 18px rgba(0,0,0,0.14), -8px -8px 18px #fff;
}
.neo:hover {
  filter: none;
  transform: translateY(-1.5px);
}
.neo:active {
  box-shadow: inset 8px 8px 18px rgba(0,0,0,0.2), inset -8px -8px 18px rgba(255,255,255,0.7);
}
.neo.active {
  background: linear-gradient(180deg, #6c7bff, #4f58e8);
  color: #fff !important;
  border-color: #4a54d5;
  box-shadow: inset 8px 8px 18px rgba(0,0,0,0.28), inset -8px -8px 18px rgba(255,255,255,0.18);
}
.neo-group {
  background: #eaf0ff;
  border: 1px solid #cad5ff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.06), 6px 6px 14px rgba(0,0,0,0.1), -6px -6px 14px rgba(255,255,255,0.9);
}

.view-btn {
  border-radius: 8px;
}
.view-btn.neo {
  background: #f8fafc;
  color: #374151;
}
.view-btn.neo.active {
  background: linear-gradient(180deg, #6c7bff, #4f58e8);
  color: #fff;
}

.secondary-btn {
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #374151;
}
.secondary-btn.neo.active {
  background: linear-gradient(180deg, #34d399, #059669);
  color: #fff;
  border-color: #047857;
  box-shadow: inset 6px 6px 14px rgba(0,0,0,0.2), inset -6px -6px 14px rgba(255,255,255,0.12);
}
.primary-btn.neo {
  border-radius: 8px;
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  box-shadow: 8px 8px 18px rgba(0,0,0,0.14), -8px -8px 18px #fff;
}
.primary-btn.neo:active {
  box-shadow: inset 8px 8px 18px rgba(0,0,0,0.22), inset -8px -8px 18px rgba(255,255,255,0.12);
}

/* 로딩 및 에러 스타일 */
.loading, .error {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #666;
}

.error {
  color: #dc2626;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin: 1rem;
}

/* 타임라인 헤더 */
.timeline-header{text-align:center;padding:2rem 1rem;background:transparent;margin-bottom:2rem}

.timeline-header h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 리스트형 컨테이너 */
.list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: auto;
}

/* 역사 테이블 */
.history-table{width:100%;background:#e9eef5;border-radius:16px;overflow:hidden;box-shadow:10px 10px 22px #c5cad1,-10px -10px 22px #fff;border-collapse:collapse;border:1px solid #e5e7eb}

.history-table thead{background:#eef2ff;color:#4c51bf}

.history-table th {
  padding: 15px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.history-table th:last-child {
  border-right: none;
}

.history-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  vertical-align: top;
}

.history-table td:last-child {
  border-right: none;
}

/* 왕 정보 셀 */
.king-cell{background:#eef2ff;font-weight:500;text-align:center;border-right:2px solid #667eea!important}

.king-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid #667eea;
}

.king-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.king-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.king-real-name {
  font-size: 12px;
  color: #666;
}

/* 이벤트 관련 셀 */
.event-year {
  font-weight: 600;
  color: #667eea;
  text-align: center;
  font-size: 14px;
}

.event-title {
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
  min-width: 200px;
}

.event-title:hover {
  color: #667eea;
}

.event-desc {
  color: #666;
  line-height: 1.4;
  font-size: 14px;
}

/* 테이블 행 스타일 */
.table-row {
  transition: background-color 0.2s ease;
}

.table-row:hover {
  background: rgba(102, 126, 234, 0.05);
}

/* 업적 행 */
.table-row.achievement .event-title {
  color: #059669;
}

.table-row.achievement:hover .event-title {
  color: #047857;
}

/* 사건 행 */
.table-row.event .event-title {
  color: #dc2626;
}

.table-row.event:hover .event-title {
  color: #b91c1c;
}

/* 타임라인 컨테이너 */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 타임라인 중앙선 */
.timeline-line{position:absolute;left:50%;transform:translateX(-50%);width:4px;height:100%;background:linear-gradient(to bottom,#dbe3ff,#e0e7ff);border-radius:2px;z-index:1}

/* 타임라인 아이템 */
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* 타임라인 마커 */
.timeline-marker{position:absolute;left:50%;transform:translateX(-50%);width:20px;height:20px;border-radius:50%;background:#e9eef5;border:4px solid #667eea;z-index:2;box-shadow:6px 6px 14px #c5cad1,-6px -6px 14px #fff}

/* 업적 마커 */
.timeline-item.achievement .timeline-marker {
  border-color: #059669;
  background: #d1fae5;
}

/* 사건 마커 */
.timeline-item.event .timeline-marker {
  border-color: #dc2626;
  background: #fee2e2;
}

/* 타임라인 콘텐츠 */
.timeline-content{width:45%;background:#e9eef5;border-radius:16px;padding:1.5rem;box-shadow:10px 10px 22px #c5cad1,-10px -10px 22px #fff;cursor:pointer;transition:all .3s ease;position:relative;border:4px solid transparent}
.timeline-content{width:20%;padding:0.8rem;background:#f8fbff}
.timeline-item:nth-child(even) .timeline-content{margin-right:70%}
.timeline-item:nth-child(odd) .timeline-content{margin-left:70%}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 왕별 컬러링 */
.timeline-content.king-colored {
  border-color: var(--king-color, #f59e0b);
}

/* 왕 교체 지점 강조 */
.timeline-content.king-change {
  border-width: 6px;
  box-shadow: 0 0 0 2px var(--king-color, #f59e0b), 0 10px 24px rgba(0,0,0,0.12);
}

/* 타임라인 썸네일 */
.timeline-thumb {
  width: 100%;
  max-height: 90px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  border: 1px solid #eef2ff;
}

/* 짝수 아이템 콘텐츠 위치 */
.timeline-item:nth-child(even) .timeline-content {
  margin-right: 62%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 62%;
}

/* 반응형: 타임라인 카드 자동 조정 */
@media (min-width: 769px) and (max-width: 1199px) {
  .timeline-content {
    width: 32%;
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 60%;
  }
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 60%;
  }
}
@media (min-width: 1200px) {
  .timeline-container {
    max-width: 1200px;
  }
  .timeline-content {
    width: 28%;
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 60%;
  }
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 60%;
  }
}

/* 타임라인 년도 */
.timeline-year {
  font-size: 1.1rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 0.5rem;
}

/* 타임라인 제목 */
.timeline-title {
  font-size: 1.0rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

/* 업적 제목 색상 */
.timeline-item.achievement .timeline-title {
  color: #059669;
}

/* 사건 제목 색상 */
.timeline-item.event .timeline-title {
  color: #dc2626;
}

/* 타임라인 설명 */
.timeline-desc {
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* 시대/태그 배지 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 6px;
}

.badge-period {
  background: #ecfeff;
  color: #0e7490;
}

.badge-tag {
  background: #f5f3ff;
  color: #6d28d9;
}

/* 퀴즈 오버레이 */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.quiz-card {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 40px rgba(0,0,0,0.2);
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f2937;
}

.quiz-body {
  margin-top: 12px;
}

.quiz-question {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.quiz-choices {
  display: grid;
  gap: 8px;
}

.quiz-choice {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.quiz-choice.correct {
  border-color: #10b981;
  background: #ecfdf5;
}

.quiz-choice.wrong {
  border-color: #ef4444;
  background: #fef2f2;
}

.quiz-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
/* 상세 스니펫 (자세한 설명 모드) */
.timeline-snippet {
  font-size: 0.9rem;
  color: #4b5563;
  background: #f8fafc;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.8rem;
}

/* 타임라인 왕 정보 */
.timeline-king {
  font-size: 0.9rem;
  color: #7c3aed;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 20px;
  display: inline-block;
}

/* 팝업 스타일 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.popup-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: #f0f0f0;
  color: #666;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}
.popup-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 44px; /* 닫기 버튼 공간 확보 */
}

.popup-category {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.popup-year {
  color: #1f2937;
  background: #eef2ff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.popup-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  background: linear-gradient(90deg, #eef2ff, #f5f3ff);
  padding: 8px 12px;
  border-radius: 10px;
}

.popup-description {
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.popup-detail {
  margin-bottom: 1.5rem;
}

/* 상세 섹션 표 스타일 */
.detail-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}
.detail-key {
  align-self: start;
  padding: 6px 10px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.detail-val {
  padding-top: 6px;
  color: #374151;
  line-height: 1.6;
}

/* 카드 내 상세 표 컴팩트 버전 */
.detail-grid.compact {
  padding: 10px;
  gap: 6px 12px;
}
.timeline-content .detail-grid {
  margin-top: 8px;
}

.popup-image-wrap {
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  margin: 1rem 0 1.5rem 0;
}
.popup-image {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.popup-king-info {
  background: rgba(124, 58, 237, 0.08);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.popup-king-label {
  font-weight: 600;
  color: #7c3aed;
  margin-right: 0.5rem;
}

.popup-king-name {
  color: #1f2937;
  font-weight: 500;
}

.popup-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.popup-link {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.wiki-link {
  background: #1976d2;
  color: white;
}

.wiki-link:hover {
  background: #1565c0;
}

.namu-link {
  background: #00c851;
  color: white;
}

.namu-link:hover {
  background: #00a63f;
}

.youtube-link {
  background: #ff3333;
  color: white;
}

.youtube-link:hover {
  background: #e62e2e;
}

@media (max-width: 768px) {
  .view-selector {
    position: static;
    margin: 20px;
    justify-content: center;
  }
  
  .timeline-header h1 {
    font-size: 2rem;
  }

  .timeline-subtitle {
    font-size: 1rem;
  }

  .timeline-container {
    padding: 0 0.5rem;
  }

  .timeline-line {
    left: 2rem;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row !important;
  }

  .timeline-marker {
    left: 2rem;
  }

  .timeline-content {
    width: calc(100% - 4rem);
    margin-left: 4rem !important;
    margin-right: 0 !important;
  }
  .timeline-thumb {
    max-height: 140px;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 4rem !important;
    margin-right: 0 !important;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 4rem !important;
  }

  .timeline-title {
    font-size: 1.2rem;
  }

  .timeline-desc {
    font-size: 0.9rem;
  }

  .popup-content {
    margin: 1rem;
    padding: 1.5rem;
  }

  .popup-title {
    font-size: 1.5rem;
  }

  .popup-description {
    font-size: 1rem;
  }

  .popup-detail {
    font-size: 0.9rem;
  }

  .popup-links {
    flex-direction: column;
  }

  .popup-link {
    text-align: center;
  }
  
  /* 리스트형 모바일 스타일 */
  .list-container {
    padding: 0 0.5rem;
  }
  
  .history-table {
    font-size: 12px;
  }
  
  .history-table th, .history-table td {
    padding: 8px 4px;
  }
  
  .king-image {
    width: 30px;
    height: 30px;
  }
  
  .king-name {
    font-size: 12px;
  }
  
  .king-real-name {
    font-size: 10px;
  }
  
  .event-title {
    min-width: 120px;
    font-size: 12px;
  }
  
  .event-desc {
    font-size: 11px;
  }
}

/* 리스트형: 왕 교체 구분선(그룹 시작) */
.table-row.king-row-start td {
  border-top: 6px solid var(--king-color, #f59e0b);
}

/* 즐겨찾기 모아보기 바 */
.favorites-bar{
  margin: 0 1rem 1rem 1rem;
  padding: 0.8rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 10px 10px 22px #c5cad1, -10px -10px 22px #fff;
}
.favorites-title{
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}
.favorites-list{
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 8px;
}
.fav-card{
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  background: #f8fbff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fav-card:hover{transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08);}
.fav-year{font-size: 12px; color:#4c51bf; font-weight:700}
.fav-title{font-size: 13px; color:#1f2937; margin-top:2px; line-height:1.2}
@media (max-width: 768px){
  .favorites-list{grid-template-columns: repeat(2,minmax(0,1fr))}
}

/* 즐겨찾기 버튼 */
.fav-btn{
  position:absolute;
  top:6px;
  right:6px;
  width:28px;height:28px;
  border-radius:50%;
  border:1px solid #e5e7eb;
  background:#ffffff;
  color:#9ca3af;
  box-shadow:6px 6px 14px #c5cad1,-6px -6px 14px #fff;
  font-size:16px;line-height:26px;text-align:center;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
}
.fav-btn:hover{color:#f59e0b;border-color:#f59e0b;transform:translateY(-1px)}
.fav-btn.active{color:#ffffff;background:#f59e0b;border-color:#f59e0b;box-shadow:inset 6px 6px 14px #c5cad1,inset -6px -6px 14px #fff}

/* 리스트형 즐겨찾기 셀 */
.history-table .fav-cell{width:36px;text-align:center}
.history-table .fav-cell .fav-btn{position:static;width:24px;height:24px;font-size:14px;line-height:22px}
@media (max-width: 480px) {
  .timeline-header {
    padding: 1.5rem 0.5rem;
  }

  .timeline-header h1 {
    font-size: 1.8rem;
  }

  .timeline-content {
    padding: 1rem;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-desc {
    font-size: 0.85rem;
  }

  .popup-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .popup-title {
    font-size: 1.3rem;
  }
} 
