* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

body.dashboard-body {
  min-height: 100vh;
}

.dashboard-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 72px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.sidebar-link,
.sidebar-bottom {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  color: #475569;
  font-size: 18px;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #e8f0ff;
  color: #2563eb;
}

.sidebar-bottom {
  margin-top: auto;
}

/* Main */
.main-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 76px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.content-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.content-area {
  flex: 1;
  padding: 28px;
  min-width: 0;
}

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

.content-header h1,
.assistant-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #111827;
}

.content-header p,
.assistant-header p {
  margin: 6px 0 0 0;
  color: #6b7280;
  line-height: 1.5;
}

.filters-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.search-wrap input,
.filter-wrap select,
.panel-body input[type="text"],
.panel-body textarea,
.assistant-form textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 14px 14px;
  font-size: 16px;
  background: #ffffff;
  color: #111827;
  outline: none;
}

.search-wrap input:focus,
.filter-wrap select:focus,
.panel-body input[type="text"]:focus,
.panel-body textarea:focus,
.assistant-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.panel-body textarea,
.assistant-form textarea {
  min-height: 120px;
  resize: vertical;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.primary-btn,
.secondary-btn,
.card-btn,
.icon-btn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}

.primary-btn {
  background: #2563eb;
  color: #ffffff;
  padding: 12px 18px;
}

.primary-btn:hover {
  background: #1d4ed8;
}

.secondary-btn {
  background: #f3f4f6;
  color: #374151;
  padding: 12px 18px;
}

.secondary-btn:hover {
  background: #e5e7eb;
}

.icon-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  color: #6b7280;
}

.icon-btn:hover {
  background: #f3f4f6;
}

/* Knowledge cards */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.knowledge-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

.inactive-entry {
  opacity: 0.7;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.category-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 12px;
}

.status-active {
  background: #e7f6ef;
  color: #2f7a60;
}

.status-inactive {
  background: #fdecec;
  color: #c05656;
}

.cat-amenities {
  background: #e7f0ff;
  color: #2563eb;
}

.cat-services {
  background: #eef2ff;
  color: #4f46e5;
}

.cat-housekeeping {
  background: #f3f4f6;
  color: #374151;
}

.cat-parking {
  background: #eef4ff;
  color: #334e9a;
}

.cat-accessibility {
  background: #e8fbff;
  color: #0f766e;
}

.cat-policies {
  background: #fff4e6;
  color: #b45309;
}

.cat-default {
  background: #f3f4f6;
  color: #475569;
}

.card-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.3;
  color: #111827;
}

.card-content {
  margin: 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.55;
  min-height: 74px;
}

