:root {
  --ink: #1a2b33;
  --muted: #5f6f78;
  --paper: #f6f3ee;
  --card: #fffdf9;
  --line: #e4ddd3;
  --sage: #2d6a5a;
  --sage-soft: #e8f3ef;
  --coral: #e07a4f;
  --coral-soft: #fdf0ea;
  --sky: #3d7ea6;
  --shadow: 0 12px 40px rgba(26, 43, 51, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, #fde8dc 0%, transparent 32%),
    radial-gradient(circle at 100% 10%, #dcefe8 0%, transparent 28%),
    var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
}

.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 40px) 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.brand {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand span { color: var(--coral); }

.brand-tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38ch;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3cb371;
  box-shadow: 0 0 0 0 rgba(60, 179, 113, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(60, 179, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 179, 113, 0); }
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.workspace {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 18px;
  max-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-head h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
}

.sidebar-head p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

#caseSearch {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  margin-bottom: 12px;
}

#caseSearch:focus {
  outline: 2px solid var(--sage-soft);
  border-color: var(--sage);
}

.case-list {
  overflow: auto;
  flex: 1;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.case-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
  color: inherit;
}

.case-card:hover {
  transform: translateY(-1px);
  border-color: #cdbfb0;
}

.case-card.active {
  border-color: var(--sage);
  background: var(--sage-soft);
  box-shadow: 0 4px 16px rgba(45, 106, 90, 0.12);
}

.case-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.case-card-id {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--sage);
}

.case-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.case-card-snippet {
  color: var(--muted);
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2ece4;
  color: var(--muted);
}

.main-panel {
  padding: 22px;
}

.step-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #faf7f2;
  color: var(--muted);
  font-size: 0.82rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.step.active {
  background: var(--sage-soft);
  color: var(--sage);
  font-weight: 600;
}

.step.done {
  color: var(--ink);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
}

