/* VibeCrew overlays — overlays.css(2,952줄) 기능별 분해 (보비·2026-05-30·비비 R3 배치).
   cascade 순서 보존: base→media→panels→mobile→ceo. index.html 에서 이 순서로 로드. */

/* ============================================================
   Phase 5 & 6: CEO Capture Inbox & Journal Overlay Styles (Steve Jobs Standard)
   ============================================================ */
.ceo-overlay {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: var(--vc-co-bg3-75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  flex-direction: column;
  color: var(--vc-co-gray-4);
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  animation: ceoFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes ceoFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.ceo-modal-glow {
  position: absolute;
  top: -10%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--vc-co-orange-08) 0%, var(--vc-co-purple-03) 50%, transparent 100%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.ceo-header {
  height: calc(64px + env(safe-area-inset-top));
  flex-shrink: 0;
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--vc-white-08);
  background: var(--vc-co-bg2-50);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.ceo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ceo-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--vc-co-orange-10);
  border: 1px solid var(--vc-co-orange-25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ceo-bc-main {
  font-weight: 700;
  font-size: 14px;
  color: var(--vc-co-orange);
  letter-spacing: 0.5px;
}

.ceo-bc-sep {
  color: var(--vc-white-15);
}

.ceo-bc-sub {
  color: var(--vc-co-gray);
  font-size: 13px;
}

.ceo-bc-current {
  font-size: 13px;
  font-weight: 600;
  color: var(--vc-on-accent);
}

.ceo-tabs {
  display: flex;
  gap: 6px;
  background: var(--vc-white-04);
  padding: 4px;
  border-radius: 9px;
  border: 1px solid var(--vc-line);
  margin-right: 16px;
}

.ceo-tab-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--vc-co-gray);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ceo-tab-btn:hover {
  color: var(--vc-on-accent);
}

.ceo-tab-btn.active {
  background: var(--vc-co-orange-12);
  color: var(--vc-co-orange);
  box-shadow: 0 4px 12px var(--vc-black-15);
}

.ceo-tab-btn .badge {
  background: var(--vc-co-orange);
  color: var(--vc-co-bg);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 99px;
  font-weight: 800;
}

.ceo-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--vc-white-08);
  background: var(--vc-white-03);
  color: var(--vc-co-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ceo-close-btn svg {
  width: 14px;
  height: 14px;
}

.ceo-close-btn:hover {
  background: var(--vc-co-red-15);
  color: var(--vc-co-red);
  border-color: var(--vc-co-red-30);
}

.ceo-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 32px max(24px, env(safe-area-inset-right)) max(60px, calc(60px + env(safe-area-inset-bottom))) max(24px, env(safe-area-inset-left));
  z-index: 2;
  scrollbar-width: thin;
}

.ceo-loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: var(--vc-co-gray);
  font-size: 14px;
  font-weight: 500;
  gap: 10px;
}

.ceo-loading-spinner::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--vc-co-orange-25);
  border-top-color: var(--vc-co-orange);
  border-radius: 50%;
  animation: ceoSpin 0.8s linear infinite;
}

@keyframes ceoSpin {
  to { transform: rotate(360deg); }
}

