/* ============================================================
   PHILOSOPHY AI - Enterprise Agent System
   Main Stylesheet
   ============================================================ */

/* ---- CSS Variables — Refined Luxury v2 ---- */
:root {
  /* ── Brand Colors — 채도 높여 시인성 강화 */
  --primary: #48d0ff;
  --primary-dark: #0ea5e9;
  --primary-glow: rgba(72, 208, 255, 0.40);
  --primary-reflect: rgba(72, 208, 255, 0.14);
  --secondary: #f0d080;
  --secondary-glow: rgba(240, 208, 128, 0.35);
  --accent: #ff8c42;
  --accent2: #b99eff;

  /* ── Background — 순수 깊은 다크, Three.js 대신 CSS 배경 */
  --bg-dark: #020409;
  --bg-base: #060a14;
  --bg-panel: rgba(8, 13, 28, 0.97);
  --bg-card: rgba(12, 18, 38, 0.94);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);

  /* ── Borders — 더 선명하게 */
  --border-glow: rgba(72, 208, 255, 0.30);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.17);
  --border-gold: rgba(240, 208, 128, 0.35);
  --gloss-top: rgba(255, 255, 255, 0.13);
  --gloss-mid: rgba(255, 255, 255, 0.05);
  --reflect-line: rgba(255, 255, 255, 0.07);

  /* ── Typography — 시인성 최우선 */
  --text-primary: #f0f6ff;      /* 순백에 가까운 청백 */
  --text-secondary: rgba(210, 228, 255, 0.85);  /* 0.72→0.85 */
  --text-muted: rgba(160, 185, 220, 0.65);       /* 0.48→0.65 */
  --text-bright: #ffffff;

  /* ── Gold palette */
  --gold: #d4aa50;
  --gold-light: #f0cc70;
  --gold-dim: rgba(212, 170, 80, 0.60);
  --gold-reflect: linear-gradient(135deg, #ffe066 0%, #d4aa50 40%, #9a7420 70%, #f0cc70 100%);

  /* ── Metal surfaces */
  --metal-dark: #0c1022;
  --metal-mid: #1c2448;
  --metal-light: #2e3a68;
  --metal-sheen: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 60%);

  /* ── Status */
  --success: #2edfb0;
  --warning: #ffd04a;
  --danger: #ff4d6d;

  /* ── Fonts */
  --font-main: 'Noto Sans KR', sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-display: 'Orbitron', monospace;

  /* ── Shadows */
  --shadow-glow: 0 0 28px rgba(72,208,255,0.30), 0 0 80px rgba(72,208,255,0.10);
  --shadow-gold: 0 0 28px rgba(212,170,80,0.40), 0 0 70px rgba(212,170,80,0.14);
  --shadow-card: 0 2px 0 rgba(255,255,255,0.09) inset,
                 0 -1px 0 rgba(0,0,0,0.6) inset,
                 0 14px 44px rgba(0,0,0,0.75),
                 0 4px 14px rgba(0,0,0,0.55);
  --shadow-deep: 0 28px 72px rgba(0,0,0,0.85), 0 4px 18px rgba(0,0,0,0.65);
  --shadow-btn:  0 2px 0 rgba(255,255,255,0.14) inset,
                 0 -2px 0 rgba(0,0,0,0.35) inset,
                 0 6px 22px rgba(0,0,0,0.55);

  /* ── Shape */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  /* ── Motion */
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image:
    /* 상단 청색 광원 */
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(72,208,255,0.11) 0%, transparent 65%),
    /* 좌하 보라 광원 */
    radial-gradient(ellipse 55% 45% at -5% 100%, rgba(185,158,255,0.09) 0%, transparent 60%),
    /* 우하 골드 광원 */
    radial-gradient(ellipse 50% 40% at 105% 95%, rgba(212,170,80,0.08) 0%, transparent 60%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   CSS ANIMATED BACKGROUND  (Three.js 대체)
   ============================================================ */

/* 기본 배경 레이어: 미세 그리드 + 그라디언트 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(72,208,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72,208,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
}

/* 플로팅 오브 — 소프트 글로우 블롭 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 380px at 20% 25%, rgba(72,208,255,0.06) 0%, transparent 70%),
    radial-gradient(circle 300px at 80% 70%, rgba(185,158,255,0.06) 0%, transparent 70%),
    radial-gradient(circle 250px at 55% 90%, rgba(212,170,80,0.05) 0%, transparent 70%);
  animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0%   { opacity: 0.7; transform: scale(1)    translate(0,    0);    }
  33%  { opacity: 1.0; transform: scale(1.04) translate(1%,  -1%); }
  66%  { opacity: 0.8; transform: scale(0.98) translate(-1%,  1%);  }
  100% { opacity: 1.0; transform: scale(1.02) translate(0.5%,0.5%); }
}

/* CSS 파티클 — 떠다니는 광점 (가볍고 GPU 친화적) */
@keyframes floatDot {
  0%   { transform: translateY(0)   translateX(0)   scale(1);   opacity: 0.5; }
  50%  { transform: translateY(-22px) translateX(8px)  scale(1.2); opacity: 1.0; }
  100% { transform: translateY(0)   translateX(0)   scale(1);   opacity: 0.5; }
}

.bg-dot {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatDot linear infinite;
}

/* ============================================================
   APP ROOT
   ============================================================ */
#app-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ============================================================
   HEADER / TOPBAR
   ============================================================ */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg,
    rgba(4, 7, 18, 0.99) 0%,
    rgba(6, 10, 24, 0.97) 100%
  );
  border-bottom: 1px solid rgba(72,208,255,0.15);
  backdrop-filter: blur(36px) saturate(2);
  -webkit-backdrop-filter: blur(36px) saturate(2);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 4px 32px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,0,0,0.9);
}

/* Gloss top-edge highlight */
#topbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.16) 20%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.16) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Animated scan line at bottom */
#topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--primary) 25%,
    var(--gold) 50%,
    var(--primary) 75%,
    transparent 100%
  );
  animation: scanline 4s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes scanline {
  0%, 100% { opacity: 0.4; transform: scaleX(0.7); }
  50% { opacity: 0.9; transform: scaleX(1); }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--primary) 0%,
    var(--accent2) 30%,
    var(--gold) 55%,
    var(--accent2) 75%,
    var(--primary) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--bg-dark);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.15),
    0 0 20px var(--primary-glow),
    0 0 50px rgba(167,139,250,0.15),
    0 2px 8px rgba(0,0,0,0.6);
  animation: logoSpin 10s linear infinite;
  position: relative;
  flex-shrink: 0;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon span {
  position: relative;
  z-index: 1;
  font-size: 11px;
}

