:root {
  --sidebar: transparent;
  --sidebar-hover: rgba(255, 255, 255, 0.7);
  --sidebar-active: rgba(255, 255, 255, 0.85);
  --bg: #d8dfe8;
  --bg-elev: #e8ecf2;
  --card: rgba(255, 255, 255, 0.65);
  --card-solid: rgba(255, 255, 255, 0.8);
  --text: #1c1f2a;
  --muted: #5a6478;
  --border: rgba(255, 255, 255, 0.9);
  --border-strong: rgba(255, 255, 255, 1);
  --primary: #9b8afb;
  --primary-hover: #a99cfc;
  --primary-dim: rgba(155, 138, 251, 0.15);
  --success: #5eead4;
  --danger: #fb7185;
  --warning: #fbbf24;
  --rainbow-border: linear-gradient(135deg, 
    rgba(147, 197, 253, 0.7) 0%, 
    rgba(255, 255, 255, 0.95) 20%, 
    rgba(196, 181, 253, 0.6) 40%, 
    rgba(255, 255, 255, 0.9) 60%, 
    rgba(253, 186, 116, 0.5) 80%, 
    rgba(255, 255, 255, 0.85) 100%);
  --glow: 0 20px 50px rgba(100, 116, 139, 0.2);
  --glow-purple: 0 12px 28px rgba(155, 138, 251, 0.25);
  --glow-mint: 0 12px 28px rgba(94, 234, 212, 0.3);
  --glass-solid: rgba(255, 255, 255, 0.72);
  --glass-edge:
    inset 0 1px 2px rgba(255, 255, 255, 1),
    inset 0 -1px 1px rgba(180, 190, 210, 0.15);
  --glass-depth: 
    0 8px 32px rgba(100, 116, 139, 0.18),
    0 2px 6px rgba(100, 116, 139, 0.08);
  --motion: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, filter 0.32s ease, background 0.28s ease;
  --radius: 24px;
  --radius-sm: 16px;
  --nav-review: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E");
  --nav-keywords: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Ccircle cx='7' cy='7' r='1.2' fill='black' stroke='none'/%3E%3C/svg%3E");
  --nav-blocked: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  --nav-notify: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E");
}

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

html { color-scheme: light; background: #e8edf4; }

@keyframes liquid-sheen {
  0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  18% { opacity: 0.55; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(145deg, #c8d0dc 0%, #d5dce6 35%, #ddd8e8 65%, #d0d8e4 100%);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

body::before {
  background:
    radial-gradient(50% 45% at 15% 25%, rgba(147, 197, 253, 0.4), transparent 60%),
    radial-gradient(45% 40% at 85% 20%, rgba(196, 181, 253, 0.35), transparent 55%),
    radial-gradient(40% 35% at 75% 80%, rgba(253, 186, 116, 0.25), transparent 55%),
    radial-gradient(35% 30% at 25% 75%, rgba(167, 243, 208, 0.2), transparent 50%);
}

body::after { display: none; }

.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  background: transparent;
}

.app--workspace {
  align-items: stretch;
  padding: 16px;
  gap: 16px;
}

.workspace-sidebar {
  position: sticky;
  top: 16px;
  align-self: flex-start;
  flex: 0 0 220px;
  width: 220px;
  min-height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.88) 0%, 
    rgba(255, 255, 255, 0.75) 50%,
    rgba(240, 242, 248, 0.82) 100%);
  color: var(--text);
  padding: 16px 0 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    var(--glass-edge),
    var(--glass-depth),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  transition: var(--motion);
}

.workspace-sidebar:hover {
  box-shadow: 
    var(--glass-edge),
    0 12px 40px rgba(100, 116, 139, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.sidebar-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 14px 16px;
  border-bottom: 1px solid rgba(120, 140, 175, 0.12);
  margin-bottom: 8px;
}

.sidebar-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.9) 100%);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--motion);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 4px 12px rgba(100, 116, 139, 0.15);
}

.sidebar-home-link-icon {
  font-size: 0.82rem;
  line-height: 1;
  opacity: 0.85;
}

.sidebar-home-link:hover {
  background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 252, 0.95) 100%);
  color: var(--text);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 8px 20px rgba(100, 116, 139, 0.2);
}

.sidebar-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 14px;
}

.sidebar-brand-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(125, 211, 252, 0.35));
}

.sidebar-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-brand-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1c1f2a;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.sidebar-slogan {
  font-size: 0.62rem;
  font-weight: 500;
  color: #7c6cf0;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px;
  flex: 1;
}

.sidebar-group {
  margin-bottom: 8px;
}

.sidebar-group-title {
  padding: 8px 10px 6px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #4b5568;
  line-height: 1.35;
  white-space: nowrap;
}

.sidebar-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px 9px 16px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #4b5568;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--motion);
}

.sidebar-nav-item::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
  opacity: 0.85;
}

.sidebar-nav-item[data-page="review"] { --nav-icon: var(--nav-review); }
.sidebar-nav-item[data-page="keywords"] { --nav-icon: var(--nav-keywords); }
.sidebar-nav-item[data-page="blocked-countries"] { --nav-icon: var(--nav-blocked); }
.sidebar-nav-item[data-page="notify"] { --nav-icon: var(--nav-notify); }

.sidebar-nav-item:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.8) 100%);
  color: #1c1f2a;
  transform: translateX(2px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 4px 12px rgba(100, 116, 139, 0.12);
}

