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

/* ===== Voice Mode Overlay ===== */
@keyframes vc-ring-out {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(1); opacity: 0.8; }
}
@keyframes vm-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vm-live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--vc-green-60); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}
.voice-mode-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity 0.3s ease;
}
.voice-mode-overlay.vm-open { opacity: 1; }
.vm-bg {
  position: absolute; inset: 0;
  background: var(--vc-bg-deep);
}
.vm-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: 100%; padding: env(safe-area-inset-top, 12px) 0 env(safe-area-inset-bottom, 20px);
}
.vm-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; flex-shrink: 0;
}
.vm-status-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--vc-white-60);
}
.vm-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--vc-green);
  animation: vm-live-pulse 2s infinite;
  flex-shrink: 0;
}
.vm-dot-sep { color: var(--vc-white-25); }
.vm-mono { font-family: var(--vc-mono); color: var(--vc-white-50); }
.vm-timer { font-variant-numeric: tabular-nums; }
.vm-close-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--vc-white-08); color: var(--vc-white-70);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}
.vm-center {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 0 24px; min-height: 0; overflow-y: auto;
}
.vm-orb-wrap {
  position: relative; width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; flex-shrink: 0;
}
.vm-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--vc-blue-30);
}
.vm-ring-1 { width: 160px; height: 160px; animation: vc-ring-out 3.0s 0.0s infinite ease-out; border-color: var(--vc-blue-30); }
.vm-ring-2 { width: 188px; height: 188px; animation: vc-ring-out 3.6s 0.4s infinite ease-out; border-color: var(--vc-blue-30); }
.vm-ring-3 { width: 220px; height: 220px; animation: vc-ring-out 4.2s 0.8s infinite ease-out; border-color: var(--vc-blue-20); }
.vm-ring-4 { width: 256px; height: 256px; animation: vc-ring-out 4.8s 1.2s infinite ease-out; border-color: var(--vc-blue-10); }
.vm-orb {
  position: relative; z-index: 2;
  width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vc-purple) 0%, var(--vc-blue) 100%);
  box-shadow: 0 0 60px var(--vc-purple-15), inset 0 -20px 60px var(--vc-black-20);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.3s ease;
}
.vm-orb.vm-orb-listening {
  box-shadow: 0 0 80px var(--vc-green-55), 0 0 30px var(--vc-green-15), inset 0 -20px 60px var(--vc-black-20);
}
.vm-orb-av {
  width: 100%; height: 100%; border-radius: 50%;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; font-weight: 700; color: var(--vc-on-accent);
}
.vm-worker-name { font-size: 22px; font-weight: 700; letter-spacing: 0; color: var(--vc-on-accent); }
.vm-worker-status { font-size: 13px; color: var(--vc-white-50); margin-top: 4px; margin-bottom: 24px; }
.vm-transcript {
  width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px;
  max-height: 220px; overflow-y: auto; scrollbar-width: none;
}
.vm-transcript::-webkit-scrollbar { display: none; }
.vm-msg { display: flex; flex-direction: column; gap: 3px; animation: vm-fade-up 0.3s ease; }
.vm-msg-user { align-items: flex-end; }
.vm-msg-meta { font-size: 10px; color: var(--vc-white-35); font-weight: 600; padding: 0 4px; }
.vm-bubble {
  padding: 10px 14px; border-radius: 14px 14px 14px 4px;
  font-size: 14px; line-height: 1.5; max-width: 280px;
  background: var(--vc-purple-10); border: 1px solid var(--vc-purple-22);
  color: var(--vc-white-90);
}
.vm-bubble-user {
  border-radius: 14px 14px 4px 14px;
  background: var(--vc-blue-20); border-color: var(--vc-blue-30);
}
.vm-bubble-interim { opacity: 0.6; border-style: dashed; }
.vm-empty-transcript {
  text-align: center; font-size: 13px; color: var(--vc-white-25);
  padding: 24px 0;
}
.vm-controls {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  padding: 0 24px 16px; flex-shrink: 0;
}
.vm-ctrl-btn {
  width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--vc-white-15);
  background: var(--vc-white-08); color: var(--vc-white-80); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.vm-ctrl-btn:hover, .vm-ctrl-active { background: var(--vc-white-15); }
