:root {
  /* ========================================================
     Raycast 럭셔리 다크모드 팔레트 (형광색 배제, 깊은 절제미)
  ======================================================== */
  --bg-obsidian: #08090c;
  --panel-metal-dark: #0f1217;
  --panel-metal-mid: #151a22;
  --panel-metal-light: #1f2633;
  --metal-groove: #090c10;
  --specular-border: rgba(255, 255, 255, 0.09);
  --specular-bright: rgba(255, 255, 255, 0.18);
  
  /* 시그니처 앰비언트 광선 (Raycast Ruby & Warm Amber) */
  --ray-crimson: #ff335c;
  --ray-crimson-soft: rgba(255, 51, 92, 0.22);
  --ray-crimson-glow: rgba(255, 51, 92, 0.45);
  
  --emerald-verified: #00d68f;
  --emerald-glow: rgba(0, 214, 143, 0.4);
  
  --hazard-dark: #12141a;
  --hazard-amber: #c88a24; /* 톤다운된 세련된 인더스트리얼 엠버 */

  /* 타이포그래피 & 텍스트 명도 (가독성 최우선 확보) */
  --text-pure: #ffffff;
  --text-high: #f1f5f9;
  --text-sub: #94a3b8; /* WCAG 4.8:1 이상 표준 충족 */
  --text-muted: #64748b;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-hud: 'Orbitron', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-obsidian);
  color: var(--text-high);
  font-family: var(--font-ui);
  position: relative;
  letter-spacing: -0.01em;
}

/* ========================================================
   시네마틱 필름 그레인 노이즈 & 앰비언트 광선 오버레이
======================================================== */
.film-grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.ambient-ray-glow {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255, 51, 92, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(138, 43, 226, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 15% 85%, rgba(0, 214, 143, 0.04) 0%, transparent 50%);
  filter: blur(40px);
}

/* ========================================================
   1. 내부 사령부 브릿지 룸 (배경)
======================================================== */
/* ========================================================
   1. 내부 3-티어 보안 챔버 룸 (배경 & 메인 뷰포트)
======================================================== */
.bridge-room {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem 3rem 2rem;
  background: radial-gradient(circle at 50% 20%, #11151e 0%, #07080b 85%, #030405 100%);
  z-index: 1;
  transform: scale(0.92);
  filter: blur(6px);
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), filter 1.4s ease;
}

body.door-opened .bridge-room {
  transform: scale(1);
  filter: blur(0);
}

.stars-backdrop {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 40px 60px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 120px 180px, rgba(255, 51, 92, 0.6), transparent),
    radial-gradient(1px 1px at 220px 90px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 320px 240px, rgba(200, 138, 36, 0.6), transparent);
  background-size: 380px 380px;
  opacity: 0.55;
  pointer-events: none;
}

.nebula-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 51, 92, 0.09) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ===============================================
   상단 2-Tier 하이엔드 네비게이션 HUD (박스 찌그러짐 원천 방지)
=============================================== */
.bridge-navbar {
  width: 100%;
  max-width: 1140px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.4rem;
  background: rgba(15, 18, 23, 0.82);
  border: 1px solid var(--specular-border);
  border-top: 1px solid var(--specular-bright);
  border-radius: 14px;
  backdrop-filter: blur(24px);
  margin-bottom: 2rem;
  z-index: 10;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 1행: 상태 텔레메트리 & 퀵 유틸리티 바 */
.hud-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem;
  background: rgba(0, 214, 143, 0.08);
  border: 1px solid rgba(0, 214, 143, 0.3);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--emerald-verified);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-verified);
  box-shadow: 0 0 8px var(--emerald-verified);
  animation: gentlePulse 2s infinite;
  flex-shrink: 0;
}

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

.clearance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap !important;
  flex-shrink: 0;
}
.clearance-badge.badge-guest {
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.35);
  color: var(--emerald-verified);
}
.clearance-badge.badge-vip {
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.4);
  color: #c77dff;
}
.clearance-badge.badge-admin {
  background: rgba(255, 51, 92, 0.15);
  border: 1px solid rgba(255, 51, 92, 0.4);
  color: var(--ray-crimson);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-right .action-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  white-space: nowrap !important;
  flex-shrink: 0;
}

/* 2행: 독립된 전폭 섹터 & 데크 네비게이션 트랙 */
.hud-deck-row {
  display: flex;
  align-items: center;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.chamber-switcher-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  flex-wrap: wrap;
  background: rgba(8, 11, 16, 0.85);
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--specular-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

.switcher-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.35rem;
  letter-spacing: 1px;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.chamber-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap !important;
  flex-shrink: 0;
  user-select: none;
}

.tab-deck-num {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap !important;
}

.chamber-tab-btn:hover {
  color: var(--text-high);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.chamber-tab-btn.active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.chamber-tab-btn.active .tab-deck-num {
  background: rgba(0, 214, 143, 0.25);
  color: var(--emerald-verified);
}

/* 개별 챔버 컨테이너 */
.vault-chamber {
  width: 100%;
  max-width: 1140px;
  display: none;
  animation: chamberFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 5;
}
.vault-chamber.active {
  display: block;
}

@keyframes chamberFade {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chamber-header {
  text-align: center;
  margin-bottom: 2rem;
}
.chamber-subtag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--emerald-verified);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.chamber-header.vip-theme .chamber-subtag { color: #c77dff; }
.chamber-header.admin-theme .chamber-subtag { color: var(--ray-crimson); }

.chamber-title {
  font-family: var(--font-hud);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #ffffff 40%, #8896ab 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.chamber-desc {
  font-size: 0.98rem;
  color: var(--text-sub);
  margin-top: 0.5rem;
}

.notice-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.4rem 1.1rem;
  background: rgba(200, 138, 36, 0.08);
  border: 1px solid rgba(200, 138, 36, 0.25);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ffca3a;
}

/* 그리드 레이아웃 공통 */
.guest-grid, .vip-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* 관리자 CMS 패널 전폭 레이아웃 (박스 가로 확장) */
.admin-grid {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 100%;
}

.feature-card, .asset-card, .admin-panel {
  background: rgba(18, 22, 30, 0.75);
  border: 1px solid var(--specular-border);
  border-top: 1px solid var(--specular-bright);
  border-radius: 14px;
  padding: 1.8rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover, .asset-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--emerald-verified);
  margin-bottom: 0.8rem;
}
.feature-card h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}
.tech-pill {
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-high);
}

.tier-list {
  list-style: none;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-sub);
}
.tier-list code {
  background: rgba(255, 51, 92, 0.15);
  color: var(--ray-crimson);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.tele-item {
  background: rgba(8, 10, 14, 0.55);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
}
.tele-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}
.tele-val {
  font-family: var(--font-hud);
  font-size: 0.95rem;
  color: #fff;
  margin-top: 0.3rem;
}
.tele-val.highlight {
  color: var(--emerald-verified);
}

/* VIP 전용 에셋 카드 */
.asset-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.asset-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.asset-info h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.asset-info p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.asset-meta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #c77dff;
  margin-bottom: 1.2rem;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(157, 78, 221, 0.4);
  border-top: 1px solid rgba(224, 170, 255, 0.5);
  background: linear-gradient(180deg, rgba(157, 78, 221, 0.28) 0%, rgba(123, 44, 191, 0.16) 100%);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.2);
}
.download-btn:hover {
  background: #9d4edd;
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
  transform: translateY(-2px);
}