.card-divider {
  height: 1px;
  background: #edf0f4;
  margin: 18px 0 14px 0;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-btn {
  padding: 9px 14px;
}

.edit-btn {
  background: #f8fafc;
  color: #2563eb;
  border: 1px solid #dbe5f1;
}

.edit-btn:hover {
  background: #edf4ff;
}

.delete-btn {
  background: #fff7f7;
  color: #dc2626;
  border: 1px solid #f3d1d1;
}

.delete-btn:hover {
  background: #feeaea;
}

/* Right editor panel */
.editor-panel {
  width: 360px;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.panel-header {
  height: 76px;
  padding: 0 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h2 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.panel-body {
  padding: 18px;
  overflow-y: auto;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
  font-weight: 600;
  color: #374151;
}

.panel-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.panel-actions .primary-btn,
.panel-actions .secondary-btn {
  flex: 1;
}

.status-message {
  min-height: 22px;
  color: #2563eb;
  font-size: 14px;
  margin-top: 10px;
}

/* Switch */
.switch {
  position: relative;
  width: 50px;
  height: 28px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #d1d5db;
  border-radius: 999px;
  transition: 0.2s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: #10b981;
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* Assistant page */
.assistant-page {
  padding: 28px;
}

.assistant-card {
  max-width: 900px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

.assistant-form {
  margin-top: 22px;
}

.assistant-form .primary-btn {
  margin-top: 14px;
}

.assistant-answer {
  margin-top: 28px;
}

.assistant-answer h2 {
  margin: 0 0 12px 0;
  font-size: 20px;
}

.answer-box {
  background: #111827;
  color: #f9fafb;
  padding: 16px 18px;
  border-radius: 14px;
  min-height: 0;
  white-space: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.empty-state {
  background: #ffffff;
  border: 1px dashed #d1d5db;
  color: #6b7280;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

/* Mobile */
@media (max-width: 1200px) {
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-panel {
    width: 320px;
  }
}

@media (max-width: 980px) {
  .content-shell {
    flex-direction: column;
  }

  .editor-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid #e5e7eb;
    display: none;
  }

  .editor-panel.open {
    display: block;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .filters-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: 64px;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 14px;
  }

  .sidebar-nav {
    flex-direction: row;
    margin-top: 0;
  }

  .sidebar-bottom {
    margin-top: 0;
  }

  .topbar {
    height: auto;
    padding: 18px 16px;
  }

  .content-area,
  .assistant-page {
    padding: 16px;
  }

  .content-header {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-actions {
    flex-direction: column;
  }

  .card-actions {
    flex-wrap: wrap;
  }
}
.answer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answer-title {
  font-weight: 700;
  font-size: 14px;
  color: #9ca3af;
  text-transform: uppercase;
}

.answer-main {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.answer-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #fff;
}

.detail-line {
  line-height: 1.4;
}

.answer-sources {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.source-item {
  font-size: 12px;
  color: #9ca3af; /* neutral gray */
}

.answer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.confidence-pill {
  flex-shrink: 0;
  background: #e7f6ef;
  color: #2f7a60;
  border: 1px solid #b7e4cf;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .answer-row {
    flex-direction: column;
  }
}

.feedback-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.feedback-question {
  font-size: 14px;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 10px;
}

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

.feedback-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.feedback-btn.helpful {
  background: #e7f6ef;
  color: #2f7a60;
}

.feedback-btn.not-helpful {
  background: #fdecec;
  color: #c05656;
}

.feedback-status {
  margin-top: 10px;
  font-size: 13px;
  color: #93c5fd;
}

.feedback-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.05);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;

  text-align: center;
}

.summary-card span {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-card strong {
  font-size: 34px;
  font-weight: 900;
  color: #111827;
}

.summary-card.danger strong {
  color: #dc2626;
}

.feedback-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feedback-topic-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

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

.feedback-topic-header h2 {
  margin: 4px 0 0 0;
  font-size: 22px;
  color: #111827;
}

.topic-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.topic-status {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.topic-status.good {
  background: #e7f6ef;
  color: #2f7a60;
}

.topic-status.needs-review {
  background: #fdecec;
  color: #c05656;
}

.feedback-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.feedback-metrics div {
  background: #f8fafc;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  padding: 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  gap: 4px;
}

.feedback-metrics span {
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feedback-metrics strong {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.summary-card:hover,
.feedback-metrics div:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: all 0.15s ease;
}

.latest-feedback {
  background: #f9fafb;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  padding: 14px;
}

.latest-feedback p {
  margin: 6px 0 14px 0;
  line-height: 1.5;
  color: #374151;
}

.feedback-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 13px;
}

.feedback-details {
  margin-top: 14px;
}

.feedback-details summary {
  cursor: pointer;
  font-weight: 800;
  color: #2563eb;
}

.feedback-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.feedback-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.feedback-table th,
.feedback-table td {
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  padding: 10px;
  vertical-align: top;
}

.feedback-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 800;
}

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

  .feedback-topic-header {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .feedback-summary-grid,
  .feedback-metrics {
    grid-template-columns: 1fr;
  }
}

.urgent-feedback {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15), 0 12px 30px rgba(220, 38, 38, 0.08);
}

.feedback-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.feedback-action {
  border: 1px solid #dbe3ea;
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.feedback-action:hover {
  background: #f8fafc;
}

.feedback-action.create-entry {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.feedback-action.reviewed {
  background: #e7f6ef;
  color: #2f7a60;
  border-color: #b7e4cf;
}

.feedback-action.needs-update {
  background: #fff4e6;
  color: #b45309;
  border-color: #f5d59f;
}

.feedback-action.ignored {
  background: #f3f4f6;
  color: #6b7280;
}
.urgent-feedback {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15), 0 12px 30px rgba(220, 38, 38, 0.08);
}

.feedback-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.feedback-action {
  border: 1px solid #dbe3ea;
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.feedback-action:hover {
  background: #f8fafc;
}

.feedback-action.create-entry {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.feedback-action.reviewed {
  background: #e7f6ef;
  color: #2f7a60;
  border-color: #b7e4cf;
}

.feedback-action.needs-update {
  background: #fff4e6;
  color: #b45309;
  border-color: #f5d59f;
}

.feedback-action.ignored {
  background: #f3f4f6;
  color: #6b7280;
}

.association-manager {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

.association-manager h2 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.association-manager p {
  margin: 6px 0 14px 0;
  color: #6b7280;
  font-size: 14px;
}

.association-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.association-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  padding: 12px 14px;
}

.association-name {
  font-size: 14px;
  color: #374151;
}

.remove-association-btn {
  border: 1px solid #f3d1d1;
  background: #fff7f7;
  color: #dc2626;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.remove-association-btn:hover {
  background: #feeaea;
}

.login-body {
  min-height: 100vh;
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-shell {
  width: 100%;
  max-width: 460px;
}

.login-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
}

.login-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 0;
  font-size: 26px;
  color: #111827;
}

.login-card p {
  margin: 8px 0 22px 0;
  color: #6b7280;
  line-height: 1.5;
}

.login-input {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 14px;
  font-size: 20px;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  outline: none;
}

.login-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-status {
  margin-top: 14px;
  min-height: 22px;
  color: #dc2626;
  font-size: 14px;
}

.branch-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.branch-option {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
}

.branch-option:hover {
  background: #eef4ff;
  border-color: #2563eb;
}

.branch-option strong {
  display: block;
  font-size: 16px;
  color: #111827;
}

.branch-option span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #6b7280;
}

.duplicate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 80;
}

.duplicate-overlay.open {
  display: flex;
}

.duplicate-modal {
  width: min(1200px, 100%);
  max-height: 92vh;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.duplicate-header {
  padding: 20px 22px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.duplicate-header h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
}

.duplicate-header p {
  margin: 6px 0 0 0;
  color: #6b7280;
}

.duplicate-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 360px;
  overflow: auto;
}

.duplicate-column {
  padding: 22px;
  border-right: 1px solid #e5e7eb;
}

.duplicate-column:last-child {
  border-right: none;
}

.duplicate-column h3 {
  margin: 6px 0 8px 0;
  color: #111827;
  font-size: 20px;
}

.duplicate-meta {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 12px;
}

.duplicate-score {
  display: inline-flex;
  background: #fff4e6;
  color: #b45309;
  border: 1px solid #f5d59f;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.duplicate-content {
  background: #f8fafc;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  padding: 14px;
  color: #374151;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 360px;
  overflow: auto;
}

.duplicate-list {
  padding: 0 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.duplicate-match-btn {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.duplicate-match-btn strong {
  color: #111827;
  font-size: 14px;
}

.duplicate-match-btn span {
  color: #6b7280;
  font-size: 13px;
}

.duplicate-match-btn:hover,
.duplicate-match-btn.active {
  border-color: #2563eb;
  background: #eef4ff;
}

.duplicate-actions {
  padding: 18px 22px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .duplicate-body {
    grid-template-columns: 1fr;
  }

  .duplicate-column {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .duplicate-actions {
    justify-content: stretch;
  }

  .duplicate-actions button {
    flex: 1;
  }
}

.draft-editor-panel {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 90;
}

.draft-editor-panel.open {
  display: flex;
}

.draft-editor-panel .panel-shell {
  width: min(920px, 100%);
  max-height: 92vh;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.draft-editor-panel .panel-header {
  padding: 20px 22px;
  border-bottom: 1px solid #e5e7eb;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.draft-editor-panel .panel-header h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
}

.draft-editor-panel .panel-body {
  padding: 22px;
  overflow-y: visible;
}

.draft-editor-panel input[type="text"],
.draft-editor-panel textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  background: #ffffff;
  color: #111827;
  margin-bottom: 16px;
  outline: none;
}

.draft-editor-panel textarea {
  height: 300px;
  min-height: 220px;
  max-height: 40vh;
  resize: vertical;
  line-height: 1.6;
  overflow-y: auto;
}

.draft-editor-panel .panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.approve-wide-btn {
  width: 100%;
  margin-top: 16px;
  background: #10b981;
}

.approve-wide-btn:hover {
  background: #059669;
}

@media (max-width: 800px) {
  .draft-editor-panel {
    padding: 12px;
  }

  .draft-editor-panel textarea {
    min-height: 260px;
  }

.draft-editor-panel .panel-actions {
  grid-template-columns: 1fr;
}
}

.improve-draft-btn {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.improve-draft-btn:hover {
  background: #e0e7ff;
}

.improve-draft-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#aiImprovedContent {
  border-color: #c7d2fe;
  background: #f8f9ff;
}

#aiImproveOverlay .duplicate-modal {
  width: min(1100px, 100%);
}

#aiImproveOverlay {
  z-index: 120;
}

#duplicateOverlay {
  z-index: 110;
}

#draftEditorPanel {
  z-index: 90;
}

.draft-editor-panel.ai-review-active .panel-shell {
  filter: blur(1px);
  opacity: 0.65;
  pointer-events: none;
}
.merge-draft-btn {
  background: #10b981;
  color: #ffffff;
}

.merge-draft-btn:hover {
  background: #059669;
}

.import-drafts-list {
  margin-top: 0;
}

.import-draft-card {
  display: flex;
  flex-direction: column;
}

.import-draft-card .card-title {
  min-height: auto;
}

.import-draft-content {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  min-height: 110px;
}

.import-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.import-draft-card .card-actions {
  margin-top: auto;
}

.import-draft-card .edit-draft-btn {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
}

.import-draft-card .edit-draft-btn:hover {
  background: #1d4ed8;
}

.import-draft-card .approve-draft-btn {
  background: #10b981;
  color: #ffffff;
  border: 1px solid #10b981;
}

.import-draft-card .approve-draft-btn:hover {
  background: #059669;
}

/* Duplicate modal buttons */

#editDuplicateDraftBtn {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
}

#editDuplicateDraftBtn:hover {
  background: #1d4ed8;
}

#mergeDuplicateDraftBtn,
#applyAiImproveBtn,
#approveFromEditorBtn {
  background: #10b981;
  color: #ffffff;
  border: 1px solid #10b981;
}

#mergeDuplicateDraftBtn:hover,
#applyAiImproveBtn:hover,
#approveFromEditorBtn:hover {
  background: #059669;
}