.vm-mic-active {
  background: var(--vc-green-20) !important; border-color: var(--vc-green-50) !important;
  color: var(--vc-green) !important;
  box-shadow: 0 0 20px var(--vc-green-15);
}
.vm-hangup-btn {
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--vc-red) 0%, var(--vc-red-deep) 100%);
  color: var(--vc-on-accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px var(--vc-red-40), inset 0 -2px 8px var(--vc-black-25);
  transition: transform 0.15s ease; -webkit-tap-highlight-color: transparent;
}
.vm-hangup-btn:active { transform: scale(0.94); }
.vm-hint {
  text-align: center; font-size: 11px; color: var(--vc-white-20);
  padding-bottom: 8px; flex-shrink: 0;
}

/* ===== Journal Entry Overlay ===== */
@keyframes je-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.journal-entry-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vc-bg); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
.journal-entry-overlay.je-open { transform: translateY(0); }
.je-nav {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  flex-shrink: 0; border-bottom: 1px solid var(--vc-line);
  background: var(--vc-bg);
}
.je-nav-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--vc-white-05); color: var(--vc-text);
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.je-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 24px);
}
.je-loading {
  padding: 48px 24px; text-align: center; color: var(--vc-muted); font-size: 14px;
}
.je-cover {
  height: 240px; position: relative; flex-shrink: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.je-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--vc-black-55) 100%);
}
.je-cover-text {
  position: relative; z-index: 1; padding: 0 20px 20px; color: var(--vc-on-accent);
}
.je-cover-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; opacity: 0.85; margin-bottom: 6px;
}
.je-cover-title {
  font-size: 22px; font-weight: 700; letter-spacing: 0; line-height: 1.2;
}
.je-author-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--vc-line);
}
.je-author-info { flex: 1; min-width: 0; }
.je-author-name { font-size: 13.5px; font-weight: 600; }
.je-author-meta { font-size: 11px; color: var(--vc-muted); margin-top: 2px; }
.je-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.je-tag {
  font-size: 11px; color: var(--vc-blue-2); background: var(--vc-blue-10);
  border-radius: var(--vc-r-pill); padding: 2px 8px; font-weight: 600;
}
.je-body {
  padding: 20px 22px; font-size: 15px; line-height: 1.7; color: var(--vc-text);
}
.je-body p { margin: 0 0 14px; }
.je-body p:last-child { margin-bottom: 0; }
.je-body strong { font-weight: 700; color: var(--vc-text); }
.je-footer {
  padding: 14px 18px; border-top: 1px solid var(--vc-line);
  display: flex; align-items: center; gap: 10px;
}
.je-react-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: var(--vc-r-pill); background: var(--vc-red-10);
  border: 1px solid var(--vc-red-10); color: var(--vc-red-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background var(--vc-fast);
}
.je-react-btn:hover { background: var(--vc-red-18); }
/* 보비 (2026-05-24): 일지 좋아요 toggle 상태 (눌렀을 때 진한 빨강 + 채워진 하트) */
.je-react-btn.is-liked { background: var(--vc-red-2); color: var(--vc-on-accent); border-color: var(--vc-red-2); }
.je-react-btn.is-liked:hover { background: var(--vc-red-h); }
.journal-card.is-liked { border-color: var(--vc-red-2); }
.journal-liked-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--vc-red-2); color: var(--vc-on-accent);
  margin-left: auto;
}
.je-share-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--vc-line-2);
  background: var(--vc-white-04); color: var(--vc-text-2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* ===== Mobile Prompt Editor Overlay ===== */
.prompt-editor-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vc-bg); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
.prompt-editor-overlay.pe-open { transform: translateY(0); }
.pe-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--vc-line); flex-shrink: 0;
  background: var(--vc-bg);
}
.pe-top-title { text-align: center; font-size: 14px; font-weight: 700; flex: 1; }
.pe-top-sub { font-size: 11px; color: var(--vc-muted); font-weight: 400; margin-top: 1px; }
.pe-top-btn {
  background: none; border: none; cursor: pointer;
  font-size: 15px; color: var(--vc-text-2); padding: 6px 4px;
  -webkit-tap-highlight-color: transparent; min-width: 48px;
}
.pe-top-primary { color: var(--vc-blue-2); font-weight: 600; text-align: right; }
.pe-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 12px;
  background: var(--vc-amber-10); border-bottom: 1px solid var(--vc-amber-20);
  color: var(--vc-amber-2); flex-shrink: 0;
}
.pe-banner span { flex: 1; min-width: 0; }
.pe-copy-btn {
  flex-shrink: 0;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--vc-line-2);
  border-radius: var(--vc-r-2);
  background: var(--vc-white-04);
  color: var(--vc-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pe-copy-btn:hover { background: var(--vc-blue-10); border-color: var(--vc-blue-30); }
.pe-scroll {
  flex: 1; overflow-y: auto; padding: 16px 0;
  padding-bottom: env(safe-area-inset-bottom, 24px);
  -webkit-overflow-scrolling: touch;
}
.pe-section { padding: 0 16px 16px; }
.pe-sec-label {
  font-size: 10px; font-weight: 700; color: var(--vc-muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.pe-sec-textarea {
  width: 100%; box-sizing: border-box;
  background: var(--vc-surface); border: 1px solid var(--vc-line-2);
  border-radius: var(--vc-r-4); padding: 12px 14px;
  font-size: 13.5px; line-height: 1.6; color: var(--vc-text);
  font-family: var(--vc-mono);
  resize: vertical; outline: none;
  transition: border-color var(--vc-fast);
}
.pe-sec-textarea:focus { border-color: var(--vc-blue); }
.pe-raw-toggle { padding: 0 16px 8px; }
.pe-raw-toggle button {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--vc-blue-2); font-weight: 600;
  padding: 4px 0; -webkit-tap-highlight-color: transparent;
}
.pe-raw-textarea {
  width: 100%; box-sizing: border-box;
  background: var(--vc-surface); border: 1px solid var(--vc-line);
  border-radius: var(--vc-r-4); padding: 12px 14px;
  font-size: 12px; line-height: 1.5; color: var(--vc-text);
  font-family: var(--vc-mono);
  resize: vertical; outline: none; min-height: 200px;
}

/* ===== Me / Settings Screen Overlay ===== */
.me-screen-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vc-bg); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
.me-screen-overlay.me-open { transform: translateY(0); }
.me-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top));
  flex-shrink: 0;
}
.me-top-title { font-size: 26px; font-weight: 700; letter-spacing: 0; }
.me-close-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--vc-surface); color: var(--vc-text-2);
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.me-scroll {
  flex: 1; overflow-y: auto; padding: 0 0 env(safe-area-inset-bottom, 32px);
  -webkit-overflow-scrolling: touch;
}
.me-profile-card {
  position: relative; margin: 0 16px 16px;
  border-radius: var(--vc-r-4); overflow: hidden;
  border: 1px solid var(--vc-blue-20);
}
.me-profile-bg {
  position: absolute; inset: 0;
  background: var(--vc-blue-10);
}
.me-profile-inner {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 22px;
}
.me-avatar-wrap { position: relative; flex-shrink: 0; }
.me-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--vc-on-accent);
  border: 2px solid var(--vc-white-15);
}
.me-profile-info { flex: 1; min-width: 0; }
.me-profile-name { font-size: 22px; font-weight: 700; letter-spacing: 0; }
.me-profile-sub { font-size: 12px; color: var(--vc-text-2); margin-top: 4px; }
.me-edit-btn {
  background: none; border: 1px solid var(--vc-line-2); border-radius: var(--vc-r-pill);
  padding: 6px 14px; font-size: 13px; color: var(--vc-text-2); cursor: pointer;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}