.sidebar-nav-item--active,
.sidebar-nav-item.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
  color: #1c1f2a;
  font-weight: 600;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 4px 14px rgba(100, 116, 139, 0.15);
}

.sidebar-nav-item--active::after,
.sidebar-nav-item.active::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, #67e8f9, #a78bfa);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.45);
}

/* ========== 太阳系导航 ========== */
.solar-system-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background: radial-gradient(ellipse 120% 100% at 50% 120%, rgba(15, 23, 42, 0.08) 0%, transparent 70%);
}

.solar-system {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 太阳 - 炽热效果 ===== */
.sun {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 30% 30%, #fffde7 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, #ffeb3b 0%, #ff9800 35%, #ff5722 60%, #e65100 80%, #bf360c 100%);
  box-shadow: 
    0 0 30px 8px rgba(255, 167, 38, 0.7),
    0 0 60px 15px rgba(255, 87, 34, 0.5),
    0 0 90px 25px rgba(255, 152, 0, 0.3),
    inset -8px -8px 20px rgba(191, 54, 12, 0.6),
    inset 6px 6px 15px rgba(255, 255, 224, 0.5);
  z-index: 10;
  animation: sun-flare 4s ease-in-out infinite;
}

.sun::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.4) 0%, transparent 70%);
  animation: sun-corona 3s ease-in-out infinite alternate;
}

.sun::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: 
    radial-gradient(ellipse 60% 30% at 25% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse 40% 20% at 70% 60%, rgba(255, 224, 130, 0.4) 0%, transparent 50%);
}

@keyframes sun-flare {
  0%, 100% { 
    box-shadow: 
      0 0 30px 8px rgba(255, 167, 38, 0.7),
      0 0 60px 15px rgba(255, 87, 34, 0.5),
      0 0 90px 25px rgba(255, 152, 0, 0.3),
      inset -8px -8px 20px rgba(191, 54, 12, 0.6),
      inset 6px 6px 15px rgba(255, 255, 224, 0.5);
  }
  50% { 
    box-shadow: 
      0 0 40px 12px rgba(255, 167, 38, 0.8),
      0 0 80px 20px rgba(255, 87, 34, 0.6),
      0 0 120px 35px rgba(255, 152, 0, 0.35),
      inset -8px -8px 20px rgba(191, 54, 12, 0.6),
      inset 6px 6px 15px rgba(255, 255, 224, 0.5);
  }
}

@keyframes sun-corona {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.3; }
}

/* ===== 轨道 - 细微椭圆线 ===== */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(100, 116, 139, 0.15);
  background: transparent;
  box-shadow: 0 0 1px rgba(100, 116, 139, 0.1);
}

.orbit-1 { width: 78px; height: 78px; }
.orbit-2 { width: 110px; height: 110px; }
.orbit-3 { width: 142px; height: 142px; }
.orbit-4 { width: 176px; height: 176px; }

/* ===== 行星通用样式 ===== */
.planet {
  position: absolute;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
  z-index: 5;
}

.planet-surface {
  display: block;
  border-radius: 50%;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}

/* 行星纹理层 */
.planet-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* 行星高光层 */
.planet-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse 80% 50% at 30% 20%, rgba(255, 255, 255, 0.7) 0%, transparent 50%);
  pointer-events: none;
}

/* 行星 hover 自转动画 */
@keyframes planet-spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes planet-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.planet:hover .planet-surface {
  animation: planet-spin 2.5s linear infinite, planet-glow 1.5s ease-in-out infinite;
}

.planet:hover {
  transform: scale(1.2);
  z-index: 25;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.5));
}

/* 行星标签 */
.planet-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(51, 65, 85, 0.9);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.planet:hover .planet-label {
  color: #1e293b;
  transform: scale(1.05);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 1);
}

.planet.active .planet-label {
  color: #7c3aed;
  font-weight: 700;
}

/* 行星active状态不显示竖线 */
.planet.active::after {
  display: none !important;
}

/* ===== 行星1: 地球 (RFQ总览) - 最内层，较小 ===== */
.planet-1 {
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column-reverse;
}

.planet-1 .planet-label {
  margin-bottom: 2px;
}