.step.active .step-num {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.step.done .step-num {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.case-chip, .severity-chip, .concept-chip {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.severity-chip.high, .severity-chip.critical { background: var(--coral-soft); color: #9a4d2e; border-color: #f0c9b8; }
.concept-chip { background: var(--sage-soft); color: var(--sage); border-color: #c5e0d8; }

.case-header h1 {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.lead, .body-copy {
  color: var(--muted);
  margin: 0;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn:not(:disabled):hover { transform: translateY(-1px); }

.btn-soft {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 8px 20px rgba(45, 106, 90, 0.25);
}

.btn-primary:not(:disabled):hover { background: #245a4d; }

.btn.loading .btn-text::after {
  content: "…";
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ""; }
  40% { content: "."; }
  60% { content: ".."; }
  80%, 100% { content: "..."; }
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}

.evidence-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.evidence-block summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  background: #faf7f2;
  list-style: none;
}

.evidence-block summary::-webkit-details-marker { display: none; }

.evidence-block summary::before {
  content: "▸ ";
  color: var(--coral);
}

.evidence-block[open] summary::before { content: "▾ "; }

.evidence-block .body-copy,
.evidence-block .terminal {
  margin: 0;
  padding: 14px;
}

.terminal {
  background: #1c2a32;
  color: #d7ebe3;
  border-radius: 0;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 220px;
  overflow: auto;
}

.conversation-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff 0%, #fcfaf7 100%);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 560px;
}

.conv-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.sage-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-family: Fraunces, Georgia, serif;
}

.conv-sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.thread {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  animation: fadeUp 0.28s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble.sage {
  align-self: flex-start;
  background: var(--sage-soft);
  border: 1px solid #cfe3db;
  border-bottom-left-radius: 4px;
}

.bubble.user {
  align-self: flex-end;
  background: var(--coral-soft);
  border: 1px solid #f0d2c4;
  border-bottom-right-radius: 4px;
}

.bubble.system {
  align-self: center;
  background: #faf7f2;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 100%;
  text-align: center;
}

.bubble.typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 18px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: bounce 1.2s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.bubble h4 {
  margin: 0 0 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
}

.bubble ul, .bubble ol {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.bubble li { margin-bottom: 4px; }

.bubble code, .inline-code {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.confidence-pill {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
}

.finding-card {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border-left: 4px solid var(--line);
}

.finding-card.high, .finding-card.critical { border-left-color: var(--coral); }
.finding-card.medium { border-left-color: #d4a72c; }
.finding-card.low { border-left-color: var(--sage); }

.reasoning-block {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d5e8e0;
  font-size: 0.84rem;
}

.reasoning-block summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--sage);
}

.reasoning-block ol {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.command-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.command-chip {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: #1c2a32;
  color: #d7ebe3;
}

.follow-up {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff8f0;
  border: 1px dashed #e8cbb8;
  font-size: 0.84rem;
}

.btn-open-chat {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
  background: var(--coral-soft);
  border: 1px solid #f0d2c4;
  color: #8a4a2f;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
}

.chat-composer {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
  background: #fff;
}

.context-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.context-toggle input {
  width: auto;
  margin: 0;
}

.composer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

#chatInput {
  margin: 0;
  resize: vertical;
  min-height: 52px;
  max-height: 140px;
}

#sendChat {
  height: fit-content;
  white-space: nowrap;
}

.review-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff9f4 0%, #fff 100%);
  border: 1px solid #f0ddd0;
  animation: fadeUp 0.3s ease;
}

.review-intro h3 {
  margin: 0 0 4px;
  font-family: Fraunces, Georgia, serif;
}

.review-intro p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  margin-bottom: 12px;
  background: #fff;
}

input:focus, textarea:focus {
  outline: 2px solid var(--coral-soft);
  border-color: var(--coral);
}

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

.btn-accept { background: var(--sage); color: #fff; }
.btn-edit { background: #fff; border: 1px solid var(--line); }
.btn-reject { background: #fff; border: 1px solid #e8b4b4; color: #9a3b3b; }

.feedback {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.feedback.success { color: var(--sage); font-weight: 600; }
.feedback.error { color: #b33; font-weight: 600; }

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  z-index: 100;
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.25s ease;
}

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .sidebar { max-height: none; }
  .content-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .step-rail { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar { flex-direction: column; }
  .nav-controls { flex-direction: column; width: 100%; }
  .view-switcher { width: 100%; }
  .view-tab { flex: 1; text-align: center; }
  .metrics-row, .step-rail { grid-template-columns: 1fr; }
  .review-actions .btn { width: 100%; justify-content: center; }
  .composer-row { grid-template-columns: 1fr; }
  #sendChat { width: 100%; justify-content: center; }
  .spreadsheet-toolbar { flex-direction: column; }
  .filter-group { width: 100%; }
}

/* ==========================================================================
   NAVIGATION & VIEW SWITCHER
   ========================================================================== */
.brand-badge {
  font-size: 0.85rem;
  background: var(--coral-soft);
  color: var(--coral);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  vertical-align: middle;
  font-weight: 700;
  border: 1px solid rgba(224, 122, 79, 0.2);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.view-switcher {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-tab:hover {
  color: var(--ink);
  background: rgba(0,0,0,0.03);
}

.view-tab.active {
  background: var(--sage);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(45, 106, 90, 0.25);
}

.view-pane {
  display: block;
}

.view-pane[hidden] {
  display: none !important;
}

/* ==========================================================================
   DASHBOARD HERO & METRICS
   ========================================================================== */
.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dash-hero-content h2 {
  margin: 0 0 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
}

.dash-hero-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 68ch;
}

.dash-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-metrics {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .dash-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   CHARTS GRID & VISUALIZATIONS
   ========================================================================== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card {
  display: flex;
  flex-direction: column;
}

.chart-header {
  margin-bottom: 16px;
}

.chart-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.chart-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.chart-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.bar-label {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 14px;
  background: var(--paper);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  font-weight: 600;
}

/* Bar color themes */
.bar-fill.concept-vlan { background: #3d7ea6; }
.bar-fill.concept-routing { background: #2d6a5a; }
.bar-fill.concept-gateway { background: #e07a4f; }
.bar-fill.concept-acl { background: #b84a39; }
.bar-fill.concept-dhcp { background: #6b5b95; }
.bar-fill.concept-dns { background: #45b8ac; }
.bar-fill.concept-nat { background: #d64161; }
.bar-fill.concept-wireless { background: #feb236; }
.bar-fill.concept-interface { background: #5f6f78; }

.bar-fill.status-accepted { background: #2d6a5a; }
.bar-fill.status-edited { background: #e07a4f; }
.bar-fill.status-rejected { background: #b84a39; }
.bar-fill.status-pending { background: #94a3b8; }

.bar-fill.sev-critical { background: #b84a39; }
.bar-fill.sev-high { background: #e07a4f; }
.bar-fill.sev-medium { background: #eab308; }
.bar-fill.sev-low { background: #2d6a5a; }

/* ==========================================================================
   SPREADSHEET TABLE & TOOLBAR
   ========================================================================== */
.spreadsheet-section {
  margin-top: 10px;
}

.spreadsheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.spreadsheet-header h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.table-counter {
  font-size: 0.85rem;
  background: var(--paper);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--muted);
}

.spreadsheet-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.spreadsheet-toolbar .search-box {
  flex: 1;
  min-width: 240px;
}

.spreadsheet-toolbar input,
.spreadsheet-toolbar select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.filter-group select {
  width: auto;
  min-width: 140px;
}

.table-responsive {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  max-height: 520px;
}

.spreadsheet-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.spreadsheet-table th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.spreadsheet-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.spreadsheet-table tbody tr:hover {
  background: #fbfbf9;
}

.spreadsheet-table .mono {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-chip.accepted {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.status-chip.edited {
  background: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffecb3;
}

.status-chip.rejected {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}

.status-chip.pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-table-action {
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