/* ===== Activity Screen Overlay ===== */
.activity-screen-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vc-bg); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
.activity-screen-overlay.act-open { transform: translateY(0); }
.act-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top));
  flex-shrink: 0;
}
.act-top-title { font-size: 26px; font-weight: 700; letter-spacing: 0; }
.act-close-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--vc-surface); color: var(--vc-text-2);
  display: flex; align-items: center; justify-content: center;
}
.act-scroll {
  flex: 1; overflow-y: auto; padding: 0 16px max(32px, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.act-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.act-kpi-card {
  padding: 12px 8px; background: var(--vc-surface); border: 1px solid var(--vc-line);
  border-radius: 10px; text-align: center; min-width: 0;
}
.act-kpi-primary { background: var(--vc-blue-10); border-color: var(--vc-blue-20); }
.act-kpi-card div { font-size: 18px; font-weight: 700; color: var(--vc-text); }
.act-kpi-card span { display: block; margin-top: 3px; font-size: 10px; color: var(--vc-muted); font-weight: 600; }
.act-section-label {
  margin: 18px 0 8px; font-size: 11px; color: var(--vc-muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.act-bars {
  height: 88px; display: flex; align-items: flex-end; gap: 3px;
  padding: 14px; background: var(--vc-surface); border: 1px solid var(--vc-line); border-radius: 12px;
}
.act-bars span { flex: 1; min-height: 5px; border-radius: 2px 2px 0 0; background: var(--vc-blue-30); }
.act-list { display: flex; flex-direction: column; gap: 8px; }
.act-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 11px 12px; background: var(--vc-surface); border: 1px solid var(--vc-line); border-radius: 10px;
}
.act-row-icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--vc-blue-10);
  color: var(--vc-blue-2); display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.act-row-body { min-width: 0; }
.act-row-title { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-row-text { margin-top: 2px; font-size: 12px; color: var(--vc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-row-time { font-size: 11px; color: var(--vc-muted); white-space: nowrap; }
.act-empty { padding: 28px 0; text-align: center; color: var(--vc-muted); font-size: 13px; }
.me-kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 0 16px 20px;
}
.me-kpi-card {
  padding: 14px; background: var(--vc-surface); border-radius: 12px;
  border: 1px solid var(--vc-line); text-align: center;
}
.me-kpi-val { font-size: 22px; font-weight: 700; letter-spacing: 0; }
.me-kpi-lbl { font-size: 11px; color: var(--vc-muted); margin-top: 3px; }
.me-group { padding: 0 16px 16px; }
.me-group-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--vc-muted); font-weight: 600; padding: 0 6px 8px;
}
.me-group-rows {
  background: var(--vc-surface); border-radius: 12px;
  border: 1px solid var(--vc-line); overflow: hidden;
}
.me-row {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-bottom: 1px solid var(--vc-line); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background var(--vc-fast);
}
.me-row:last-child { border-bottom: none; }
.me-row:hover { background: var(--vc-white-03); }
.me-row-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--vc-white-05); color: var(--vc-text-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.me-row-danger .me-row-icon { background: var(--vc-red-10); color: var(--vc-red-2); }
.me-row-label { flex: 1; font-size: 14.5px; }
.me-row-danger .me-row-label { color: var(--vc-red-2); }
.me-row-right { font-size: 13px; color: var(--vc-muted); margin-right: 4px; }
.me-right-green { color: var(--vc-green); }
.me-right-purple { color: var(--vc-purple); }
.me-footer {
  text-align: center; padding: 16px 16px 24px;
  font-size: 11px; color: var(--vc-muted);
}

/* ===== Usage Screen Overlay ===== */
.usage-screen-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vc-bg); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
.usage-screen-overlay.us-open { transform: translateY(0); }
.us-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--vc-line); flex-shrink: 0; background: var(--vc-bg);
}
.us-back-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--vc-white-05); color: var(--vc-text);
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.us-top-title { text-align: center; font-size: 14px; font-weight: 700; }
.us-top-sub { font-size: 11px; color: var(--vc-muted); font-weight: 400; margin-top: 1px; }
.us-scroll { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.us-loading { text-align: center; padding: 48px 0; color: var(--vc-muted); font-size: 14px; }
.us-empty { text-align: center; padding: 16px 0; color: var(--vc-muted); font-size: 13px; }
.us-hero-card {
  position: relative; border-radius: var(--vc-r-3); padding: 20px;
  border: 1px solid var(--vc-blue-30); overflow: hidden; margin-bottom: 20px;
}
.us-hero-bg {
  position: absolute; inset: 0;
  background: var(--vc-blue-10);
}
.us-hero-label { font-size: 11px; font-weight: 700; color: var(--vc-blue-2); text-transform: uppercase; letter-spacing: 0.08em; }
.us-hero-cost { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.us-hero-cost span:first-child { font-size: 42px; font-weight: 700; letter-spacing: 0; line-height: 1; }
.us-hero-limit { font-size: 16px; color: var(--vc-muted); }
.us-progress-track { margin-top: 14px; height: 8px; background: var(--vc-black-30); border-radius: 4px; overflow: hidden; }
.us-progress-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.us-hero-footer { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--vc-text-2); }
.us-sec-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--vc-muted); margin-bottom: 10px; margin-top: 20px; }
.us-chart-card { background: var(--vc-surface); border: 1px solid var(--vc-line-2); border-radius: var(--vc-r-3); padding: 16px; margin-bottom: 4px; }
.us-bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 80px; }
.us-bar-chart span { flex: 1; border-radius: 2px 2px 0 0; }
.us-chart-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: var(--vc-muted); }
.us-worker-list { background: var(--vc-surface); border: 1px solid var(--vc-line-2); border-radius: var(--vc-r-3); overflow: hidden; }
.us-worker-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--vc-line); }
.us-worker-row:last-child { border-bottom: none; }
.us-worker-info { flex: 1; min-width: 0; }
.us-worker-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.us-worker-name { font-size: 13.5px; font-weight: 600; }
.us-worker-cost { font-size: 14px; font-weight: 700; font-family: var(--vc-mono); }
.us-worker-bar-wrap { height: 3px; background: var(--vc-white-05); border-radius: 2px; overflow: hidden; }
.us-worker-bar { height: 100%; border-radius: 2px; }
.us-worker-pct { font-size: 11px; color: var(--vc-muted); width: 28px; text-align: right; flex-shrink: 0; }
.us-model-list { background: var(--vc-surface); border: 1px solid var(--vc-line-2); border-radius: var(--vc-r-3); overflow: hidden; margin-bottom: 24px; }
.us-model-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--vc-line); }
.us-model-row:last-child { border-bottom: none; }
.us-model-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.us-model-name { flex: 1; font-family: var(--vc-mono); font-size: 13px; }
.us-model-tokens { font-size: 12px; color: var(--vc-muted); margin-right: 12px; }
.us-model-cost { font-size: 13px; font-weight: 700; min-width: 50px; text-align: right; }

