/* ==========================================================================
   🏢 FLOWORK OS — 3D VIRTUAL OFFICE STYLES
   Co-authored-by: Flowork OS <agent@floworkos.com>
   ========================================================================== */

.view-panel-office {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #060911;
  display: none;
  content-visibility: hidden;
}

.view-panel-office.active {
  display: block;
  content-visibility: visible;
}

#office-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  cursor: grab;
  touch-action: none;
}

#office-3d-canvas.is-dragging {
  cursor: grabbing !important;
}



/* Transparent Sovereign Agent Dock (Floating HUD on Canvas) */
.office-agent-dock {
  display: none !important;
  position: absolute;
  top: 76px;
  left: 24px;
  width: 290px;
  max-height: calc(100% - 100px);
  background: rgba(8, 14, 26, 0.42);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-radius: 16px;
  padding: 12px;
  color: #ffffff;
  z-index: 95;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.office-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.office-dock-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.office-dock-icon {
  font-size: 14px;
}

.office-dock-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.office-dock-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 2px;
  max-height: 100%;
}

.office-dock-list::-webkit-scrollbar {
  width: 4px;
}
.office-dock-list::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.2);
  border-radius: 4px;
}

.office-agent-dock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.office-agent-dock-item:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.35);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.15);
}

.office-agent-dock-item.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: #00f2fe;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.dock-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.dock-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  flex-shrink: 0;
}

.dock-item-info {
  min-width: 0;
  flex: 1;
}

.dock-item-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-item-id-badge {
  font-size: 8.5px;
  font-family: var(--font-mono, monospace);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 242, 254, 0.25);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  text-transform: uppercase;
}

.office-agent-dock-item.active .dock-item-name {
  color: #00f2fe;
}

.dock-item-role {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-item-status-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dock-item-status-pill.working {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dock-item-status-pill.idle {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.dock-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dock-item-status-pill.working .dock-status-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.dock-item-status-pill.idle .dock-status-dot {
  background: #94a3b8;
}

/* Drag-and-Drop Dock Enhancements */
.office-agent-dock-item {
  cursor: grab;
}

.office-agent-dock-item:active {
  cursor: grabbing;
}

.office-agent-dock-item.is-dragging {
  opacity: 0.45;
  transform: scale(0.96);
  border-color: #00f2fe;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* Holographic Dropzone Overlay for 3D Office & Canvas */
.office-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 250;
  background: rgba(6, 11, 25, 0.88);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px dashed #00f2fe;
  box-shadow: inset 0 0 40px rgba(0, 242, 254, 0.25), 0 0 30px rgba(0, 242, 254, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.office-drop-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.office-drop-modal {
  background: rgba(13, 20, 36, 0.92);
  border: 1px solid rgba(0, 242, 254, 0.45);
  border-radius: 24px;
  padding: 36px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 254, 0.2);
  animation: none;
  max-width: 480px;
}

.office-drop-overlay.active .office-drop-modal {
  animation: officeDropPulse 2s infinite ease-in-out;
}

@keyframes officeDropPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 242, 254, 0.4);
  }
}

.office-drop-icon-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.12);
  border: 1.5px solid #00f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.35);
  animation: none;
}

.office-drop-overlay.active .office-drop-icon-ring {
  animation: officeDropIconBounce 1.5s infinite ease-in-out;
}

@keyframes officeDropIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.office-drop-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
}

.office-drop-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.office-drop-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.35);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-top: 4px;
}

/* ==========================================================================
   🃏 SOVEREIGN POKÉMON SPECIALIST TRADING CARD DECK STYLES
   ========================================================================== */

.fl-pokemon-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.94);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: flPokemonFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes flPokemonFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.fl-pokemon-deck-container {
  background: #080d1a;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 24px;
  width: 100%;
  max-width: 1260px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.95), 0 0 60px rgba(245, 158, 11, 0.25);
  overflow: hidden;
}

.fl-pokemon-deck-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 32px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 28, 0.65);
}

.fl-pokemon-deck-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  padding: 3px 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.fl-pokemon-deck-title {
  font-size: 23px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.fl-pokemon-deck-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 4px 0 0;
  line-height: 1.45;
  max-width: 820px;
}

.fl-pokemon-deck-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.fl-pokemon-deck-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.05);
}

