/* ═══════════════════════════════════════════════════════════
   READER — Design System
   Style: Professional SaaS / Monday.com-inspired
   Palette: White surfaces, #F5F6F8 base, #0073EA accent
   Font: Inter (Google Fonts)
═══════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --bg-base:        #F5F6F8;
  --bg-white:       #FFFFFF;
  --bg-hover:       #F0F2F5;
  --bg-active:      #E8EBF0;

  /* Borders */
  --border-light:   #E6E9EF;
  --border-mid:     #D0D4DC;
  --border-strong:  #B0B6C3;

  /* Text */
  --text-primary:   #1F2D3D;
  --text-secondary: #4A5568;
  --text-muted:     #8A94A6;
  --text-inverse:   #FFFFFF;

  /* Accent — Monday blue */
  --accent:         #0073EA;
  --accent-light:   #E8F2FF;
  --accent-hover:   #0060C7;
  --accent-dim:     rgba(0, 115, 234, 0.08);

  /* Status */
  --green:          #00C875;
  --green-light:    #E8FAF3;
  --green-border:   rgba(0, 200, 117, 0.3);

  --yellow:         #FFCB00;
  --yellow-light:   #FFFAE6;
  --yellow-border:  rgba(255, 203, 0, 0.4);

  --red:            #E2445C;
  --red-light:      #FDEEF1;
  --red-border:     rgba(226, 68, 92, 0.3);

  --orange:         #FF7575;
  --orange-light:   #FFF0F0;

  /* Layout */
  --header-h:       56px;
  --sidebar-w:      280px;
  --review-panel-w: 360px;

  /* Typography */
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radius */
  --r-sm:           4px;
  --r-md:           8px;
  --r-lg:           12px;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:      0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbars ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 32px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  letter-spacing: -0.5px;
}

.brand-name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

.nav-divider {
  color: var(--border-mid);
  font-size: 18px;
  line-height: 1;
  margin: 0 4px;
  user-select: none;
}

.header-meta { margin-left: auto; }

.meta-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════
   VIEW SYSTEM
═══════════════════════════════════════════════════════════ */
.view {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
}
.view.active { display: flex; flex-direction: column; }

/* ═══════════════════════════════════════════════════════════
   HOME — LAYOUT
═══════════════════════════════════════════════════════════ */
.home-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* ── Upload Sidebar ──────────────────────────────────────── */
.upload-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-white);
  border-right: 1px solid var(--border-light);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border-mid);
  border-radius: var(--r-lg);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  background: var(--bg-base);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.drop-icon {
  color: var(--text-muted);
  transition: color 0.2s;
  margin-bottom: 4px;
}
.drop-zone:hover .drop-icon,
.drop-zone.drag-over .drop-icon { color: var(--accent); }

