/* 请假攻略详情面板样式 */

/* 日历头部 - 使所有元素在同一行 */
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 日历标题行 */
.calendar-title-row {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.calendar-title-controls {
  flex: 1;
  min-width: 0;
}

/* 桌面端日历头部标签切换按钮 */
.calendar-badge-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 2px solid transparent;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #666);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.calendar-badge-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.calendar-badge-toggle.active {
  background: var(--brand, #4caf50);
  color: white;
  border-color: var(--brand, #4caf50);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.calendar-badge-toggle .badge-toggle-icon {
  font-size: 16px;
}

.calendar-badge-toggle .badge-toggle-label {
  display: inline;
}

/* 深色模式 */
[data-theme="dark"] .calendar-badge-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #b5bec6;
}

[data-theme="dark"] .calendar-badge-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .calendar-badge-toggle.active {
  background: #4caf50;
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 日历布局容器 - 两层水平布局 */
.calendar-body-layout {
  display: flex;
  gap: var(--space-12);
  height: 100%;
  overflow: hidden;
  padding-right: var(--space-12);
}

/* 日历网格 - 左侧 */
.calendar-grid {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}

/* 右侧面板包装器 - 竖直布局 */
.right-panel-wrapper {
  display: flex;
  flex-direction: column;
  width: 340px;
  min-width: 340px;
  --threads-content-width: clamp(310px, 92%, 320px);
  background: linear-gradient(180deg, var(--card) 0%, rgba(255, 255, 255, 0.5) 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.04);
}

/* 攻略卡片面板 - 头部 */
.leave-strategy-panel {
  --strategy-card-left-offset: var(--space-6);
  --strategy-stats-text-color: rgba(15, 23, 42, 0.45);
  width: min(100%, var(--threads-content-width));
  align-self: center;
  box-sizing: border-box;
  margin: 0 auto;
  flex: 0 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: transparent;
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leave-strategy-panel.hidden {
  display: none;
}

/* 攻略分类标签 */
.strategy-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.strategy-category-badge.holiday_highcp {
  background: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
}

.strategy-category-badge.offpeak_travel {
  background: rgba(255, 152, 0, 0.15);
  color: #e65100;
}

[data-theme="dark"] .strategy-category-badge.holiday_highcp {
  background: rgba(76, 175, 80, 0.25);
  color: #81c784;
}

[data-theme="dark"] .strategy-category-badge.offpeak_travel {
  background: rgba(255, 152, 0, 0.25);
  color: #ffb74d;
}

/* 攻略卡片 - Threads 风格 */
.strategy-card {
  padding: var(--space-10) var(--space-12);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
  box-sizing: border-box;
}

/* 调整面板内卡片尺寸，保持与面板宽度匹配 */
.leave-strategy-panel .strategy-card {
  width: 100%;
  border-radius: 20px;
  padding: var(--space-9) var(--space-16);
  gap: var(--space-5);
  margin: 0 auto var(--space-6);
}

.leave-strategy-panel .strategy-card-top {
  gap: var(--space-6);
  align-items: center;
  padding-left: var(--strategy-card-left-offset);
}

.leave-strategy-panel .strategy-avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(76, 201, 240, 0.15);
}

.leave-strategy-panel .strategy-user-name-line {
  gap: var(--space-4);
  font-size: 12px;
  align-items: center;
}

.leave-strategy-panel .strategy-user-name {
  font-size: 13px;
}

.leave-strategy-panel .strategy-cp,
.leave-strategy-panel .strategy-menu {
  font-size: 12px;
}

.leave-strategy-panel .strategy-menu {
  margin-left: auto;
  position: relative;
  top: -2px;
  padding-right: var(--space-12);
  color: rgba(255, 255, 255, 0.65);
  margin-right: var(--strategy-card-left-offset);
}

.leave-strategy-panel .strategy-card-content,
.leave-strategy-panel .strategy-card-bottom {
  margin-left: calc(42px + var(--strategy-card-left-offset));
}

.leave-strategy-panel .strategy-card-content p {
  font-size: 12.5px;
  line-height: 1.5;
}

.leave-strategy-panel .strategy-actions {
  gap: var(--space-5);
  justify-content: flex-start;
  width: 100%;
}

.leave-strategy-panel .strategy-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.leave-strategy-panel .strategy-icon {
  width: 18px;
  height: 18px;
}

.leave-strategy-panel .strategy-stats {
  font-size: 11px;
  margin-bottom: var(--space-4);
  color: var(--strategy-stats-text-color);
}

.leave-strategy-panel .strategy-stat-item {
  font-size: 11px;
  color: var(--strategy-stats-text-color);
}

.strategy-card:hover {
  background: rgba(255, 255, 255, 0.95);
}

.strategy-card:hover .strategy-avatar {
  border: 2px dashed var(--brand);
}

/* 卡片顶部 - 头像 + 用户信息行 */
.strategy-card-top {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
}

/* 圆形头像 - 序号 */
.strategy-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.8), rgba(76, 201, 240, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(76, 201, 240, 0.2);
}

.strategy-card[data-category="offpeak_travel"] .strategy-avatar {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(168, 85, 247, 0.65));
  box-shadow: 0 2px 10px rgba(147, 51, 234, 0.25);
}