.fl-pokemon-deck-filter-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 32px;
  background: rgba(6, 10, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.fl-pokemon-search-input {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 12px;
  width: 310px;
  outline: none;
  transition: all 0.2s;
}

.fl-pokemon-search-input:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.fl-pokemon-deck-pills {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.fl-pokemon-cat-pill {
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fl-pokemon-cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.fl-pokemon-cat-pill.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.fl-pokemon-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  padding: 28px 32px;
  overflow-y: auto;
  flex: 1;
}

/* 🎴 POKÉMON HOLOGRAPHIC TRADING CARD */
.fl-pokemon-card {
  position: relative;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 25%, #fde047 50%, #92400e 75%, #f59e0b 100%);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.2);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.fl-pokemon-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.4), 0 0 20px rgba(0, 242, 254, 0.3);
}

.fl-pokemon-card.is-active-specialist {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 25%, #fde047 50%, #0284c7 75%, #00f2fe 100%);
  box-shadow: 0 16px 45px rgba(0, 242, 254, 0.5), 0 0 30px rgba(0, 242, 254, 0.6);
  transform: translateY(-4px);
}

/* Holographic Prismatic Sheen Overlay */
.fl-pokemon-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(0, 242, 254, 0.25) 45%,
    rgba(245, 158, 11, 0.3) 55%,
    rgba(255, 255, 255, 0.1) 75%,
    transparent 100%
  );
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s;
}

.fl-pokemon-card:hover::after {
  opacity: 0.85;
}

.fl-pk-inner {
  background: radial-gradient(circle at 50% 20%, #0f172a 0%, #070c18 100%);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

/* Card Header: Name + HP */
.fl-pk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fl-pk-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.fl-pk-hp-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fl-pk-hp {
  font-size: 13px;
  font-weight: 900;
  color: #ef4444;
  font-family: monospace;
}

.fl-pk-elem-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.25);
  border: 1.5px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Card Art Box */
.fl-pk-art {
  height: 120px;
  border-radius: 10px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, rgba(10, 17, 30, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
}

.fl-pk-art-avatar {
  font-size: 52px;
  filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.6));
  animation: flPkArtFloat 3s infinite ease-in-out;
}