/* ===== Autonomy Overlay ===== */
.autonomy-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vc-bg); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
.autonomy-overlay.au-open { transform: translateY(0); }
.au-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--vc-line); flex-shrink: 0; background: var(--vc-bg);
}
.au-top-title { text-align: center; font-size: 14px; font-weight: 700; flex: 1; }
.au-top-sub { font-size: 11px; color: var(--vc-muted); font-weight: 400; margin-top: 1px; }
.au-top-btn { background: none; border: none; font-size: 15px; color: var(--vc-text-2); padding: 6px 4px; cursor: pointer; min-width: 48px; }
.au-top-primary { color: var(--vc-blue-2); font-weight: 600; text-align: right; }
.au-scroll { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.au-sec-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--vc-muted); margin-bottom: 12px; }
.au-level-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px;
  background: var(--vc-surface); border: 1px solid var(--vc-line); border-radius: 12px;
  cursor: pointer; transition: all var(--vc-fast); -webkit-tap-highlight-color: transparent;
}
.au-level-card:hover { border-color: var(--vc-blue-30); background: var(--vc-blue-10); }
.au-level-active { border-color: var(--vc-purple) !important; background: var(--vc-purple-10) !important; box-shadow: var(--vc-glow-purple); }
.au-level-badge {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; font-family: var(--vc-mono);
  border: 1px solid var(--vc-line-2);
  background: var(--vc-white-04);
  color: var(--vc-text-2);
}
.au-tone-neutral { background: var(--vc-white-045); color: var(--vc-muted); border-color: var(--vc-line-2); }
.au-tone-blue { background: var(--vc-blue-10); color: var(--vc-blue-2); border-color: var(--vc-blue-30); }
.au-tone-purple { background: var(--vc-purple-10); color: var(--vc-purple-2); border-color: var(--vc-purple-15); }
.au-tone-amber { background: var(--vc-amber-10); color: var(--vc-amber-2); border-color: var(--vc-amber-15); }
.au-level-info { flex: 1; min-width: 0; }
.au-level-name { font-size: 15px; font-weight: 600; }
.au-current-pill {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: var(--vc-r-pill); background: var(--vc-purple-15);
  color: var(--vc-purple-2); font-size: 10px; font-weight: 700;
}
.au-level-desc { font-size: 12.5px; color: var(--vc-text-2); margin-top: 3px; }
.au-level-check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--vc-line-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: transparent; transition: all var(--vc-fast);
}
.au-check-on { background: var(--vc-purple); border-color: transparent; color: var(--vc-on-accent); }
.au-promote-card {
  margin-top: 20px; padding: 16px; border-radius: 12px;
  background: var(--vc-amber-06); border: 1px solid var(--vc-amber-22);
}
.au-promote-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--vc-amber-2);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.au-criteria { display: flex; flex-direction: column; gap: 8px; }
.au-criterion { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vc-text-2); }
.au-ok { color: var(--vc-text); }