@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(72,208,255,0.7), 0 0 30px rgba(72,208,255,0.3);
}

.logo-sub {
  font-family: var(--font-tech);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 3px;
  opacity: 0.8;
}

.topbar-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.topbar-nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* 1200px 이하에서 nav 레이블 숨김 (아이콘만) */
@media (max-width: 1200px) {
  .topbar-nav-btn .nav-label { display: none; }
  .topbar-nav-btn { padding: 7px 10px; }
}

.topbar-nav-btn:hover,
.topbar-nav-btn.active {
  border-color: rgba(72,208,255,0.45);
  background: rgba(72,208,255,0.10);
  color: var(--primary);
  text-shadow: 0 0 10px rgba(72,208,255,0.6);
  box-shadow: 0 0 14px rgba(72,208,255,0.08);
}

.topbar-nav-btn i {
  font-size: 13px;
}

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

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-tech);
  font-size: 11px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-bright);
  border-top-color: rgba(255,255,255,0.10);
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 2px 6px rgba(0,0,0,0.4);
}

.btn-icon:hover {
  border-color: rgba(72,208,255,0.50);
  color: var(--primary);
  background: linear-gradient(160deg, rgba(72,208,255,0.12) 0%, rgba(72,208,255,0.04) 100%);
  box-shadow: 0 0 14px rgba(72,208,255,0.22), 0 2px 6px rgba(0,0,0,0.4);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
#main-layout {
  padding-top: 62px;
  min-height: 100vh;
  display: flex;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
  width: 200px;
  min-height: calc(100vh - 62px);
  background: linear-gradient(180deg,
    rgba(5, 8, 20, 0.99) 0%,
    rgba(7, 11, 26, 0.98) 100%
  );
  border-right: 1px solid rgba(255,255,255,0.09);
  box-shadow:
    1px 0 0 rgba(255,255,255,0.05),
    4px 0 28px rgba(0,0,0,0.55);
  position: fixed;
  top: 62px;
  left: 0;
  bottom: 0;
  z-index: 900;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar::-webkit-scrollbar { width: 3px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.2); border-radius: 2px; }

.sidebar-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-label {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  padding: 6px 16px;
  text-transform: uppercase;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.sidebar-item:hover {
  background: linear-gradient(90deg, rgba(72,208,255,0.10) 0%, transparent 100%);
  color: #f0f6ff;
  border-left-color: rgba(72,208,255,0.50);
}

.sidebar-item.active {
  background: linear-gradient(90deg, rgba(72,208,255,0.15) 0%, rgba(72,208,255,0.03) 100%);
  color: var(--primary);
  border-left-color: var(--primary);
  text-shadow: 0 0 12px rgba(72,208,255,0.50);
  box-shadow: inset 0 1px 0 rgba(72,208,255,0.12), inset 0 -1px 0 rgba(72,208,255,0.07);
}

.sidebar-item i {
  width: 18px;
  text-align: center;
  font-size: 13px;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  font-family: var(--font-tech);
}

.dept-list {
  padding: 4px 0;
}

.dept-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 28px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 11px;
  color: var(--text-muted);
}

.dept-item:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

.dept-item.active {
  color: var(--primary);
}

.dept-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
#content-area {
  flex: 1;
  margin-left: 200px;
  min-height: calc(100vh - 64px);
  padding: 18px 20px;
  transition: margin-left 0.3s ease;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: linear-gradient(
    155deg,
    rgba(16, 23, 50, 0.96) 0%,
    rgba(10, 15, 34, 0.99) 100%
  );
  border: 1px solid var(--border-bright);
  border-top-color: rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.09) inset,
    0 10px 32px rgba(0,0,0,0.60);
}

/* Top accent bar */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color, var(--primary)), transparent);
  opacity: 0.9;
}

/* Gloss sheen */
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  pointer-events: none;
  border-radius: var(--radius) var(--radius) 0 0;
}

.stat-card:hover {
  border-color: rgba(56,189,248,0.3);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 16px 40px rgba(0,0,0,0.7),
    0 0 20px rgba(56,189,248,0.08);
  transform: translateY(-3px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(255,255,255,0.2);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-change {
  font-size: 11px;
  margin-top: 6px;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================================
   GLASS CARD — High-Gloss Luxury
   ============================================================ */
.glass-card {
  background: linear-gradient(
    160deg,
    rgba(18, 26, 58, 0.96) 0%,
    rgba(11, 16, 40, 0.98) 100%
  );
  border: 1px solid var(--border-bright);
  border-top-color: rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  overflow: hidden;
  position: relative;
}

/* Top-edge gloss sheen */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.18) 30%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.18) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.glass-card.glow {
  box-shadow: var(--shadow-card);
  border-color: rgba(56,189,248,0.18);
  border-top-color: rgba(56,189,248,0.3);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 100%);
}

.card-title {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.card-title i {
  color: var(--primary);
  filter: drop-shadow(0 0 4px var(--primary-glow));
}

.card-body {
  padding: 18px 20px;
}

/* ============================================================
   AGENT CARDS
   ============================================================ */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.agent-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.agent-card:hover::before {
  opacity: 1;
}

.agent-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--border-subtle);
  background: var(--metal-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.agent-card:hover .agent-avatar {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-avatar .avatar-placeholder {
  font-size: 32px;
  color: var(--text-muted);
}

.agent-name {
  font-weight: 700;
  font-size: 14px;
  color: #f5faff;
  margin-bottom: 4px;
}

.agent-title {
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 2px;
  font-family: var(--font-tech);
}

.agent-dept {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 12px;
}

.agent-tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--primary);
  font-family: var(--font-tech);
  letter-spacing: 0.5px;
}

.agent-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

.agent-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.agent-status-dot.online { background: var(--success); }
.agent-status-dot.busy { background: var(--warning); }
.agent-status-dot.offline { background: var(--text-muted); }

/* ---- MEETING ROOM ---- */
/* ============================================================
   MEETING ROOM — v3 Full-Immersive Layout
   ============================================================ */
.meeting-room {
  display: grid;
  grid-template-columns: 200px 1fr 230px;
  gap: 8px;
  height: calc(100vh - 62px - 8px);
  min-height: 560px;
  padding: 0;
}

