@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --primary: #BF360C;
  --primary-light: #D84315;
  --primary-pale: #E64A19;
  --accent-lost: #FF5722;
  --accent-lost-light: #FFF3E0;
  --accent-lost-pale: #ffeedd;
  --accent-found: #0a8754;
  --accent-found-light: #ecfaf3;
  --accent-found-pale: #d4f5e4;
  --accent-resolve: #6c5ce7;
  --accent-resolve-light: #f0eeff;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-hover: #f0f4f8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #1a202c;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --danger: #e53e3e;
  --danger-light: #fff5f5;
  --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.12);
  --shadow-card: 0 1px 3px rgba(30, 58, 95, 0.05), 0 4px 12px rgba(30, 58, 95, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
}

::selection {
  background: var(--primary-light);
  color: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== APP CONTAINER ===== */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ===== HEADER ===== */
.app-header {
  padding: 32px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.header-content {
  flex: 1;
  min-width: 200px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(30, 58, 95, 0.2));
}

.app-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.app-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 46px;
}

/* ===== STATS ===== */
.stats-row {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  min-width: 70px;
}

.stat-lost {
  background: var(--accent-lost-light);
  border: 1px solid var(--accent-lost-pale);
}

.stat-found {
  background: var(--accent-found-light);
  border: 1px solid var(--accent-found-pale);
}

.stat-resolved {
  background: var(--accent-resolve-light);
  border: 1px solid #e0dcf7;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-lost .stat-number { color: var(--accent-lost); }
.stat-found .stat-number { color: var(--accent-found); }
.stat-resolved .stat-number { color: var(--accent-resolve); }

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 500;
}

.skeleton-stat {
  background: var(--border-light);
  height: 56px;
  width: 70px;
  animation: pulse 1.5s ease infinite;
}

/* ===== ACTION BAR ===== */
.action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrapper {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45, 90, 142, 0.12);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--border);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.search-clear:hover {
  background: var(--text-muted);
  color: white;
}

.post-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-lost {
  background: var(--accent-lost);
  color: white;
}

.btn-lost:hover:not(:disabled) {
  background: #c04500;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-found {
  background: var(--accent-found);
  color: white;
}

.btn-found:hover:not(:disabled) {
  background: #087548;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-resolve {
  background: var(--accent-resolve);
  color: white;
}

.btn-resolve:hover {
  background: #5a4bd4;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #c53030;
}

.btn-ghost {
  background: transparent;
  padding: 8px 12px;
}

.btn-danger-text {
  color: var(--text-muted);
}

.btn-danger-text:hover {
  color: var(--danger);
  background: var(--danger-light);
}

/* ===== TAB NAVIGATION ===== */
.tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}

.tab-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.tab-icon {
  font-size: 1rem;
}

/* ===== BOARD GRID ===== */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ===== ITEM CARD ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-entrance {
  animation: fadeInUp 0.4s ease both;
}

.item-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.item-card.resolved {
  opacity: 0.7;
}

.item-card.resolved:hover {
  opacity: 1;
}

.card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.item-card:hover .card-image img {
  transform: scale(1.04);
}

.card-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-lost {
  background: linear-gradient(135deg, var(--accent-lost-light), var(--accent-lost-pale));
}

.bg-found {
  background: linear-gradient(135deg, var(--accent-found-light), var(--accent-found-pale));
}

.no-image-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.badge-lost {
  background: rgba(217, 79, 0, 0.88);
  color: white;
}

.badge-found {
  background: rgba(10, 135, 84, 0.88);
  color: white;
}