.secret-token-card .token-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 10, 14, 0.7);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(157, 78, 221, 0.3);
  margin-top: 0.5rem;
}
.secret-token-card code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #e0aaff;
  flex: 1;
}
.copy-btn {
  background: rgba(157, 78, 221, 0.25);
  border: 1px solid rgba(157, 78, 221, 0.5);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { background: #9d4edd; }

/* ADMIN CMS 패널 */
.admin-panel {
  background: rgba(18, 22, 30, 0.78);
  border: 1px solid var(--specular-border);
  border-top: 1px solid var(--specular-bright);
  border-radius: 14px;
  padding: 2rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.06);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.9rem;
}
.panel-header h3 {
  font-size: 1.2rem;
  color: #fff;
}
.panel-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-verified);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
}

.admin-input, .admin-textarea {
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid var(--specular-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  transition: all 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.admin-input.mono {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-align: center;
  font-weight: 700;
}

.admin-input:focus, .admin-textarea:focus {
  border-color: var(--ray-crimson);
  box-shadow: 0 0 14px var(--ray-crimson-soft);
}

/* 3개 패스코드 인풋이 넉넉하게 가로로 시원하게 배치되는 반응형 그리드 */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  width: 100%;
  box-sizing: border-box;
}

.form-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 감사 터미널 */
.audit-terminal {
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.term-line {
  color: #94a3b8;
  word-break: break-all;
}
.term-line.sys { color: #38bdf8; }
.term-line.auth { color: var(--emerald-verified); }
.term-line.admin { color: var(--ray-crimson); }
.term-line.vip { color: #c77dff; }
.clear-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  cursor: pointer;
}
.clear-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* 버튼 공통 */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.action-btn.danger {
  border-color: rgba(255, 51, 92, 0.35);
  border-top: 1px solid rgba(255, 100, 130, 0.5);
  background: linear-gradient(180deg, rgba(255, 51, 92, 0.2) 0%, rgba(255, 51, 92, 0.08) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 51, 92, 0.15);
}
.action-btn.danger:hover {
  background: var(--ray-crimson);
  box-shadow: 0 0 25px var(--ray-crimson-glow);
  transform: translateY(-2px);
}
.action-btn.success {
  border-color: rgba(0, 214, 143, 0.35);
  background: linear-gradient(180deg, rgba(0, 214, 143, 0.25) 0%, rgba(0, 214, 143, 0.1) 100%);
  color: #fff;
}
.action-btn.success:hover {
  background: var(--emerald-verified);
  box-shadow: 0 0 20px var(--emerald-glow);
  transform: translateY(-2px);
}
.action-btn.warning {
  border-color: rgba(200, 138, 36, 0.35);
  background: linear-gradient(180deg, rgba(200, 138, 36, 0.25) 0%, rgba(200, 138, 36, 0.1) 100%);
  color: #fff;
}
.action-btn.warning:hover {
  background: var(--hazard-amber);
  transform: translateY(-2px);
}

/* ========================================================
   2. 에어락 오버레이 및 3D 어셈블리 뷰포트
======================================================== */
.airlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: auto;
  overflow: hidden;
  perspective: 1500px;
}

body.door-opened .airlock-overlay {
  pointer-events: none;
}

.door-assembly-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* ========================================================
   3. 4대 방폭 톱니 도어 블레이드 (Door Blades - Raycast Obsidian)
======================================================== */
.door-blade {
  position: absolute;
  background: 
    linear-gradient(135deg, #181d26 0%, #10141a 50%, #090b0f 100%);
  border: 1px solid var(--specular-border);
  box-shadow: 
    inset 0 0 100px rgba(0,0,0,0.95),
    0 20px 60px rgba(0,0,0,0.95),
    0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 10;
  transform-origin: center;
  transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1);
  overflow: hidden;
}

.blade-surface {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15px 15px, rgba(255,255,255,0.04) 1.5px, transparent 1.5px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 30px 30px, 45px 45px, 45px 45px;
}

/* 금속 음각 프레임 홈 (1px Specular Grooves) */
.metal-groove {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.85);
  pointer-events: none;
}

/* 다크 티타늄 보강 리브 빔 (Dark Titanium Brace) */
.reinforce-rib {
  position: absolute;
  height: 32px;
  width: 140%;
  background: linear-gradient(180deg, #252d3a 0%, #141821 50%, #0b0e13 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 2px solid #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.9);
  pointer-events: none;
}

/* 세련된 톤다운 인더스트리얼 엠버 줄무늬 */
.hazard-stripe {
  position: absolute;
  height: 16px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--hazard-dark),
    var(--hazard-dark) 16px,
    var(--hazard-amber) 16px,
    var(--hazard-amber) 32px
  );
  opacity: 0.85;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.blade-mark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ========================================================
   유압 락핀 결합 소켓 (Dark Gunmetal Socket Plates)
======================================================== */
.socket-plate {
  position: absolute;
  background: linear-gradient(180deg, #1f2532 0%, #12161f 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  z-index: 15;
}

.pin-receiver-hole {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #020304 45%, #181d26 100%);
  border: 2px solid #3c485c;
  box-shadow: inset 0 0 12px #000;
}

.socket-lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ========================================================
   각 쉐브론 블레이드 위치 및 클립패스
======================================================== */
/* 1. TOP BLADE */
.blade-top {
  top: 0;
  left: 0;
  width: 100vw;
  height: 52vh;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 58% 80%, 42% 80%, 30% 100%);
  transform-origin: 50% 0%;
}
.blade-top .hazard-stripe { top: 0; left: 0; }
.blade-top .rib-left { top: 40%; left: -10%; transform: rotate(32deg); }
.blade-top .rib-right { top: 40%; right: -10%; transform: rotate(-32deg); }
.blade-top .socket-top {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}
.blade-top .blade-mark { top: 32px; left: 40px; }

/* 2. BOTTOM BLADE */
.blade-bottom {
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 52vh;
  clip-path: polygon(30% 0, 42% 20%, 58% 20%, 70% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
}
.blade-bottom .hazard-stripe { bottom: 0; left: 0; }
.blade-bottom .rib-left { bottom: 40%; left: -10%; transform: rotate(-32deg); }
.blade-bottom .rib-right { bottom: 40%; right: -10%; transform: rotate(32deg); }
.blade-bottom .socket-bottom {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}
.blade-bottom .blade-mark { bottom: 32px; left: 40px; }

/* 3. LEFT BLADE */
.blade-left {
  top: 0;
  left: 0;
  width: 52vw;
  height: 100vh;
  clip-path: polygon(0 0, 100% 30%, 80% 42%, 80% 58%, 100% 70%, 0 100%);
  transform-origin: 0% 50%;
}
.blade-left .hazard-stripe { top: 0; left: 0; width: 16px; height: 100%; background: repeating-linear-gradient(45deg, var(--hazard-dark), var(--hazard-dark) 16px, var(--hazard-amber) 16px, var(--hazard-amber) 32px); }
.blade-left .rib-top { top: 25%; left: 0; transform: rotate(20deg); }
.blade-left .rib-bottom { bottom: 25%; left: 0; transform: rotate(-20deg); }
.blade-left .socket-left {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.blade-left .blade-mark { bottom: 40px; left: 35px; }

/* 4. RIGHT BLADE */
.blade-right {
  top: 0;
  right: 0;
  width: 52vw;
  height: 100vh;
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%, 20% 58%, 20% 42%);
  transform-origin: 100% 50%;
}
.blade-right .hazard-stripe { top: 0; right: 0; width: 16px; height: 100%; background: repeating-linear-gradient(-45deg, var(--hazard-dark), var(--hazard-dark) 16px, var(--hazard-amber) 16px, var(--hazard-amber) 32px); }
.blade-right .rib-top { top: 25%; right: 0; transform: rotate(-20deg); }
.blade-right .rib-bottom { bottom: 25%; right: 0; transform: rotate(20deg); }
.blade-right .socket-right {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.blade-right .blade-mark { bottom: 40px; right: 35px; }

/* ========================================================
   4. 도어 블레이드 열림 & 닫힘 3D 회전 애니메이션
======================================================== */
body.door-opened .blade-top {
  transform: translate3d(0, -112%, -380px) rotateX(45deg) rotateZ(14deg);
}
body.door-opened .blade-bottom {
  transform: translate3d(0, 112%, -380px) rotateX(-45deg) rotateZ(-14deg);
}
body.door-opened .blade-left {
  transform: translate3d(-112%, 0, -380px) rotateY(-45deg) rotateZ(-14deg);
}
body.door-opened .blade-right {
  transform: translate3d(112%, 0, -380px) rotateY(45deg) rotateZ(14deg);
}

/* 닫힐 때 쇄도 */
body.door-closing .blade-top {
  animation: slamInTop 1.1s cubic-bezier(0.18, 0.88, 0.32, 1.2) forwards;
}
body.door-closing .blade-bottom {
  animation: slamInBottom 1.1s cubic-bezier(0.18, 0.88, 0.32, 1.2) forwards;
}
body.door-closing .blade-left {
  animation: slamInLeft 1.1s cubic-bezier(0.18, 0.88, 0.32, 1.2) forwards;
}
body.door-closing .blade-right {
  animation: slamInRight 1.1s cubic-bezier(0.18, 0.88, 0.32, 1.2) forwards;
}

@keyframes slamInTop {
  0% { transform: translate3d(0, -112%, -380px) rotateX(45deg) rotateZ(14deg); }
  78% { transform: translate3d(0, 2%, 20px) rotateX(-3deg) rotateZ(-1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes slamInBottom {
  0% { transform: translate3d(0, 112%, -380px) rotateX(-45deg) rotateZ(-14deg); }
  78% { transform: translate3d(0, -2%, 20px) rotateX(3deg) rotateZ(1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes slamInLeft {
  0% { transform: translate3d(-112%, 0, -380px) rotateY(-45deg) rotateZ(-14deg); }
  78% { transform: translate3d(2%, 0, 20px) rotateY(3deg) rotateZ(1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes slamInRight {
  0% { transform: translate3d(112%, 0, -380px) rotateY(45deg) rotateZ(14deg); }
  78% { transform: translate3d(-2%, 0, 20px) rotateY(-3deg) rotateZ(-1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* ========================================================
   5. 중앙 거대 유압 락 메커니즘 (Rotor & 4 Hydraulic Pins)
======================================================== */
.central-vault-mechanism {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  z-index: 25;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 1.2s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.8s ease;
}

body.door-opened .central-vault-mechanism {
  transform: translate(-50%, -50%) scale(0.1) rotate(180deg);
  opacity: 0;
  pointer-events: none;
}

/* 중앙 락 휠 */
.iris-rotor {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a202c 0%, #0d1117 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.9), inset 0 0 20px rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotor-teeth-ring {
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(255, 51, 92, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--ray-crimson-soft);
  animation: rotorSlowSpin 30s linear infinite;
}

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

.rotor-center-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.core-lock-icon {
  font-size: 2.1rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
  transition: transform 0.3s ease;
}

.core-status-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-sub);
  margin-top: 3px;
  font-weight: 700;
}

/* ========================================================
   4대 거대 유압 락핀 어셈블리 (The 4 Hydraulic Pin Units)
======================================================== */
.hydraulic-pin-unit {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 28;
}

.pin-up {
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column-reverse;
}
.pin-down {
  bottom: -65px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
}
.pin-left {
  left: -65px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: row-reverse;
}
.pin-right {
  right: -65px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: row;
}

/* 실린더 바디 */
.cylinder-barrel {
  background: linear-gradient(135deg, #262e3d 0%, #151a23 50%, #0a0d12 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 10px #000, 0 6px 16px rgba(0,0,0,0.9);
  border-radius: 6px;
  position: relative;
}

.pin-up .cylinder-barrel,
.pin-down .cylinder-barrel {
  width: 44px;
  height: 70px;
}
.pin-left .cylinder-barrel,
.pin-right .cylinder-barrel {
  width: 70px;
  height: 44px;
}

.pipe-feed {
  position: absolute;
  background: var(--ray-crimson);
  box-shadow: 0 0 8px var(--ray-crimson-soft);
}
.pin-up .pipe-feed, .pin-down .pipe-feed {
  width: 4px;
  height: 25px;
  top: 50%;
  left: -7px;
  transform: translateY(-50%);
}
.pin-left .pipe-feed, .pin-right .pipe-feed {
  width: 25px;
  height: 4px;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
}

/* 크롬 피스톤 샤프트 & 락 볼트 헤드 */
.piston-shaft {
  background: linear-gradient(90deg, #6c7c94 0%, #eef2f7 40%, #475366 80%);
  box-shadow: 0 0 12px rgba(255,255,255,0.25);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.pin-up .piston-shaft,
.pin-down .piston-shaft {
  width: 26px;
  height: 60px;
}
.pin-left .piston-shaft,
.pin-right .piston-shaft {
  width: 60px;
  height: 26px;
}

.pin-bolt-head {
  position: absolute;
  background: #1c222e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-up .pin-bolt-head {
  top: 0;
  width: 32px;
  height: 18px;
  border-radius: 4px 4px 0 0;
}
.pin-down .pin-bolt-head {
  bottom: 0;
  width: 32px;
  height: 18px;
  border-radius: 0 0 4px 4px;
}
.pin-left .pin-bolt-head {
  left: 0;
  width: 18px;
  height: 32px;
  border-radius: 4px 0 0 4px;
}
.pin-right .pin-bolt-head {
  right: 0;
  width: 18px;
  height: 32px;
  border-radius: 0 4px 4px 0;
}

/* 루비 레드 / 에메랄드 광학 LED */
.pin-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ray-crimson);
  box-shadow: 0 0 10px var(--ray-crimson-glow);
  transition: background-color 0.25s, box-shadow 0.25s;
}

/* 락핀 전진 (Locked) */
body.state-locked .pin-up .piston-shaft { transform: translateY(-38px); }
body.state-locked .pin-down .piston-shaft { transform: translateY(38px); }
body.state-locked .pin-left .piston-shaft { transform: translateX(-38px); }
body.state-locked .pin-right .piston-shaft { transform: translateX(38px); }
body.state-locked .pin-led {
  background: var(--ray-crimson);
  box-shadow: 0 0 12px var(--ray-crimson-glow);
}

/* 락핀 후퇴 (Unlocked) */
body.state-unlocked .pin-up .piston-shaft,
body.door-opened .pin-up .piston-shaft { transform: translateY(15px); }

body.state-unlocked .pin-down .piston-shaft,
body.door-opened .pin-down .piston-shaft { transform: translateY(-15px); }

body.state-unlocked .pin-left .piston-shaft,
body.door-opened .pin-left .piston-shaft { transform: translateX(15px); }

body.state-unlocked .pin-right .piston-shaft,
body.door-opened .pin-right .piston-shaft { transform: translateX(-15px); }

body.state-unlocked .pin-led,
body.door-opened .pin-led {
  background: var(--emerald-verified);
  box-shadow: 0 0 14px var(--emerald-glow);
}

/* ========================================================
   6. 스팀 분출 & 충돌 플래시 & 카메라 셰이크
======================================================== */
.steam-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.steam-burst {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 240, 255, 0.7) 0%, rgba(180, 200, 230, 0.15) 50%, transparent 70%);
  filter: blur(14px);
  animation: steamDissipate 1.1s ease-out forwards;
}

@keyframes steamDissipate {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

.slam-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.75) 0%, rgba(255, 51, 92, 0.25) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}

.slam-flash.active {
  animation: flashBurst 0.45s ease-out forwards;
}

@keyframes flashBurst {
  0% { opacity: 1; transform: scale(0.6); }
  50% { opacity: 0.6; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.4); }
}

body.screen-slam {
  animation: heavyCameraImpact 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes heavyCameraImpact {
  0% { transform: translate(0, 0); }
  15% { transform: translate(-8px, 8px); }
  30% { transform: translate(6px, -6px); }
  50% { transform: translate(-4px, 4px); }
  70% { transform: translate(2px, -2px); }
  100% { transform: translate(0, 0); }
}

/* ========================================================
   7. Raycast 스타일 기계식 키캡 키패드 HUD (우측 컴팩트 배치)
======================================================== */
.keypad-hud {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 260px;
  box-sizing: border-box;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

body.door-opened .keypad-hud {
  opacity: 0;
  transform: translateY(-50%) translateX(120px);
  pointer-events: none;
}

.hud-frame {
  background: rgba(14, 17, 23, 0.88);
  border: 1px solid var(--specular-border);
  border-top: 1px solid var(--specular-bright);
  border-radius: 16px;
  padding: 1.15rem;
  backdrop-filter: blur(28px);
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.85),
    0 0 20px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.5rem;
}

.hud-decor-bars {
  display: flex;
  gap: 3px;
}
.hud-decor-bars span {
  width: 4px;
  height: 10px;
  background: var(--ray-crimson);
  border-radius: 1px;
}

.hud-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: var(--text-sub);
  font-weight: 700;
}

.hud-display {
  background: #06080b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.55rem;
  text-align: center;
  margin-bottom: 0.85rem;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.9);
  transition: border-color 0.25s;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.hud-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  color: var(--text-sub);
  transition: color 0.25s;
  font-weight: 600;
  white-space: nowrap;
}

/* 디지털 LCD 별표 패스워드 스크린 (절대 크기 변동 없는 고정 컨테이너) */
.hud-pin-screen {
  background: #040608;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  margin: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  box-sizing: border-box;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.95), 0 0 10px rgba(0,0,0,0.5);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}
.hud-pin-screen::-webkit-scrollbar {
  display: none;
}

.pin-char-stream {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  color: var(--ray-crimson);
  text-shadow: 0 0 12px var(--ray-crimson-glow);
  transition: all 0.1s ease;
  line-height: 1;
  white-space: nowrap;
}

.pin-cursor {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  animation: blinkCursor 0.9s infinite;
  margin-left: 1px;
  line-height: 1;
}

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

.hud-instruction {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-subhint {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.5px;
  color: var(--ray-crimson);
  opacity: 0.8;
  margin-top: 0.2rem;
  white-space: nowrap;
}

/* SF 대형 입력완료(ENGAGE) 버튼 */
.hud-engage-bar {
  margin-top: 0.55rem;
}

.sf-engage-btn {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: linear-gradient(180deg, rgba(255, 51, 92, 0.2) 0%, rgba(255, 51, 92, 0.08) 100%);
  border: 1px solid rgba(255, 51, 92, 0.45);
  border-top: 1px solid rgba(255, 100, 130, 0.6);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(255, 51, 92, 0.2), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: all 0.15s ease;
  position: relative;
  box-sizing: border-box;
}

.sf-engage-btn:hover {
  background: var(--ray-crimson);
  box-shadow: 0 0 25px var(--ray-crimson-glow);
  transform: translateY(-1px);
}

.sf-engage-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.engage-status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-verified);
  box-shadow: 0 0 8px var(--emerald-verified);
  animation: gentlePulse 1.5s infinite;
}

.engage-bracket {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  opacity: 0.8;
}

/* ========================================================
   Raycast 스타일 정밀 기계식 키캡 버튼 (Tactile Keycaps)
======================================================== */
.hud-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.key-btn {
  background: linear-gradient(180deg, #222937 0%, #151922 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text-high);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.68rem 0;
  cursor: pointer;
  /* 실제 기계식 키캡의 두께와 그림자 */
  box-shadow: 
    0 3px 0 #090c10,
    0 5px 12px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transition: all 0.12s ease;
  position: relative;
}

.key-btn:hover {
  background: linear-gradient(180deg, #2b3345 0%, #191f2b 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* 누를 때 찰지게 들어가는 키캡 햅틱 피드백 */
.key-btn:active, .key-btn.active-press {
  transform: translateY(3px);
  box-shadow: 
    0 0 0 #090c10,
    0 2px 5px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.12);
  background: var(--ray-crimson);
  color: #fff;
}

.key-btn.func-clr {
  color: var(--ray-crimson);
  font-size: 0.95rem;
}
.key-btn.func-clr:hover {
  background: rgba(255, 51, 92, 0.15);
}

.key-btn.func-ent {
  color: var(--emerald-verified);
  font-size: 1.1rem;
}
.key-btn.func-ent:hover {
  background: rgba(0, 214, 143, 0.15);
}

.hud-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sound-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-sub);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  transition: all 0.2s;
}
.sound-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.hud-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

/* 터미널 상태 애니메이션 */
.hud-display.error {
  border-color: var(--ray-crimson);
  box-shadow: inset 0 0 15px rgba(255, 51, 92, 0.25);
  animation: hudShake 0.4s ease;
}
.hud-display.error .hud-status { color: var(--ray-crimson); }
.hud-display.error .hud-pin-screen {
  border-color: var(--ray-crimson);
  box-shadow: inset 0 0 15px rgba(255, 51, 92, 0.4);
}
.hud-display.error .pin-char-stream {
  color: #ff1744;
  text-shadow: 0 0 16px rgba(255, 23, 68, 0.9);
}

@keyframes hudShake {
  0%, 100% { transform: translateX(0); }
  25%, 75% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
}

.hud-display.success {
  border-color: var(--emerald-verified);
  box-shadow: inset 0 0 15px rgba(0, 214, 143, 0.25);
}
.hud-display.success .hud-status { color: var(--emerald-verified); }
.hud-display.success .hud-pin-screen {
  border-color: var(--emerald-verified);
  box-shadow: inset 0 0 15px rgba(0, 214, 143, 0.35);
}
.hud-display.success .pin-char-stream {
  color: var(--emerald-verified);
  text-shadow: 0 0 16px var(--emerald-glow);
}

/* 모바일 화면 대응 */
@media (max-width: 900px) {
  .keypad-hud {
    right: 50%;
    transform: translate(50%, 0);
    top: auto;
    bottom: 20px;
    width: min(280px, 92vw);
  }
  body.door-opened .keypad-hud {
    transform: translate(50%, 100vh);
  }
}

/* ===============================================
   MOTHERSHIP DECK 02: RADAR & DEEP-SPACE RECON STYLES
   =============================================== */
:root {
  --cyan-radar: #00e5ff;
  --cyan-radar-glow: rgba(0, 229, 255, 0.4);
  --cyan-radar-dim: rgba(0, 229, 255, 0.12);
  --cyan-radar-border: rgba(0, 229, 255, 0.28);
}

/* 레이더실 헤더 테마 */
.chamber-header.radar-theme .chamber-subtag {
  color: var(--cyan-radar);
}
.chamber-header.radar-theme .chamber-title {
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan-radar) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 룸 테마별 앰비언트 광선 */
.bridge-room.chamber-mode-radar .nebula-glow {
  background: radial-gradient(circle at 65% 30%, rgba(0, 229, 255, 0.12) 0%, transparent 65%);
}

/* 레이더 룸 대시보드 2열 그리드 */
.radar-dashboard-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .radar-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* 1. 레이더 스코프 패널 */
.radar-scope-panel {
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid var(--cyan-radar-border);
  border-radius: 14px;
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(0, 229, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scope-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  padding-bottom: 0.75rem;
}

.scope-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.radar-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-radar);
  box-shadow: 0 0 10px var(--cyan-radar);
  animation: radarDotPulse 1.5s infinite;
}

@keyframes radarDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.scope-title-wrap h3 {
  font-family: var(--font-orbitron);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-high);
}

.scope-actions {
  display: flex;
  gap: 0.4rem;
}

.scope-btn {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--cyan-radar);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.scope-btn:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--cyan-radar);
  box-shadow: 0 0 12px var(--cyan-radar-glow);
  transform: translateY(-1px);
}

/* 원형 레이더 스코프 뷰파인더 */
.radar-scope-display {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  margin: 0.5rem auto;
  position: relative;
  background: radial-gradient(circle, rgba(0, 32, 45, 0.85) 0%, rgba(3, 14, 22, 0.95) 60%, #02070c 100%);
  border: 2px solid rgba(0, 229, 255, 0.45);
  box-shadow: inset 0 0 45px rgba(0, 229, 255, 0.2), 0 0 35px rgba(0, 229, 255, 0.12);
  overflow: hidden;
  user-select: none;
}

@media (max-width: 460px) {
  .radar-scope-display {
    width: 290px;
    height: 290px;
  }
}

/* 360도 회전 스위프 빔 */
.radar-sweep-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(0, 229, 255, 0.45) 0deg,
    rgba(0, 229, 255, 0.18) 30deg,
    rgba(0, 229, 255, 0.04) 60deg,
    transparent 80deg,
    transparent 360deg
  );
  animation: radarSweep 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

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

/* 레이더 십자선 */
.radar-crosshair {
  position: absolute;
  background: rgba(0, 229, 255, 0.2);
  pointer-events: none;
  z-index: 1;
}
.radar-crosshair.h-axis {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}
.radar-crosshair.v-axis {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

/* 동심원 거리 링 */
.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 229, 255, 0.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}
.radar-ring.ring-100 { width: 32%; height: 32%; }
.radar-ring.ring-250 { width: 64%; height: 64%; }
.radar-ring.ring-500 { width: 94%; height: 94%; }

.ring-label {
  position: absolute;
  top: 4px;
  right: 14%;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(0, 229, 255, 0.5);
}

/* 방위각 라벨 */
.cardinal {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(0, 229, 255, 0.65);
  font-weight: 700;
  pointer-events: none;
  z-index: 3;
}
.cardinal.c-n { top: 8px; left: 50%; transform: translateX(-50%); }
.cardinal.c-e { right: 10px; top: 50%; transform: translateY(-50%); }
.cardinal.c-s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.cardinal.c-w { left: 10px; top: 50%; transform: translateY(-50%); }

/* 중앙 수신 코어 */
.radar-core-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid var(--cyan-radar);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.core-hub-center {
  font-size: 0.8rem;
}

.core-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--cyan-radar);
  animation: corePing 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes corePing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* 감지 블립 레이어 & 블립 마커 */
.radar-blips-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.radar-blip {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan-radar);
  border: 1px solid #fff;
  box-shadow: 0 0 14px var(--cyan-radar), 0 0 24px rgba(0, 229, 255, 0.8);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.radar-blip::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px solid var(--cyan-radar);
  animation: blipWave 2s infinite;
}

@keyframes blipWave {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.radar-blip:hover {
  transform: translate(-50%, -50%) scale(1.4);
  box-shadow: 0 0 20px #fff, 0 0 30px var(--cyan-radar);
}

.blip-tooltip {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 10, 16, 0.92);
  border: 1px solid var(--cyan-radar);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  z-index: 10;
}

.radar-blip:hover .blip-tooltip {
  opacity: 1;
}

/* 레이더 스코프 하단 텔레메트리 스트립 */
.radar-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
}

.r-tele-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgba(0, 229, 255, 0.04);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.1);
}