/* Draft editor buttons */

#saveDraftEditBtn {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
}

#saveDraftEditBtn:hover {
  background: #1d4ed8;
}

#improveDraftBtn {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

#improveDraftBtn:hover {
  background: #e0e7ff;
}

.drafts-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.draft-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef4ff, #f8f9ff);
  border: 1px solid #c7d2fe;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.draft-count-pill span {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.draft-count-pill small {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.import-hero-card {
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid #dbeafe;
  border-radius: 24px;
  padding: 26px;
  margin-bottom: 30px;
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.08);
  max-width: 980px;
}

.import-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.import-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  flex-shrink: 0;
}

.import-hero-card h2 {
  margin: 0;
  font-size: 24px;
  color: #111827;
}

.import-hero-card p {
  margin: 7px 0 0 0;
  color: #64748b;
  line-height: 1.55;
  max-width: 760px;
}

.import-form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.import-field input,
.import-field select {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  background: #ffffff;
  color: #111827;
  outline: none;
}

.import-field input:focus,
.import-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.file-drop-zone {
  border: 1px dashed #93c5fd;
  background: #f8fbff;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.file-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-drop-copy strong {
  color: #111827;
  font-size: 16px;
}

.file-drop-copy span {
  color: #64748b;
  font-size: 13px;
}