@keyframes flPkArtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.fl-pk-art-category {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 9px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(3, 7, 18, 0.75);
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Card Subtitle Spec Bar */
.fl-pk-spec-bar {
  font-size: 9.5px;
  font-style: italic;
  color: #d97706;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* Moves Section */
.fl-pk-moves {
  background: rgba(3, 7, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  flex: 1;
}

.fl-pk-move {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fl-pk-move-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fl-pk-move-title {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
}

.fl-pk-move-dmg {
  font-size: 12px;
  font-weight: 800;
  color: #f59e0b;
  font-family: monospace;
}

.fl-pk-move-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
}

/* Bottom Stats & Rarity */
.fl-pk-bottom-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  color: #64748b;
  font-family: monospace;
  padding: 4px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.fl-pk-rarity {
  color: #f59e0b;
  font-weight: 700;
}

/* Deploy Button */
.fl-pk-deploy-btn {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #0284c7 0%, #00f2fe 100%);
  color: #040914;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
}

.fl-pk-deploy-btn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 242, 254, 0.5);
}

.fl-pk-deploy-btn.is-active {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #022c22;
  cursor: default;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   💬 SOVEREIGN 3D IMMERSIVE BOTTOM CHATBAR (SOLO STUDIO)
   ========================================================================== */
.office-bottom-chatbar {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 92%);
  z-index: 100;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* ==========================================================================
   🌌 SOLO STUDIO — FLOATING GLASS CHAT OVER FIXED 3D STAGE
   ========================================================================== */
.canvas-layout.solo-studio-glass {
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
}

.canvas-layout.solo-studio-glass .workbench-main {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 10 !important;
}

.canvas-layout.solo-studio-glass .viewport-stage,
.canvas-layout.solo-studio-glass .view-panel-office {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.canvas-layout.solo-studio-glass .resizer-right {
  display: none !important;
}

/* ==========================================================================
   FLOWORK OS — CHAT-FIRST RESPONSIVE ARCHITECTURE (SOLO STUDIO)
   Doktrin: Mengutamakan Chat di Segala Ukuran Layar (Wide, Laptop, Tablet, Mobile)
   ========================================================================== */

/* 1. Large Desktop Screens (> 1280px) */
.canvas-layout.solo-studio-glass .rightbar-chat {
  position: absolute !important;
  top: 58px !important;
  bottom: 18px !important;
  left: 36px !important;
  right: auto !important;
  transform: none !important;
  width: min(840px, calc(100% - 460px)) !important;
  max-width: 860px !important;
  height: auto !important;
  max-height: calc(100vh - 76px) !important;
  background: rgba(6, 11, 22, 0.96) !important;
  border: 1.5px solid rgba(0, 242, 254, 0.45) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 36px rgba(0, 242, 254, 0.22), inset 0 0 24px rgba(0, 242, 254, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 50 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: opacity 0.25s ease, width 0.2s ease, left 0.2s ease !important;
}

/* 2. Laptops & Standard Desktop (993px - 1280px) */
@media (max-width: 1280px) {
  .canvas-layout.solo-studio-glass .rightbar-chat {
    left: 20px !important;
    width: min(720px, calc(100% - 360px)) !important;
    max-width: 720px !important;
    bottom: 18px !important;
  }
}

/* 3. Tablets & Split View (769px - 992px) — Chat Priority */
@media (max-width: 992px) {
  .canvas-layout.solo-studio-glass .rightbar-chat {
    left: 16px !important;
    right: 16px !important;
    width: calc(100% - 32px) !important;
    max-width: 100% !important;
    top: 50px !important;
    bottom: 14px !important;
    background: rgba(6, 11, 22, 0.94) !important;
  }
}

/* 4. Mobile & Narrow Portrait (< 768px down to 360px) — 100% Sovereign Full-Width Chat */
@media (max-width: 768px) {
  .canvas-layout.solo-studio-glass .rightbar-chat {
    left: 8px !important;
    right: 8px !important;
    width: calc(100% - 16px) !important;
    max-width: 100% !important;
    top: 44px !important;
    bottom: 10px !important;
    border-radius: 10px !important;
    background: rgba(5, 9, 18, 0.95) !important;
  }
  .canvas-layout.solo-studio-glass .rightbar-chat-header {
    padding: 6px 10px !important;
  }
  .canvas-layout.solo-studio-glass .rightbar-chat-messages {
    padding: 10px 12px !important;
  }
}

.canvas-layout.solo-studio-glass .office-3d-canvas-fg {
  display: block !important;
  position: absolute !important;
  z-index: 30 !important;
  pointer-events: none;
}

.office-3d-canvas-fg {
  display: none;
}

.canvas-layout.solo-studio-glass .rightbar-chat.collapsed {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

.canvas-layout.solo-studio-glass .rightbar-chat-header {
  border-radius: 14px 14px 0 0 !important;
  background: rgba(14, 165, 233, 0.14) !important;
  border-bottom: 1px solid rgba(0, 242, 254, 0.3) !important;
  padding: 8px 18px !important;
}

.canvas-layout.solo-studio-glass .rightbar-chat-header .chat-window-controls {
  display: none !important;
}

.canvas-layout.solo-studio-glass .rightbar-chat-header .chat-subnav-row {
  display: none !important;
}

.canvas-layout.solo-studio-glass .rightbar-chat-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  background: transparent !important;
  padding: 16px 22px !important;
}

.canvas-layout.solo-studio-glass .rightbar-chat-footer {
  display: flex !important;
  flex-direction: column !important;
  background: rgba(6, 11, 20, 0.94) !important;
  border-top: 1px solid rgba(0, 242, 254, 0.25) !important;
  border-radius: 0 0 14px 14px !important;
  padding: 10px 14px !important;
  position: relative !important;
  z-index: 20 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.canvas-layout.solo-studio-glass .chat-msg.assistant {
  max-width: 100% !important;
}

.canvas-layout.solo-studio-glass .chat-tools-area {
  max-width: 100% !important;
  width: 100% !important;
}

.canvas-layout.solo-studio-glass .fl-queue-card {
  width: 100% !important;
  margin-bottom: 8px !important;
  background: rgba(10, 16, 32, 0.95) !important;
  border: 1px solid rgba(0, 242, 254, 0.35) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 242, 254, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.canvas-layout.solo-studio-glass .chat-model-dropdown,
.canvas-layout.solo-studio-glass .chat-account-dropdown,
.canvas-layout.solo-studio-glass .chat-agent-dropdown {
  position: absolute !important;
  bottom: calc(100% + 10px) !important;
  left: 0 !important;
  right: auto !important;
  z-index: 100 !important;
}

/* Spinner Muter-Muter untuk Tombol Kirim */
@keyframes fl-spin-muter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.chat-input-send.is-running {
  background: linear-gradient(135deg, #0284c7 0%, #00f2fe 100%) !important;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.7) !important;
  cursor: wait !important;
}

.chat-input-send.is-running .stop-spinner-wrap {
  display: flex !important;
}

.chat-input-send.is-running .fl-send-spinner {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  border: 2.5px solid rgba(255, 255, 255, 0.25) !important;
  border-top-color: #00f2fe !important;
  border-right-color: #ffffff !important;
  border-radius: 50% !important;
  animation: fl-spin-muter 0.75s linear infinite !important;
}

.chat-input-send.is-running .stop-icon {
  display: none !important;
}

/* ==========================================================================
   🏛️ SOLO EXECUTIVE PENTHOUSE — LUXURY AMBIANCE & POLISH
   ========================================================================== */

/* Enhanced Luxury Glassmorphism for Main Chat Screen */
.canvas-layout.solo-studio-glass .rightbar-chat {
  border: 1.5px solid rgba(245, 158, 11, 0.32) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 32px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.canvas-layout.solo-studio-glass .rightbar-chat-header {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0%, rgba(14, 165, 233, 0.10) 100%) !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.22) !important;
}

/* Floating Bottom Composer Luxury Accents */
#office-bottom-chatbar .chat-input-bar {
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Executive Chat History Luxury Styling */
.canvas-layout.solo-studio-glass .rightbar-history-view {
  flex: 1 1 100% !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: none !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.98) 0%, rgba(6, 9, 16, 0.99) 100%) !important;
  padding: 16px 20px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 0 14px 14px !important;
  box-sizing: border-box !important;
  z-index: 25 !important;
}

.canvas-layout.solo-studio-glass .rightbar-history-view.active {
  display: flex !important;
}

.canvas-layout.solo-studio-glass .rightbar-chat-messages.history-active {
  display: none !important;
}

.canvas-layout.solo-studio-glass .history-view-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2) !important;
  margin-bottom: 14px !important;
}

.canvas-layout.solo-studio-glass .history-view-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.canvas-layout.solo-studio-glass .history-view-title::before {
  content: '🏛️';
  font-size: 14px;
}

.canvas-layout.solo-studio-glass .history-btn-back {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  letter-spacing: 0.3px !important;
}

.canvas-layout.solo-studio-glass .history-btn-back:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
  transform: translateY(-1px) !important;
}

.canvas-layout.solo-studio-glass .history-list {
  flex: 1 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding-right: 4px !important;
}

.canvas-layout.solo-studio-glass .history-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 11px 16px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  min-height: 52px !important;
}