.r-lbl {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
}

.r-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-high);
}

.r-val.highlight {
  color: var(--cyan-radar);
}

/* 2. 주간 깃허브 트렌딩 순위 모니터링 허브 */
.trending-hub-panel {
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid var(--specular-border);
  border-radius: 14px;
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hub-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.hub-title-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-title-box h3 {
  font-family: var(--font-orbitron);
  font-size: 0.95rem;
  color: var(--text-high);
  letter-spacing: 0.05em;
}

.hub-period-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--emerald-verified);
  background: rgba(0, 214, 143, 0.12);
  border: 1px solid rgba(0, 214, 143, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

/* 필터 버튼 바 */
.trending-filter-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-high);
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan-radar);
  color: var(--cyan-radar);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* 트렌딩 레포지토리 리스트 */
.trending-repo-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.trending-repo-list::-webkit-scrollbar {
  width: 4px;
}
.trending-repo-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* 개별 레포 카드 */
.repo-card {
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* 컨테이너에 의해 카드가 강제로 찌그러지지 않고 고유 높이 보장 */
}

.repo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.25s;
}

.repo-card:hover {
  background: rgba(18, 24, 34, 0.9);
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.1);
}

.repo-card:hover::before {
  background: var(--cyan-radar);
  box-shadow: 0 0 12px var(--cyan-radar);
}