.file-drop-zone input[type="file"] {
  max-width: 360px;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 10px;
}

.import-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.import-action-row .primary-btn {
  padding: 13px 20px;
}

.import-action-row .status-message {
  margin-top: 0;
  color: #2563eb;
  font-weight: 700;
}

@media (max-width: 760px) {
  .import-form-grid {
    grid-template-columns: 1fr;
  }

  .file-drop-zone {
    flex-direction: column;
    align-items: stretch;
  }

  .file-drop-zone input[type="file"] {
    max-width: 100%;
  }

  .import-hero-main {
    flex-direction: column;
  }
}

.drafts-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.refresh-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  color: #2563eb;
  font-size: 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.refresh-icon-btn:hover {
  background: #eef4ff;
  border-color: #93c5fd;
  transform: rotate(90deg);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.14);
}

.refresh-icon-btn:active {
  transform: rotate(180deg) scale(0.96);
}

.file-drop-zone {
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.file-drop-zone.drag-over {
  border-color: #2563eb;
  background: #eef4ff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.hidden-file-input {
  display: none;
}

.browse-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.browse-file-btn:hover {
  background: #1d4ed8;
}

.selected-file-name {
  margin-top: 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.knowledge-source-meta {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #edf0f4;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.source-line-1 {
  font-weight: 700;
}

.source-line-2 {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.75;
}

.import-bulk-toolbar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.bulk-left,
.bulk-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bulk-btn {
  padding: 10px 14px;
  font-size: 13px;
}

.selected-draft-count {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.danger-outline-btn {
  border: 1px solid #f3b4b4;
  background: #fff7f7;
  color: #dc2626;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 14px;
}

.danger-outline-btn:hover {
  background: #feeaea;
}

.draft-card-left-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.draft-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}

.draft-select-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .import-bulk-toolbar {
    align-items: stretch;
  }

  .bulk-left,
  .bulk-right {
    width: 100%;
  }

  .bulk-left button,
  .bulk-right button {
    flex: 1;
  }
}

.analytics-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.analytics-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

.analytics-panel-header {
  margin-bottom: 16px;
}

.analytics-panel-header h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.analytics-panel-header p {
  margin: 6px 0 0 0;
  color: #6b7280;
  line-height: 1.4;
}

.analytics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-row {
  background: #f8fafc;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.analytics-row strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.analytics-row span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.analytics-row-stat {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.analytics-row-stack {
  align-items: flex-start;
}

.analytics-action-btn {
  white-space: nowrap;
}

.analytics-feedback-card {
  background: #f8fafc;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  padding: 14px;
}

.analytics-feedback-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.analytics-feedback-top strong {
  color: #111827;
  line-height: 1.35;
}

.analytics-feedback-top span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.analytics-feedback-card p {
  margin: 10px 0;
  color: #374151;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .analytics-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .analytics-summary-grid {
    grid-template-columns: 1fr;
  }

  .analytics-row,
  .analytics-feedback-top {
    flex-direction: column;
  }
}

