/* Sprint 2 — Media & Polish: Avatars, Image Upload, Mobile, Tabs */

/* ─── Agent Avatars ───────────────────────────────────────────── */
.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.agent-avatar.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.agent-avatar.streaming {
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--avatar-rgb, 100,100,255), 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(var(--avatar-rgb, 100,100,255), 0); }
}

/* Avatar in sidebar agent list */
.agent-item .agent-avatar {
  font-size: 18px;
}

/* Avatar next to chat messages */
.msg-wrapper {
  display: flex;
  gap: 8px;
  max-width: 75%;
  align-items: flex-start;
}

.msg-wrapper.msg-wrapper-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-wrapper.msg-wrapper-agent {
  align-self: flex-start;
}

.msg-wrapper .msg {
  max-width: none;
  align-self: auto;
}

.msg-wrapper .agent-avatar {
  margin-top: 2px;
}

/* ─── Image Upload & Display ──────────────────────────────────── */
.chat-input-area {
  position: relative;
}

.btn-attach {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-attach:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.image-preview-bar {
  display: flex;
  gap: 8px;
  padding: 8px 20px 0;
  flex-wrap: wrap;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.image-preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .remove-image {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Inline images in messages */
.msg-image {
  max-width: 300px;
  max-height: 250px;
  border-radius: 8px;
  margin: 6px 0;
  cursor: pointer;
  transition: transform 0.15s;
  display: block;
}
.msg-image:hover {
  transform: scale(1.02);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Drag-drop overlay */
.chat-main.drag-over::after {
  content: '📎 Drop image here';
  position: absolute;
  inset: 0;
  background: rgba(var(--accent-rgb, 9,105,218), 0.15);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  z-index: 100;
  pointer-events: none;
}

.chat-main {
  position: relative;
}

/* ─── Multi-Agent Tabs ────────────────────────────────────────── */
.agent-tabs-bar {
  display: flex;
  gap: 2px;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.agent-tabs-bar::-webkit-scrollbar { display: none; }

.agent-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-bottom: none;
  transition: all 0.15s;
  position: relative;
  background: transparent;
}

.agent-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.agent-tab.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border);
  font-weight: 600;
}

.agent-tab .tab-close {
  font-size: 11px;
  opacity: 0;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 3px;
  transition: opacity 0.15s;
  background: none;
  border: none;
  color: var(--text-muted);
}
.agent-tab:hover .tab-close,
.agent-tab.active .tab-close {
  opacity: 0.7;
}
.agent-tab .tab-close:hover {
  opacity: 1;
  background: var(--bg-tertiary);
}

.unread-badge {
  background: var(--red, #cf222e);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Hide tabs bar when no tabs */
.agent-tabs-bar:empty {
  display: none;
}

/* ─── Mobile Responsive ───────────────────────────────────────── */

/* Hamburger button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--text-primary);
  z-index: 1001;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

@media (max-width: 768px) {
  /* Viewport fit for notched phones */
  html {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  .hamburger-btn {
    display: block;
  }

  /* Override sprint1/chat.css mobile: sidebar is off-canvas */
  .chat-layout {
    flex-direction: row !important;
    position: relative;
    overflow: hidden;
  }

  .chat-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px !important;
    max-height: none !important;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    flex-direction: column !important;
    border-right: 1px solid var(--border) !important;
    border-bottom: none !important;
    overflow-y: auto !important;
  }

  .chat-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .chat-sidebar .sidebar-header {
    display: flex !important;
  }

  .chat-sidebar .agent-list {
    display: flex;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .chat-sidebar .agent-item {
    flex-direction: row !important;
    text-align: left !important;
    min-width: auto !important;
    border-bottom: none !important;
    border-left: 3px solid transparent !important;
    padding: 12px 16px !important;
    gap: 10px !important;
  }

  .chat-sidebar .agent-item.active {
    border-left-color: var(--accent) !important;
    border-bottom-color: transparent !important;
  }

  .chat-sidebar .agent-item .desc {
    display: block !important;
  }

  .chat-sidebar .agent-item .name {
    font-size: 14px !important;
  }

  .chat-main {
    width: 100%;
    flex: 1;
  }

  .msg-wrapper {
    max-width: 90%;
  }

  .msg {
    max-width: 90% !important;
  }

  /* Touch-friendly buttons */
  .btn-send, .btn-attach {
    min-height: 44px;
    min-width: 44px;
  }

  .chat-input-area {
    padding: 8px 12px env(safe-area-inset-bottom, 8px) !important;
  }

  /* Tabs scroll on mobile */
  .agent-tabs-bar {
    padding: 4px 8px;
  }

  .agent-tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  .image-preview-bar {
    padding: 8px 12px 0;
  }

  /* Toast positioning with safe area */
  .toast-container {
    top: calc(60px + env(safe-area-inset-top, 0px)) !important;
  }
}

/* ─── Markdown images in messages ─────────────────────────────── */
.msg .msg-text img {
  max-width: 300px;
  max-height: 250px;
  border-radius: 8px;
  cursor: pointer;
  margin: 4px 0;
}

/* === Crew Panel === */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 20px; }
.crew-card { display: flex; align-items: center; gap: 12px; background: var(--bg-secondary, #1a2332); border-radius: 12px; padding: 16px; border: 1px solid var(--border, #2a3a4a); }
.crew-icon { font-size: 2em; }
.crew-info { flex: 1; }
.crew-name { font-weight: 600; font-size: 1.1em; color: var(--text-primary, #e0e0e0); }
.crew-role { font-size: 0.85em; color: var(--accent, #54a0ff); margin-top: 2px; }
.crew-desc { font-size: 0.8em; color: var(--text-secondary, #8899aa); margin-top: 4px; }
.crew-meta { font-size: 0.75em; color: var(--text-muted, #556677); margin-top: 4px; }
.crew-status.online { color: #4cd137; font-size: 1.2em; }

/* === Tetraban Panel === */
.tetraban-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.tetraban-header h2 { margin: 0; }
.tetraban-stats { display: flex; gap: 20px; }
.tb-stat { display: flex; flex-direction: column; align-items: center; }
.tb-stat-label { font-size: 0.6em; letter-spacing: 2px; color: var(--text-muted, #556677); text-transform: uppercase; }
.tb-stat-val { font-size: 1.4em; font-weight: 800; color: var(--accent, #54a0ff); font-family: 'Courier New', monospace; }

.tetraban-board { display: flex; gap: 12px; padding: 8px 20px 20px; min-height: 450px; }
.tetraban-col { flex: 1; display: flex; flex-direction: column; }
.tetraban-col-header {
  text-align: center; font-size: 0.7em; letter-spacing: 2px; font-weight: 700;
  color: var(--text-muted, #556677); padding: 8px 0; text-transform: uppercase;
}
.tetraban-well {
  flex: 1; display: flex; flex-direction: column-reverse; align-items: stretch; gap: 4px;
  background: rgba(0,0,0,0.2); border: 2px solid var(--border, #2a3a4a);
  border-radius: 4px; padding: 6px; min-height: 380px;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(255,255,255,0.03) 38px, rgba(255,255,255,0.03) 40px);
}

/* Tetris blocks */
.tb-block {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 3px;
  background: var(--block-color, #54a0ff);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.15), 0 1px 3px rgba(0,0,0,0.3);
  animation: block-drop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.tb-block:hover { transform: scale(1.03); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.15), 0 2px 8px rgba(0,0,0,0.4); z-index: 2; }

/* Effort sizes */
.tb-block.tb-sm { height: 36px; }
.tb-block.tb-md { height: 56px; }
.tb-block.tb-lg { height: 76px; }

.tb-block-icon { font-size: 0.9em; flex-shrink: 0; }
.tb-block-title { font-size: 0.7em; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.tb-block-tag { font-size: 0.55em; background: rgba(0,0,0,0.25); color: rgba(255,255,255,0.8); padding: 1px 6px; border-radius: 6px; margin-left: auto; flex-shrink: 0; }

@keyframes block-drop {
  0% { transform: translateY(-60px); opacity: 0; }
  60% { transform: translateY(4px); }
  100% { transform: translateY(0); opacity: 1; }
}

/* Line clear flash */
.tb-block.cleared {
  animation: line-clear 0.5s ease-out forwards;
}
@keyframes line-clear {
  0% { opacity: 1; transform: scaleX(1); }
  50% { background: #fff; }
  100% { opacity: 0; transform: scaleX(0); height: 0; padding: 0; margin: 0; }
}

/* === Changes Panel — Bubbles === */
.changes-bubble-field { position: relative; height: 220px; overflow: hidden; margin: 0 20px 20px; border-radius: 16px; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.15) 100%); }
.change-bubble {
  position: absolute; bottom: -100px;
  width: var(--bubble-size, 55px); height: var(--bubble-size, 55px);
  border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--bubble-color) 80%, white 20%), var(--bubble-color));
  box-shadow: 0 0 20px color-mix(in srgb, var(--bubble-color) 40%, transparent), inset 0 -4px 8px rgba(0,0,0,0.2);
  animation: bubble-rise 6s ease-in-out infinite;
  cursor: pointer; transition: transform 0.2s;
}
.change-bubble:hover { transform: scale(1.15); z-index: 10; }
.bubble-icon { font-size: 1.2em; }
.bubble-label { font-size: 0.5em; color: #fff; text-align: center; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.9; }
@keyframes bubble-rise {
  0% { bottom: -100px; opacity: 0; transform: scale(0.3) translateX(0); }
  10% { opacity: 1; transform: scale(1); }
  50% { transform: scale(1.05) translateX(10px); }
  90% { opacity: 1; }
  100% { bottom: 240px; opacity: 0; transform: scale(0.8) translateX(-10px); }
}

/* === Changes Panel — Timeline === */
.changes-timeline { padding: 0 20px 20px; position: relative; }
.changes-timeline::before { content: ''; position: absolute; left: 30px; top: 0; bottom: 0; width: 2px; background: var(--border, #2a3a4a); }
.timeline-item { display: flex; gap: 16px; padding: 8px 0; position: relative; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--agent-color, #54a0ff); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 8px var(--agent-color); z-index: 1; }
.timeline-card { flex: 1; background: var(--bg-secondary, #1a2332); border-radius: 10px; padding: 12px 16px; border-left: 3px solid var(--agent-color, #54a0ff); }
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.timeline-agent { font-size: 0.85em; font-weight: 600; color: var(--agent-color, #54a0ff); text-transform: capitalize; }
.timeline-time { font-size: 0.75em; color: var(--text-muted, #556677); }
.timeline-title { font-weight: 600; color: var(--text-primary, #e0e0e0); margin-bottom: 2px; }
.timeline-desc { font-size: 0.85em; color: var(--text-secondary, #8899aa); }
.timeline-tags { display: flex; gap: 4px; margin-top: 6px; }
.timeline-tags .tag { font-size: 0.7em; background: var(--bg-tertiary, #253345); color: var(--text-secondary, #8899aa); padding: 2px 8px; border-radius: 10px; }

/* === Links Panel === */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding: 20px; }
.link-card { display: flex; flex-direction: column; gap: 4px; background: var(--bg-secondary, #1a2332); border-radius: 12px; padding: 20px; border: 1px solid var(--border, #2a3a4a); text-decoration: none; transition: border-color 0.2s; }
.link-card:hover { border-color: var(--accent, #54a0ff); }
.link-icon { font-size: 1.8em; }
.link-label { font-weight: 600; color: var(--text-primary, #e0e0e0); font-size: 1.1em; }
.link-url { font-size: 0.75em; color: var(--text-muted, #556677); overflow: hidden; text-overflow: ellipsis; }

/* === Generic panel content === */
.panel-content { padding: 20px; }
.panel-content h2 { margin: 0 0 16px; }
.panel-placeholder { color: var(--text-secondary, #8899aa); }

.change-agent { font-size: 0.8em; color: var(--accent, #54a0ff); font-weight: 600; text-transform: capitalize; }
.change-tags { display: flex; gap: 4px; margin-left: auto; }
.change-tags .tag { font-size: 0.7em; background: var(--bg-tertiary, #253345); color: var(--text-secondary, #8899aa); padding: 2px 8px; border-radius: 10px; }

/* ═══════════════════════════════════════════════════════════════
   PROD GATE — Launch Control Aesthetic
   ═══════════════════════════════════════════════════════════════ */

.pg-container {
  position: relative;
  background: #0a0e17;
  min-height: calc(100vh - 60px);
  padding: 32px 24px;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

/* Scanning line effect */
.pg-scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.6), transparent);
  animation: pg-scan 4s linear infinite;
  z-index: 10;
  pointer-events: none;
}
@keyframes pg-scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.pg-header {
  text-align: center;
  margin-bottom: 24px;
}
.pg-title {
  font-size: 1.8em;
  font-weight: 900;
  letter-spacing: 4px;
  color: #e0e0e0;
  text-shadow: 0 0 20px rgba(0,255,136,0.3);
}
.pg-subtitle {
  font-size: 0.9em;
  color: #556677;
  letter-spacing: 3px;
  margin-top: 4px;
}

/* Status banner */
.pg-status-banner {
  text-align: center;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pg-status-banner.pg-hold {
  background: rgba(255,60,60,0.1);
  border: 2px solid rgba(255,60,60,0.4);
  color: #ff4444;
  animation: pg-hold-pulse 2s ease-in-out infinite;
}
.pg-status-banner.pg-clear {
  background: rgba(0,255,136,0.1);
  border: 2px solid rgba(0,255,136,0.5);
  color: #00ff88;
  animation: pg-clear-pulse 1.5s ease-in-out infinite;
}
@keyframes pg-hold-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,60,60,0.15); }
  50% { box-shadow: 0 0 40px rgba(255,60,60,0.3); }
}
@keyframes pg-clear-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,255,136,0.2); text-shadow: 0 0 10px rgba(0,255,136,0.4); }
  50% { box-shadow: 0 0 50px rgba(0,255,136,0.4); text-shadow: 0 0 20px rgba(0,255,136,0.7); }
}
.pg-banner-icon { font-size: 1.2em; }

/* Release info */
.pg-release-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.pg-release-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pg-label {
  font-size: 0.6em;
  letter-spacing: 2px;
  color: #556677;
  text-transform: uppercase;
}
.pg-value {
  font-size: 0.95em;
  color: #e0e0e0;
  font-weight: 600;
}
.pg-mono { font-family: 'Courier New', monospace; color: #54a0ff; }

/* Agent key slot grid */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.pg-slot {
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Glow based on status */
.pg-slot.pg-slot-approved {
  border-color: rgba(0,255,136,0.35);
  box-shadow: 0 0 20px rgba(0,255,136,0.1), inset 0 0 20px rgba(0,255,136,0.03);
}
.pg-slot.pg-slot-reviewing {
  border-color: rgba(255,200,0,0.35);
  box-shadow: 0 0 20px rgba(255,200,0,0.1), inset 0 0 20px rgba(255,200,0,0.03);
  animation: pg-review-pulse 2.5s ease-in-out infinite;
}
.pg-slot.pg-slot-not-ready {
  border-color: rgba(255,60,60,0.25);
  box-shadow: 0 0 15px rgba(255,60,60,0.08);
}
@keyframes pg-review-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,200,0,0.1); }
  50% { box-shadow: 0 0 35px rgba(255,200,0,0.25); }
}

/* Ring around icon */
.pg-slot-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  position: relative;
}
.pg-slot-approved .pg-slot-ring {
  background: radial-gradient(circle, rgba(0,255,136,0.15) 0%, transparent 70%);
  box-shadow: 0 0 15px rgba(0,255,136,0.3);
  border: 2px solid rgba(0,255,136,0.5);
}
.pg-slot-reviewing .pg-slot-ring {
  background: radial-gradient(circle, rgba(255,200,0,0.12) 0%, transparent 70%);
  box-shadow: 0 0 15px rgba(255,200,0,0.25);
  border: 2px solid rgba(255,200,0,0.4);
}
.pg-slot-not-ready .pg-slot-ring {
  background: radial-gradient(circle, rgba(255,60,60,0.1) 0%, transparent 70%);
  box-shadow: 0 0 10px rgba(255,60,60,0.2);
  border: 2px solid rgba(255,60,60,0.3);
}
.pg-slot-icon { filter: drop-shadow(0 0 4px rgba(255,255,255,0.3)); }

.pg-slot-name {
  font-size: 0.95em;
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: 1px;
}
.pg-slot-role {
  font-size: 0.65em;
  color: #556677;
  text-align: center;
  line-height: 1.3;
}
.pg-slot-status {
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-status-dot { font-size: 1.2em; line-height: 1; }
.pg-status-dot.pg-green { color: #00ff88; text-shadow: 0 0 8px rgba(0,255,136,0.6); }
.pg-status-dot.pg-yellow { color: #ffc800; text-shadow: 0 0 8px rgba(255,200,0,0.6); }
.pg-status-dot.pg-red { color: #ff4444; text-shadow: 0 0 8px rgba(255,60,60,0.6); }
.pg-slot-approved .pg-slot-status { color: #00ff88; }
.pg-slot-reviewing .pg-slot-status { color: #ffc800; }
.pg-slot-not-ready .pg-slot-status { color: #ff4444; }

.pg-slot-time {
  font-size: 0.6em;
  color: #445566;
}

/* Timeline */
.pg-timeline {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
}
.pg-timeline-title {
  font-size: 0.75em;
  letter-spacing: 3px;
  color: #556677;
  margin-bottom: 12px;
  font-weight: 700;
}
.pg-tl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pg-tl-item:last-child { border-bottom: none; }
.pg-tl-dot { font-size: 0.8em; }
.pg-tl-agent { font-size: 0.85em; color: #e0e0e0; font-weight: 600; min-width: 130px; }
.pg-tl-role { font-size: 0.75em; color: #556677; flex: 1; }
.pg-tl-time { font-size: 0.75em; color: #445566; font-family: 'Courier New', monospace; }

/* Launch button zone */
.pg-launch-zone {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  position: relative;
}
.pg-launch-btn {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(255,60,60,0.3);
  background: radial-gradient(circle at 40% 35%, #1a1a2e, #0a0e17);
  color: #555;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: not-allowed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.5s ease;
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.5);
}
.pg-launch-btn .pg-launch-icon { font-size: 2.5em; }

.pg-launch-btn.pg-launch-active {
  border-color: rgba(0,255,136,0.6);
  color: #00ff88;
  cursor: pointer;
  background: radial-gradient(circle at 40% 35%, #0a2e1a, #0a0e17);
  box-shadow: 0 0 40px rgba(0,255,136,0.2), inset 0 0 30px rgba(0,255,136,0.05);
  animation: pg-launch-glow 2s ease-in-out infinite;
}
.pg-launch-btn.pg-launch-active:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(0,255,136,0.35), inset 0 0 30px rgba(0,255,136,0.1);
}
@keyframes pg-launch-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(0,255,136,0.2), inset 0 0 30px rgba(0,255,136,0.05); }
  50% { box-shadow: 0 0 60px rgba(0,255,136,0.35), inset 0 0 40px rgba(0,255,136,0.1); }
}

.pg-launch-guard {
  position: absolute;
  bottom: 10px;
  width: 220px;
  height: 6px;
  background: repeating-linear-gradient(90deg, #ffc800 0, #ffc800 10px, #0a0e17 10px, #0a0e17 20px);
  border-radius: 3px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .pg-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pg-release-info { gap: 12px; }
  .pg-title { font-size: 1.2em; letter-spacing: 2px; }
  .pg-launch-btn { width: 150px; height: 150px; font-size: 0.7em; }
  .pg-launch-btn .pg-launch-icon { font-size: 2em; }
}