/* 레포 헤더 */
.repo-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.repo-identity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.repo-rank-badge {
  font-family: var(--font-orbitron);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.repo-card.rank-1 .repo-rank-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #111;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.repo-card.rank-2 .repo-rank-badge {
  background: linear-gradient(135deg, #e0e0e0, #a0a0a0);
  color: #111;
}
.repo-card.rank-3 .repo-rank-badge {
  background: linear-gradient(135deg, #cd7f32, #9a5316);
  color: #fff;
}

.repo-name-link {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-high);
  text-decoration: none;
  transition: color 0.2s;
}

.repo-name-link:hover {
  color: var(--cyan-radar);
  text-decoration: underline;
}

.repo-stars-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffb703;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.repo-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #c5ced9;
  margin: 0;
  word-break: keep-all; /* 한글 단어 단위 개행으로 자연스러운 줄바꿈 */
}

/* 레포 하단 메타 바 */
.repo-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.repo-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lang-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-high);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.weekly-spike {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--emerald-verified);
  font-weight: 600;
}

.sector-coord {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(0, 229, 255, 0.7);
}

.repo-visit-btn {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyan-radar);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.repo-visit-btn:hover {
  background: var(--cyan-radar);
  color: #03080e;
  box-shadow: 0 0 12px var(--cyan-radar-glow);
}