/* ── LEFT PANEL: 부서 + 에이전트 선택/해제 ── */
.meeting-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9,14,32,0.97) 0%, rgba(7,10,24,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.11);
  border-top-color: rgba(255,255,255,0.18);
  border-radius: 14px;
  position: relative;
}
.meeting-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18) 50%, transparent);
}

/* 왼쪽 패널 섹션 헤더 */
.ml-section-hd {
  padding: 10px 12px 6px;
  font-family: var(--font-tech);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ml-section-hd span { opacity: 0.6; font-size: 9px; color: var(--text-muted); letter-spacing: 0; font-family: var(--font-main); }

/* 부서 목록 스크롤 */
.ml-dept-list {
  overflow-y: auto;
  flex-shrink: 0;
  max-height: 38%;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ml-dept-list::-webkit-scrollbar { width: 3px; }
.ml-dept-list::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.2); border-radius: 2px; }

/* 에이전트 목록 스크롤 */
.ml-agent-list {
  overflow-y: auto;
  flex: 1;
  padding: 4px 6px 8px;
  min-height: 0;
}
.ml-agent-list::-webkit-scrollbar { width: 3px; }
.ml-agent-list::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.2); border-radius: 2px; }

/* 부서 아이템 — 선택/해제 토글 */
.meeting-dept-item {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 9px;
  padding: 8px 10px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.meeting-dept-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.meeting-dept-item:hover {
  border-color: rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.06);
}
/* 선택됨 (참여 중) */
.meeting-dept-item.dept-joined {
  border-color: rgba(56,189,248,0.45);
  background: rgba(56,189,248,0.1);
  box-shadow: 0 0 8px rgba(56,189,248,0.08);
}
/* 포커스(펼쳐서 에이전트 표시용) */
.meeting-dept-item.active {
  border-color: rgba(201,168,76,0.45);
  background: rgba(201,168,76,0.08);
}

.meeting-dept-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.meeting-dept-info { flex: 1; min-width: 0; }
.meeting-dept-name { font-size: 10px; font-weight: 600; color: var(--text-primary); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meeting-dept-count { font-size: 9px; color: var(--text-muted); }

/* 부서 참여 체크 뱃지 */
.dept-join-badge {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: var(--text-muted);
  flex-shrink: 0; transition: all 0.2s;
}
.meeting-dept-item.dept-joined .dept-join-badge {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 6px rgba(56,189,248,0.4);
}

/* 에이전트 아이템 — 선택/해제 토글 */
.ml-agent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 3px;
  position: relative;
}
.ml-agent-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.ml-agent-item.agent-joined {
  background: rgba(56,189,248,0.08);
  border-color: rgba(56,189,248,0.25);
}
.ml-agent-item.agent-joined .ml-agent-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 6px rgba(56,189,248,0.35);
}
.ml-agent-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--metal-dark);
}
.ml-agent-name { font-size: 10px; font-weight: 700; color: #f0f6ff; line-height: 1.2; }
.ml-agent-title { font-size: 9px; color: var(--text-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ml-agent-info { flex: 1; min-width: 0; }
.ml-agent-check {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; color: transparent; flex-shrink: 0;
  transition: all 0.2s;
}

/* 왼쪽 하단 컨트롤 */
.ml-bottom {
  padding: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.ml-bottom button {
  flex: 1; padding: 6px 4px;
  border-radius: 7px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: var(--text-muted);
  font-size: 9px; cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.3px;
}
.ml-bottom button:hover { background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.3); color: var(--primary); }

/* ── CENTER PANEL ── */
.meeting-center {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  min-height: 0;
}

/* Speaker Stage — 접기 가능, 기본 최소화 */
.speaker-stage {
  background: linear-gradient(165deg, rgba(10,15,34,0.96) 0%, rgba(7,11,26,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-top-color: rgba(255,255,255,0.13);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  transition: all 0.3s;
  box-shadow: 0 2px 0 rgba(255,255,255,0.06) inset, 0 4px 16px rgba(0,0,0,0.5);
}
.speaker-stage.stage-hidden {
  display: none;
}
/* 대기 상태 */
.speaker-stage.stage-idle {
  justify-content: center;
  padding: 10px 16px;
  min-height: 52px;
}

.speaker-stage::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15) 50%, transparent);
  pointer-events: none;
}

/* 발언자 아바타 — 인라인 소형 */
.speaker-ring {
  position: relative;
  width: 52px; height: 52px;
  flex-shrink: 0;
}
.speaker-ring::before, .speaker-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  opacity: 0;
  animation: speakerRing 2s ease-out infinite;
}
.speaker-ring::after { animation-delay: 1s; }

@keyframes speakerRing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.speaker-avatar-large {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 16px rgba(56,189,248,0.3), 0 0 32px rgba(56,189,248,0.08);
  overflow: hidden;
  background: var(--metal-dark);
  display: flex; align-items: center; justify-content: center;
}
.speaker-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.speaker-avatar-large .avatar-placeholder-lg { font-size: 22px; color: var(--text-muted); }

.speaker-info { text-align: left; flex: 1; }
.speaker-name-display {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(56,189,248,0.4);
  margin-bottom: 2px;
}
.speaker-title-display {
  font-family: var(--font-tech);
  font-size: 10px; color: var(--primary);
  letter-spacing: 1.5px; margin-bottom: 1px;
}
.speaker-dept-display { font-size: 10px; color: var(--text-muted); }

.speaking-indicator {
  display: flex; align-items: center; gap: 3px;
  margin-left: auto; flex-shrink: 0;
}
.speaking-bar {
  width: 3px; background: var(--primary); border-radius: 2px;
  animation: speakingBar 0.6s ease-in-out infinite alternate;
}
.speaking-bar:nth-child(1) { height: 8px;  animation-delay: 0s; }
.speaking-bar:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.speaking-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.speaking-bar:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.speaking-bar:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes speakingBar {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}

/* 스테이지 우측 — 회의 메타 + 회의록 미니 버튼 */
.stage-meta {
  display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0;
}
.stage-type-badge {
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.25);
  color: var(--primary);
}
.stage-minutes-btn {
  padding: 5px 10px; border-radius: 8px;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.07);
  color: var(--gold);
  font-size: 10px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.stage-minutes-btn:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 10px rgba(201,168,76,0.1);
}
.stage-minutes-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* 스테이지 접기/펼치기 토글 */
.stage-toggle-btn {
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; transition: all 0.2s; flex-shrink: 0;
}
.stage-toggle-btn:hover { background: rgba(56,189,248,0.1); color: var(--primary); }