/* ===== Integration Overlay ===== */
.integration-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vc-bg); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
.integration-overlay.int-open { transform: translateY(0); }
.int-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--vc-line); flex-shrink: 0; background: var(--vc-bg);
}
.int-back-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--vc-white-05); color: var(--vc-text);
  display: flex; align-items: center; justify-content: center;
}
.int-top-title { font-size: 16px; font-weight: 700; }
.int-scroll { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.int-sec-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--vc-muted); margin-bottom: 10px; }
.int-card {
  background: var(--vc-surface); border: 1px solid var(--vc-line-2); border-radius: var(--vc-r-3);
  padding: 16px; margin-bottom: 10px;
}
.int-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.int-brand-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.int-card-info { flex: 1; min-width: 0; }
.int-card-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.int-status-pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--vc-r-pill); }
.int-card-meta { font-size: 12px; color: var(--vc-muted); margin-top: 2px; font-family: var(--vc-mono); }
.int-features { display: flex; flex-direction: column; gap: 8px; }
.int-feature-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--vc-white-025); border-radius: 8px;
  font-size: 13px;
}
.int-toggle {
  width: 40px; height: 22px; border-radius: 11px; background: var(--vc-line-2);
  position: relative; flex-shrink: 0; transition: background var(--vc-fast);
}
.int-toggle-on { background: var(--vc-green); }
.int-toggle-knob {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--vc-on-accent); transition: transform var(--vc-fast);
}
.int-toggle-on .int-toggle-knob { transform: translateX(18px); }