/* ===============================================
   MOTHERSHIP DECK 03: PROJECT MONITOR HUB STYLES
   =============================================== */
.chamber-header.monitor-theme .chamber-subtag {
  color: var(--emerald-verified);
}
.chamber-header.monitor-theme .chamber-title {
  background: linear-gradient(135deg, #ffffff 30%, var(--emerald-verified) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bridge-room.chamber-mode-monitor .nebula-glow {
  background: radial-gradient(circle at 45% 25%, rgba(0, 214, 143, 0.12) 0%, transparent 65%);
}

/* 1. 관제실 상단 실시간 요약 통계 HUD */
.monitor-stats-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (max-width: 800px) {
  .monitor-stats-hud {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-box {
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid rgba(0, 214, 143, 0.22);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0, 214, 143, 0.15);
  backdrop-filter: blur(10px);
}

.stat-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-val {
  font-family: var(--font-orbitron);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-high);
}

.stat-val.highlight-emerald {
  color: var(--emerald-verified);
  text-shadow: 0 0 14px var(--emerald-glow);
}
.stat-val.highlight-cyan {
  color: var(--cyan-radar);
  text-shadow: 0 0 14px var(--cyan-radar-glow);
}
.stat-val.highlight-gold {
  color: #ffb703;
  text-shadow: 0 0 14px rgba(255, 183, 3, 0.4);
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* 2. 검색창 & 카테고리 필터 패널 */
.monitor-controls-panel {
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid var(--specular-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  backdrop-filter: blur(10px);
}

.search-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(14, 18, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.65rem 2.4rem 0.65rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-high);
  outline: none;
  transition: all 0.25s ease;
}

.search-input:focus {
  border-color: var(--emerald-verified);
  box-shadow: 0 0 14px rgba(0, 214, 143, 0.25);
  background: rgba(18, 24, 34, 0.95);
}

.search-clear-btn {
  position: absolute;
  right: 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.search-clear-btn:hover {
  color: #fff;
}

.monitor-filter-bar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.m-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.m-filter-btn:hover {
  color: var(--text-high);
  border-color: rgba(255, 255, 255, 0.25);
}

.m-filter-btn.active {
  background: rgba(0, 214, 143, 0.15);
  border-color: var(--emerald-verified);
  color: var(--emerald-verified);
  box-shadow: 0 0 10px rgba(0, 214, 143, 0.25);
}

/* 3. 23개 프로젝트 실시간 카드 그리드 */
.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.15rem;
  margin-top: 1.25rem;
}

@media (max-width: 600px) {
  .project-cards-grid {
    grid-template-columns: 1fr;
  }
}

.p-card {
  background: rgba(10, 14, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.p-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: rgba(0, 214, 143, 0.3);
  transition: all 0.25s;
}

.p-card:hover {
  background: rgba(14, 20, 32, 0.95);
  border-color: rgba(0, 214, 143, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 214, 143, 0.15);
}

.p-card:hover::before {
  background: var(--emerald-verified);
  box-shadow: 0 0 12px var(--emerald-verified);
}

/* 카드 상단 배지 바 */
.p-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.p-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-high);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.p-meta-badges {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.p-docker-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: #48cae4;
}

.p-port-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: #ffb703;
}

/* 카드 타이틀 및 목표 */
.p-card-title-box h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.p-folder-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.p-card-goal {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* 기술 스택 알약 */
.p-tech-list {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.p-tech-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 카드 하단 액션 바 */
.p-card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.p-relative-time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

.p-action-btns {
  display: flex;
  gap: 0.4rem;
}

.p-btn-readme {
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.35);
  color: var(--emerald-verified);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.p-btn-readme:hover {
  background: var(--emerald-verified);
  color: #03080e;
  box-shadow: 0 0 12px var(--emerald-glow);
}

.p-btn-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 0.28rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.p-btn-copy:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* 4. 프로젝트 상세 README 모달 뷰어 (글래스모피즘 사이버 터미널) */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 10, 0.85);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.25s ease forwards;
}

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

.project-modal-dialog {
  width: 90%;
  max-width: 860px;
  max-height: 86vh;
  background: #080d15;
  border: 1px solid rgba(0, 214, 143, 0.4);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 214, 143, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopUp {
  from { transform: scale(0.95) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(14, 20, 30, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.modal-icon {
  font-size: 1.1rem;
}

.modal-title-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modal-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 214, 143, 0.15);
  color: var(--emerald-verified);
  border: 1px solid rgba(0, 214, 143, 0.3);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 51, 92, 0.2);
  color: #ff335c;
  border-color: #ff335c;
}

.modal-meta-bar {
  display: flex;
  gap: 1.25rem;
  padding: 0.6rem 1.25rem;
  background: rgba(10, 14, 20, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.modal-meta-bar .m-lbl {
  color: rgba(255, 255, 255, 0.4);
  margin-right: 0.25rem;
}

.modal-meta-bar code {
  color: var(--text-high);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: #05080e;
}

.modal-readme-scroll {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.65;
  color: #d1d5db;
}

.modal-readme-scroll h1,
.modal-readme-scroll h2,
.modal-readme-scroll h3 {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.35rem;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

.modal-readme-scroll h1 { font-size: 1.2rem; }
.modal-readme-scroll h2 { font-size: 1.05rem; }
.modal-readme-scroll h3 { font-size: 0.95rem; }

.modal-readme-scroll pre {
  background: #0a0f18;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  margin: 0.75rem 0;
}

.modal-readme-scroll code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-size: 0.78rem;
  color: var(--emerald-verified);
}

.modal-readme-scroll ul,
.modal-readme-scroll ol {
  padding-left: 1.4rem;
  margin: 0.5rem 0;
}

.modal-readme-scroll li {
  margin-bottom: 0.35rem;
}

.modal-readme-scroll hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 1.2rem 0;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(14, 20, 30, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.modal-action-btn {
  background: rgba(0, 214, 143, 0.12);
  border: 1px solid rgba(0, 214, 143, 0.35);
  color: var(--emerald-verified);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-action-btn:hover {
  background: var(--emerald-verified);
  color: #03080e;
}

/* ===============================================
   15. [NEW] 섹터-데크 계층형 네비게이션 & 드롭다운
=============================================== */
.sector-nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.sector-dropdown-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.sector-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.sector-name {
  white-space: nowrap !important;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.sector-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.sector-tab-btn.has-active {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--cyan-radar);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.tab-sector-icon {
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.sector-deck-count {
  font-size: 0.65rem;
  opacity: 0.75;
  font-family: var(--font-mono);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.dropdown-chevron {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

.sector-dropdown-wrap:hover .dropdown-chevron,
.sector-dropdown-wrap.open .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* 섹터 하위 데크 드롭다운 메뉴 */
.sector-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: rgba(10, 14, 22, 0.96);
  border: 1px solid var(--specular-border);
  border-top: 1px solid var(--specular-bright);
  border-radius: 10px;
  padding: 0.45rem;
  backdrop-filter: blur(28px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 229, 255, 0.08);
  z-index: 120;
  display: none;
  animation: dropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sector-dropdown-wrap:hover .sector-dropdown-menu,
.sector-dropdown-wrap.open .sector-dropdown-menu {
  display: block;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 0.35rem 0.6rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.35rem;
}

.dropdown-deck-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-high);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.dropdown-deck-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dropdown-deck-item.active {
  background: rgba(0, 214, 143, 0.1);
  border-color: rgba(0, 214, 143, 0.35);
  color: var(--emerald-verified);
}

.dropdown-deck-item .item-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.dropdown-deck-item .item-deck-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.dropdown-deck-item.active .item-deck-num {
  background: rgba(0, 214, 143, 0.25);
  color: var(--emerald-verified);
}

.dropdown-deck-item .item-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-deck-item .item-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* 🌌 모선 구역도 (DECK MAP) 런처 버튼 */
.deck-map-launcher-btn {
  background: rgba(142, 68, 173, 0.15);
  border: 1px solid rgba(175, 82, 222, 0.35);
  color: #d8b4fe;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.3rem;
  user-select: none;
}

.deck-map-launcher-btn:hover {
  background: rgba(175, 82, 222, 0.3);
  border-color: rgba(216, 180, 254, 0.6);
  color: #fff;
  box-shadow: 0 0 14px rgba(175, 82, 222, 0.4);
}

/* ===============================================
   16. [NEW] 사령실 데크 & 섹터 권한 매트릭스 테이블
=============================================== */
.deck-matrix-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--specular-border);
  border-radius: 10px;
  background: rgba(6, 9, 13, 0.7);
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

.deck-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.deck-matrix-table th {
  background: rgba(12, 17, 24, 0.95);
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--specular-border);
  white-space: nowrap;
}

.deck-matrix-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.deck-matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.matrix-input {
  background: rgba(12, 16, 22, 0.85);
  border: 1px solid var(--specular-border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  color: #fff;
  font-size: 0.82rem;
  font-family: var(--font-ui);
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.matrix-input:focus {
  border-color: var(--cyan-radar);
}

.matrix-select {
  background: rgba(12, 16, 22, 0.9);
  border: 1px solid var(--specular-border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  width: 100%;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
}

.matrix-select:focus {
  border-color: var(--emerald-verified);
}

.matrix-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.matrix-status-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--emerald-verified);
  cursor: pointer;
}

.matrix-status-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--emerald-verified);
}

.matrix-status-toggle input[type="checkbox"]:not(:checked) + .matrix-status-lbl {
  color: var(--text-muted);
}

.admin-sm-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-sm-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-sm-btn.primary {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--cyan-radar);
}

.admin-sm-btn.primary:hover {
  background: var(--cyan-radar);
  color: #03080e;
}

.admin-sm-btn.danger {
  background: rgba(255, 51, 92, 0.15);
  border-color: rgba(255, 51, 92, 0.4);
  color: var(--ray-crimson);
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
}

.admin-sm-btn.danger:hover {
  background: var(--ray-crimson);
  color: #fff;
}

.matrix-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.8rem;
}

/* ===============================================
   17. [NEW] 모선 전체 구역도 & 데크 매트릭스 모달
=============================================== */
.deck-map-dialog {
  max-width: 980px !important;
}

.deck-map-sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.sector-map-card {
  background: rgba(12, 16, 24, 0.75);
  border: 1px solid var(--specular-border);
  border-top: 1px solid var(--specular-bright);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.sector-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
}

.sector-map-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.sector-map-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.map-deck-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.map-deck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  background: rgba(6, 9, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-deck-row:hover {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.04);
}

.map-deck-row.active-deck {
  border-color: rgba(0, 214, 143, 0.45);
  background: rgba(0, 214, 143, 0.08);
}

.map-deck-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.map-deck-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
}

.map-deck-row.active-deck .map-deck-num {
  background: rgba(0, 214, 143, 0.25);
  color: var(--emerald-verified);
}

.map-deck-info h5 {
  font-size: 0.84rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.map-deck-info p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.map-deck-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-warp-btn {
  background: rgba(0, 214, 143, 0.12);
  border: 1px solid rgba(0, 214, 143, 0.3);
  color: var(--emerald-verified);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.map-warp-btn:hover {
  background: var(--emerald-verified);
  color: #03080e;
}

.map-warp-btn.locked {
  background: rgba(255, 51, 92, 0.08);
  border-color: rgba(255, 51, 92, 0.25);
  color: var(--ray-crimson);
  cursor: not-allowed;
}

.map-warp-btn.active-loc {
  background: rgba(0, 229, 255, 0.16);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  cursor: default;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

/* ===============================================
   19. [NEW] DECK 04: N8N 자동화 포털 & 링크 매니저
=============================================== */
.chamber-header.n8n-theme .chamber-subtag {
  color: var(--cyan-radar);
}

.notice-ticker.n8n-ticker {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--cyan-radar);
}

.n8n-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.highlight-purple {
  color: #c77dff !important;
  text-shadow: 0 0 12px rgba(199, 125, 255, 0.4);
}

/* n8n 카테고리 필터 버튼 */
.n8n-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
}

.n8n-filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.n8n-filter-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan-radar);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}

/* n8n 폼 카드 그리드 */
.n8n-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.4rem;
  width: 100%;
}

.n8n-card {
  background: rgba(14, 18, 26, 0.75);
  border: 1px solid var(--specular-border);
  border-top: 1px solid var(--specular-bright);
  border-radius: 14px;
  padding: 1.4rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.n8n-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-radar), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.n8n-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 229, 255, 0.18);
}

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

