/* ---- Page Container ---- */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}
.page-container h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
}
.page-container .subtitle {
  color: #86868b;
  font-size: 14px;
  margin: 0;
}

/* ---- Projects Dashboard ---- */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 16px;
}
.projects-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.projects-loading,
.projects-empty {
  text-align: center;
  padding: 48px 24px;
  color: #86868b;
  font-size: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  grid-column: 1 / -1;
}
.projects-empty p {
  margin: 4px 0;
}
.project-card {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.project-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.project-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  word-break: break-word;
}
.project-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-complete {
  background: #e8f5e9;
  color: #2e7d32;
}
.status-matching {
  background: #fff3e0;
  color: #e65100;
}
.project-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #86868b;
  margin-bottom: 12px;
}
.project-stats-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.project-stat {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}
.project-stat.stat-exact { background: #e8f5e9; color: #2e7d32; }
.project-stat.stat-fuzzy { background: #fff3e0; color: #e65100; }
.project-stat.stat-ai { background: #ede7f6; color: #4527a0; }
.project-stat.stat-none { background: #ffebee; color: #c62828; }
.project-review-bar {
  width: 100%;
  height: 6px;
  background: #e5e5e7;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.project-review-fill {
  height: 100%;
  background: linear-gradient(90deg, #0066cc, #34c759);
  border-radius: 3px;
  transition: width 0.3s;
}
.project-review-label {
  font-size: 12px;
  color: #86868b;
  margin-bottom: 14px;
}
.project-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-card-actions button {
  font-size: 12px;
  padding: 6px 14px;
}
.btn-danger {
  background: none;
  border: 1px solid #ffcdd2;
  color: #c62828;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-danger:hover {
  background: #ffebee;
}
.btn-link {
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

/* ---- Upload Nav ---- */
.upload-nav {
  margin-bottom: 16px;
}

/* ---- Project Title Field ---- */
.mapping-title-field {
  margin-bottom: 24px;
}
.mapping-title-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 6px;
}
.mapping-title-field input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: white;
  color: #1d1d1f;
  transition: all 0.2s;
  box-sizing: border-box;
}
.mapping-title-field input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
.mapping-title-field input::placeholder {
  color: #b0b0b5;
}

/* ---- Upload Card ---- */
.upload-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-top: 24px;
}
.upload-dropzone {
  border: 2px dashed #d2d2d7;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: #0066cc;
  background: #f0f7ff;
}
.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.upload-dropzone h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
}
.upload-dropzone p {
  margin: 0;
  font-size: 14px;
  color: #86868b;
}
.upload-input {
  display: none;
}
.upload-info {
  margin-top: 20px;
  padding: 16px;
  background: #f5f5f7;
  border-radius: 8px;
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.6;
}
.upload-info code {
  background: #e8e8ed;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.upload-info p {
  margin: 4px 0;
}
.upload-options {
  margin-top: 20px;
}
.option-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1d1d1f;
  cursor: pointer;
}
.option-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0066cc;
}
.upload-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}
.btn-match {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-match:hover:not(:disabled) {
  background: #0055aa;
}
.btn-match:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.upload-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  color: #c62828;
  font-size: 14px;
}
.file-info {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f0f7ff;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  font-size: 14px;
  color: #1d1d1f;
}
.file-info #fileName {
  font-weight: 600;
}
.file-info #fileRows {
  color: #86868b;
}
.file-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: #86868b;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.file-clear:hover {
  color: #ff3b30;
}

/* ---- Progress Card ---- */
.progress-card {
  background: white;
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-top: 24px;
  text-align: center;
}
.progress-card h3 {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 600;
}
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e5e5e7;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0066cc, #34c759);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.progress-message {
  margin: 16px 0 0;
  color: #86868b;
  font-size: 14px;
}
.progress-phases {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.phase-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #b0b0b5;
  transition: color 0.2s;
}
.phase-item.active {
  color: #0066cc;
  font-weight: 600;
}
.phase-item.done {
  color: #34c759;
}
.phase-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.phase-item.done .phase-icon::after {
  content: '\2713';
}
.phase-item.active .phase-icon {
  border-color: #0066cc;
  animation: spin 0.7s linear infinite;
  border-top-color: transparent;
}

