/* ============================================================================
   styles.css — zmienne i style z src/index.css oryginału (1:1) plus klasy
   Tailwind użyte w komponentach workspace'u, rozpisane na zwykły CSS.
   ========================================================================= */

:root {
  --background: 220 20% 97%;
  --foreground: 220 20% 10%;

  --card: 0 0% 100%;
  --card-foreground: 220 20% 10%;

  --popover: 0 0% 100%;
  --popover-foreground: 220 20% 10%;

  --primary: 174 62% 47%;
  --primary-foreground: 0 0% 100%;

  --secondary: 220 14% 92%;
  --secondary-foreground: 220 20% 20%;

  --muted: 220 14% 95%;
  --muted-foreground: 220 10% 50%;

  --accent: 174 62% 47%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 220 14% 90%;
  --input: 220 14% 90%;
  --ring: 174 62% 47%;

  --radius: 0.75rem;

  --surface: 220 20% 99%;
  --surface-hover: 220 14% 96%;
  --surface-active: 220 14% 93%;
  --primary-glow: 174 80% 55%;
  --chat-user: 220 14% 95%;
  --chat-ai: 0 0% 100%;
  --typing-dot: 174 62% 47%;
}

/* --------------------------------------------------------------- reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
pre {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

button,
textarea,
input {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
}

button {
  padding: 0;
  background-color: transparent;
  cursor: pointer;
}

svg {
  display: block;
  flex-shrink: 0;
}

canvas {
  display: block;
}

[hidden] {
  display: none !important;
}

.icon-3 { height: 0.75rem; width: 0.75rem; }
.icon-35 { height: 0.875rem; width: 0.875rem; }
.icon-4 { height: 1rem; width: 1rem; }
.icon-5 { height: 1.25rem; width: 1.25rem; }
.icon-6 { height: 1.5rem; width: 1.5rem; }
.icon-8 { height: 2rem; width: 2rem; }
.icon-12 { height: 3rem; width: 3rem; }

/* ------------------------------------------------------------- layout --- */
.workspace {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: hsl(var(--background));
}

.topbar {
  flex-shrink: 0;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--card) / 0.8);
  backdrop-filter: blur(24px);
}