/* ── CHAT LOG (최대 확장) ── */
.chat-log {
  flex: 1;
  background: linear-gradient(165deg, rgba(9,14,32,0.97) 0%, rgba(7,10,24,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.11);
  border-top-color: rgba(255,255,255,0.17);
  border-radius: 12px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  box-shadow: 0 2px 0 rgba(255,255,255,0.08) inset, 0 8px 36px rgba(0,0,0,0.55);
}
.chat-log::-webkit-scrollbar { width: 4px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.2); border-radius: 2px; }
.chat-log::-webkit-scrollbar-track { background: transparent; }

.chat-message {
  display: flex;
  gap: 10px;
  animation: msgAppear 0.3s ease-out;
}

@keyframes msgAppear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--metal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
}

.chat-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.chat-bubble {
  flex: 1;
  background: rgba(20, 30, 60, 0.70);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
}

.chat-bubble.user-bubble {
  background: rgba(72, 208, 255, 0.10);
  border-color: rgba(72, 208, 255, 0.28);
  border-radius: 12px 12px 4px 12px;
  margin-left: 40px;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-sender {
  font-weight: 700;
  font-size: 12px;
  color: var(--primary);
  text-shadow: 0 0 8px rgba(72,208,255,0.4);
}

.chat-role {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-tech);
}

.chat-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
}

.chat-text {
  font-size: 13px;
  line-height: 1.75;
  color: #e8f2ff;
  white-space: pre-wrap;
  font-weight: 400;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: typingCursor 0.8s step-end infinite;
}

@keyframes typingCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── INPUT BAR ── */
.meeting-input-bar {
  background: linear-gradient(165deg, rgba(10,15,34,0.98) 0%, rgba(7,11,26,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-top-color: rgba(255,255,255,0.13);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 0 rgba(255,255,255,0.05) inset, 0 4px 16px rgba(0,0,0,0.4);
  position: relative;
}
.meeting-input-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14) 50%, transparent);
}

.meeting-input {
  flex: 1;
  background: rgba(10,16,36,0.70);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 9px 14px;
  color: #f0f6ff;
  font-family: var(--font-main);
  font-size: 13px;
  resize: none;
  min-height: 40px;
  max-height: 110px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.meeting-input:focus {
  border-color: rgba(72,208,255,0.50);
  background: rgba(6,18,46,0.75);
  color: #ffffff;
}
.meeting-input::placeholder { color: rgba(140,175,215,0.55); }

.input-action-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.input-action-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
}
.input-action-btn:hover {
  border-color: rgba(56,189,248,0.35);
  color: var(--primary);
  background: rgba(56,189,248,0.08);
}
.input-action-btn.send-btn {
  background: linear-gradient(165deg, rgba(56,189,248,0.9) 0%, rgba(14,116,165,0.9) 60%, rgba(7,89,133,0.95) 100%);
  border-color: rgba(56,189,248,0.4);
  color: white;
  box-shadow: 0 2px 0 rgba(255,255,255,0.15) inset, 0 0 12px rgba(56,189,248,0.2);
}
.input-action-btn.send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(56,189,248,0.35);
}
.input-action-btn.mic-btn.recording {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(244,63,94,0.1);
  animation: micPulse 1s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(244,63,94,0); }
}

/* ── RIGHT PANEL ── */
.meeting-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(9,14,32,0.97) 0%, rgba(7,10,24,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.11);
  border-top-color: rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 0;
  position: relative;
}
.meeting-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18) 50%, transparent);
}
.meeting-right::-webkit-scrollbar { width: 3px; }
.meeting-right::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.2); border-radius: 2px; }

.meeting-summary {
  background: rgba(255,255,255,0.018);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 12px 14px;
  flex-shrink: 0;
}
.meeting-summary:last-child { border-bottom: none; }

.summary-title {
  font-family: var(--font-tech);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-chip {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(72,208,255,0.10);
  border: 1px solid rgba(72,208,255,0.28);
  color: var(--primary);
  font-family: var(--font-tech);
  font-weight: 600;
}

.action-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.action-item-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   PARTICIPANT ROW — now lives inside right panel top
   ============================================================ */
.participants-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: rgba(255,255,255,0.018);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.participant-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.participant-mini:hover,
.participant-mini.speaking {
  opacity: 1;
}

.participant-mini.speaking .participant-mini-avatar {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.participant-mini-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  overflow: hidden;
  background: var(--metal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}

.participant-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-mini-name {
  font-size: 9px;
  color: rgba(180,205,240,0.75);
  text-align: center;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* ── 참여자 아바타: 포커스(1:1 지시) 상태 ── */
.participant-mini.focused {
  opacity: 1;
}
.participant-mini.focused .participant-mini-avatar {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.35), 0 0 18px rgba(245,158,11,0.5);
  transform: scale(1.12);
}
.participant-mini.focused .participant-mini-name {
  color: #f59e0b;
  font-weight: 700;
}
/* 포커스 배지 (아바타 우상단) */
.participant-mini .focus-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  color: #000;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  z-index: 2;
}
.participant-mini-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
/* 다른 참여자들 — 포커스 중일 때 흐리게 */
.participant-mini.dimmed {
  opacity: 0.3;
  pointer-events: none;
}
/* 포커스 인디케이터 바 (채팅창 상단) */
#focus-indicator-bar {
  display: none;
  background: linear-gradient(90deg, rgba(245,158,11,0.15), transparent);
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 6px 12px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #f59e0b;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
#focus-indicator-bar.active {
  display: flex;
}
#focus-indicator-bar:hover {
  background: linear-gradient(90deg, rgba(245,158,11,0.25), transparent);
}
/* clarification 단계 입력 힌트 */
.clarification-hint {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */
/* ============================================================
   BUTTON SYSTEM — High-Gloss Luxury
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

/* Gloss sheen on all buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 100%);
  pointer-events: none;
  border-radius: inherit;
}

.btn-primary {
  background: linear-gradient(165deg,
    #3ac8f5 0%,
    #0e85c8 55%,
    #075e96 100%
  );
  color: #ffffff;
  border-color: rgba(72,208,255,0.65);
  border-top-color: rgba(72,208,255,0.95);
  box-shadow: var(--shadow-btn),
    0 0 20px rgba(72,208,255,0.25),
    inset 0 1px 0 rgba(255,255,255,0.20);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn),
    0 0 36px rgba(72,208,255,0.45),
    0 8px 24px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.22);
  background: linear-gradient(165deg,
    #52d4f8 0%,
    #1895d8 55%,
    #0a74b8 100%
  );
}

.btn-primary:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(165deg,
    #e8cc80 0%,
    #c9a84c 45%,
    #8b6914 80%,
    #c9a84c 100%
  );
  color: #0a0c18;
  border-color: rgba(201,168,76,0.7);
  border-top-color: #e8cc80;
  box-shadow: var(--shadow-btn),
    0 0 16px rgba(201,168,76,0.25),
    inset 0 1px 0 rgba(255,255,255,0.25);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255,255,255,0.2);
}

.btn-gold:hover {
  box-shadow: var(--shadow-gold), var(--shadow-btn);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.20);
  border-top-color: rgba(255,255,255,0.18);
  color: var(--text-secondary);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 2px 8px rgba(0,0,0,0.3);
  font-weight: 500;
}

.btn-outline:hover {
  border-color: rgba(72,208,255,0.55);
  color: var(--primary);
  background: rgba(72,208,255,0.08);
  box-shadow: 0 0 14px rgba(72,208,255,0.15), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-danger {
  background: rgba(244,63,94,0.08);
  border-color: rgba(244,63,94,0.3);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(244,63,94,0.16);
  border-color: var(--danger);
  box-shadow: 0 0 12px rgba(244,63,94,0.2);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.2px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

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

.admin-container {
  width: 95vw;
  max-width: 1200px;
  height: 90vh;
  background: linear-gradient(180deg,
    rgba(9, 14, 30, 0.99) 0%,
    rgba(12, 18, 42, 0.98) 100%
  );
  border: 1px solid rgba(212,170,80,0.50);
  border-top-color: rgba(240,208,128,0.60);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 70px rgba(212,170,80,0.20), 0 32px 80px rgba(0,0,0,0.90);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  background: linear-gradient(90deg,
    rgba(212, 175, 55, 0.05) 0%,
    transparent 100%
  );
}

.admin-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(212,170,80,0.65), 0 0 40px rgba(212,170,80,0.25);
}

.admin-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.admin-sidebar {
  width: 200px;
  border-right: 1px solid rgba(212, 175, 55, 0.1);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.admin-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
}

.admin-sidebar-item:hover {
  background: rgba(212, 175, 55, 0.05);
  color: var(--gold-light);
}

.admin-sidebar-item.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border-left-color: var(--gold);
}

.admin-sidebar-item i {
  width: 16px;
  text-align: center;
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* API Status Badges */
.api-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.api-name {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  width: 120px;
}

.api-key-input {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: monospace;
  outline: none;
  transition: var(--transition);
}

.api-key-input:focus {
  border-color: var(--primary);
}

.api-badge {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: var(--font-tech);
  letter-spacing: 1px;
}

.api-badge.connected {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--success);
}