/* Inbox Grid & Glass Cards */
.ceo-inbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ceo-glass-card {
  background: var(--vc-white-03);
  border: 1px solid var(--vc-line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 var(--vc-black-20);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.ceo-glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--vc-co-orange), var(--vc-co-purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.ceo-glass-card:hover {
  transform: translateY(-4px);
  background: var(--vc-white-05);
  border-color: var(--vc-co-orange-20);
  box-shadow: 0 12px 40px 0 var(--vc-co-orange-05);
}

.ceo-glass-card:hover::before {
  opacity: 1;
}

.ceo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ceo-card-date {
  font-size: 11px;
  color: var(--vc-white-40);
  font-family: var(--vc-mono);
}

.ceo-card-actions {
  display: flex;
  gap: 6px;
}

.ceo-btn-ignore {
  background: var(--vc-white-04);
  border: 1px solid var(--vc-white-08);
  color: var(--vc-co-gray);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ceo-btn-ignore:hover {
  background: var(--vc-co-red-10);
  color: var(--vc-co-red);
  border-color: var(--vc-co-red-20);
}

.ceo-btn-promote {
  background: var(--vc-co-orange-15);
  border: 1px solid var(--vc-co-orange-30);
  color: var(--vc-co-orange);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.ceo-btn-promote:hover {
  background: var(--vc-co-orange-25);
  box-shadow: 0 0 12px var(--vc-co-orange-20);
}

.ceo-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--vc-on-accent);
  margin: 0;
  line-height: 1.4;
}

.ceo-card-summary {
  font-size: 13px;
  color: var(--vc-co-gray-2);
  line-height: 1.6;
  margin: 0;
}

.ceo-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  border-top: 1px solid var(--vc-white-05);
  padding-top: 12px;
}

.ceo-card-tags {
  display: flex;
  gap: 4px;
}

.ceo-card-tag {
  background: var(--vc-white-04);
  border: 1px solid var(--vc-line);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--vc-co-gray);
  font-weight: 500;
}

.ceo-card-ref {
  font-size: 10.5px;
  color: var(--vc-white-30);
}

/* Empty State / Error State */
.ceo-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--vc-co-gray);
  max-width: 420px;
  margin: 0 auto;
}

.ceo-empty-state svg {
  margin-bottom: 16px;
}

.ceo-empty-state h3 {
  color: var(--vc-on-accent);
  font-size: 16px;
  margin-bottom: 6px;
}

.ceo-empty-state p {
  font-size: 12.5px;
  line-height: 1.5;
}

.ceo-error-state {
  color: var(--vc-co-red);
  text-align: center;
  padding: 40px;
  background: var(--vc-co-red-05);
  border: 1px solid var(--vc-co-red-10);
  border-radius: 12px;
  max-width: 600px;
  margin: 20px auto;
}

/* CEO Catalog Styles */
.ceo-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.ceo-filter-btn {
  background: var(--vc-white-03);
  border: 1px solid var(--vc-line);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--vc-co-gray);
  cursor: pointer;
  transition: all 0.2s;
}

.ceo-filter-btn:hover {
  background: var(--vc-line);
  color: var(--vc-on-accent);
}

.ceo-filter-btn.active {
  background: var(--vc-co-orange);
  color: var(--vc-co-bg);
  border-color: var(--vc-co-orange);
  font-weight: 600;
}

.ceo-catalog-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ceo-journal-row {
  background: var(--vc-white-02);
  border: 1px solid var(--vc-white-05);
  border-radius: 10px;
  overflow: hidden;
}

.ceo-journal-summary {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  transition: background 0.2s;
  list-style: none;
}

.ceo-journal-summary::-webkit-details-marker {
  display: none;
}

.ceo-journal-summary:hover {
  background: var(--vc-white-04);
}

.ceo-journal-cat {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.ceo-journal-row-title {
  flex: 1;
  font-weight: 600;
  color: var(--vc-on-accent);
}

.ceo-redact-badge {
  background: var(--vc-co-green-10);
  border: 1px solid var(--vc-co-green-30);
  color: var(--vc-co-green);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
}

.ceo-journal-date {
  font-size: 11px;
  color: var(--vc-white-40);
}

.ceo-journal-detail-body {
  padding: 20px;
  background: var(--vc-black-25);
  border-top: 1px solid var(--vc-white-04);
}

.ceo-journal-meta-header {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ceo-journal-meta-header strong {
  font-size: 12px;
  color: var(--vc-co-green);
}

.ceo-journal-meta-header .meta-desc {
  font-size: 11px;
  color: var(--vc-co-gray);
}

.ceo-journal-markdown-box {
  background: var(--vc-co-bg2-60);
  border: 1px solid var(--vc-white-04);
  border-radius: 8px;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--vc-co-gray-3);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 16px;
}

.ceo-original-content-toggle {
  margin-top: 12px;
  border-top: 1px solid var(--vc-white-04);
  padding-top: 12px;
}

.ceo-original-content-toggle summary {
  font-size: 12px;
  color: var(--vc-white-40);
  cursor: pointer;
}

.ceo-original-content-toggle summary:hover {
  color: var(--vc-co-orange);
}

.ceo-journal-markdown-box.raw {
  margin-top: 8px;
  border-color: var(--vc-co-orange-15);
  background: var(--vc-co-orange-01);
}

/* Modals & Dialog overlays */
.ceo-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--vc-black-60);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ceoPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ceoPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.ceo-dialog-window {
  background: var(--vc-co-surface-95);
  border: 1px solid var(--vc-co-orange-25);
  box-shadow: 0 20px 50px var(--vc-black-50);
  width: 100%;
  max-width: 500px;
  padding: 24px;
  border-radius: 16px;
  color: var(--vc-on-accent);
}