.canvas-layout.solo-studio-glass .history-item:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(0, 242, 254, 0.07) 100%) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 158, 11, 0.12) !important;
  transform: translateY(-1px) !important;
}

.canvas-layout.solo-studio-glass .history-item.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(0, 242, 254, 0.14) 100%) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3) !important;
}

.canvas-layout.solo-studio-glass .history-name {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
}

.canvas-layout.solo-studio-glass .history-time {
  font-size: 10px !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
}

.canvas-layout.solo-studio-glass .history-item-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 4px 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.canvas-layout.solo-studio-glass .history-item-btn:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
}

.canvas-layout.solo-studio-glass .history-item-del:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
}

/* ==========================================================================
   🚫 TAB ISOLATION: PREVENT ANY 3D OFFICE / CHAT LEAKS INTO OTHER TABS
   ========================================================================== */
.canvas-layout:not(.solo-studio-glass) #office-bottom-chatbar,
.canvas-layout:not(.solo-studio-glass) .office-bottom-chatbar,
.canvas-layout:not(.solo-studio-glass) #office-3d-canvas-fg,
.canvas-layout:not(.solo-studio-glass) .office-3d-canvas-fg,
.canvas-layout:not(.solo-studio-glass) #view-office,
.canvas-layout:not(.solo-studio-glass) .view-panel-office {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* On Installed Apps (#view-home) and App Store (#view-copilot), hide rightbar-chat and resizer-right for full 100% width */
.canvas-layout:has(#view-home.active) .rightbar-chat,
.canvas-layout:has(#view-copilot.active) .rightbar-chat,
.canvas-layout .rightbar-chat.collapsed,
.canvas-layout:has(#view-home.active) #resizer-right,
.canvas-layout:has(#view-home.active) .resizer-right,
.canvas-layout:has(#view-copilot.active) #resizer-right,
.canvas-layout:has(#view-copilot.active) .resizer-right {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


