.spellcheck-panel {
  position: fixed;
  top: 60px;
  right: 10px;
  width: 320px;
  max-height: calc(100vh - 80px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.spellcheck-panel.hidden {
  display: none;
}

.spellcheck-header {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  gap: 8px;
}

.spellcheck-title {
  font-weight: 600;
  flex: 1;
}

.spellcheck-status {
  font-size: 14px;
  color: #888;
  min-width: 16px;
  text-align: center;
}

.spellcheck-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 0 4px;
  line-height: 1;
}

.spellcheck-close:hover {
  color: #333;
}

.spellcheck-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.spellcheck-summary {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}

.spellcheck-errors {
  min-height: 40px;
}

.spellcheck-loading,
.spellcheck-info,
.spellcheck-empty {
  color: #888;
  text-align: center;
  padding: 20px 0;
  font-style: italic;
}

.spellcheck-ok {
  color: #2e7d32;
  text-align: center;
  padding: 30px 0;
  font-size: 15px;
}

.spellcheck-error {
  color: #c62828;
  text-align: center;
  padding: 20px 0;
}

.spellcheck-footer {
  padding: 8px 12px;
  border-top: 1px solid #eee;
  text-align: center;
}

.spellcheck-btn {
  background: #0803aa;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.spellcheck-btn:hover {
  background: #0601a0;
}

.spellcheck-error-item {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.spellcheck-error-item:last-child {
  border-bottom: none;
}

.spellcheck-error-word {
  margin-bottom: 4px;
}

.spellcheck-bad-word {
  color: #c62828;
  font-weight: 600;
  font-size: 14px;
}

.spellcheck-line {
  color: #999;
  font-size: 11px;
  margin-left: 6px;
}

.spellcheck-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.spellcheck-suggestion {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
  color: #333;
  transition: background 0.15s;
}

.spellcheck-suggestion:hover {
  background: #e3f2fd;
  border-color: #90caf9;
}

.spellcheck-suggestion-primary {
  background: #e8f5e9;
  border-color: #a5d6a7;
  font-weight: 600;
}

.spellcheck-suggestion-primary:hover {
  background: #c8e6c9;
}