.ceo-dialog-window h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--vc-co-orange);
  margin: 0 0 6px;
}

.ceo-dialog-window .dialog-desc {
  font-size: 12px;
  color: var(--vc-co-gray);
  line-height: 1.5;
  margin-bottom: 20px;
}

.dialog-field {
  margin-bottom: 16px;
}

.dialog-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--vc-co-gray-2);
  margin-bottom: 6px;
}

.dialog-field select,
.dialog-field input,
.dialog-field textarea {
  width: 100%;
  background: var(--vc-black-30);
  border: 1px solid var(--vc-line-2);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  color: var(--vc-on-accent);
  outline: none;
  font-family: inherit;
}

.dialog-field select:focus,
.dialog-field input:focus,
.dialog-field textarea:focus {
  border-color: var(--vc-co-orange);
  box-shadow: 0 0 0 2px var(--vc-co-orange-15);
}

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

.ceo-btn-dialog-cancel {
  background: var(--vc-white-05);
  border: 1px solid var(--vc-white-08);
  color: var(--vc-co-gray-2);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.ceo-btn-dialog-cancel:hover {
  background: var(--vc-line-2);
  color: var(--vc-on-accent);
}

.ceo-btn-dialog-submit {
  background: var(--vc-co-orange);
  border: none;
  color: var(--vc-co-bg);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--vc-co-orange-20);
}

.ceo-btn-dialog-submit:hover {
  background: var(--vc-co-orange-2);
  box-shadow: 0 6px 16px var(--vc-co-orange-30);
}

/* Success Toast */
.ceo-success-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  background: var(--vc-co-green-95);
  border: 1px solid var(--vc-white-15);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--vc-on-accent);
  box-shadow: 0 10px 30px var(--vc-black-30);
  backdrop-filter: blur(10px);
  animation: ceoSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 320px;
}

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

.ceo-success-toast .toast-title {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.ceo-success-toast .toast-msg {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.9;
}

/* 크루의 눈 — 관찰일기 카드 (보비 2026-06-13) */
.ceo-eyes-list { max-width: 860px; margin: 0 auto; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.ceo-eyes-card { background: var(--vc-surface); border: 1px solid var(--vc-line-2); border-radius: var(--vc-r-3); overflow: hidden; }
.ceo-eyes-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.ceo-eyes-head::-webkit-details-marker { display: none; }
.ceo-eyes-av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--vc-purple-12); color: var(--vc-purple); font-weight: 700; font-size: var(--vc-fs-sm); }
.ceo-eyes-meta { display: flex; flex-direction: column; flex-shrink: 0; min-width: 64px; }
.ceo-eyes-meta b { font-size: var(--vc-fs-sm); color: var(--vc-text); }
.ceo-eyes-meta small { font-size: var(--vc-fs-xs); color: var(--vc-muted); }
.ceo-eyes-title { flex: 1; font-size: var(--vc-fs-md); color: var(--vc-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ceo-eyes-card[open] .ceo-eyes-title { white-space: normal; }
.ceo-eyes-body { padding: 0 16px 16px 58px; font-size: var(--vc-fs-md); line-height: 1.7; color: var(--vc-text-2); white-space: pre-wrap; }