.api-badge.disconnected {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: var(--danger);
}

.api-badge.testing {
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.3);
  color: var(--warning);
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-family: var(--font-tech);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(4,8,22,0.45) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-bottom-color: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #f0f6ff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 400;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.55) inset, 0 1px 0 rgba(255,255,255,0.06);
}

.form-control:focus {
  border-color: rgba(72,208,255,0.60);
  border-top-color: rgba(72,208,255,0.80);
  background: linear-gradient(180deg, rgba(2,10,30,0.55) 0%, rgba(5,20,50,0.50) 100%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.55) inset,
    0 0 0 3px rgba(72,208,255,0.10),
    0 0 20px rgba(72,208,255,0.08);
  color: #ffffff;
}

.form-control::placeholder { color: var(--text-muted); opacity: 0.9; }

select.form-control option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: linear-gradient(165deg, rgba(12,18,42,0.99) 0%, rgba(8,13,30,0.99) 100%);
  border: 1px solid rgba(72,208,255,0.25);
  border-top-color: rgba(72,208,255,0.40);
  border-radius: var(--radius-lg);
  width: 90vw;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-glow), 0 32px 80px rgba(0,0,0,0.85);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-tech);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(72,208,255,0.5);
  letter-spacing: 0.5px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ============================================================
   TOAST / NOTIFICATION
   ============================================================ */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: linear-gradient(165deg, rgba(14,20,46,0.98) 0%, rgba(9,14,34,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 420px;
  animation: toastIn 0.3s ease;
  pointer-events: auto;
  box-shadow: var(--shadow-card), 0 0 30px rgba(0,0,0,0.5);
  color: #e8f2ff;
}

.toast.success { border-color: rgba(46,223,176,0.45); }
.toast.error   { border-color: rgba(255, 77,109,0.45); }
.toast.warning { border-color: rgba(255,208, 74,0.45); }
.toast.info    { border-color: rgba(72, 208,255,0.45); }

.toast i { flex-shrink: 0; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--primary); }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ============================================================
   LOADING / PROGRESS
   ============================================================ */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.progress-bar-container {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent2));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ============================================================
   STUDIO (RESULTS)
   ============================================================ */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.studio-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.studio-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.studio-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.studio-card-desc {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   OUTPUT DOCUMENT
   ============================================================ */
.output-doc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.output-doc-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.output-doc-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 6px;
}

.output-doc-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

.output-section {
  margin-bottom: 20px;
}

.output-section-title {
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.output-section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
}

.output-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* ============================================================
   PASSWORD SCREEN
   ============================================================ */
.password-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 20px;
}

.password-screen .lock-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.password-input-group {
  display: flex;
  gap: 8px;
}

.password-digit {
  width: 48px;
  height: 56px;
  background: rgba(0,0,0,0.4);
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  outline: none;
  transition: var(--transition);
  -webkit-text-security: disc;
}

.password-digit:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* ============================================================
   TAG BADGES
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  font-family: var(--font-tech);
  letter-spacing: 0.5px;
}

.tag-blue {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--primary);
}

.tag-gold {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold);
}

.tag-purple {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--accent2);
}

.tag-green {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--success);
}

.tag-orange {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.25);
  color: var(--accent);
}

/* ============================================================
   DEPARTMENT COLORS
   ============================================================ */