/* ---- Results Section ---- */
.results-header {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.results-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat-card {
  background: white;
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 100px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  text-align: center;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}
.stat-exact .stat-value { color: #34c759; }
.stat-fuzzy .stat-value { color: #ff9500; }
.stat-ai .stat-value { color: #5856d6; }
.stat-none .stat-value { color: #ff3b30; }
.results-actions {
  display: flex;
  gap: 8px;
}
.btn-export {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-export:hover { background: #0055aa; }
.btn-reset {
  background: white;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-reset:hover {
  background: #f5f5f7;
  border-color: #b0b0b5;
}

/* ---- Results Table ---- */
.results-table-wrap {
  margin-top: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: auto;
  max-height: 520px;
}
#resultsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#resultsTable thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
#resultsTable th {
  background: #f5f5f7;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6e6e73;
  border-bottom: 1px solid #e5e5e7;
  white-space: nowrap;
}
#resultsTable td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f2;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#resultsTable tr:hover td {
  background: #fafafa;
}
.match-exact { color: #34c759; font-weight: 600; }
.match-fuzzy { color: #ff9500; font-weight: 600; }
.match-ai { color: #5856d6; font-weight: 600; }
.match-cell {
  font-family: 'SF Mono', SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

/* ---- Column Mapping Card ---- */
.mapping-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-top: 24px;
}
.mapping-header h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}
.mapping-subtitle {
  color: #86868b;
  font-size: 14px;
  margin: 0 0 24px;
}
.mapping-grid-header {
  display: grid;
  grid-template-columns: 160px 220px 90px 1fr;
  gap: 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid #e5e5e7;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #86868b;
}
.mapping-rows {
  display: flex;
  flex-direction: column;
}
.mapping-row {
  display: grid;
  grid-template-columns: 160px 220px 90px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f2;
}
.mapping-row:last-child {
  border-bottom: none;
}
.mapping-label strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}
.mapping-key {
  display: block;
  font-size: 11px;
  color: #86868b;
  font-family: 'SF Mono', SFMono-Regular, Menlo, monospace;
  margin-top: 1px;
}
.mapping-select {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: white;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s;
}
.mapping-select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
.mapping-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
  text-align: center;
}
.badge-auto {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-manual {
  background: #e3f2fd;
  color: #1565c0;
}
.badge-na {
  background: #f5f5f7;
  color: #86868b;
}
.mapping-sample {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 24px;
  align-items: center;
}
.sample-value {
  background: #f5f5f7;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #6e6e73;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sample-na {
  font-size: 12px;
  color: #b0b0b5;
  font-style: italic;
}
.mapping-options {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-model-select {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
  font-size: 14px;
  color: #1d1d1f;
}
.ai-model-select select {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: white;
  color: #1d1d1f;
  cursor: pointer;
  min-width: 200px;
}
.ai-model-select select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
.mapping-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ---- Review Button ---- */
.btn-review {
  background: #5856d6;
  color: white;
  border: none;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-review:hover { background: #4a48c4; }

/* ---- Review Overlay ---- */
.review-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #f5f5f7;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.review-overlay.hidden { display: none; }

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: white;
  border-bottom: 1px solid #e5e5e7;
  flex-shrink: 0;
}
.review-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.review-header-left h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.review-counter {
  font-size: 14px;
  color: #86868b;
  background: #f0f0f2;
  padding: 4px 12px;
  border-radius: 12px;
}
.review-header-right {
  display: flex;
  gap: 8px;
}

.review-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  background: white;
  border-bottom: 1px solid #e5e5e7;
  flex-shrink: 0;
}
.review-nav-btn {
  background: none;
  border: 1px solid #d2d2d7;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  color: #1d1d1f;
  transition: all 0.15s;
}
.review-nav-btn:hover {
  background: #f0f0f2;
  border-color: #b0b0b5;
}
.review-position {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.review-body {
  flex: 1;
  display: flex;
  padding: 0;
  max-width: none;
  width: 100%;
  overflow: hidden;
}

.review-panel-left {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  border-right: 1px solid #e5e5e7;
  border-top: 3px solid transparent;
  min-width: 0;
}

.review-resize-handle {
  width: 5px;
  flex-shrink: 0;
  cursor: col-resize;
  background: transparent;
  position: relative;
  z-index: 5;
  transition: background 0.15s;
}
.review-resize-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 32px;
  border-radius: 2px;
  background: #d2d2d7;
  transition: background 0.15s, height 0.15s;
}
.review-resize-handle:hover::after,
.review-resize-handle.active::after {
  background: #0066cc;
  height: 48px;
}
.review-resize-handle:hover,
.review-resize-handle.active {
  background: rgba(0,102,204,0.06);
}

.review-panel-right {
  width: 420px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 12px 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 3px solid transparent;
}

.review-panel-active {
  border-top-color: #0066cc;
}

.review-panel-left:not(.review-panel-active) {
  opacity: 0.85;
}

.review-panel-right:not(.review-panel-active) {
  opacity: 0.85;
}

.review-panel-right .tree-container {
  max-height: none;
  flex: 1;
}

.rt-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rt-toolbar .tree-level-config {
  flex: 1;
  min-width: 0;
}

.rt-search-wrap {
  position: relative;
}

.rt-search-wrap .tree-search {
  width: 100%;
  box-sizing: border-box;
}

.review-match-manual {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #e3f2fd;
  color: #1565c0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.review-row-wrap {
  position: relative;
}

/* ---- Decision badges ---- */
.review-decision-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.review-decided-approve .review-decision-badge {
  background: #e8f5e9;
  color: #2e7d32;
}
.review-decided-discard .review-decision-badge {
  background: #ffebee;
  color: #c62828;
}

.review-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #86868b;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---- Input product card ---- */
.review-input-card {
  background: white;
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.review-input-headline {
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.review-input-description {
  font-size: 15px;
  color: #6e6e73;
  margin-bottom: 8px;
  line-height: 1.4;
}
.review-google-link {
  font-size: 13px;
  text-decoration: none;
  opacity: 0.5;
  margin-left: 4px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.review-google-link:hover {
  opacity: 1;
}
.review-input-category {
  font-size: 13px;
  color: #86868b;
  margin-bottom: 16px;
}
.review-input-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #f0f0f2;
}
.review-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-metric-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #86868b;
}
.review-metric-value {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}
.review-mono {
  font-family: 'SF Mono', SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

/* ---- Discard button ---- */
.review-discard-btn {
  background: none;
  border: 1px solid #ffcdd2;
  color: #c62828;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.review-discard-btn:hover {
  background: #ffebee;
}

/* ---- Match cards ---- */
.review-match-card {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 4px solid transparent;
}
.review-match-card:hover {
  background: #f8f8fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.review-match-card.approved {
  border-left-color: #34c759;
  background: #f0faf2;
}

.review-match-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  flex-shrink: 0;
}
.review-match-card:hover .review-match-number {
  background: #e3f2fd;
  color: #0066cc;
}

.review-match-details {
  flex: 1;
  min-width: 0;
}
.review-match-headline {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 3px;
}
.review-match-sub {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 4px;
}
.review-match-sub .review-mono {
  color: #6e6e73;
}
.review-match-price {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}
.review-match-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #86868b;
}
.review-match-stock {
  color: #34c759;
  font-weight: 600;
}

.review-match-approve {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  background: white;
  color: #86868b;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.review-match-approve:hover {
  background: #e8f5e9;
  border-color: #34c759;
  color: #34c759;
}

/* Discarded row styling */
.review-decided-discard .review-input-card {
  opacity: 0.5;
}
.review-decided-discard .review-match-card {
  opacity: 0.3;
  pointer-events: none;
}

/* ---- Keyboard hints bar ---- */
.review-kbd {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 10px 32px;
  background: white;
  border-top: 1px solid #e5e5e7;
  font-size: 12px;
  color: #86868b;
  flex-shrink: 0;
}
.review-kbd span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-kbd kbd {
  display: inline-block;
  padding: 2px 6px;
  background: #f0f0f2;
  border: 1px solid #d2d2d7;
  border-radius: 4px;
  font-family: 'SF Mono', SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.4;
}

/* Responsive: stack mapping grid on narrow screens */
@media (max-width: 768px) {
  .mapping-grid-header {
    display: none;
  }
  .mapping-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .mapping-sample {
    margin-top: 4px;
  }
}