.resolved-overlay {
  position: absolute;
  inset: 0;
  background: rgba(108, 92, 231, 0.75);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.card-body {
  padding: 14px 16px 16px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-category {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

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

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.meta-icon {
  font-size: 0.82rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto;
}

/* ===== SKELETON ===== */
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.skeleton-card {
  border: 1px solid var(--border-light);
  cursor: default;
}

.skeleton-card:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.skeleton-image {
  height: 180px;
  background: var(--border-light);
  animation: pulse 1.5s ease infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--border-light);
  margin: 10px 16px;
  animation: pulse 1.5s ease infinite;
}

.skeleton-line.wide { width: 70%; }
.skeleton-line.medium { width: 50%; }
.skeleton-line.narrow { width: 30%; }

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.modal-header-lost {
  background: var(--accent-lost-light);
}

.modal-header-found {
  background: var(--accent-found-light);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

/* ===== POST FORM ===== */
.post-form {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
  flex: 1;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45, 90, 142, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

.photo-upload-area {
  margin-top: 4px;
}

.photo-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg);
}

.photo-dropzone:hover {
  border-color: var(--primary-light);
  background: var(--primary-pale);
}

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

.dropzone-icon {
  font-size: 1.8rem;
  opacity: 0.5;
}

.dropzone-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upload-spinner {
  font-size: 0.9rem;
  color: var(--primary-light);
  font-weight: 500;
}

.photo-preview {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-preview img {
  display: block;
  max-height: 200px;
  max-width: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.photo-remove:hover {
  background: rgba(0, 0, 0, 0.8);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ===== DETAIL MODAL ===== */
.detail-modal {
  max-width: 560px;
  position: relative;
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.detail-image {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-body {
  padding: 24px;
}

.detail-header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.detail-type-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-resolved-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent-resolve-light);
  color: var(--accent-resolve);
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.detail-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.detail-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
}

.detail-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-info-icon {
  font-size: 1.1rem;
  margin-top: 2px;
}

.detail-info-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.detail-info-value {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.delete-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.delete-warning {
  font-size: 0.85rem;
  color: var(--danger);
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .app-header {
    flex-direction: column;
    padding: 20px 0 16px;
  }

  .app-subtitle {
    margin-left: 0;
  }

  .stats-row {
    width: 100%;
    justify-content: space-between;
  }

  .stat-chip {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
  }

  .action-bar {
    flex-direction: column;
  }

  .search-wrapper {
    min-width: 0;
    width: 100%;
  }

  .post-buttons {
    width: 100%;
  }

  .post-buttons .btn {
    flex: 1;
    justify-content: center;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .tab-label {
    display: none;
  }

  .tab-icon {
    font-size: 1.15rem;
  }

  .board-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .detail-info-grid {
    grid-template-columns: 1fr;
  }

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

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to your Lost & Found board! This is where you can track lost and found items in your school or office. The stats at the top show how many items are currently lost, found, or resolved.", "view": "user", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Use the search bar to quickly find items by name, description, location, or category. Try typing a keyword like 'keys' or 'cafeteria'.", "view": "user", "highlight_selector": ".search-wrapper", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "To report a lost item, click 'Report Lost'. To report something you found, click 'Report Found'. You can add a name, description, location, category, date, and even a photo.", "view": "user", "highlight_selector": ".post-buttons", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Use the tabs to filter between all items, just lost items, just found items, or items that have been resolved (claimed or returned).", "view": "user", "highlight_selector": ".tab-nav", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Click on any item card to see full details. From the detail view, you can mark an item as claimed/returned or delete it if needed.", "view": "user", "highlight_selector": ".board-grid", "wait_for": "tap_to_continue"}
]
-->

.identity-section {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  margin-bottom: 16px;
}

.identity-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.identity-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.identity-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.identity-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.identity-empty {
  color: var(--text-muted);
  font-style: italic;
}

.identity-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
}

.claim-form {
  padding: 0 24px 24px;
}

.form-help {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.location-map-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.location-map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}

.location-map-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.location-map-subtitle {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  margin-top: 2px;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.location-pill-lost {
  background: var(--accent-lost-light);
  color: var(--accent-lost);
}

.location-pill-found {
  background: var(--accent-found-light);
  color: var(--accent-found);
}

.location-map-frame {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.location-map-caption {
  padding: 12px 16px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}

.map-empty {
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  background: var(--bg);
  font-size: 0.9rem;
}

.match-status-panel {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.match-status-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.match-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.match-status-idle { background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border); }
.match-status-matching { background: var(--primary-pale); color: var(--primary); }
.match-status-matched { background: var(--accent-found-light); color: var(--accent-found); }
.match-status-nomatch { background: var(--accent-lost-light); color: var(--accent-lost); }
.match-status-error { background: var(--danger-light); color: var(--danger); }

.match-status-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.match-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-result-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 10px 12px;
}

.match-result-main {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.match-result-main strong {
  color: var(--text);
}

.match-result-score {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-resolve);
}

.match-result-reason {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.photo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-capture-btn {
  width: 100%;
  justify-content: center;
}
