/* Coke black-gold overrides for the embedded canvas app.
 * Injected by server/preview.mjs before the canvas bundle boots. */
:root,
html.dark {
  --background: #000000;
  --foreground: #f2f2f2;
  --card: #0d0d0d;
  --card-foreground: #f2f2f2;
  --popover: #0d0d0d;
  --popover-foreground: #f2f2f2;
  --muted: #1a1a1a;
  --muted-foreground: #999999;
  --border: #2a2a2a;
  --input: #333333;
  --ring: #c8a24a;
  --primary: #c8a24a;
  --primary-foreground: #0a0803;
  --secondary: #1a1a1a;
  --secondary-foreground: #f2f2f2;
  --accent: #1a1a1a;
  --accent-foreground: #f2f2f2;
  --destructive: #d98b8b;
  --sidebar: #050505;
  --sidebar-foreground: #f2f2f2;
  --sidebar-primary: #c8a24a;
  --sidebar-primary-foreground: #0a0803;
  --sidebar-accent: #1a1a1a;
  --sidebar-accent-foreground: #f2f2f2;
  --sidebar-border: #242424;
  --sidebar-ring: #c8a24a;
  --bg-rgb: 0 0 0;
  --accent-rgb: 200 162 74;
}

/* the floating team CTA ships in brand green; bring it into the gold system */
.coke-team-cta {
  background: rgba(200, 162, 74, 0.12) !important;
  color: #e3c77b !important;
  border: 1px solid rgba(200, 162, 74, 0.45) !important;
  box-shadow: 0 0 22px rgba(200, 162, 74, 0.18) !important;
}

.coke-team-cta:hover {
  background: rgba(200, 162, 74, 0.2) !important;
}

/* the fallback team banner duplicates workbench navigation; keep the canvas clean */
a[data-team-fallback] {
  display: none !important;
}

/* embedded: the host sidebar already carries the brand, so the canvas header
 * starts with the project switcher instead of a second logo */
html.coke-embedded header a[aria-label='点击返回项目管理中心'] {
  display: none !important;
}

/* selection + focus rings */
::selection {
  color: #0a0803;
  background: rgba(200, 162, 74, 0.55);
}

/* 视频懒加载封面：未点击播放时只显示 OSS 快照 + 播放按钮 */
.coke-video-cover {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  color: #f3e6c4;
  border: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.38));
  cursor: pointer;
  transition: background 180ms ease;
}

.coke-video-cover:hover {
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(200, 162, 74, 0.12), rgba(0, 0, 0, 0.42));
}

.coke-video-cover .coke-video-play {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #0a0803;
  border: 1px solid rgba(255, 231, 174, 0.55);
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d894, #c8a24a 58%, #a5812f);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: scale(1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.coke-video-cover:hover .coke-video-play {
  transform: scale(1.06);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), 0 0 26px rgba(200, 162, 74, 0.35);
}

.coke-video-cover .coke-video-hint {
  padding: 3px 10px;
  color: #e3c77b;
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: 999px;
  background: rgba(8, 6, 2, 0.55);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}