/* 用户信息区域 */
.strategy-user-header {
  flex: 1;
  min-width: 0;
}

.strategy-user-name-line {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 13px;
}

.strategy-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.strategy-cp {
  color: var(--muted);
  font-size: 13px;
}

.strategy-menu {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  margin-left: auto;
}

/* 内容区域 - 日期范围 */
.strategy-card-content {
  margin: 0;
  margin-left: 44px;
}

.strategy-card-content p {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.1px;
}

/* 底部区域 - 按钮 + 统计 */
.strategy-card-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-left: 44px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);

}

/* 操作按钮区域 */
.strategy-actions {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-left: calc(-1 * var(--strategy-actions-left-shift, 6px));

}

/* 统计区域 - 请假天数和连休天数 */
.strategy-stats {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 12px;
  color: var(--strategy-stats-text-color, var(--muted));
}

.strategy-stat-item {
  color: var(--strategy-stats-text-color, var(--muted));
  font-weight: 500;
  font-size: 12px;
}

.strategy-stat-separator {
  color: var(--strategy-stats-text-color, var(--muted));
}

.strategy-action-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.strategy-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strategy-action-btn:hover {
  color: var(--brand);
  background: rgba(88, 204, 2, 0.1);
  transform: scale(1.1);
}

.strategy-action-btn:active {
  transform: scale(0.95);
}

/* 攻略面板收缩模式 - 显示为圆形按钮行 */
.leave-strategy-panel.compact-mode {
  flex: 0 0 auto;
  max-height: 52px;
  padding: var(--space-6) var(--space-10);
  margin: 0px 15px 0px 15px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  overflow: visible;
}

.leave-strategy-panel.compact-mode .strategy-card {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--font-bold);
  margin: 0;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.7), rgba(76, 201, 240, 0.5));
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(76, 201, 240, 0.25);
  overflow: hidden;
  position: relative;
}

.leave-strategy-panel.compact-mode .strategy-card:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 201, 240, 0.35);
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.9), rgba(76, 201, 240, 0.7));
  border: 2px dashed var(--brand);
}

.leave-strategy-panel.compact-mode .strategy-card[data-category="offpeak_travel"] {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.82), rgba(168, 85, 247, 0.6));
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.3);
  border-color: rgba(252, 244, 255, 0.9);
}

.leave-strategy-panel.compact-mode .strategy-card[data-category="offpeak_travel"]:hover {
  box-shadow: 0 8px 22px rgba(147, 51, 234, 0.45);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(168, 85, 247, 0.75));
  border-color: rgba(191, 148, 255, 0.8);
}

/* 隐藏圆形按钮中的所有内容 */
.leave-strategy-panel.compact-mode .strategy-card {
  font-size: 0;  /* 隐藏所有文本 */
}

.leave-strategy-panel.compact-mode .strategy-card .strategy-category-badge,
.leave-strategy-panel.compact-mode .strategy-card .strategy-card-top,
.leave-strategy-panel.compact-mode .strategy-card .strategy-card-content,
.leave-strategy-panel.compact-mode .strategy-card .strategy-card-bottom {
  display: none !important;
}

/* 隐藏原有的伪元素 */
.leave-strategy-panel.compact-mode .strategy-card::before {
  display: none !important;
}