.analytics-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feedback-analytics-grid {
  margin-bottom: 24px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.analytics-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

.analytics-panel-header {
  margin-bottom: 16px;
}

.analytics-panel-header h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.analytics-panel-header p {
  margin: 6px 0 0 0;
  color: #6b7280;
  line-height: 1.4;
}

.analytics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-row {
  background: #f8fafc;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.analytics-row strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.analytics-row span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.analytics-row-stat {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.analytics-row-stack {
  align-items: flex-start;
}

.analytics-action-btn {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .analytics-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .analytics-summary-grid {
    grid-template-columns: 1fr;
  }

  .analytics-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.association-suggestions-panel {
  margin-bottom: 24px;
}

.association-suggestion-row {
  align-items: center;
}

.approve-association-suggestion-btn {
  white-space: nowrap;
}

.knowledge-editor-panel {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 90;
}

.knowledge-editor-panel.open {
  display: flex;
}

.knowledge-editor-panel .panel-header {
  height: auto;
  padding: 20px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.knowledge-editor-panel .panel-body {
  padding: 22px;
  overflow-y: visible;
}

.knowledge-editor-panel::before {
  content: "";
}

.knowledge-editor-panel > .panel-header,
.knowledge-editor-panel > .panel-body {
  width: min(920px, 100%);
  background: #ffffff;
}

.knowledge-editor-panel {
  flex-direction: column;
}

.knowledge-editor-panel > .panel-header {
  border-radius: 22px 22px 0 0;
}

.knowledge-editor-panel > .panel-body {
  border-radius: 0 0 22px 22px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.knowledge-editor-panel input[type="text"],
.knowledge-editor-panel textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  background: #ffffff;
  color: #111827;
  margin-bottom: 16px;
  outline: none;
}

.knowledge-editor-panel textarea {
  height: 300px;
  min-height: 220px;
  max-height: 40vh;
  resize: vertical;
  line-height: 1.6;
  overflow-y: auto;
}

.knowledge-editor-panel .panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

#knowledgeAiOverlay {
  z-index: 120;
}

.knowledge-editor-panel.ai-review-active > .panel-header,
.knowledge-editor-panel.ai-review-active > .panel-body {
  filter: blur(1px);
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 800px) {
  .knowledge-editor-panel {
    padding: 12px;
  }

  .knowledge-editor-panel .panel-actions {
    grid-template-columns: 1fr;
  }
}

.analytics-section-header {
  margin: 24px 0 12px;
}

.analytics-section-header h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
}

.analytics-section-header p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
}