.dept-color-1 { --dept-color: #00d4ff; }  /* CEO */
.dept-color-2 { --dept-color: #a855f7; }  /* 전략 */
.dept-color-3 { --dept-color: #ffd700; }  /* 재무 */
.dept-color-4 { --dept-color: #00ff88; }  /* 투자 */
.dept-color-5 { --dept-color: #ff4444; }  /* 법무 */
.dept-color-6 { --dept-color: #ff6b35; }  /* 인사 */
.dept-color-7 { --dept-color: #ff69b4; }  /* 마케팅 */
.dept-color-8 { --dept-color: #22d3ee; }  /* 영업 */
.dept-color-9 { --dept-color: #4ade80; }  /* CX */
.dept-color-10 { --dept-color: #818cf8; } /* AI기술 */
.dept-color-11 { --dept-color: #f472b6; } /* 콘텐츠 */
.dept-color-12 { --dept-color: #fb923c; } /* R&D */

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #f5faff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 20px rgba(72,208,255,0.15);
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--accent2));
  border-radius: 2px;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px 0;
}

/* ============================================================
   QUICK MEETING CARD
   ============================================================ */
.quick-meeting-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 12px;
  align-items: center;
}

.quick-meeting-card:hover {
  border-color: rgba(72,208,255,0.45);
  background: rgba(72,208,255,0.07);
  transform: translateX(4px);
}

.quick-meeting-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.quick-meeting-info {
  flex: 1;
}

.quick-meeting-title {
  font-size: 13px;
  font-weight: 600;
  color: #f0f6ff;
  margin-bottom: 4px;
}

.quick-meeting-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   FILE UPLOAD ZONE
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(0,0,0,0.1);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: rgba(72,208,255,0.55);
  background: rgba(72,208,255,0.06);
}

.upload-zone-icon {
  font-size: 40px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-zone-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.upload-zone-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
#main-footer {
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 13px;
  background: var(--gold-reflect);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  margin-bottom: 5px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-brand:hover { opacity: 1; }

.footer-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

/* ============================================================
   HOLOGRAM EFFECT
   ============================================================ */
.hologram {
  position: relative;
  overflow: hidden;
}

.hologram::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 212, 255, 0.03) 40%,
    rgba(0, 212, 255, 0.06) 50%,
    rgba(0, 212, 255, 0.03) 60%,
    transparent 70%
  );
  animation: hologramScan 4s linear infinite;
  pointer-events: none;
}

@keyframes hologramScan {
  from { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
  to { transform: translateX(100%) translateY(100%) rotate(0deg); }
}

/* ============================================================
   MEETING TYPE SELECTOR
   ============================================================ */
.meeting-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.meeting-type-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.meeting-type-btn:hover,
.meeting-type-btn.active {
  border-color: rgba(72,208,255,0.50);
  background: rgba(72,208,255,0.10);
}

.meeting-type-btn i {
  font-size: 20px;
  color: var(--primary);
}

.meeting-type-btn span {
  font-size: 10px;
  color: var(--text-secondary);
  font-family: var(--font-tech);
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  #sidebar {
    width: 60px;
    overflow: visible;
  }

  #sidebar .sidebar-label,
  #sidebar .sidebar-item span,
  #sidebar .dept-list,
  #sidebar .sidebar-badge,
  #sidebar .logo-text-wrap {
    display: none;
  }

  #sidebar .sidebar-item {
    justify-content: center;
    padding: 12px;
  }

  /* 사이드바 로고 영역 아이콘만 표시 */
  #sidebar .sidebar-logo-brand {
    justify-content: center;
    padding: 10px 0;
  }
  #sidebar .sidebar-logo-text {
    display: none;
  }

  #content-area {
    margin-left: 60px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .meeting-room {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .meeting-left,
  .meeting-right {
    display: none;
  }

  .topbar-nav {
    display: none;
  }

  .meeting-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
    width: 200px;
  }

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

  #content-area {
    margin-left: 0;
    padding: 16px;
    padding-bottom: 80px;
  }

  #topbar {
    padding: 0 12px;
  }

  .logo-text .logo-sub {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-value {
    font-size: 22px;
  }

  .meeting-room {
    grid-template-columns: 1fr;
    height: auto;
  }

  .meeting-left,
  .meeting-right {
    display: none;
  }

  .speaker-stage {
    min-height: 180px;
    padding: 16px;
  }

  .speaker-avatar-large {
    width: 90px;
    height: 90px;
  }

  .speaker-ring {
    width: 90px;
    height: 90px;
  }

  /* Mobile Bottom Nav */
  #mobile-nav {
    display: flex;
  }

  .topbar-nav {
    display: none;
  }

  .admin-container {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .admin-body {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 8px;
    overflow-x: auto;
    min-height: auto;
  }

  .admin-sidebar-item {
    flex-direction: column;
    font-size: 10px;
    padding: 8px 10px;
    min-width: 60px;
    text-align: center;
    gap: 4px;
  }

  .meeting-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Bottom Navigation */
#mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(8, 12, 25, 0.98);
  border-top: 1px solid var(--border-glow);
  z-index: 950;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(20px);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 10px;
  border: none;
  background: none;
}

.mobile-nav-btn.active,
.mobile-nav-btn:hover {
  color: var(--primary);
}

.mobile-nav-btn i {
  font-size: 18px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  animation: fadeIn 0.4s ease;
}

