.writer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 12, 24, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.writer-overlay.active { opacity: 1; visibility: visible; }

.writer-card {
  position: relative;
  width: min(720px, 92vw);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  border: none;
  outline: 1px solid transparent;
  overflow: hidden;
}

.writer-header {
  background: var(--theme-default);
  color: #ffffff;
  padding: 14px 16px;
}
.writer-title { margin: 0; font-weight: 700; color: #ffffff; }

.writer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
}
.writer-close:focus { outline: none; box-shadow: none; }
.writer-close::before {
  content: '✕';
  display: block;
  color: #ffffff;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
}

.writer-body { padding: 16px; background: #ffffff; }
.writer-mode-intro { font-weight: 500; color: #334155; }

.mode-list { list-style: none; margin: 0 0 8px 0; padding: 0; }
.mode-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: #faf7ff;
  border: none;
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: none;
}
.mode-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: #efe7ff;
  color: var(--theme-default);
  white-space: nowrap;
}

.writer-mode-actions .btn { border-radius: 9999px; padding: 8px 16px; min-width: 120px; }
.writer-mode-actions .btn:hover { transform: translateY(-1px); }
.writer-mode-actions .btn:active { transform: translateY(0); }
.writer-mode-actions .btn:focus { box-shadow: none; outline: none; }
/* Let outline primary use theme's built-in styles for consistency */