.planet-1 .planet-surface {
  width: 20px;
  height: 20px;
  background: 
    radial-gradient(circle at 50% 50%, #1e40af 0%, #1e3a8a 100%);
  box-shadow: 
    inset -6px -4px 12px rgba(30, 58, 138, 0.8),
    inset 4px 3px 8px rgba(147, 197, 253, 0.4),
    0 0 20px rgba(59, 130, 246, 0.4),
    0 4px 15px rgba(30, 64, 175, 0.3);
}

/* 地球大陆纹理 */
.planet-1 .planet-surface::before {
  background: 
    radial-gradient(ellipse 45% 35% at 35% 45%, #22c55e 0%, #16a34a 50%, transparent 70%),
    radial-gradient(ellipse 30% 25% at 65% 35%, #22c55e 0%, #15803d 50%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 50% 70%, #4ade80 0%, #22c55e 50%, transparent 65%),
    radial-gradient(ellipse 20% 15% at 25% 25%, #86efac 0%, transparent 50%);
  opacity: 0.85;
}

.planet-1.active .planet-surface {
  box-shadow: 
    inset -6px -4px 12px rgba(30, 58, 138, 0.8),
    inset 4px 3px 8px rgba(147, 197, 253, 0.4),
    0 0 25px rgba(59, 130, 246, 0.6),
    0 0 0 3px rgba(124, 58, 237, 0.5),
    0 4px 20px rgba(30, 64, 175, 0.4);
}

/* ===== 行星2: 木星风格 (关键词) - 第二层 ===== */
.planet-2 {
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
}

.planet-2 .planet-surface {
  width: 22px;
  height: 22px;
  background: 
    linear-gradient(180deg, 
      #fcd34d 0%, #fbbf24 12%,
      #f59e0b 12%, #d97706 25%,
      #fde68a 25%, #fcd34d 38%,
      #f97316 38%, #ea580c 52%,
      #fed7aa 52%, #fdba74 65%,
      #fb923c 65%, #ea580c 78%,
      #fef3c7 78%, #fde68a 90%,
      #f59e0b 90%, #d97706 100%);
  box-shadow: 
    inset -5px -4px 10px rgba(154, 52, 18, 0.5),
    inset 4px 3px 8px rgba(255, 237, 213, 0.4),
    0 0 18px rgba(249, 115, 22, 0.4),
    0 4px 12px rgba(234, 88, 12, 0.3);
}

/* 木星大红斑 */
.planet-2 .planet-surface::before {
  background: radial-gradient(ellipse 35% 20% at 60% 55%, #dc2626 0%, #b91c1c 60%, transparent 100%);
  opacity: 0.7;
}

.planet-2.active .planet-surface {
  box-shadow: 
    inset -5px -4px 10px rgba(154, 52, 18, 0.5),
    inset 4px 3px 8px rgba(255, 237, 213, 0.4),
    0 0 22px rgba(249, 115, 22, 0.5),
    0 0 0 3px rgba(124, 58, 237, 0.5),
    0 4px 15px rgba(234, 88, 12, 0.4);
}

/* ===== 行星3: 土星 (屏蔽) - 第三层，带环 ===== */
.planet-3 {
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.planet-3 .planet-surface {
  width: 24px;
  height: 24px;
  background: 
    linear-gradient(180deg, 
      #fef9c3 0%, #fef08a 20%,
      #fde047 20%, #facc15 40%,
      #fef3c7 40%, #fde68a 60%,
      #eab308 60%, #ca8a04 80%,
      #fef08a 80%, #fde047 100%);
  box-shadow: 
    inset -4px -3px 8px rgba(161, 98, 7, 0.5),
    inset 3px 2px 6px rgba(255, 255, 255, 0.4),
    0 0 15px rgba(234, 179, 8, 0.35),
    0 3px 10px rgba(202, 138, 4, 0.3);
}

/* 土星环 - 立体效果 */
.planet-3::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 14px;
  transform: translate(-50%, -50%) rotateX(65deg);
  border-radius: 50%;
  background: 
    linear-gradient(90deg, 
      transparent 0%,
      rgba(253, 230, 138, 0.15) 10%,
      rgba(250, 204, 21, 0.4) 25%,
      rgba(253, 224, 71, 0.5) 40%,
      rgba(254, 249, 195, 0.6) 50%,
      rgba(253, 224, 71, 0.5) 60%,
      rgba(250, 204, 21, 0.4) 75%,
      rgba(253, 230, 138, 0.15) 90%,
      transparent 100%);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    0 1px 3px rgba(161, 98, 7, 0.2);
  z-index: 1;
}

/* 土星环内圈 */
.planet-3::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 8px;
  transform: translate(-50%, -50%) rotateX(65deg);
  border-radius: 50%;
  border: 1px solid rgba(202, 138, 4, 0.3);
  background: transparent;
  z-index: 2;
}

.planet-3.active .planet-surface {
  box-shadow: 
    inset -4px -3px 8px rgba(161, 98, 7, 0.5),
    inset 3px 2px 6px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(234, 179, 8, 0.5),
    0 0 0 3px rgba(124, 58, 237, 0.5),
    0 3px 12px rgba(202, 138, 4, 0.4);
}

/* ===== 行星4: 海王星 (推送) - 最外层，最大 ===== */
.planet-4 {
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
}

.planet-4 .planet-surface {
  width: 28px;
  height: 28px;
  background: 
    radial-gradient(circle at 50% 50%, #60a5fa 0%, #3b82f6 40%, #2563eb 70%, #1d4ed8 100%);
  box-shadow: 
    inset -5px -4px 10px rgba(30, 64, 175, 0.6),
    inset 4px 3px 8px rgba(147, 197, 253, 0.5),
    0 0 18px rgba(59, 130, 246, 0.45),
    0 4px 12px rgba(37, 99, 235, 0.35);
}

/* 海王星云带纹理 */
.planet-4 .planet-surface::before {
  background: 
    linear-gradient(175deg, 
      transparent 0%,
      rgba(96, 165, 250, 0.3) 20%,
      transparent 25%,
      rgba(147, 197, 253, 0.4) 45%,
      transparent 55%,
      rgba(96, 165, 250, 0.3) 75%,
      transparent 100%);
  opacity: 0.8;
}

/* 大气层光晕 */
.planet-atmosphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, calc(-50% - 14px));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: atmosphere-pulse 3s ease-in-out infinite;
}

@keyframes atmosphere-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, calc(-50% - 14px)) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, calc(-50% - 14px)) scale(1.1); }
}

.planet-4.active .planet-surface {
  box-shadow: 
    inset -5px -4px 10px rgba(30, 64, 175, 0.6),
    inset 4px 3px 8px rgba(147, 197, 253, 0.5),
    0 0 22px rgba(59, 130, 246, 0.6),
    0 0 0 3px rgba(124, 58, 237, 0.5),
    0 4px 15px rgba(37, 99, 235, 0.45);
}

/* ===== 星空背景装饰 ===== */
.solar-system::before {
  content: '';
  position: absolute;
  inset: -15px;
  background-image: 
    radial-gradient(1.5px 1.5px at 15px 25px, rgba(148, 163, 184, 0.7), transparent),
    radial-gradient(1px 1px at 45px 75px, rgba(148, 163, 184, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 55px 165px, rgba(148, 163, 184, 0.6), transparent),
    radial-gradient(1px 1px at 95px 35px, rgba(148, 163, 184, 0.4), transparent),
    radial-gradient(1px 1px at 135px 85px, rgba(148, 163, 184, 0.5), transparent),
    radial-gradient(2px 2px at 160px 155px, rgba(148, 163, 184, 0.7), transparent),
    radial-gradient(1px 1px at 170px 15px, rgba(148, 163, 184, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 75px 135px, rgba(148, 163, 184, 0.5), transparent),
    radial-gradient(1px 1px at 25px 95px, rgba(148, 163, 184, 0.3), transparent),
    radial-gradient(1px 1px at 110px 125px, rgba(148, 163, 184, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 180px 85px, rgba(148, 163, 184, 0.5), transparent),
    radial-gradient(1px 1px at 5px 150px, rgba(148, 163, 184, 0.4), transparent);
  pointer-events: none;
  z-index: 0;
  animation: stars-twinkle 5s ease-in-out infinite;
}

@keyframes stars-twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

/* ========== 太阳系导航结束 ========== */

.sidebar-foot {
  padding: 16px 14px 0;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid rgba(120, 140, 175, 0.12);
  margin-top: auto;
}

.sys-hint {
  margin-top: 8px;
  line-height: 1.6;
  color: var(--muted);
}

.toolbar-meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.trend-card { margin-bottom: 16px; }

.drill-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 28px 16px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.drill-panel {
  margin-top: 8px;
  border-top: 1px solid rgba(120, 140, 175, 0.12);
  padding-top: 16px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.drill-head h2 { font-size: 16px; font-weight: 600; color: #1c1f2a; }
.drill-desc { font-size: 13px; color: var(--muted); margin-bottom: 8px; flex-shrink: 0; }

.drill-cat-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.drill-cat-chips[hidden] { display: none !important; }
.drill-cat-label {
  font-size: 12px;
  color: var(--muted);
  margin-right: 2px;
}
.drill-cat-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.92) 0%, 
    rgba(248, 250, 252, 0.88) 100%);
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--motion);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 3px 8px rgba(100, 116, 139, 0.1);
}
.drill-cat-chip:hover {
  background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 252, 0.92) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 6px 14px rgba(100, 116, 139, 0.15);
}
.drill-cat-chip.active {
  background: linear-gradient(180deg, rgba(167, 243, 208, 0.9) 0%, rgba(94, 234, 212, 0.8) 100%);
  border: 1px solid rgba(94, 234, 212, 0.5);
  color: #0f766e;
  font-weight: 600;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(45, 212, 191, 0.25);
}
.drill-cat-chip .n {
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}
.drill-cat-chip.active .n { color: inherit; opacity: 0.85; }

.drill-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.drill-time-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.drill-time-filter input[type="date"],
.drill-time-filter select {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  color: var(--text);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 2px 6px rgba(100, 116, 139, 0.08);
}
.drill-time-filter select { min-width: 72px; }
.drill-time-sep {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.drill-moq-filter,
.drill-contact-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
#drillMoqPctWrap[hidden],
#drillTimeWrap[hidden],
#drillContactWrap[hidden] {
  display: none !important;
}
.drill-moq-filter select,
.drill-contact-filter select {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  color: var(--text);
  min-width: 72px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 2px 6px rgba(100, 116, 139, 0.08);
}
.drill-moq-filter select { min-width: 88px; }

.drill-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.pushed-time-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.pushed-time-filter input[type="date"],
.pushed-time-filter select {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  color: var(--text);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 2px 6px rgba(100, 116, 139, 0.08);
}
.pushed-time-filter select { min-width: 72px; }
.pushed-time-sep {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.drill-inline-actions label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.drill-inline-actions input[type="date"] {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  color: var(--text);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 2px 6px rgba(100, 116, 139, 0.08);
}

.block-reason {
  font-size: 13px;
  color: #4b5568;
  background: rgba(186, 198, 216, 0.28);
  border-left: 3px solid #94a3b8;
  padding: 6px 10px;
  margin-bottom: 8px;
  border-radius: 0 6px 6px 0;
}

.rfq-card.compact { padding: 14px 16px; }
.rfq-card.compact .rfq-title { font-size: 14px; margin-bottom: 6px; }

.kw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.kw-tag {
  font-size: 12px;
  background: rgba(45, 212, 191, 0.16);
  color: #0f766e;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.28);
}
.kw-tag em { font-style: normal; color: #0d9488; font-size: 11px; margin-left: 4px; }

.score-inline {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.score-details {
  margin-top: 8px;
  font-size: 12px;
}
.score-details summary {
  cursor: pointer;
  color: var(--primary);
  user-select: none;
}
.score-details .breakdown { margin-top: 8px; border-top: none; padding-top: 4px; }

.info-banner {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 10px 22px rgba(120, 140, 175, 0.12);
}

.info-banner code {
  background: rgba(94, 234, 212, 0.16);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.score-help { margin-bottom: 16px; }
.score-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
  padding: 14px 18px;
  font-size: 13px;
  color: #4b5568;
}

.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 14px; border-radius: 999px; 
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.92) 0%, 
    rgba(248, 250, 252, 0.88) 100%);
  cursor: pointer; font-size: 13px; color: var(--text);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 4px 10px rgba(100, 116, 139, 0.12);
  transition: var(--motion);
}
.filter-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 6px 16px rgba(100, 116, 139, 0.18); 
}
.filter-btn.active { 
  background: linear-gradient(180deg, #b4a4fa 0%, #9b8afb 100%); 
  color: #fff; 
  border: 1px solid rgba(167, 139, 250, 0.5); 
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 6px 16px rgba(139, 124, 247, 0.3); 
}

.rfq-list { display: flex; flex-direction: column; gap: 14px; }
.rfq-list.dense {
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.rfq-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  transition: var(--motion);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 4px 12px rgba(100, 116, 139, 0.1);
}

.rfq-row-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: center;
  padding: 0 2px;
  cursor: pointer;
}