/* 圆形按钮中只显示序号 */
.leave-strategy-panel.compact-mode .strategy-card::after {
  content: attr(data-index);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: var(--font-bold);
  pointer-events: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background: transparent;
  border-radius: 50%;
  box-shadow: none;
  border: none;
}

/* 详情面板容器 - 下部 */
.leave-strategy-detail-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leave-strategy-detail-container.hidden {
  display: none;
}

.detail-panel-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}


/* 单个圆形标签 */
.detail-tab {
  min-width: 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cell-bg);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  font-weight: var(--font-semibold);
  color: var(--muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
}

.detail-tab:hover {
  background: rgba(88, 204, 2, 0.1);
  border-color: rgba(88, 204, 2, 0.3);
  color: var(--text);
}

.detail-tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: var(--brand);
  color: #000;
  box-shadow: 0 4px 12px rgba(88, 204, 2, 0.3);
}

.detail-tab-label {
  position: absolute;
  bottom: -24px;
  white-space: nowrap;
  font-size: var(--font-xs);
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.detail-tab:hover .detail-tab-label {
  opacity: 1;
}

/* 详情内容区域 */
.detail-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-10) var(--space-12);
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
  box-sizing: border-box;
}

/* ========================================
   Threads 风格社交内容样式
   ======================================== */

.threads-post {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  max-width: var(--threads-content-width);
  width: 100%;
  margin: 0 auto;
}

/* Threads 头部 */
.threads-header {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-12) var(--space-6) var(--space-12);
}

/* Threads 日期范围 */
.threads-date-range {
  font-size: 13px;
  color: var(--muted);
  padding: 0 var(--space-12) var(--space-8) var(--space-12);
}

.threads-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.threads-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.threads-meta {
  font-size: 12px;
  color: var(--muted);
}

.threads-menu {
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.threads-menu:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

/* Threads 主要内容 */
.threads-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  padding: 0 var(--space-12);
}

.advice-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.advice-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.advice-section-label {
  color: var(--muted);
}

.advice-switch-btn {
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.advice-switch-btn:hover {
  background: rgba(74, 222, 128, 0.15);
}

.advice-content {
  padding: 8px 0;
}

.advice-title {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}

.advice-message {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .advice-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a94b0;
}

[data-theme="dark"] .advice-section-label {
  color: #a5b4fc;
}

[data-theme="dark"] .advice-switch-btn {
  color: #4cc9f0;
}

[data-theme="dark"] .advice-switch-btn:hover {
  background: rgba(76, 201, 240, 0.12);
}

[data-theme="dark"] .advice-title {
  color: #e2e8f0;
}

[data-theme="dark"] .advice-message {
  color: rgba(226, 232, 240, 0.8);
}

.threads-content p {
  margin: 0 0 var(--space-6) 0;
}

.threads-content p:last-child {
  margin-bottom: 0;
}

.threads-content strong {
  color: var(--brand);
  font-weight: 600;
}

/* Threads 统计数据 */
.threads-stats {
  display: flex;
  gap: var(--space-12);
  padding: var(--space-8) var(--space-12);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.threads-stat-item {
  flex: 1;
  text-align: center;
}

.threads-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
}

.threads-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Threads 底部 */
.threads-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-12) var(--space-12) var(--space-12);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.threads-actions {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.threads-action-btn {
  padding: 0;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: rgba(15, 23, 42, 0.55);
}

.threads-action-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.threads-action-icon {
  width: 18px;
  height: 18px;
}

/* Threads 统计数据（内联） */
.threads-stats-inline {
  display: flex;
  gap: var(--space-6);
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}

.threads-stat-inline {
  white-space: nowrap;
}

.detail-content::-webkit-scrollbar {
  width: 4px;
}

.detail-content::-webkit-scrollbar-track {
  background: transparent;
}

.detail-content::-webkit-scrollbar-thumb {
  background: rgba(88, 204, 2, 0.3);
  border-radius: 2px;
}

.detail-content::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 204, 2, 0.5);
}

/* 详情卡片 - Instagram 风格 */
.detail-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: var(--space-12);
  margin-bottom: var(--space-8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(4px);
}

.detail-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.08);
}

