#toast-host {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: min(92vw, 420px);
}

.app-toast {
  padding: 10px 16px;
  border-radius: 10px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: rgba(30, 30, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.app-toast-success { border-color: rgba(34, 197, 94, 0.5); background: rgba(20, 60, 35, 0.95); }
.app-toast-warn { border-color: rgba(251, 191, 36, 0.5); background: rgba(70, 50, 10, 0.95); }
.app-toast-error { border-color: rgba(239, 68, 68, 0.5); background: rgba(70, 20, 20, 0.95); }

.service-pill {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1100;
  padding: 5px 10px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: var(--panel, rgba(24,24,24,0.9));
  color: var(--muted, #A0A0A0);
  cursor: default;
  user-select: none;
}

.service-pill-ok { color: #86efac; border-color: rgba(34,197,94,0.4); }
.service-pill-warn { color: #fcd34d; border-color: rgba(251,191,36,0.4); }
.service-pill-error { color: #fca5a5; border-color: rgba(239,68,68,0.4); }

.doc-title-bar {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.doc-title-bar h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75em;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.bookmark-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bookmark-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
}

.bookmark-item:hover { background: var(--highlight); }
.bookmark-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bookmark-item button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
  line-height: 1;
}
.bookmark-item button:hover { color: #ef4444; }

.loader-error-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.loader-error-actions .btn {
  flex: none;
  padding: 10px 18px;
}

.shortcuts-hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}