.historical-summary-grid {
  margin-bottom: 24px;
}

.analytics-tabs {
  margin-bottom: 24px;
}

.analytics-tab-buttons {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 16px;
}

.analytics-tab-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.analytics-tab-btn.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.analytics-tab-panel {
  display: none;
}

.analytics-tab-panel.active {
  display: block;
}

.billing-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.billing-form input,
.billing-form textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  background: #ffffff;
  color: #111827;
  outline: none;
}

.billing-form textarea {
  min-height: 110px;
  resize: vertical;
}

.billing-form input:focus,
.billing-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.billing-form .primary-btn {
  margin-top: 8px;
}

.billing-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.summary-card.warning {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.summary-card.warning strong {
  color: #d97706;
}

.editable-summary-card {
  gap: 10px;
}

.wage-input-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.wage-input-wrap input {
  width: 86px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  color: #111827;
  background: #ffffff;
}

.wage-input-wrap input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wage-input-wrap small {
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
}

.summary-card-note {
  margin-top: -2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.deleted-entry-card {
  border-color: #fecaca;
  background: #fffafa;
}

.recycle-meta {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.restore-entry-btn {
  background: #e7f6ef;
  color: #2f7a60;
  border: 1px solid #b7e4cf;
}

.restore-entry-btn:hover {
  background: #dff3ea;
}

.support-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-faq-card {
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px 16px;
}

.support-faq-card summary {
  cursor: pointer;
  font-weight: 900;
  color: #111827;
}

.support-faq-card p {
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.5;
  font-size: 14px;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  background: #ffffff;
  color: #111827;
  outline: none;
}

.support-form textarea {
  min-height: 140px;
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.support-snapshot-box {
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.support-snapshot-box strong {
  color: #111827;
  font-size: 13px;
}

.support-snapshot-box span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.answer-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.answer-rating-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.18s ease;
}

.feedback-icon-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.answer-header-stack {
  margin-bottom: 14px;
}

.answer-feedback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin-top: 6px;
  padding: 10px 14px;

  border: 1px solid #e2e8f0;
  border-radius: 14px;

  background: #f8fafc;
}

.feedback-label {
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.feedback-actions {
  display: flex;
  gap: 10px;
}

.feedback-btn {
  border: none;
  border-radius: 10px;

  padding: 8px 16px;

  background: #2563eb;
  color: white;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.18s ease;
}

.feedback-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.feedback-btn.secondary {
  background: #64748b;
}

.answer-header-stack {
  margin-bottom: 16px;
}

.answer-feedback-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;

  margin-top: 8px;
  padding: 14px 16px;

  border: 1px solid #e2e8f0;
  border-radius: 18px;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.95),
      rgba(248,250,252,0.96)
    );

  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 24px rgba(15,23,42,0.04);
}
.answer-header-stack {
  margin-bottom: 16px;
}

.answer-feedback-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;

  margin-top: 8px;
  padding: 15px 16px;

  border: 1px solid #dbeafe;
  border-radius: 18px;

  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);

  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 30px rgba(37, 99, 235, 0.08);
}