.slide-up {
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scale-in {
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   CAMERA OVERLAY
   ============================================================ */
.camera-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.camera-video-container {
  position: relative;
  width: min(640px, 90vw);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 40px var(--primary-glow);
}

.camera-video {
  width: 100%;
  display: block;
}

.camera-overlay-text {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--primary);
  background: rgba(0,0,0,0.6);
  padding: 4px 12px;
  border-radius: 20px;
}

.privacy-notice {
  max-width: 400px;
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 11px;
  color: var(--warning);
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

@media (max-width: 768px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
}

/* ============================================================
   SELECT CUSTOM STYLE
   ============================================================ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: 0.3s;
  border: 1px solid var(--border-subtle);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--primary);
}

/* PRINT STYLES */
@media print {
  #topbar, #sidebar, #mobile-nav,
  .meeting-input-bar, .btn { display: none !important; }
  #content-area { margin-left: 0 !important; padding: 0 !important; }
  body { background: white; color: black; }
  .glass-card { border: 1px solid #ccc; background: white; }
}

/* ── LOGIN SCREEN ─────────────────────────────── */
#topbar-branch-info {
  display: flex;
  align-items: center;
}

/* 상단바 지점 정보가 너무 길어질 때 줄바꿈 방지 */
@media (max-width: 768px) {
  #topbar-branch-info .credit-bar-wrap {
    display: none;
  }
}

/* 등급 배지 */
.grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.grade-bronze  { background: rgba(205,127,50,0.15); color: #cd7f32; border: 1px solid rgba(205,127,50,0.3); }
.grade-silver  { background: rgba(192,192,192,0.15); color: #c0c0c0; border: 1px solid rgba(192,192,192,0.3); }
.grade-gold    { background: rgba(255,215,0,0.15);  color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
.grade-diamond { background: rgba(185,242,255,0.15);color: #b9f2ff; border: 1px solid rgba(185,242,255,0.3); }

/* 마스터 관리자 탭 스타일 */
.admin-sidebar-item.master-tab {
  border-left: 2px solid var(--gold);
  color: var(--gold) !important;
}
.admin-sidebar-item.master-tab i {
  color: var(--gold);
}

/* btn-gold 스타일 (없는 경우 추가) */
.btn-gold {
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.1));
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  width: 100%;
}
.btn-gold:hover {
  background: rgba(212,175,55,0.25);
  box-shadow: 0 0 15px rgba(212,175,55,0.3);
}

/* ============================================================
   DRAG & DROP - 팀·에이전트 관리 D&D 스타일
   ============================================================ */

/* 팀 블록 드래그 */
.dept-block {
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: default;
}
.dept-block .dept-drag-handle {
  cursor: grab;
  color: rgba(255,255,255,0.25);
  font-size: 14px;
  padding: 0 6px;
  transition: color 0.2s;
  user-select: none;
  touch-action: none;
}
.dept-block .dept-drag-handle:hover {
  color: rgba(255,255,255,0.7);
}
.dept-block.dragging {
  opacity: 0.45;
  transform: scale(0.98);
  box-shadow: 0 0 0 2px var(--primary), 0 8px 32px rgba(0,212,255,0.25);
  z-index: 100;
}
.dept-block.drag-over-top {
  border-top: 2px solid var(--primary) !important;
  box-shadow: 0 -4px 12px rgba(72,208,255,0.35);
}
.dept-block.drag-over-bottom {
  border-bottom: 2px solid var(--primary) !important;
  box-shadow: 0 4px 12px rgba(72,208,255,0.35);
}

/* 에이전트 카드 드래그 */
.agent-card {
  transition: opacity 0.18s, transform 0.15s, box-shadow 0.18s;
  cursor: pointer;
  position: relative;
}
.agent-card .agent-drag-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  cursor: grab;
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0;
  z-index: 2;
  user-select: none;
  touch-action: none;
}
.agent-card:hover .agent-drag-handle {
  opacity: 1;
  color: rgba(255,255,255,0.6);
}
.agent-card.dragging {
  opacity: 0.4;
  transform: scale(0.93) rotate(1.5deg);
  box-shadow: 0 0 0 2px var(--secondary), 0 8px 24px rgba(255,215,0,0.2);
  z-index: 200;
}
.agent-card.drag-over {
  transform: scale(1.04);
  box-shadow: 0 0 0 2px var(--primary), 0 4px 16px rgba(0,212,255,0.3);
}

/* 팀 드롭존 (에이전트를 팀에 드롭할 때) */
.dept-agents-grid {
  min-height: 60px;
  transition: background 0.2s, box-shadow 0.2s;
}
.dept-agents-grid.drop-zone-active {
  background: rgba(72,208,255,0.07) !important;
  box-shadow: inset 0 0 0 2px rgba(72,208,255,0.40);
  border-radius: 8px;
}

/* 드래그 중 커서 */
body.dnd-dragging-dept  * { cursor: grabbing !important; }
body.dnd-dragging-agent * { cursor: grabbing !important; }

/* ============================================================
   WINDOW MANAGER — Fullscreen / Windowed / Drag / Resize
   ============================================================ */

/* ── 전체화면/창모드 토글 버튼 (topbar/header 공용) ── */
.btn-winmode {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
  overflow: hidden;
}
.btn-winmode::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 100%);
  border-radius: 9px 9px 0 0;
  pointer-events: none;
}
.btn-winmode:hover {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.35);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(56,189,248,0.15), 0 2px 8px rgba(0,0,0,0.4);
  transform: scale(1.08);
}
.btn-winmode:active {
  transform: scale(0.95);
}
.btn-winmode.is-fullscreen {
  background: rgba(56,189,248,0.10);
  border-color: rgba(56,189,248,0.28);
  color: var(--primary);
}
.btn-winmode.is-fullscreen:hover {
  background: rgba(244,63,94,0.12);
  border-color: rgba(244,63,94,0.35);
  color: #f87171;
  box-shadow: 0 0 12px rgba(244,63,94,0.12);
}

/* ── 플로팅 창 컨테이너 ── */
#wm-float-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
}

/* ── 플로팅 창 (window-mode) ── */
.wm-window {
  position: absolute;
  pointer-events: all;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  /* Gloss surface */
  background: linear-gradient(165deg, rgba(10,15,34,0.98) 0%, rgba(7,11,26,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-top-color: rgba(255,255,255,0.16);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.08) inset,
    0 -1px 0 rgba(0,0,0,0.5) inset,
    0 32px 80px rgba(0,0,0,0.85),
    0 8px 32px rgba(0,0,0,0.65),
    0 0 0 1px rgba(0,0,0,0.4);
  will-change: transform;
  transition: box-shadow 0.2s;
}
.wm-window.wm-dragging {
  box-shadow:
    0 2px 0 rgba(255,255,255,0.08) inset,
    0 -1px 0 rgba(0,0,0,0.5) inset,
    0 48px 120px rgba(0,0,0,0.9),
    0 12px 40px rgba(56,189,248,0.08),
    0 0 0 1px rgba(0,0,0,0.5);
  transition: none;
}
.wm-window.wm-resizing {
  transition: none;
  user-select: none;
}

/* ── 창 타이틀바 (드래그 핸들) ── */
.wm-titlebar {
  height: 42px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 16px;
  cursor: grab;
  flex-shrink: 0;
  position: relative;
  user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.01) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.wm-titlebar:active { cursor: grabbing; }
.wm-titlebar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22) 50%, transparent);
}

.wm-titlebar-left {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  pointer-events: none;
}
.wm-titlebar-left i { color: var(--primary); font-size: 10px; }