/* ===== Project Detail Overlay ===== */
.project-detail-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vc-bg); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
.project-detail-overlay.pd-open { transform: translateY(0); }
.pd-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 32px); }
.pd-hero { position: relative; padding: 60px 20px 28px; overflow: hidden; }
.pd-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--vc-blue-15), transparent 100%);
}
.pd-hero-nav {
  position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px;
  display: flex; justify-content: space-between; z-index: 2;
}
.pd-nav-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--vc-black-35);
  border: none; color: var(--vc-on-accent); cursor: pointer; backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
}
.pd-hero-inner {
  position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 16px; margin-top: 24px;
}
.pd-proj-icon {
  width: 72px; height: 72px; border-radius: var(--vc-r-4); flex-shrink: 0;
  background: var(--vc-white-10); backdrop-filter: blur(12px);
  border: 1px solid var(--vc-white-18);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--vc-on-accent);
}
.pd-proj-name { font-size: 26px; font-weight: 700; color: var(--vc-on-accent); letter-spacing: 0; line-height: 1.1; }
.pd-proj-meta { font-size: 12px; color: var(--vc-white-70); margin-top: 4px; font-family: var(--vc-mono); }
.pd-kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 18px 16px 0;
}
.pd-kpi-item {
  padding: 10px; background: var(--vc-surface); border-radius: 10px;
  border: 1px solid var(--vc-line); text-align: center;
}
.pd-kpi-val { font-size: 18px; font-weight: 700; letter-spacing: 0; }
.pd-kpi-lbl { font-size: 10px; color: var(--vc-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.pd-sec-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--vc-muted); padding: 18px 16px 8px; }
.pd-sec-inner { padding: 0 16px; }
.pd-sup-card {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--vc-blue-08);
  border: 1px solid var(--vc-blue-30); border-radius: var(--vc-r-3);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pd-sup-info { flex: 1; min-width: 0; }
