[x-cloak] { display: none !important; }

html, body {
  height: 100%;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.font-code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Linear Glow & Fine Borders */
.border-subtle-dark {
  border-color: rgba(255, 255, 255, 0.08);
}
.linear-glow-blue {
  box-shadow: 0 0 20px -3px rgba(59, 130, 246, 0.45);
}
.linear-glow-card {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 8px 24px -4px rgba(15, 23, 42, 0.06);
}
.hud-glass {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px -8px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Timeline glowing continuous vertical rail */
.timeline-rail {
  background: linear-gradient(180deg, #3b82f6 0%, #6366f1 40%, #cbd5e1 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* Mobile bottom nav spacing */
@media (max-width: 767px) {
  main { padding-bottom: 64px; }
}

/* Smooth transitions */
.transition { transition: all 0.2s ease; }

/* Double-layer Outer Glow Focus Ring (Fixing invalid ring CSS property) */
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Drag feedback */
[draggable="true"]:active {
  opacity: 0.5;
  cursor: grabbing;
}

/* AI summary typewriter cursor (Deep space electric blue pulse) */
.ai-cursor::after {
  content: '▋';
  display: inline-block;
  color: #2563eb;
  text-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
  animation: blink 0.8s infinite;
  margin-left: 2px;
  vertical-align: baseline;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Card selected state */
.entry-card-selected {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3), 0 8px 20px -4px rgba(59, 130, 246, 0.15) !important;
}

.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-2xs {
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.03);
}

/* AI Summary Output Typography */
.ai-summary-body {
  line-height: 1.7;
}

.ai-summary-body h1 {
  letter-spacing: -0.01em;
}

.ai-summary-body h2 {
  letter-spacing: -0.01em;
}

.ai-summary-body li {
  position: relative;
}