.n8n-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.n8n-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--cyan-radar);
  letter-spacing: 0.5px;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.n8n-cat-badge.cat-doc {
  background: rgba(0, 214, 143, 0.1);
  border-color: rgba(0, 214, 143, 0.3);
  color: var(--emerald-verified);
}

.n8n-cat-badge.cat-ai {
  background: rgba(199, 125, 255, 0.12);
  border-color: rgba(199, 125, 255, 0.3);
  color: #d8b4fe;
}

.n8n-cat-badge.cat-portal {
  background: rgba(255, 202, 58, 0.1);
  border-color: rgba(255, 202, 58, 0.3);
  color: #ffca3a;
}

.n8n-cat-badge.cat-license {
  background: rgba(255, 51, 92, 0.12);
  border-color: rgba(255, 51, 92, 0.3);
  color: var(--ray-crimson);
}

.n8n-cat-badge.cat-vscode {
  background: rgba(0, 122, 204, 0.15);
  border-color: rgba(0, 122, 204, 0.4);
  color: #38bdf8;
}

.n8n-cat-badge.cat-asset {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
  color: #f472b6;
}

.n8n-cat-badge.cat-code {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}

.n8n-cat-badge.cat-blueprint {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.4);
  color: #38bdf8;
}

.n8n-tunnel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--emerald-verified);
}