/* 详情卡片标题 */
.detail-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  letter-spacing: -0.2px;
}

.detail-card-icon {
  font-size: 18px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 详情卡片内容 */
.detail-card-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -0.1px;
}

.detail-card-content p {
  margin: 0 0 var(--space-6) 0;
  color: var(--text);
}

.detail-card-content p:last-child {
  margin-bottom: 0;
}

.detail-card-content strong {
  color: var(--brand);
  font-weight: var(--font-semibold);
}

.detail-card-content ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.detail-card-content li {
  margin-bottom: var(--space-4);
  color: var(--text);
  padding-left: var(--space-18);
  position: relative;
}

.detail-card-content li:last-child {
  margin-bottom: 0;
}

.detail-card-content li:before {
  content: "•";
  position: absolute;
  left: var(--space-6);
  color: var(--brand);
  font-weight: bold;
}

.detail-item {
  padding: var(--space-12);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-item-label {
  font-size: var(--font-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-4);
}

.detail-item-value {
  font-size: var(--font-base);
  font-weight: var(--font-semibold);
  color: var(--text);
}

.detail-item-value.highlight {
  color: var(--brand);
}

/* 详情日期范围 */
.detail-date-range {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-12);
  background: linear-gradient(135deg, rgba(88, 204, 2, 0.08) 0%, rgba(88, 204, 2, 0.04) 100%);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  margin-bottom: var(--space-10);
  border: 1px solid rgba(88, 204, 2, 0.1);
}

.detail-date-range-label {
  font-size: 11px;
  color: var(--muted);
  min-width: 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-date-range-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  letter-spacing: -0.1px;
}

.detail-date-range-arrow {
  color: var(--brand);
  font-weight: bold;
  opacity: 0.8;
}

/* 详情统计区域 */
.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.detail-stat {
  text-align: center;
  padding: var(--space-10);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-stat:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.detail-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: var(--space-4);
  letter-spacing: -0.3px;
}

.detail-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* 详情日历预览 */
.detail-calendar-preview {
  background: var(--cell-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-12);
  margin-bottom: var(--space-16);
}

.detail-calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: var(--space-8);
}

.detail-calendar-weekday {
  text-align: center;
  font-size: var(--font-xs);
  color: var(--muted);
  font-weight: var(--font-semibold);
  padding: var(--space-4);
}

.detail-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.detail-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xs);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.detail-calendar-day.leave {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border-color: #ffc107;
  font-weight: var(--font-semibold);
}

.detail-calendar-day.rest {
  background: rgba(76, 201, 240, 0.2);
  color: var(--brand-2);
  border-color: var(--brand-2);
  font-weight: var(--font-semibold);
}

.detail-calendar-day.weekend {
  color: var(--brand-2);
}