.rfq-row-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}

.drill-export-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.rfq-row:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.88) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 8px 20px rgba(100, 116, 139, 0.15);
}

.rfq-row-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(237, 242, 247, 0.9);
}
.rfq-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rfq-row-thumb--empty {
  background: rgba(226, 232, 240, 0.7);
}

.rfq-row-body {
  flex: 1;
  min-width: 0;
}

.rfq-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.rfq-row-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.rfq-row-title:hover { color: var(--primary); }

.rfq-row-open {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.rfq-row-open:hover { text-decoration: underline; }

.rfq-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.rfq-row-meta .tier-badge {
  font-size: 11px;
  padding: 1px 6px;
}
.rfq-row-kw {
  color: #0f766e;
  background: rgba(45, 212, 191, 0.16);
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.rfq-row--moq-near {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(254, 243, 199, 0.72);
}

.rfq-row-moq {
  display: inline;
}

.rfq-row-moq strong {
  color: var(--primary);
}

.moq-near-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: rgba(251, 191, 36, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.contact-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #c2410c;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.moq-progress {
  flex-basis: 100%;
  height: 4px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.moq-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.2s ease;
}

.moq-progress--low > span { background: #64748b; }
.moq-progress--mid > span { background: #38bdf8; }
.moq-progress--near > span { background: #f59e0b; }

.rfq-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.rfq-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }

.rfq-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.rfq-title a { color: var(--text); text-decoration: none; }
.rfq-title a:hover { color: var(--primary); }
.rfq-thumb { margin: 8px 0; }
.rfq-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(237, 242, 247, 0.9);
}

.rfq-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }

.rfq-jump-link {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  line-height: 1.5;
}

.rfq-jump-label {
  color: var(--muted);
}

.rfq-jump-url {
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}

.rfq-jump-url:hover {
  text-decoration: underline;
}

.rfq-jump-empty {
  color: #64748b;
}

.rfq-note { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.rfq-note.warn { color: var(--danger); }

.score-pill {
  font-weight: 700; font-size: 14px; padding: 2px 10px; border-radius: 999px;
}
.score-high { background: rgba(45, 212, 191, 0.18); color: #0f766e; }
.score-mid { background: rgba(251, 191, 36, 0.22); color: #b45309; }
.score-low { background: rgba(251, 113, 133, 0.16); color: #be123c; }
.score-none { background: rgba(148, 163, 184, 0.16); color: #64748b; }

.push-tag { font-size: 12px; color: var(--success); font-weight: 600; }

.breakdown { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.bd-row {
  display: grid;
  grid-template-columns: 88px 1fr 52px 80px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
}
.bd-label { color: var(--muted); }
.bd-bar-bg { height: 8px; background: rgba(148, 163, 184, 0.22); border-radius: 4px; overflow: hidden; }
.bd-bar-fill { height: 100%; background: linear-gradient(90deg, #5eead4, #38bdf8, #a78bfa); border-radius: 4px; box-shadow: 0 0 10px rgba(56, 189, 248, 0.28); }
.bd-score { font-weight: 600; text-align: right; }
.bd-detail { color: var(--muted); font-size: 11px; }

.badge-warning { background: rgba(251, 191, 36, 0.22); color: #b45309; }
.badge-danger { background: rgba(251, 113, 133, 0.16); color: var(--danger); }

@media (max-width: 700px) {
  .bd-row { grid-template-columns: 1fr; gap: 2px; }
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.88) 0%, 
    rgba(255, 255, 255, 0.75) 50%,
    rgba(240, 242, 248, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    var(--glass-edge),
    var(--glass-depth),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

.topbar {
  background: transparent;
  border-bottom: 1px solid rgba(120, 140, 175, 0.12);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.topbar h1 { font-size: 18px; font-weight: 600; margin-right: auto; letter-spacing: 0.01em; color: #1c1f2a; }

.topbar-stats {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}

.topbar-stats span b { color: var(--text); }

.topbar-actions { display: flex; gap: 8px; align-items: center; }

.page { display: none; padding: 20px 24px; flex: 1; min-height: 0; overflow: auto; }
.page.active { display: block; }
#page-review.page.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.review-toolbar { flex-shrink: 0; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  flex-shrink: 0;
  perspective: 900px;
}

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

.kpi-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.92) 0%, 
    rgba(255, 255, 255, 0.8) 100%);
  border-radius: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 8px 24px rgba(100, 116, 139, 0.15);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-style: preserve-3d;
}

.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.28) 48%, transparent 64%);
  transform: translateX(-140%) skewX(-18deg);
  z-index: 1;
}

.kpi-card:nth-child(1) {
  background: linear-gradient(180deg, 
    rgba(224, 242, 254, 0.9) 0%, 
    rgba(186, 230, 253, 0.7) 100%);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 8px 24px rgba(125, 211, 252, 0.25);
}
.kpi-card:nth-child(2) {
  background: linear-gradient(180deg, 
    rgba(220, 252, 231, 0.9) 0%, 
    rgba(134, 239, 172, 0.7) 100%);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 8px 24px rgba(34, 197, 94, 0.25);
}
.kpi-card:nth-child(3) {
  background: linear-gradient(180deg, 
    rgba(254, 249, 195, 0.9) 0%, 
    rgba(253, 224, 71, 0.7) 100%);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 8px 24px rgba(234, 179, 8, 0.25);
}

.kpi-card.clickable {
  cursor: pointer;
  transition: var(--motion);
}

.kpi-card.clickable:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.02);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 14px 36px rgba(100, 116, 139, 0.22);
}

.kpi-card.clickable:hover::before {
  animation: liquid-sheen 0.75s ease;
}

.kpi-card.clickable.active {
  transform: translateY(-2px);
  border: 2px solid rgba(155, 138, 251, 0.6);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 0 0 2px rgba(155, 138, 251, 0.2),
    0 12px 28px rgba(155, 138, 251, 0.2);
}

.kpi-card.kpi-review .value { color: #6d28d9; }

.badge-review { background: rgba(124, 108, 240, 0.16); color: #5b21b6; border: 1px solid rgba(167, 139, 250, 0.35); }

.kpi-card .hint {
  font-size: 11px;
  color: #6b7288;
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

.kpi-card .label { font-size: 13px; color: var(--muted); margin-bottom: 8px; position: relative; z-index: 2; }
.kpi-card .value { font-size: 28px; font-weight: 700; letter-spacing: 0.02em; position: relative; z-index: 2; }
.kpi-card .value.success { color: var(--success); }
.kpi-card .value.warning { color: var(--warning); }
.kpi-card .value.danger { color: var(--danger); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.78) 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 8px 24px rgba(100, 116, 139, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--motion);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 12px 32px rgba(100, 116, 139, 0.18);
}

.card-head {
  padding: 14px 18px;
  font-weight: 600;
  border-bottom: 1px solid rgba(120, 140, 175, 0.12);
  background: transparent;
  color: #1c1f2a;
  letter-spacing: 0.02em;
}

.card-head .muted { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 8px; }

.table-wrap { overflow-x: auto; }

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px 14px;
  flex-shrink: 0;
}

.pagination-bar .page-info {
  color: var(--muted);
  font-size: 12px;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-jump input {
  width: 68px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  background: var(--card-solid);
  color: var(--text);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th, .data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(120, 140, 175, 0.12);
}

.data-table th {
  background: rgba(255, 255, 255, 0.45);
  color: #6b7288;
  font-weight: 500;
  font-size: 12px;
}
.data-table tbody tr { transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.data-table tr:hover td { background: rgba(237, 233, 254, 0.42); }

.data-table .subject-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.9) 100%);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: var(--motion);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 4px 12px rgba(100, 116, 139, 0.15);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, transparent 64%);
  transform: translateX(-140%) skewX(-18deg);
}

.btn:hover {
  background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 252, 0.95) 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 8px 20px rgba(100, 116, 139, 0.2);
}

.btn:hover::before { animation: liquid-sheen 0.7s ease; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: linear-gradient(180deg, #b4a4fa 0%, #9b8afb 50%, #8b7cf7 100%);
  color: #fff;
  border: 1px solid rgba(167, 139, 250, 0.5);
  font-weight: 600;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(124, 58, 237, 0.15),
    0 6px 20px rgba(139, 124, 247, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #c4b5fd 0%, #a78bfa 50%, #9b8afb 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(124, 58, 237, 0.2),
    0 10px 28px rgba(139, 124, 247, 0.4);
}
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.6); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-danger { 
  color: #fff; 
  border: 1px solid rgba(251, 113, 133, 0.5); 
  background: linear-gradient(180deg, #fda4af 0%, #fb7185 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 6px 16px rgba(244, 63, 94, 0.25);
}
.btn-danger:hover { 
  background: linear-gradient(180deg, #fecdd3 0%, #fb7185 100%); 
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 10px 24px rgba(244, 63, 94, 0.3); 
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.badge-success { background: rgba(45, 212, 191, 0.18); color: #0f766e; }
.badge-muted { background: rgba(148, 163, 184, 0.16); color: var(--muted); }
.badge-info { background: rgba(56, 189, 248, 0.16); color: #0369a1; }
.badge-keyword { background: rgba(45, 212, 191, 0.16); color: #0f766e; border: 1px solid rgba(45, 212, 191, 0.28); }

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 6px;
}
.tier1 { background: rgba(251, 113, 133, 0.16); color: #be123c; border: 1px solid rgba(251, 113, 133, 0.28); }
.tier2 { background: rgba(56, 189, 248, 0.16); color: #0369a1; border: 1px solid rgba(125, 211, 252, 0.35); }
.tier3 { background: rgba(167, 139, 250, 0.18); color: #6d28d9; border: 1px solid rgba(196, 181, 253, 0.4); }
.tier-other { background: rgba(148, 163, 184, 0.16); color: #64748b; border: 1px solid rgba(148, 163, 184, 0.28); }
.tier-unknown { background: rgba(251, 146, 60, 0.18); color: #c2410c; border: 1px solid rgba(253, 186, 116, 0.4); }

.rfq-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

.kw-match-block {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.kw-match-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #0f766e; }
.kw-match-ok { font-weight: 500; font-size: 12px; color: #0d9488; margin-left: 6px; }
.kw-match-list { display: flex; flex-direction: column; gap: 6px; }
.kw-match-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; padding: 6px 8px; background: rgba(255, 255, 255, 0.62); border-radius: 10px;
}
.kw-match-item.ok { border-left: 3px solid #10b981; }
.kw-match-item.bad { border-left: 3px solid var(--danger); }
.kw-match-word { font-weight: 700; color: #0f766e; }
.kw-match-mode { background: rgba(45, 212, 191, 0.18); color: #0f766e; padding: 1px 8px; border-radius: 999px; }
.kw-match-tokens { color: var(--muted); }

.buyer-score-section {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.buyer-score-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; margin-bottom: 8px;
}
.score-pill.sm { font-size: 12px; }

.help-priority { grid-column: 1 / -1; padding: 6px 0; }

.review-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.review-date-input {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 3px 10px rgba(100, 116, 139, 0.1);
}

.funnel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}

.funnel-bar b { color: var(--text); font-weight: 700; }
.funnel-bar .accent { color: #0d9488; }
.funnel-bar .accent-success { color: var(--success); }
.funnel-arrow { color: #64748b; }
.funnel-meta { margin-left: auto; font-size: 12px; }

.cat-chart { padding: 14px 18px 18px; min-height: 120px; }
.cat-bar-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}
.cat-bar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}
.cat-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  overflow: hidden;
}
.cat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5eead4, #38bdf8, #a78bfa);
  border-radius: 5px;
  min-width: 4px;
  box-shadow: 0 0 10px rgba(34, 225, 255, 0.35);
}
.cat-bar-val { color: var(--muted); white-space: nowrap; font-size: 11px; }

.data-table tr.row-today td {
  background: rgba(237, 233, 254, 0.45);
  font-weight: 600;
}

.kw-hit-table { padding: 0 4px 8px; }
.data-table.compact th, .data-table.compact td { padding: 6px 10px; font-size: 13px; }

.chart-placeholder { padding: 24px; min-height: 200px; }

.bar-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; font-size: 13px;
}

.bar-row .name { width: 120px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-bg { flex: 1; height: 22px; background: rgba(148, 163, 184, 0.18); border-radius: 4px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; background: linear-gradient(90deg, #5eead4, #38bdf8, #a78bfa); border-radius: 4px; }
.bar-row .count { width: 40px; text-align: right; color: var(--muted); }

.kw-toolbar {
  display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}

.kw-toolbar input, .kw-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.kw-toolbar input[type=search] { flex: 1; min-width: 180px; }

.sidebar-nav-item--sub {
  padding-left: 26px;
  font-size: 0.76rem;
}

.bc-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.bc-hint {
  color: var(--muted);
  font-size: 13px;
}

.bc-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bc-add-row select,
.bc-add-row input {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.bc-add-row select { min-width: 200px; }
.bc-add-row input { min-width: 220px; flex: 1; }

.bc-table-card { margin-bottom: 16px; }

.bc-suggest-card .card-head {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(120, 140, 175, 0.12);
}

.bc-suggest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
}

.bc-suggest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
  font-size: 12px;
  cursor: pointer;
  color: var(--text);
  transition: var(--motion);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 3px 8px rgba(100, 116, 139, 0.1);
}

.bc-suggest-chip:hover {
  color: var(--primary);
  background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 252, 0.95) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 6px 14px rgba(100, 116, 139, 0.15);
}

.bc-country-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kw-layout { display: flex; gap: 16px; min-height: 400px; }

.cat-panel {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 8px 20px rgba(100, 116, 139, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--motion);
}

.cat-panel:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 12px 28px rgba(100, 116, 139, 0.16);
}

.cat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(120, 140, 175, 0.12);
  background: transparent;
}

.cat-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: #4b5568;
}

.cat-list {
  flex: 1;
  overflow: auto;
}

.cat-empty {
  padding: 16px 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.cat-item {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px;
  border: none; border-bottom: 1px solid rgba(120, 140, 175, 0.12);
  background: transparent; cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: var(--motion);
}

.cat-item:hover { background: rgba(124, 108, 240, 0.08); transform: translateX(3px); }
.cat-item.active { background: rgba(124, 108, 240, 0.12); color: #1c1f2a; font-weight: 500; }
.cat-item .count { float: right; color: var(--muted); font-size: 12px; }

.kw-table-card { flex: 1; margin-bottom: 0; }

.kw-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(120, 140, 175, 0.12);
  color: #1c1f2a;
}

.kw-table-head #kwTableHead {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kw-input, .moq-input {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 13px;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.9) 100%);
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 3px 8px rgba(100, 116, 139, 0.1);
}

.kw-input:focus, .moq-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 0 0 2px rgba(155, 138, 251, 0.2);
}

.moq-input { width: 80px; }

.toggle {
  position: relative; width: 44px; height: 24px;
  background: linear-gradient(180deg, 
    rgba(226, 232, 240, 0.9) 0%, 
    rgba(203, 213, 225, 0.85) 100%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 3px 8px rgba(100, 116, 139, 0.12);
  transition: var(--motion);
}

.toggle:hover { transform: scale(1.04); }
.toggle.on {
  background: linear-gradient(180deg, 
    rgba(94, 234, 212, 0.9) 0%, 
    rgba(45, 212, 191, 0.85) 100%);
  border: 1px solid rgba(94, 234, 212, 0.5);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(45, 212, 191, 0.35);
}
.toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.2);
}
.toggle.on::after {
  transform: translateX(20px);
  background: linear-gradient(180deg, #fff 0%, #d1fae5 100%);
  box-shadow: 0 2px 8px rgba(45, 212, 191, 0.3);
}

.rfq-tabs { display: flex; gap: 4px; padding: 12px 16px 0; }
.tab {
  padding: 6px 12px; 
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.8) 100%);
  cursor: pointer; font-size: 12px; color: var(--muted);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1);
}
.tab.active { 
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.95) 100%); 
  border-bottom-color: #fff; 
  font-weight: 500; 
  color: var(--text); 
}

.funnel { padding: 20px; }
.funnel-step {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px;
}
.funnel-step .step-bar {
  height: 32px; background: linear-gradient(90deg, rgba(2, 132, 199, 0.45), rgba(34, 225, 255, 0.7)); border-radius: 6px;
  min-width: 40px; transition: width .3s;
}
.funnel-step .step-label { width: 140px; font-size: 13px; }
.funnel-step .step-val { font-weight: 600; min-width: 60px; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 18px;
}

.status-item .label { font-size: 12px; color: var(--muted); }
.status-item .val { font-size: 16px; font-weight: 600; margin-top: 4px; }

dialog {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 24px; min-width: 360px;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.88) 50%,
    rgba(245, 247, 250, 0.92) 100%);
  color: var(--text);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 20px 50px rgba(100, 116, 139, 0.25);
  backdrop-filter: blur(16px);
}

dialog::backdrop {
  background: rgba(100, 116, 139, 0.2);
  backdrop-filter: blur(6px);
}

dialog h3 { margin-bottom: 16px; color: #1c1f2a; }
.dialog-context {
  margin: -8px 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.dialog-context strong { color: var(--text); }
.dialog-hint {
  margin: -4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
dialog label { display: block; margin-bottom: 12px; font-size: 13px; }
dialog input, dialog select {
  display: block; width: 100%; margin-top: 4px;
  padding: 8px 12px; 
  border: 1px solid rgba(255, 255, 255, 0.8); 
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 2px 6px rgba(100, 116, 139, 0.08);
}

.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.empty { padding: 40px; text-align: center; color: var(--muted); }

.notify-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.notify-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding: 16px 18px 18px;
}

.notify-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.notify-form input {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 2px 6px rgba(100, 116, 139, 0.08);
}

.form-section-title {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

.form-hint {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.notify-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.status-list, .field-list {
  list-style: none;
  padding: 0 18px 16px;
  font-size: 13px;
}

.status-list li, .field-list li {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(120, 140, 175, 0.12);
}

.status-list li:last-child, .field-list li:last-child { border-bottom: none; }

.status-key { color: var(--muted); min-width: 96px; flex-shrink: 0; }
.status-val { color: var(--text); word-break: break-all; }

.card-head.sub {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 140, 175, 0.12);
}

.notify-preview-card { margin-bottom: 24px; }

.preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 0;
}

.preview-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.preview-actions { display: flex; gap: 8px; flex-shrink: 0; }

.dingtalk-preview-wrap {
  margin: 12px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.78) 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 4px 12px rgba(100, 116, 139, 0.1);
}

.dingtalk-preview-title {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(200, 210, 225, 0.3);
  font-weight: 600;
  font-size: 14px;
  color: #1c1f2a;
}

.dingtalk-preview {
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  background: transparent;
  color: #334155;
  max-height: 560px;
  overflow: auto;
}

input, select, textarea { color-scheme: light; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(124, 108, 240, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 108, 240, 0.16), 0 8px 20px rgba(167, 139, 250, 0.12);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(124, 108, 240, 0.4); background-clip: padding-box; }

@media (max-width: 960px) {
  .app--workspace { padding: 10px; gap: 10px; }
  .workspace-sidebar {
    top: 10px;
    min-height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }
  .main { height: calc(100vh - 20px); }
  .notify-layout { grid-template-columns: 1fr; }
  .notify-form { grid-template-columns: 1fr; }
  .preview-head { flex-direction: column; }
  .drill-head { flex-wrap: wrap; }
  .drill-filters { margin-left: 0; width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