.n8n-card-main {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.n8n-card-icon {
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}

.n8n-card-text {
  flex: 1;
  min-width: 0;
}

.n8n-card-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.n8n-card-text p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.n8n-card-url-box {
  background: rgba(6, 9, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.n8n-card-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.n8n-open-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.22) 0%, rgba(0, 180, 216, 0.12) 100%);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.n8n-open-btn:hover {
  background: var(--cyan-radar);
  color: #03080e;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
}

.n8n-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.n8n-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* 사령실 N8N CRUD 아코디언 폼 */
.admin-collapse-panel {
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: dropdownSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.n8n-crud-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 0.85rem;
}

.n8n-crud-grid .form-group.full {
  grid-column: 1 / -1;
}

.url-truncate {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-radar);
}

.url-wrap {
  display: block;
  word-break: break-all;
  white-space: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.38;
  color: var(--cyan-radar);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.88;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  max-width: 235px;
}

.url-wrap:hover {
  opacity: 1;
  color: #fff;
}

#n8n-links-table {
  table-layout: auto;
  width: 100%;
}

#n8n-links-table th,
#n8n-links-table td {
  vertical-align: middle;
}

#n8n-links-table td:nth-child(2) {
  min-width: 190px;
}

#n8n-links-table td:nth-child(3) {
  white-space: nowrap !important;
}

#n8n-links-table td:nth-child(4) {
  max-width: 245px;
}

#n8n-links-table td:nth-child(6) {
  min-width: 175px;
  white-space: nowrap !important;
}