.drop-primary {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.drop-secondary {
  font-size: 12px;
  color: var(--text-muted);
}

/* Upload Progress */
.upload-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 12px 14px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-track {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.progress-status {
  font-size: 11px;
  color: var(--text-muted);
}

/* Stats */
.sidebar-stats {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-value {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}
.stat-value.accent { color: var(--accent); }
.stat-value.green  { color: var(--green); }

/* ── File List Main ──────────────────────────────────────── */
.file-list-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-base);
}

.list-header {
  padding: 16px 24px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.list-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input,
.filter-select {
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--r-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input { width: 220px; }
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus,
.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.filter-select {
  cursor: pointer;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A94A6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* File Table */
.file-table-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.file-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.file-table thead th {
  background: var(--bg-white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.file-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.1s;
}

.file-table tbody tr:last-child { border-bottom: none; }
.file-table tbody tr:hover { background: var(--bg-hover); }

.file-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
}

/* Doc name cell */
.doc-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-icon {
  width: 36px;
  height: 40px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
}

.doc-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.doc-size {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Type badge */
.type-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Property ref */
.prop-ref {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Date */
.date-cell {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Flags */
.flags-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}

.flag-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-light);
  border-radius: 20px;
  padding: 2px 8px;
  min-width: 28px;
  text-align: center;
}

.flag-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge.pending {
  background: var(--yellow-light);
  color: #8A6800;
  border: 1px solid var(--yellow-border);
}
.status-badge.pending::before { background: var(--yellow); }

.status-badge.in-review {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(0, 115, 234, 0.2);
}
.status-badge.in-review::before { background: var(--accent); }

.status-badge.approved {
  background: var(--green-light);
  color: #007A47;
  border: 1px solid var(--green-border);
}
.status-badge.approved::before { background: var(--green); }

/* Action cell */
.action-cell { text-align: right; }

.btn-review {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-review:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

/* Empty state */
.empty-state {
  padding: 80px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   REVIEW — LAYOUT
═══════════════════════════════════════════════════════════ */
.review-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* ── Review Panel (Left) ─────────────────────────────────── */
.review-panel {
  width: var(--review-panel-w);
  flex-shrink: 0;
  background: var(--bg-white);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.review-panel-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  background: var(--bg-white);
}

.review-doc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.review-progress-fill {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 3px;
}

.review-progress-label {
  font-size: 12px;
  color: var(--text-muted);
}

.review-actions-global {
  display: flex;
  gap: 8px;
}

.btn-ghost {
  flex: 1;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.btn-primary {
  flex: 1;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

/* Review Items List */
.review-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-base);
}

/* Review Item Card */
.review-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.review-item:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
}
.review-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.review-item.resolved-approve {
  border-color: var(--green-border);
  background: var(--green-light);
}
.review-item.resolved-reject {
  border-color: var(--red-border);
  background: var(--red-light);
}

.review-item-header {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.item-index {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 20px;
}

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

.item-field {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}

.item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-context {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.item-page-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Review Item Actions */
.review-item-actions {
  padding: 0 14px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-approve,
.btn-reject {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  border: 1px solid;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-approve {
  background: var(--bg-white);
  border-color: var(--green-border);
  color: #007A47;
}
.btn-approve:hover,
.btn-approve.active {
  background: var(--green-light);
  border-color: var(--green);
  color: #007A47;
}

.btn-reject {
  background: var(--bg-white);
  border-color: var(--red-border);
  color: var(--red);
}
.btn-reject:hover,
.btn-reject.active {
  background: var(--red-light);
  border-color: var(--red);
}

/* Comment toggle button */
.btn-comment {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-comment:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.btn-comment.has-comment {
  border-color: rgba(0, 115, 234, 0.3);
  color: var(--accent);
  background: var(--accent-light);
}
.btn-comment svg {
  flex-shrink: 0;
}

/* Comment box */
.item-comment-wrap {
  padding: 0 14px 12px;
  display: none;
}
.item-comment-wrap.visible { display: block; }

.item-comment {
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  resize: vertical;
  min-height: 60px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.item-comment::placeholder { color: var(--text-muted); }
.item-comment:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Resolved badge */
.item-resolved-badge {
  display: none;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: auto;
  flex-shrink: 0;
}

.review-item.resolved-approve .item-resolved-badge {
  display: inline-block;
  background: var(--green-light);
  color: #007A47;
  border: 1px solid var(--green-border);
}

.review-item.resolved-reject .item-resolved-badge {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  border: 1px solid var(--red-border);
}

/* ── PDF Pane (Right) ────────────────────────────────────── */
.pdf-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #E8EBF0;
}

.pdf-toolbar {
  height: 48px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.pdf-toolbar-left,
.pdf-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-btn {
  width: 30px;
  height: 30px;
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pdf-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.pdf-page-info,
.pdf-zoom-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 80px;
  text-align: center;
}

.pdf-viewport-wrap {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
}

.pdf-canvas-container {
  position: relative;
  display: inline-block;
  box-shadow: var(--shadow-lg);
  border-radius: 2px;
}

#pdfCanvas { display: block; }

/* Highlight Layer */
.highlight-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.pdf-highlight {
  position: absolute;
  background: rgba(0, 115, 234, 0.12);
  border: 2px solid var(--accent);
  border-radius: 3px;
  pointer-events: none;
}

.pdf-highlight.flash {
  animation: highlightFlash 0.7s ease;
}

@keyframes highlightFlash {
  0%   { background: rgba(0, 115, 234, 0.35); }
  50%  { background: rgba(0, 115, 234, 0.08); }
  100% { background: rgba(0, 115, 234, 0.12); }
}

.pdf-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}
.pdf-placeholder.visible {
  display: flex;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: 340px;
}

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

.toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast.success .toast-dot { background: var(--green); }
.toast.error   .toast-dot { background: var(--red); }
.toast.info    .toast-dot { background: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.file-table tbody tr {
  animation: fadeIn 0.2s ease both;
}

.review-item {
  animation: fadeIn 0.15s ease both;
}