:root {
  --primary: #c41e24;
  --primary-dark: #9a171c;
  --primary-light: #e8434a;
  --gold: #d4a843;
  --silver: #a8a8a8;
  --bronze: #cd7f32;
  --bg: #f5f0e8;
  --bg-dark: #2c2c2c;
  --text: #333;
  --text-light: #666;
  --text-white: #f5f5f5;
  --border: #ddd;
  --shadow: 0 2px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

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

/* Navbar */
.navbar {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo { font-size: 1.8rem; }
.nav-title { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 0.25rem; }

.nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-link.active { color: #fff; background: var(--primary); }
.nav-hamburger { display: none; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }

.mobile-menu {
  display: none;
  background: var(--bg-dark);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.show { display: flex; }

/* Pages */
.main-content { min-height: calc(100vh - 64px); }
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

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

/* Hero */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #4a1a1a 50%, var(--bg-dark) 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; padding: 3rem 2rem; }

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.hero-content p { color: rgba(255,255,255,0.8); font-size: 1.2rem; margin-bottom: 2.5rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--gold); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

.venue-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.venue-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.venue-card .venue-name { color: var(--gold); font-weight: 700; font-size: 0.95rem; }
.venue-card .venue-count { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* Page Header */
.page-header {
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h2 { font-size: 1.8rem; font-weight: 700; color: var(--bg-dark); }
.page-header p { color: var(--text-light); width: 100%; }
.header-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(196,30,36,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #b52d3a; }
.btn-success { background: #28a745; color: #fff; }
.btn-success:hover { background: #218838; }

/* Inputs */
.input-search {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
}

.input-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(196,30,36,0.1); }

.input-select {
  padding: 0.6rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
}

.input-select:focus { outline: none; border-color: var(--primary); }

.input-field {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.input-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(196,30,36,0.1); }

.input-file { padding: 0.5rem; width: 100%; }

.search-bar { padding: 0 2rem 1rem; max-width: 500px; }

.filter-bar {
  padding: 0 2rem 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar .input-search { flex: 1; min-width: 200px; }

/* Events Grid */
.events-grid { padding: 0 2rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; }

.event-category { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

.category-header {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.category-header:hover { background: #3a3a3a; }
.category-header h3 { font-size: 1.1rem; font-weight: 700; }
.category-count { background: var(--primary); padding: 0.2rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }

.event-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; }

.event-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.event-item:hover { background: #faf8f5; }

.event-id {
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 45px;
  text-align: center;
}

.event-name { font-weight: 500; flex: 1; }
.event-count { color: var(--text-light); font-size: 0.85rem; }
.event-custom { color: var(--gold); font-size: 0.8rem; font-weight: 600; }

/* Table */
.table-container { padding: 0 2rem 2rem; overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid #f0f0f0; font-size: 0.95rem; }
.data-table tr:hover td { background: #faf8f5; }
.data-table .actions { display: flex; gap: 0.5rem; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-male { background: #e3f2fd; color: #1565c0; }
.badge-female { background: #fce4ec; color: #c62828; }
.badge-A { background: #e8f5e9; color: #2e7d32; }
.badge-B { background: #fff3e0; color: #e65100; }
.badge-C { background: #f3e5f5; color: #7b1fa2; }
.badge-D { background: #e0f2f1; color: #00695c; }
.badge-E { background: #fce4ec; color: #880e4f; }
.badge-F { background: #efebe9; color: #4e342e; }
.badge-G { background: #e8eaf6; color: #283593; }
.badge-pending { background: #f5f5f5; color: #666; }
.badge-scheduled { background: #e3f2fd; color: #1565c0; }
.badge-in_progress { background: #fff3e0; color: #e65100; }
.badge-completed { background: #e8f5e9; color: #2e7d32; }

.medal-gold { color: var(--gold); font-weight: 700; }
.medal-silver { color: var(--silver); font-weight: 700; }
.medal-bronze { color: var(--bronze); font-weight: 700; }

/* ---- 名次：红色渐变方块 ---- */
.rank-block{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.05em; height: 2.05em; padding: 0 .5em;
  border-radius: .5em; line-height: 1; letter-spacing: 0;
  background: linear-gradient(135deg, #ff6b35 0%, #e63329 46%, #c41e24 100%);
  color: #fff; font-weight: 900; font-size: .98rem;
  box-shadow: 0 2px 6px rgba(196,30,36,.35), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
.rank-block.gold{ box-shadow: 0 0 0 2px var(--gold), 0 2px 6px rgba(196,30,36,.35); }
.rank-block.silver{ box-shadow: 0 0 0 2px var(--silver), 0 2px 6px rgba(196,30,36,.35); }
.rank-block.bronze{ box-shadow: 0 0 0 2px var(--bronze), 0 2px 6px rgba(196,30,36,.35); }
.rank-block.none{ background: #c2c2c9; box-shadow: none; }
.rank-award{ display: block; margin-top: .28rem; font-size: .72rem; color: var(--text-light); font-weight: 600; }
.members{ color: var(--text); font-weight: 700; }

.athlete-code {
  font-family: 'Courier New', monospace;
  background: #f5f5f5;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Groups */
.group-filters {
  padding: 0 2rem 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.groups-container { padding: 0 2rem 2rem; display: flex; flex-direction: column; gap: 1rem; }

.group-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.group-card:hover { box-shadow: var(--shadow-lg); }

.group-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-left: 4px solid var(--primary);
}

.group-header.comprehensive {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, #fff9e6, #fff);
}

.group-info { display: flex; flex-direction: column; gap: 0.2rem; }
.group-title { font-weight: 700; font-size: 1.05rem; }

.group-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.group-actions { display: flex; gap: 0.5rem; align-items: center; }

.group-entries { display: none; border-top: 1px solid #f0f0f0; }
.group-entries.show { display: block; }
.group-entries table { width: 100%; }

.group-entries th {
  background: #f8f6f2;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
}

.group-entries td { padding: 0.5rem 1rem; border-bottom: 1px solid #f5f5f5; font-size: 0.9rem; }
.group-entries tr:hover td { background: #faf8f5; }
.group-entries .order-num { font-weight: 700; color: var(--text-light); width: 40px; }

.score-input {
  width: 65px;
  padding: 0.3rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
}

.score-input:focus { outline: none; border-color: var(--primary); }

.final-score {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}


/* ===== 成绩公示（主界面） ===== */
.result-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.result-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, #9a171c));
  color: #fff;
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.result-header h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.result-count { font-size: 0.85rem; opacity: 0.85; }
.result-card .data-table { margin: 0; }
.result-card tr.abstain td { color: #999; }
.result-card tr.medal-gold td { background: rgba(212,168,67,0.06); }
.result-card tr.medal-silver td { background: rgba(192,192,192,0.06); }
.result-card tr.medal-bronze td { background: rgba(205,127,50,0.06); }

/* ===== 拖拽排序 ===== */
tr.dragging { opacity: 0.4; }
tr.drag-over { outline: 2px dashed var(--primary); }

/* ===== 裁判长加减分输入 ===== */
.adj-input {
  width: 65px;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(255,193,7,0.5);
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
  background: rgba(255,193,7,0.05);
}
.adj-input:focus { outline: none; border-color: #ffc107; }


/* Schedule */
.schedule-container { padding: 0 2rem 2rem; }

.schedule-venue {
  margin-bottom: 2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.schedule-venue-header {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.schedule-venue-header .venue-icon { font-size: 1.5rem; }

.schedule-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: var(--transition);
}

.schedule-item:hover { background: #faf8f5; }

.schedule-time {
  min-width: 100px;
  text-align: center;
}

.schedule-time .check-in {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.schedule-time .time-slot {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.schedule-details { flex: 1; }
.schedule-event-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.schedule-group-info { font-size: 0.85rem; color: var(--text-light); }

/* Results */
.results-container { padding: 0 2rem 2rem; }

.results-category { margin-bottom: 2rem; }

.results-category h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  color: var(--bg-dark);
}

/* Import */
.import-grid {
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.import-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
}

.import-card.full-width { grid-column: 1 / -1; }
.import-icon { font-size: 3rem; margin-bottom: 1rem; }
.import-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.import-card p { color: var(--text-light); margin-bottom: 1rem; font-size: 0.95rem; }

.import-card code {
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--primary);
}

.help-text {
  font-size: 0.85rem;
  color: var(--text-light);
  background: #f8f6f2;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.import-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: left;
}

.import-result.success { background: #e8f5e9; color: #2e7d32; }
.import-result.error { background: #fce4ec; color: #c62828; }

.template-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.show { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 { font-size: 1.2rem; }

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.9rem; color: var(--text-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  max-width: 350px;
}

.toast.success { background: #2e7d32; }
.toast.error { background: #c62828; }
.toast.info { background: #1565c0; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-title { font-size: 1rem; }

  .hero-content h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .venue-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.8rem; }

  .page-header { padding: 1.5rem 1rem 0.5rem; }
  .search-bar, .filter-bar, .group-filters { padding: 0 1rem 1rem; }
  .events-grid, .table-container, .groups-container, .results-container, .import-grid, .schedule-container { padding: 0 1rem 1rem; }

  .event-items { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-bar .input-search { min-width: auto; }
  .import-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .group-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1rem; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state .empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* 拖拽排序 */
.group-entries tr[draggable="true"] {
  cursor: grab;
}
.group-entries tr[draggable="true"]:active {
  cursor: grabbing;
}
.group-entries tr[draggable="true"]:hover {
  background: #f0f8ff !important;
}
.group-entries .btn-danger {
  background: #dc3545;
  color: #fff;
  padding: .2rem .5rem;
  font-size: .8rem;
}
.group-entries .btn-danger:hover {
  background: #c82333;
}

}


/* 赛程表样式 V2 */
.schedule-venue {
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.schedule-venue-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #3a3a3a 100%);
  color: var(--text-white);
  padding: 1rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.schedule-count {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

.schedule-list {
  padding: 0.5rem;
}

.schedule-card {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  margin: 0.3rem 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.schedule-card:hover {
  background: #f8f6f2;
  border-color: var(--border);
}

.schedule-card-left {
  min-width: 80px;
  text-align: center;
}

.schedule-checkin {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(196,30,36,0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.schedule-card-center {
  flex: 1;
  padding: 0 1rem;
}

.schedule-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.schedule-card-meta {
  font-size: 0.85rem;
  color: var(--text-light);
}

.schedule-card-arrow {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.schedule-card.expanded .schedule-card-arrow {
  transform: rotate(90deg);
  color: var(--primary);
}

.schedule-entries {
  display: none;
  padding: 0 1rem 1rem 80px;
}

.schedule-entries.show {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 1000px; }
}

.schedule-entries table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.schedule-entries th {
  background: #f8f6f2;
  padding: 0.5rem 0.8rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.schedule-entries td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #f5f5f5;
}

.schedule-entries tr:hover td {
  background: #faf8f5;
}