/* N8N & VIP 다운로드 에셋 활성화 / 비활성화 토글 버튼 */
.btn-toggle-n8n,
.btn-toggle-asset {
  font-size: 0.72rem !important;
  padding: 0.35rem 0.55rem !important;
  border-radius: 5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-toggle-n8n.is-active,
.btn-toggle-asset.is-active {
  background: rgba(0, 214, 143, 0.15) !important;
  border: 1px solid rgba(0, 214, 143, 0.45) !important;
  color: var(--emerald-verified) !important;
}

.btn-toggle-n8n.is-active:hover,
.btn-toggle-asset.is-active:hover {
  background: rgba(0, 214, 143, 0.28) !important;
  box-shadow: 0 0 10px rgba(0, 214, 143, 0.35);
}

.btn-toggle-n8n.is-inactive,
.btn-toggle-asset.is-inactive {
  background: rgba(148, 163, 184, 0.1) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  color: #94a3b8 !important;
  opacity: 0.85;
}

.btn-toggle-n8n.is-inactive:hover,
.btn-toggle-asset.is-inactive:hover {
  background: rgba(148, 163, 184, 0.22) !important;
  opacity: 1;
  color: #fff !important;
}

/* 삭제 2단계 확인 애니메이션 버튼 */
.btn-del-n8n.confirming,
.btn-del-asset.confirming {
  background: rgba(255, 51, 92, 0.35) !important;
  border-color: var(--ray-crimson) !important;
  color: #fff !important;
  animation: pulse-danger-btn 0.6s infinite alternate ease-in-out;
  box-shadow: 0 0 14px rgba(255, 51, 92, 0.7) !important;
  font-weight: 800;
}

@keyframes pulse-danger-btn {
  from {
    transform: scale(0.96);
    box-shadow: 0 0 6px rgba(255, 51, 92, 0.4);
  }
  to {
    transform: scale(1.04);
    box-shadow: 0 0 14px rgba(255, 51, 92, 0.8);
  }
}

/* 비활성화된 행 시각적 스타일링 */
.n8n-row-inactive td,
.asset-row-inactive td {
  opacity: 0.52;
  transition: opacity var(--transition-fast);
}

.n8n-row-inactive:hover td,
.asset-row-inactive:hover td {
  opacity: 0.88;
}

.n8n-row-inactive .btn-toggle-n8n,
.asset-row-inactive .btn-toggle-asset {
  opacity: 1 !important;
}

.n8n-offline-pill {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(255, 51, 92, 0.15);
  border: 1px solid rgba(255, 51, 92, 0.35);
  color: var(--ray-crimson);
  margin-left: 0.35rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ===============================================
   21. [MOBILE OPTIMIZATION] 스마트폰 모바일 화면 완벽 최적화
   =============================================== */
@media (max-width: 768px) {
  /* 1. 기본 바디 & 브릿지 룸 컨테이너 */
  body {
    overflow-x: hidden !important;
  }

  .bridge-room {
    padding: 0.75rem 0.75rem 3rem 0.75rem !important;
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* 2. 상단 2-Row 하이엔드 네비게이션 HUD */
  .bridge-navbar {
    padding: 0.75rem 0.8rem !important;
    gap: 0.65rem !important;
    margin-bottom: 1.2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
  }

  /* 1행: 상태 뱃지와 액션 버튼들을 스마트하게 2열 배치 */
  .hud-top-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    width: 100% !important;
  }

  .nav-left {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }

  .status-pill {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.62rem !important;
    flex-shrink: 0 !important;
  }

  .clearance-badge {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.62rem !important;
    max-width: 58% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .nav-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }

  .deck-map-launcher-btn {
    flex: 1 !important;
    margin-left: 0 !important;
    justify-content: center !important;
    padding: 0.4rem 0.55rem !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
  }

  .action-btn.danger {
    flex: 1.2 !important;
    justify-content: center !important;
    padding: 0.4rem 0.55rem !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
  }

  /* 2행: 데크 스위처 트랙 (컴팩트 랩) */
  .hud-deck-row {
    padding-top: 0.55rem !important;
    width: 100% !important;
  }

  .chamber-switcher-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    padding: 0.35rem 0.45rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .switcher-label {
    display: none !important;
  }

  .chamber-tab-btn,
  .sector-tab-btn {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
  }

  .sector-dropdown-menu {
    min-width: 200px !important;
    max-width: min(290px, 86vw) !important;
  }

  /* 3. 섹션 헤더 공통 */
  .vault-chamber {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .chamber-header {
    margin-bottom: 1.2rem !important;
  }

  .chamber-subtag {
    font-size: 0.62rem !important;
    letter-spacing: 0.06em !important;
  }

  .chamber-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    margin: 0.35rem 0 0.5rem 0 !important;
    word-break: keep-all !important;
  }

  .chamber-desc {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    word-break: keep-all !important;
  }

  .notice-ticker {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
    word-break: break-all !important;
  }

  /* 4. [핵심] DECK 04: N8N 자동화 허브 모바일 최적화 */
  .n8n-stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
  }

  .stat-box {
    padding: 0.75rem 0.8rem !important;
    gap: 0.6rem !important;
  }

  .stat-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.2rem !important;
  }

  .stat-val {
    font-size: 1.15rem !important;
  }

  .stat-lbl {
    font-size: 0.58rem !important;
  }

  .monitor-controls-panel {
    padding: 0.75rem !important;
    margin-top: 0.8rem !important;
    gap: 0.65rem !important;
  }

  .search-input {
    font-size: 0.78rem !important;
    padding: 0.55rem 1.8rem 0.55rem 2.2rem !important;
  }

  .monitor-filter-bar {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
    width: 100% !important;
  }

  .monitor-filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .n8n-filter-btn {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* 🌟 [가장 중요] N8N 폼 카드 그리드: 모바일 1열 100% 폭 고정 (옆 잘림 원천 방지) */
  .n8n-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .n8n-card {
    padding: 1rem !important;
    gap: 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .n8n-card-top {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
  }

  .n8n-card-main {
    gap: 0.65rem !important;
  }

  .n8n-card-icon {
    font-size: 1.6rem !important;
    padding: 0.35rem !important;
  }

  .n8n-card-text h3 {
    font-size: 1.02rem !important;
    line-height: 1.3 !important;
  }

  .n8n-card-text p {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  .n8n-card-url-box {
    font-size: 0.66rem !important;
    padding: 0.35rem 0.55rem !important;
    word-break: break-all !important;
    white-space: normal !important;
    line-height: 1.35 !important;
  }

  .n8n-card-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .n8n-open-btn {
    flex: 1 1 auto !important;
    padding: 0.5rem 0.65rem !important;
    font-size: 0.74rem !important;
    justify-content: center !important;
  }

  .n8n-copy-btn {
    flex: 0 0 auto !important;
    padding: 0.5rem 0.65rem !important;
    font-size: 0.72rem !important;
  }

  /* 5. DECK 03: 프로젝트 관제실 모바일 최적화 */
  .monitor-stats-hud {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }

  .project-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .p-card {
    padding: 0.95rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .m-filter-btn {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.66rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* 6. DECK 02: 심우주 레이더 & 깃허브 트렌딩 모바일 최적화 */
  .radar-dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .radar-scope-panel {
    padding: 0.85rem !important;
  }

  .radar-scope-display {
    width: min(280px, 76vw) !important;
    height: min(280px, 76vw) !important;
    margin: 0.5rem auto !important;
  }

  .hub-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .hub-title-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
  }

  .trending-filter-bar {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
    width: 100% !important;
  }

  .trending-filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .filter-btn {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.66rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .repo-card {
    padding: 0.9rem !important;
    gap: 0.65rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .repo-desc {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  .repo-footer-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
  }

  .repo-visit-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.45rem !important;
  }

  /* 7. DECK 05 & 06: 사령실 & 랩 모바일 최적화 */
  .vip-assets-grid {
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
  }

  .admin-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .n8n-crud-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .panel-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
  }

  .panel-header-actions {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
  }

  .deck-matrix-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .deck-matrix-table {
    min-width: 580px !important;
  }

  /* 8. 모달 (DECK MAP & README 모달) 모바일 최적화 */
  .project-modal-dialog {
    width: 95% !important;
    max-height: 90vh !important;
    margin: 0 auto !important;
    border-radius: 10px !important;
  }

  .deck-map-sectors-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .sector-map-card {
    padding: 0.8rem !important;
  }

  .map-deck-row {
    padding: 0.5rem 0.6rem !important;
    gap: 0.4rem !important;
  }

  .map-deck-left {
    gap: 0.4rem !important;
    min-width: 0 !important;
  }

  .map-deck-info h5 {
    font-size: 0.78rem !important;
  }

  .map-warp-btn {
    padding: 0.25rem 0.45rem !important;
    font-size: 0.62rem !important;
  }
}