/* 트래픽라이트 버튼 (macOS 스타일) */
.wm-trafficlights {
  display: flex; align-items: center; gap: 6px;
  pointer-events: all;
}
.wm-tl {
  width: 12px; height: 12px; border-radius: 50%;
  border: none; cursor: pointer;
  position: relative; flex-shrink: 0;
  transition: filter 0.15s, transform 0.15s;
}
.wm-tl:hover { filter: brightness(1.3); transform: scale(1.15); }
.wm-tl:active { transform: scale(0.9); }
.wm-tl-close  { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.4); }
.wm-tl-min    { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.3); }
.wm-tl-expand { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.3); }
.wm-tl-close::before  { content:'×'; position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:9px;color:rgba(0,0,0,0.6);opacity:0;transition:opacity 0.1s; }
.wm-tl-min::before    { content:'−'; position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:9px;color:rgba(0,0,0,0.6);opacity:0;transition:opacity 0.1s; }
.wm-tl-expand::before { content:'+'; position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:9px;color:rgba(0,0,0,0.6);opacity:0;transition:opacity 0.1s; }
.wm-trafficlights:hover .wm-tl::before { opacity: 1; }

/* ── 창 콘텐츠 영역 ── */
.wm-content {
  flex: 1;
  overflow: auto;
  position: relative;
  /* 내부 스크롤 */
  -webkit-overflow-scrolling: touch;
}

/* ── 8방향 리사이즈 핸들 ── */
.wm-resize-handle {
  position: absolute;
  z-index: 10;
}
/* 모서리 */
.wm-resize-handle.nw { top:-4px;    left:-4px;   width:16px; height:16px; cursor:nw-resize; border-radius:16px 0 0 0; }
.wm-resize-handle.ne { top:-4px;    right:-4px;  width:16px; height:16px; cursor:ne-resize; border-radius:0 16px 0 0; }
.wm-resize-handle.sw { bottom:-4px; left:-4px;   width:16px; height:16px; cursor:sw-resize; border-radius:0 0 0 16px; }
.wm-resize-handle.se { bottom:-4px; right:-4px;  width:16px; height:16px; cursor:se-resize; border-radius:0 0 16px 0; }
/* 변 */
.wm-resize-handle.n  { top:-4px;    left:16px;   right:16px; height:8px;  cursor:n-resize;  }
.wm-resize-handle.s  { bottom:-4px; left:16px;   right:16px; height:8px;  cursor:s-resize;  }
.wm-resize-handle.w  { left:-4px;   top:16px;    bottom:16px; width:8px;  cursor:w-resize;  }
.wm-resize-handle.e  { right:-4px;  top:16px;    bottom:16px; width:8px;  cursor:e-resize;  }
/* SE 코너 시각 힌트 */
.wm-resize-handle.se::after {
  content: '';
  position: absolute;
  bottom: 6px; right: 6px;
  width: 10px; height: 10px;
  background: radial-gradient(circle at bottom right,
    rgba(56,189,248,0.35) 0%, transparent 70%);
  border-right: 2px solid rgba(56,189,248,0.25);
  border-bottom: 2px solid rgba(56,189,248,0.25);
  border-radius: 0 0 4px 0;
}

/* ── 전체화면 진입 시 앱 래퍼 스타일 ── */
body.app-fullscreen #topbar {
  padding-right: 56px; /* 버튼 공간 확보 */
}

/* ── 창모드 진입 시 배경 딤 ── */
#wm-backdrop {
  position: fixed; inset: 0; z-index: 7999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
#wm-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── 창 최소화(숨김) 상태 ── */
.wm-window.wm-minimized {
  display: none;
}

/* ── 창 모드 전환 애니메이션 ── */
@keyframes wmPopIn {
  from { opacity:0; transform:scale(0.88) translateY(12px); }
  to   { opacity:1; transform:scale(1)    translateY(0); }
}
@keyframes wmPopOut {
  from { opacity:1; transform:scale(1); }
  to   { opacity:0; transform:scale(0.88) translateY(12px); }
}
.wm-window {
  animation: wmPopIn 0.28s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

/* ── 랜딩 페이지 전체화면 버튼 (우상단 고정) ── */
#landing-fullscreen-btn {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 9999;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,15,34,0.85);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all 0.22s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
#landing-fullscreen-btn:hover {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.4);
  color: var(--primary);
  box-shadow: 0 0 16px rgba(56,189,248,0.15);
  transform: scale(1.08);
}
#landing-fullscreen-btn.is-fullscreen {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.3);
  color: var(--primary);
}

/* ── 창 모드 시 body overflow 차단 ── */
body.wm-window-open {
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   AI 스튜디오 - 왼쪽 에이전트 패널 스타일
   ══════════════════════════════════════════════════════════ */

/* 스튜디오 에이전트 패널 컨테이너 */
.studio-agent-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: rgba(7,11,26,0.80);
  border-right: 1px solid rgba(255,255,255,0.10);
  width: 170px !important;
  min-width: 160px !important;
  max-width: 180px !important;
  flex-shrink: 0;
}

/* 패널 헤더 */
.studio-panel-header {
  padding: 14px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.studio-panel-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 4px;
}
.studio-panel-sub {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* 에이전트 리스트 */
.studio-agent-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.studio-agent-list::-webkit-scrollbar { width: 3px; }
.studio-agent-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* 개별 에이전트 카드 */
.studio-agent-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
  user-select: none;
}
.studio-agent-card:hover {
  border-color: rgba(72,208,255,0.40);
  background: rgba(72,208,255,0.08);
  transform: translateX(2px);
}
.studio-agent-card.agent-focused {
  border-color: var(--primary) !important;
  background: rgba(72,208,255,0.12) !important;
  box-shadow: 0 0 16px rgba(72,208,255,0.20), inset 0 0 10px rgba(72,208,255,0.06);
}

/* 아바타 */
.sac-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden; /* 얼굴 이미지 원형 클리핑 */
  transition: border-color 0.25s, box-shadow 0.25s;
}
.studio-agent-card.agent-focused .sac-avatar {
  box-shadow: 0 0 0 2px var(--primary), 0 0 12px rgba(56,189,248,0.4);
}
.sac-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.sac-focused-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  animation: micPulse 1.5s infinite;
}

/* 에이전트 정보 */
.sac-info {
  flex: 1;
  min-width: 0;
}
.sac-name {
  font-size: 12px;
  font-weight: 700;
  color: #f5faff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.sac-title {
  font-size: 9px;
  color: rgba(160,190,230,0.80);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.sac-engine {
  display: inline-block;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid;
  letter-spacing: 0.5px;
}

/* 활성 표시기 */
.sac-active-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* 패널 푸터 */
.studio-panel-footer {
  padding: 8px 6px 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

/* meeting-room에서 left 폭 조정 */
.meeting-room {
  display: grid;
  grid-template-columns: 170px 1fr 220px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .studio-agent-panel {
    display: none;
  }
  .meeting-room {
    grid-template-columns: 1fr 200px;
  }
}