/* 响应式设计 */
@media (max-width: 768px) {
  .calendar-body-layout {
    flex-direction: column;
  }

  .right-panel-wrapper {
    width: 100%;
    min-width: 100%;
    height: 50%;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .detail-header {
    padding: var(--space-12);
  }

  .detail-content {
    padding: var(--space-12);
  }

  .detail-items {
    grid-template-columns: 1fr;
  }

  .detail-stats {
    grid-template-columns: 1fr;
  }

}

/* ========================================
   深色模式样式 (Dark Mode)
   ======================================== */

/* 深色模式 - 使用 data-theme 属性 */
[data-theme="dark"] .right-panel-wrapper {
  background: linear-gradient(180deg, #1a1a2e 0%, rgba(26, 26, 46, 0.8) 100%);
  border-left-color: rgba(255, 255, 255, 0.08);
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .leave-strategy-panel {
  background: rgba(26, 26, 46, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .strategy-card {
  background: rgba(30, 30, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .strategy-card:hover {
  background: rgba(35, 35, 60, 0.95);
}

[data-theme="dark"] .strategy-card:hover .strategy-avatar {
  border: 2px dashed #4cc9f0;
}

[data-theme="dark"] .strategy-user-name {
  color: #e0e7ff;
}

[data-theme="dark"] .strategy-cp {
  color: #8892a6;
}

[data-theme="dark"] .strategy-menu {
  color: #8892a6;
}

[data-theme="dark"] .strategy-card-content p {
  color: #b5bec6;
}

[data-theme="dark"] .strategy-stat-item {
  color: #e0e7ff;
}

[data-theme="dark"] .strategy-stat-separator {
  color: #8892a6;
}

[data-theme="dark"] .strategy-action-btn {
  color: #8892a6;
}

[data-theme="dark"] .strategy-action-btn:hover {
  color: #4cc9f0;
  background: rgba(76, 201, 240, 0.1);
}

[data-theme="dark"] .leave-strategy-panel {
  background: rgba(30, 30, 50, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .leave-strategy-panel.compact-mode {
  background: rgba(30, 30, 50, 0.9);
}

[data-theme="dark"] .leave-strategy-panel.compact-mode .strategy-card {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.5), rgba(76, 201, 240, 0.3));
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(76, 201, 240, 0.15);
}

[data-theme="dark"] .leave-strategy-panel.compact-mode .strategy-card:hover {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.7), rgba(76, 201, 240, 0.5));
  box-shadow: 0 8px 20px rgba(76, 201, 240, 0.25);
  border: 2px dashed #4cc9f0;
}

[data-theme="dark"] .leave-strategy-panel.compact-mode .strategy-card::before {
  display: none !important;
}

[data-theme="dark"] .detail-header {
  background: rgba(30, 30, 50, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .detail-title {
  color: #e0e7ff;
}

[data-theme="dark"] .detail-close-btn {
  color: #8892a6;
}

[data-theme="dark"] .detail-close-btn:hover {
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .detail-content {
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.6) 0%, rgba(26, 26, 46, 0.4) 100%);
}

[data-theme="dark"] .detail-content::-webkit-scrollbar-thumb {
  background: rgba(76, 201, 240, 0.3);
}

[data-theme="dark"] .detail-content::-webkit-scrollbar-thumb:hover {
  background: rgba(76, 201, 240, 0.5);
}

[data-theme="dark"] .detail-card {
  background: rgba(40, 40, 60, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .detail-card:hover {
  background: rgba(45, 45, 70, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .detail-card-title {
  color: #e0e7ff;
}

[data-theme="dark"] .detail-card-content {
  color: #b5bec6;
}

[data-theme="dark"] .detail-card-content strong {
  color: #4cc9f0;
}

[data-theme="dark"] .detail-card-content li:before {
  color: #4cc9f0;
}

[data-theme="dark"] .detail-date-range {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.1) 0%, rgba(76, 201, 240, 0.05) 100%);
  border-left-color: #4cc9f0;
  border-color: rgba(76, 201, 240, 0.15);
}

/* 深色模式 - Threads 风格 */
[data-theme="dark"] .threads-post {
  background: rgba(30, 30, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .threads-username {
  color: #e0e7ff;
}

[data-theme="dark"] .threads-meta {
  color: #8892a6;
}

[data-theme="dark"] .threads-menu {
  color: #8892a6;
}

[data-theme="dark"] .threads-menu:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e0e7ff;
}

[data-theme="dark"] .threads-content {
  color: #b5bec6;
}

[data-theme="dark"] .threads-content strong {
  color: #4cc9f0;
}

[data-theme="dark"] .threads-stats {
  border-top-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .threads-stat-value {
  color: #4cc9f0;
}

[data-theme="dark"] .threads-stat-label {
  color: #8892a6;
}

[data-theme="dark"] .threads-date-range {
  color: #8892a6;
}

[data-theme="dark"] .threads-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .threads-stats-inline {
  color: #8892a6;
}

[data-theme="dark"] .threads-action-btn {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .detail-date-range-label {
  color: #8892a6;
}

[data-theme="dark"] .detail-date-range-value {
  color: #e0e7ff;
}

[data-theme="dark"] .detail-date-range-arrow {
  color: #4cc9f0;
}

[data-theme="dark"] .detail-stats {
  gap: var(--space-10);
}

[data-theme="dark"] .detail-stat {
  background: rgba(40, 40, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .detail-stat:hover {
  background: rgba(45, 45, 70, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .detail-stat-value {
  color: #4cc9f0;
}

[data-theme="dark"] .detail-stat-label {
  color: #8892a6;
}

/* ========================================
   手机端 Bottom Sheet 样式
   ======================================== */

@media (max-width: 768px) {
  /* 日历布局改为单列 */
  .calendar-body-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  /* 日历网格 - 全宽 */
  .calendar-grid {
    flex: none;
    width: 100%;
    overflow-y: visible;
    min-width: 100%;
    margin-bottom: 0;
    transition: margin-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* 当详情面板打开时，给日历添加底部空间 */
  .calendar-grid.detail-open {
    margin-bottom: 280px;
  }

  /* 右侧面板改为 Bottom Sheet */
  .right-panel-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 100%;
    background: transparent;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    overflow: visible;
    box-shadow: none;
    padding-top: 12px;
  }

  [data-theme="dark"] .right-panel-wrapper {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  /* 详情面板容器 - Bottom Sheet */
  .leave-strategy-detail-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 60vh;
    border-radius: 16px 16px 0 0;
    background: var(--card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  [data-theme="dark"] .leave-strategy-detail-container {
    background: rgba(26, 26, 46, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }

  .leave-strategy-detail-container.hidden {
    display: none;
  }

  /* Bottom Sheet 拖拽手柄 */
  .detail-panel-wrapper::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    z-index: 10;
  }

  [data-theme="dark"] .detail-panel-wrapper::before {
    background: rgba(255, 255, 255, 0.2);
  }

  .detail-panel-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 12px;
  }

  /* 详情内容区域 - 可滚动 */
  .detail-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-12);
    -webkit-overflow-scrolling: touch;
    background: transparent;
  }

  /* 详情头部 - 手机端隐藏 */
  .detail-header {
    display: none;
  }

  /* 详情卡片 - 手机端优化 */
  .detail-card {
    padding: var(--space-12);
    margin-bottom: var(--space-12);
  }

  /* 详情统计 - 改为两列 */
  .detail-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  /* 详情日期范围 - 紧凑 */
  .detail-date-range {
    padding: var(--space-8) var(--space-10);
    margin-bottom: var(--space-8);
  }


  /* 请假卡片面板 - 手机端隐藏 */
  .leave-strategy-panel {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
  }

  /* 请假卡片 - 手机端优化 */
  .leave-strategy-panel .strategy-card {
    padding: var(--space-10) var(--space-12);
    margin-bottom: var(--space-8);
    border-radius: 12px;
  }

  /* 防止 Bottom Sheet 被内容遮挡 */
  body {
    padding-bottom: 0;
  }

  /* Bottom Sheet 动画 */
  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Bottom Sheet 关闭动画 */
  .leave-strategy-detail-container.closing {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

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

/* ========== 错峰出行详情卡片 - 社交风格分层布局 ========== */

.offpeak-detail-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(147, 51, 234, 0.12);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.offpeak-detail-card:hover {
  box-shadow: 0 12px 48px rgba(147, 51, 234, 0.12);
  transform: translateY(-2px);
  border-color: rgba(147, 51, 234, 0.2);
}

/* 核心信息头部 - Hero Section */
.offpeak-hero-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}

.offpeak-destination-info {
  flex: 1;
  min-width: 0;
}

.offpeak-destination-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.offpeak-destination-region {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.6);
  margin: 0;
  font-weight: 500;
}

/* 友好度徽章组 */
.offpeak-friendly-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offpeak-friendly-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.offpeak-friendly-badge.crowd-high {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.offpeak-friendly-badge.crowd-medium {
  background: rgba(251, 146, 60, 0.15);
  color: #c2410c;
}

.offpeak-friendly-badge.crowd-low {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.offpeak-friendly-badge.price-high {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.offpeak-friendly-badge.price-medium {
  background: rgba(251, 146, 60, 0.15);
  color: #c2410c;
}

.offpeak-friendly-badge.price-low {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.badge-icon {
  font-size: 12px;
}

.badge-text {
  font-weight: 600;
}

/* 关键指标卡片 - 3 列网格 */
.offpeak-metrics-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.offpeak-metric-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(147, 51, 234, 0.1);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.offpeak-metric-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(147, 51, 234, 0.2);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.1);
  transform: translateY(-2px);
}

.offpeak-metric-card.highlight {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(168, 85, 247, 0.05));
  border-color: rgba(147, 51, 234, 0.2);
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
  color: #9333ea;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}

.metric-label {
  font-size: 10px;
  color: rgba(15, 23, 42, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

/* 出行时间详情 - 时间线风格 */
.offpeak-timeline-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(147, 51, 234, 0.06);
  border-radius: 16px;
  border-left: 4px solid #9333ea;
}

.timeline-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-label {
  font-size: 11px;
  color: rgba(15, 23, 42, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #0f172a);
  letter-spacing: -0.1px;
}

/* 出发城市 - 图标 + 内容 */
.offpeak-depart-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 16px;
  border-left: 4px solid #3b82f6;
}

.depart-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.depart-content {
  flex: 1;
  min-width: 0;
}

.depart-label {
  font-size: 11px;
  color: rgba(15, 23, 42, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.depart-cities {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #0f172a);
  letter-spacing: -0.1px;
}

/* 标签分组 */
.offpeak-tags-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tags-label {
  font-size: 11px;
  color: rgba(15, 23, 42, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.offpeak-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offpeak-tag {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(168, 85, 247, 0.08));
  color: #6b21a8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(147, 51, 234, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.offpeak-tag:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.18), rgba(168, 85, 247, 0.12));
  border-color: rgba(147, 51, 234, 0.25);
  transform: translateY(-1px);
}

/* 文案描述 */
.offpeak-description-section {
  padding: 16px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.offpeak-description-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.82);
  margin: 0;
  letter-spacing: -0.1px;
}

/* 深色模式适配 */
[data-theme="dark"] .offpeak-detail-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: rgba(191, 148, 255, 0.2);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.15);
}

[data-theme="dark"] .offpeak-detail-card:hover {
  box-shadow: 0 12px 48px rgba(147, 51, 234, 0.2);
  border-color: rgba(191, 148, 255, 0.3);
}

[data-theme="dark"] .offpeak-hero-section {
  border-bottom-color: rgba(191, 148, 255, 0.15);
}

[data-theme="dark"] .offpeak-destination-title {
  color: #f8fafc;
}

[data-theme="dark"] .offpeak-destination-region {
  color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .offpeak-friendly-badge.crowd-high,
[data-theme="dark"] .offpeak-friendly-badge.price-high {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

[data-theme="dark"] .offpeak-friendly-badge.crowd-medium,
[data-theme="dark"] .offpeak-friendly-badge.price-medium {
  background: rgba(251, 146, 60, 0.2);
  color: #fed7aa;
}

[data-theme="dark"] .offpeak-friendly-badge.crowd-low,
[data-theme="dark"] .offpeak-friendly-badge.price-low {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

[data-theme="dark"] .offpeak-metric-card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(191, 148, 255, 0.15);
}

[data-theme="dark"] .offpeak-metric-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(191, 148, 255, 0.25);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

[data-theme="dark"] .offpeak-metric-card.highlight {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(168, 85, 247, 0.08));
  border-color: rgba(191, 148, 255, 0.25);
}

[data-theme="dark"] .metric-value {
  color: #d8b4fe;
}

[data-theme="dark"] .metric-label {
  color: rgba(226, 232, 240, 0.6);
}

[data-theme="dark"] .offpeak-timeline-section {
  background: rgba(147, 51, 234, 0.1);
  border-left-color: #d8b4fe;
}

[data-theme="dark"] .timeline-label {
  color: rgba(226, 232, 240, 0.6);
}

[data-theme="dark"] .timeline-value {
  color: #f8fafc;
}

[data-theme="dark"] .offpeak-depart-section {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #60a5fa;
}

[data-theme="dark"] .depart-label {
  color: rgba(226, 232, 240, 0.6);
}

[data-theme="dark"] .depart-cities {
  color: #f8fafc;
}

[data-theme="dark"] .offpeak-tag {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(168, 85, 247, 0.12));
  color: #d8b4fe;
  border-color: rgba(191, 148, 255, 0.25);
}

[data-theme="dark"] .offpeak-tag:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.28), rgba(168, 85, 247, 0.18));
  border-color: rgba(191, 148, 255, 0.35);
}

[data-theme="dark"] .offpeak-description-section {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(191, 148, 255, 0.1);
}

[data-theme="dark"] .offpeak-description-text {
  color: rgba(226, 232, 240, 0.9);
}