.feedback-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
}

.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.feedback-btn {
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

/* Yes */
.feedback-btn {
  background: #e7f6ef;
  color: #2f7a60;
  border: 1px solid #b7e4cf;
  box-shadow: 0 8px 18px rgba(47, 122, 96, 0.10);
}

.feedback-btn:hover {
  background: #dff3ea;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47, 122, 96, 0.16);
}

/* No */
.feedback-btn.secondary {
  background: #fdecec;
  color: #c05656;
  border: 1px solid #f3d1d1;
  box-shadow: 0 8px 18px rgba(192, 86, 86, 0.10);
}

.feedback-btn.secondary:hover {
  background: #fee2e2;
  border-color: #f0baba;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(192, 86, 86, 0.16);
}

.feedback-btn:active {
  transform: translateY(0) scale(0.98);
}

.hidden-feedback-row {
  display: none;
}

.hidden-feedback-row {
  display: none;
}

.answer-feedback-row {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;

  margin-top: 6px;
  padding: 10px 12px;

  border: 1px solid #dbeafe;
  border-radius: 15px;

  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);

  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 20px rgba(37, 99, 235, 0.06);
}

.feedback-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
}

.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.feedback-btn {
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.feedback-btn.helpful {
  background: #e7f6ef;
  color: #2f7a60;
  border: 1px solid #b7e4cf;
  box-shadow: 0 6px 14px rgba(47, 122, 96, 0.10);
}

.feedback-btn.helpful:hover {
  background: #dff3ea;
  transform: translateY(-1px);
}

.feedback-btn.not-helpful {
  background: #fdecec;
  color: #c05656;
  border: 1px solid #f3d1d1;
  box-shadow: 0 6px 14px rgba(192, 86, 86, 0.10);
}

.feedback-btn.not-helpful:hover {
  background: #fee2e2;
  transform: translateY(-1px);
}

.hidden-feedback-row {
  display: none;
}

.feedback-fade-out {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.answer-feedback-row.submitted-feedback-row {
  display: inline-flex;
  padding: 8px 12px;
}

.answer-feedback-row.submitted-feedback-row .feedback-status {
  margin-top: 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}
.answer-feedback-row.submitted-feedback-row {
  display: inline-flex !important;
  padding: 8px 12px;
}

.answer-feedback-row.submitted-feedback-row .feedback-status {
  display: block;
  margin-top: 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}
.answer-feedback-row.submitted-feedback-row {
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  min-width: 220px;
  padding: 9px 13px;
}

.answer-feedback-row.submitted-feedback-row .feedback-status {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.feedback-status:empty {
  display: none;
}

.feedback-status:not(:empty) {
  display: block;
}

.sidebar-logo-link {
  text-decoration: none;
  display: flex;
  justify-content: center;
}

.sidebar-bottom-link {
  text-decoration: none;
  display: flex;
  justify-content: center;
}

.login-card {
  position: relative;
}

.login-admin-link {
  position: absolute;
  right: 18px;
  bottom: 16px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #f8fafc;
  border: 1px solid #dbe2ea;

  text-decoration: none;
  font-size: 18px;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.login-admin-link:hover {
  background: #ffffff;
  border-color: #cbd5e1;

  transform: translateY(-1px);

  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.08);
}
.login-logo-link {
  display: inline-flex;
  text-decoration: none;
}