body {
  font-family: "Noto Sans SC", sans-serif;
  background: linear-gradient(135deg, #fff5f5 0%, #fffbf2 50%, #f5f7ff 100%);
  color: #4b5563;
}

.font-mono {
  font-family: "JetBrains Mono", monospace;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.04);
}

.plan-mode-modal-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

.plan-mode-option {
  cursor: pointer;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-option {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.plan-mode-option:hover,
.mode-option:hover {
  transform: translateY(-8px);
  background: #ffffff;
  background: white;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.plan-mode-option:active,
.mode-option:active {
  transform: scale(0.95);
}

.plan-mode-option-translation:hover {
  border-color: #fdba74;
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.14);
}

.plan-mode-option-listening:hover {
  border-color: #93c5fd;
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.14);
}

.plan-mode-option-dictation:hover {
  border-color: #86efac;
  box-shadow: 0 18px 36px rgba(34, 197, 94, 0.14);
}

.modal-active {
  display: flex !important;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  from { transform: scale(0.9) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes blue-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
    box-shadow: 0 0 4px rgba(34, 211, 238, 0.4);
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  }
}

.breathe-dot {
  background-color: #22d3ee;
  animation: blue-breathe 2s infinite ease-in-out;
}

.app-grid {
  display: grid;
  grid-template-columns: 168px 1fr 340px;
  height: 100vh;
  padding: 16px;
  gap: 16px;
}

/* 避免列表变长时出现滚动条导致主列宽度突变，进而把 plan-hero 内双列网格挤没 */
.app-grid > main {
  scrollbar-gutter: stable;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.progress-glow {
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
}

.t-data {
  font-size: 20px;
  font-weight: 900;
  color: #1e293b;
}

.plan-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.plan-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.18), rgba(251, 146, 60, 0));
  pointer-events: none;
}

.plan-hero-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fb923c;
  margin-bottom: 10px;
}

.plan-hero-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: #0f172a;
  font-style: italic;
}

.plan-hero-desc {
  margin-top: 12px;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.9;
  color: #64748b;
}

.plan-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.plan-metric-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 237, 213, 0.9);
  box-shadow: 0 14px 28px rgba(251, 146, 60, 0.08);
}

.plan-metric-label {
  display: block;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

.plan-metric-value {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
  font-family: "JetBrains Mono", monospace;
}

.plan-filter-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(241, 245, 249, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.76);
}

.plan-filter-btn {
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.plan-filter-btn:hover {
  color: #475569;
}

.plan-filter-btn.is-active {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

.plan-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 20px;
  transition: all 0.28s ease;
  border: 1px solid transparent;
}

.plan-row:hover {
  transform: translateX(6px);
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(251, 146, 60, 0.08);
}

.plan-row-cover {
  position: relative;
  width: 96px;
  min-width: 96px;
  min-height: 128px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5 0%, #fde68a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 16px 32px rgba(251, 146, 60, 0.14);
}

.plan-row-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.12));
}

.plan-row-cover-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-row-cover-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 18px 0 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 22px;
  font-weight: 900;
  color: #ea580c;
}

.plan-row-cover-tag {
  position: absolute;
  left: 16px;
  bottom: 18px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.plan-row-main {
  min-width: 0;
}

.plan-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.plan-row-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: #0f172a;
}

.plan-row-subtitle {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #64748b;
}

.plan-row-kpi {
  min-width: 132px;
  text-align: right;
}

.plan-row-kpi strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
  font-family: "JetBrains Mono", monospace;
}

.plan-row-kpi span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.plan-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.plan-row-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.plan-progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(148, 163, 184, 0.18);
}

.plan-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}

.plan-progress-text {
  min-width: 48px;
  text-align: right;
  font-size: 14px;
  font-weight: 900;
  color: #ea580c;
  font-family: "JetBrains Mono", monospace;
}

.plan-row-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.plan-primary-btn {
  border: 0;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.plan-primary-btn {
  padding: 12px 18px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.22);
}

.plan-primary-btn:hover {
  transform: translateY(-1px);
}

.plan-secondary-btn {
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #f97316;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.plan-secondary-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.4);
  background: #fff7ed;
}

.plan-secondary-btn.is-loading {
  cursor: wait;
  opacity: 0.7;
}

.plan-empty-state,
.plan-error-state,
.plan-timeline-empty {
  padding: 28px;
  border-radius: 22px;
  border: 1px dashed rgba(251, 146, 60, 0.3);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.plan-empty-title,
.plan-error-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.plan-empty-desc,
.plan-error-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
}

.plan-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #ea580c;
  font-size: 13px;
  font-weight: 900;
}

.plan-list-load-hint {
  margin: 16px 4px 8px;
  padding: 12px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(248, 250, 252, 0.65);
}

.plan-list-load-hint:hover {
  color: #ea580c;
  border-color: rgba(251, 146, 60, 0.45);
}

.plan-list-load-hint--done {
  color: #64748b;
}

.plan-ring {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #fff 54%, transparent 55%), conic-gradient(#f97316 0deg, #f97316 0deg, #e2e8f0 0deg, #e2e8f0 360deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 237, 213, 0.9);
}

.plan-ring span {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  font-family: "JetBrains Mono", monospace;
}

.plan-timeline-item {
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.76);
}

.plan-timeline-item.is-special {
  border-color: rgba(251, 146, 60, 0.24);
  background: rgba(255, 247, 237, 0.72);
}

.plan-timeline-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-timeline-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #ea580c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-timeline-title {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 900;
  color: #0f172a;
}

.plan-timeline-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #64748b;
}

@media (max-width: 1400px) {
  .app-grid {
    grid-template-columns: 154px 1fr 300px;
  }

  .plan-row {
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }

  .plan-row-cover {
    width: 96px;
    min-width: 96px;
    min-height: 128px;
  }
}

@media (max-width: 1180px) {
  .plan-hero {
    grid-template-columns: 1fr;
  }
}