.topbar-inner {
  padding: 0 1rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-brain {
  height: 1.25rem;
  width: 1.25rem;
  color: hsl(var(--primary));
}

.workspace-name {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.workspace-body {
  flex: 1 1 0%;
  display: flex;
  overflow: hidden;
}

/* ------------------------------------------------------------ buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  height: 2.25rem;
  padding: 0 0.75rem;
}

.button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.button-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.button-default:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.button-ghost:hover {
  background-color: hsl(var(--surface-hover));
  color: hsl(var(--foreground));
}

.button-outline {
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
}

.button-outline:hover {
  background-color: hsl(var(--surface-hover));
}

.button-sm {
  height: 2rem;
  padding: 0 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

/* text-xs h-7 z topbaru */
.panel-tab {
  font-size: 0.75rem;
  line-height: 1rem;
  height: 1.75rem;
  padding: 0 0.625rem;
}

.icon-button-sm {
  height: 1.5rem;
  width: 1.5rem;
  padding: 0;
}

.icon-button-xs {
  height: 1.75rem;
  width: 1.75rem;
  padding: 0;
}

.icon-button-send {
  height: 2rem;
  width: 2rem;
  padding: 0;
  flex-shrink: 0;
}

/* ------------------------------------------------------------ sidebar --- */
.sidebar {
  flex-shrink: 0;
  border-right: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 16rem;
  overflow: hidden;
}

.sidebar.is-closed {
  width: 0;
}

.sidebar-inner {
  width: 16rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-upload {
  padding: 0.75rem;
}

.sidebar-toggle {
  flex-shrink: 0;
  width: 2rem;
  border-right: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  color: hsl(var(--muted-foreground));
}

.sidebar-toggle:hover {
  background-color: hsl(var(--surface-hover));
}

/* ---------------------------------------------------- FileUploadZone ---- */
.dropzone-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px dashed hsl(var(--border));
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.75rem;
  line-height: 1rem;
}

.dropzone-compact:hover {
  border-color: hsl(var(--primary) / 0.4);
  background-color: hsl(var(--surface-hover));
}

.dropzone-compact.is-drag {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

.dropzone-compact.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.dropzone-label {
  color: hsl(var(--muted-foreground));
}

.icon-plus {
  color: hsl(var(--primary));
}

.spinner-sm {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary) / 0.3);
  border-top-color: hsl(var(--primary));
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------------------------------------- doc list --- */
.doc-list {
  flex: 1 1 0%;
  overflow-y: auto;
  padding: 0 0.5rem 0.5rem;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.25rem;
  color: hsl(var(--foreground));
}

.doc-item:hover {
  background-color: hsl(var(--surface-hover));
}

.doc-item.is-selected {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.doc-item svg {
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
}

.doc-main {
  flex: 1 1 0%;
  min-width: 0;
}

.doc-name {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-meta {
  font-size: 10px;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  margin-top: 0.125rem;
}

.doc-actions {
  display: flex;
  gap: 0.125rem;
  opacity: 0;
  transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-item:hover .doc-actions {
  opacity: 1;
}

.doc-action {
  padding: 0.25rem;
  border-radius: 0.25rem;
  color: hsl(var(--muted-foreground));
}

.doc-action:hover {
  background-color: hsl(var(--surface-active));
  color: hsl(var(--foreground));
}

.doc-action.delete:hover {
  background-color: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

/* -------------------------------------------------------- empty state --- */
.empty-main {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-inner {
  text-align: center;
  max-width: 28rem;
  padding: 0 1.5rem;
}

.icon-upload {
  color: hsl(var(--muted-foreground));
  margin: 0 auto 1rem;
}

.empty-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.empty-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

/* ------------------------------------------------------------- split ---- */
.main-split {
  flex: 1 1 0%;
  display: flex;
  overflow: hidden;
}

.pdf-pane {
  display: none;
  width: 50%;
  border-right: 1px solid hsl(var(--border));
  flex-direction: column;
  background-color: hsl(var(--muted) / 0.3);
}

@media (min-width: 1024px) {
  .pdf-pane {
    display: flex;
  }
}

.pdf-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
}

.pdf-filename {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-zoom,
.pdf-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pdf-scale,
.pdf-pageinfo {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.pdf-scale {
  width: 3rem;
  text-align: center;
}

.pdf-canvas-wrap {
  flex: 1 1 0%;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}

#pdf-canvas {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border-radius: 0.125rem;
  max-width: 100%;
}

.pdf-missing {
  font-size: 0.75rem;
  line-height: 1.1rem;
  color: hsl(var(--muted-foreground));
  max-width: 22rem;
  text-align: center;
  margin-top: 2rem;
}

.right-pane {
  flex: 1 1 0%;
  min-width: 0;
}

/* -------------------------------------------------------- chat panel ---- */
.chat-panel,
.extract-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: hsl(var(--background));
}

.panel-header {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.extract-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.extract-title svg {
  height: 1rem;
  width: 1rem;
  color: hsl(var(--primary));
}

.panel-subtitle {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-messages {
  flex: 1 1 0%;
  overflow-y: auto;
  padding: 1rem;
}

.chat-messages > * + * {
  margin-top: 1rem;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 1rem;
  padding: 3rem 0;
}

.chat-empty-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
}

.chat-empty-title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.chat-empty-text {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-action:hover {
  border-color: hsl(var(--primary) / 0.3);
  background-color: hsl(var(--surface-hover));
}

.quick-action svg {
  height: 0.75rem;
  width: 0.75rem;
}

/* ------------------------------------------------------- ChatMessage ---- */
.message {
  display: flex;
  gap: 0.75rem;
  animation: fade-in-up 0.5s ease-out forwards;
}

.message.is-user {
  flex-direction: row-reverse;
}

.message-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
}

.message-avatar svg {
  height: 1rem;
  width: 1rem;
}

.message-body {
  flex: 1 1 0%;
  min-width: 0;
}

.message.is-user .message-body {
  text-align: right;
}

.thinking-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.thinking-step {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 10px;
  line-height: 1.2;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.thinking-step.is-done {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.thinking-step.is-active {
  background-color: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.bubble {
  display: inline-block;
  max-width: 90%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  text-align: left;
}

.message.is-user .bubble {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-bottom-right-radius: 0.375rem;
}

.message.is-assistant .bubble {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--card-foreground));
  border-bottom-left-radius: 0.375rem;
}

.bubble p {
  margin: 0.25rem 0;
}

.bubble h1,
.bubble h2,
.bubble h3 {
  margin: 0.5rem 0;
  font-weight: 600;
}

.bubble ul,
.bubble ol {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
}

.bubble code {
  color: hsl(var(--primary));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
}

.bubble pre {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

.bubble hr {
  border-top: 1px solid hsl(var(--border));
  margin: 0.5rem 0;
}

.typing {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0;
}

.typing-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--typing-dot));
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.meta-bar {
  margin-top: 0.375rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.badge-confidence {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 10px;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

.badge-confidence.high { color: #16a34a; background: #f0fdf4; }
.badge-confidence.mid { color: #ca8a04; background: #fefce8; }
.badge-confidence.low { color: #dc2626; background: #fef2f2; }

.badge-confidence svg {
  height: 0.75rem;
  width: 0.75rem;
}

.badge-intent {
  font-size: 10px;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.badge-tool {
  font-size: 10px;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--accent) / 0.5);
  color: hsl(var(--accent-foreground));
  font-weight: 500;
}

.badge-latency {
  font-size: 10px;
  color: hsl(var(--muted-foreground));
}

.sources-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--primary));
  margin-top: 0.5rem;
}

.sources-toggle:hover {
  text-decoration: underline;
}

.sources-toggle svg {
  height: 0.75rem;
  width: 0.75rem;
}

.sources-list > * + * {
  margin-top: 0.375rem;
}

.sources-list {
  margin-top: 0.375rem;
}

.source-item {
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border));
  text-align: left;
  cursor: pointer;
}

.source-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.source-page {
  font-weight: 500;
  color: hsl(var(--primary));
}

.source-doc,
.source-score {
  color: hsl(var(--muted-foreground));
}

.source-text {
  color: hsl(var(--muted-foreground));
  font-style: italic;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* -------------------------------------------------------- chat input --- */
.chat-input-wrap {
  flex-shrink: 0;
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.chat-input {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  padding: 0.5rem;
}

.chat-input textarea {
  flex: 1 1 0%;
  resize: none;
  background: transparent;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
  outline: none;
  padding: 0.375rem 0.5rem;
  max-height: 8rem;
  min-height: 36px;
  border: 0;
}

.chat-input textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------- ExtractionPanel ---- */
.extract-body {
  flex: 1 1 0%;
  overflow-y: auto;
  padding: 1rem;
}

.extract-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 1rem;
}

.extract-intro-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
}

.extract-intro-title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.extract-intro-text {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
  max-width: 24rem;
}

.extract-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
}

.extract-loading .spinner-lg {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary) / 0.3);
  border-top-color: hsl(var(--primary));
  animation: spin 1s linear infinite;
}

.extract-loading-steps > * + * {
  margin-top: 0.375rem;
}

.extract-loading-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.extract-loading-step.primary {
  color: hsl(var(--primary));
}

.extract-results > * + * {
  margin-top: 1rem;
}

.extract-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.extract-results-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.extract-results-title svg {
  height: 1rem;
  width: 1rem;
  color: hsl(var(--primary));
}

.extract-results-actions {
  display: flex;
  gap: 0.5rem;
}

.extract-output {
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--card-foreground));
  font-size: 0.875rem;
  line-height: 1.625;
}

.extract-output h3 {
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
}

.extract-output ul {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
}

/* -------------------------------------------------------------- toast --- */
.toast-viewport {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  max-width: 420px;
  width: 100%;
}

.toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  animation: fade-in-up 200ms ease-out;
}

.toast.is-destructive {
  border-color: hsl(var(--destructive));
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.toast-title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.toast-description {
  font-size: 0.875rem;
  line-height: 1.25rem;
  opacity: 0.9;
}
