.focus-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-container, #1e1e24);
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.focus-shell-exit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.2s;
}

.focus-shell-exit:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.2);
}

.focus-shell-title {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #fff);
  border-bottom: 1px solid var(--border-color, #2a2a32);
}

.focus-shell-content {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  height: 100%;
}

/* Monaco Editor 需要明确的高度 */
.focus-shell-content > div,
.focus-shell-content > .monaco-editor {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
}

/* 深色模式 */
[data-theme='dark'] .focus-shell {
  background: var(--bg-container);
}

[data-theme='dark'] .focus-shell-exit {
  background: rgba(30, 30, 36, 0.9);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme='dark'] .focus-shell-exit:hover {
  background: rgba(40, 40, 48, 0.95);
}