.pd-sup-name { font-size: 16px; font-weight: 700; }
.pd-sup-role { font-size: 12px; color: var(--vc-text-2); margin-top: 2px; font-family: var(--vc-mono); }
.pd-workers-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.pd-worker-chip {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  background: var(--vc-surface); border: 1px solid var(--vc-line-2);
  border-radius: var(--vc-r-pill); cursor: pointer; font-size: 13px;
  -webkit-tap-highlight-color: transparent; transition: background var(--vc-fast);
}
.pd-worker-chip:hover { background: var(--vc-blue-10); border-color: var(--vc-blue-30); }
.pd-actions { display: flex; gap: 10px; padding: 20px 16px 12px; }
.pd-action-btn {
  flex: 1; min-height: 44px; padding: 12px; border-radius: var(--vc-r-3); border: none; cursor: pointer;
  background: var(--vc-blue); color: var(--vc-on-accent); font-size: 14px; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.pd-action-sec { background: var(--vc-surface); border: 1px solid var(--vc-line-2); color: var(--vc-text); }

/* ===== Bibi Orchestration View ===== */
@keyframes bb-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.bibi-view-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--vc-bg); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
.bibi-view-overlay.bb-open { transform: translateY(0); }
.bb-top-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--vc-line); flex-shrink: 0; background: var(--vc-bg);
}
.bb-back-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--vc-white-05); color: var(--vc-text);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bb-header-id { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.bb-header-orb { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.bb-orb {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--vc-on-accent);
  background-size: cover; background-position: center;
  background: linear-gradient(135deg, var(--vc-purple), var(--vc-blue));
  box-shadow: 0 4px 12px var(--vc-purple-15);
}
.bb-header-info { min-width: 0; }
.bb-header-name { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.bb-pill {
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: var(--vc-r-pill);
  background: var(--vc-purple-15); color: var(--vc-purple);
}
.bb-header-status { font-size: 11px; color: var(--vc-muted); display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.bb-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vc-green); flex-shrink: 0; }
.bb-voice-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--vc-white-05); color: var(--vc-text);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.bb-scroll { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.bb-msg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.bb-msg-user { align-items: flex-end; }
.bb-msg-asst { align-items: flex-start; }
.bb-msg-head { display: flex; align-items: center; gap: 6px; }
.bb-mini-orb {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--vc-purple), var(--vc-blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--vc-on-accent);
}
.bb-msg-name { font-size: 13px; color: var(--vc-muted); font-weight: 600; }
.bb-bubble { padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; max-width: 85%; }
.bb-bubble-asst {
  border-radius: 4px 14px 14px 14px;
  background: var(--vc-surface); border: 1px solid var(--vc-line-2);
}
.bb-bubble-user {
  border-radius: 14px 14px 4px 14px;
  background: var(--vc-blue-20); border: 1px solid var(--vc-blue-30);
}
.bb-intro { padding: 8px 0; }
.bb-intro-msg { max-width: 85%; }
.bb-input-area {
  flex-shrink: 0; border-top: 1px solid var(--vc-line);
  padding: 10px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--vc-bg);
}
.bb-chips { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
.bb-chips::-webkit-scrollbar { display: none; }
.bb-chip {
  flex-shrink: 0; padding: 5px 12px; border-radius: var(--vc-r-pill);
  background: var(--vc-surface); border: 1px solid var(--vc-line-2);
  font-size: 12px; color: var(--vc-text-2); cursor: pointer;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.bb-chip-purple { background: var(--vc-purple-10); border-color: var(--vc-purple-15); color: var(--vc-purple); }
.bb-input-row {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--vc-surface); border: 1px solid var(--vc-line-2);
  border-radius: 20px; padding: 8px 8px 8px 16px;
}
.bb-textarea {
  flex: 1; background: none; border: none; outline: none; resize: none;
  font-size: 14px; color: var(--vc-text); line-height: 1.5;
  max-height: 120px; overflow-y: auto;
}
.bb-send-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--vc-blue); color: var(--vc-on-accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
