/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #f5f3ef;
  --bg-card: #ffffff;
  --bg-surface: #edeae4;
  --bg-input: #f0ede8;
  --text: #1a1a18;
  --text-soft: #5a5a54;
  --text-muted: #9a9990;
  --accent: #3d6b35;
  --accent-soft: #e8f0e6;
  --accent-hover: #2f5429;
  --danger: #a83232;
  --danger-soft: #fce8e8;
  --warn: #8a6320;
  --warn-soft: #fdf3e0;
  --success: #2a6632;
  --nav-h: 68px;
  --header-h: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ===== SPLASH ===== */
.splash {
  position: fixed;
  inset: 0;
  background: #1a1f16;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: splashIn 0.6s ease;
}

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

.splash-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-icon svg {
  width: 72px;
  height: 72px;
}

.splash-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.splash-sub {
  font-size: 13px;
  color: #6e7868;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }

/* ===== MODALS ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 8, 0.55);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  /* prevent sheet from going above this padding from the top */
  padding-top: 48px;
}

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

.modal-sheet {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 0 32px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px); /* never taller than viewport minus top padding */
  overflow: hidden;               /* clip; inner body scrolls */
  animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
}

/* Sticky close button row — always visible at the top of the sheet */
.modal-close-btn {
  position: sticky;
  top: 0;
  align-self: flex-end;
  margin: 12px 16px 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: background 0.15s;
  z-index: 10;
  flex-shrink: 0;
}

.modal-close-btn:hover { background: #e0dcd5; }

/* Inner scrollable body — pad so content doesn't hide under close button */
.modal-sheet > *:not(.modal-close-btn):not(.modal-drag) {
  padding-left: 20px;
  padding-right: 20px;
}
.modal-sheet > .modal-drag {
  padding-top: 12px;
  margin: 0 auto 4px;
}
#detail-content {
  overflow-y: auto;
  flex: 1;
  padding: 0 20px 8px;
  -webkit-overflow-scrolling: touch;
}

.modal-sheet.tall {
  max-height: calc(100vh - 48px);
}

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

.modal-drag {
  width: 40px;
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  margin: 0 auto 8px;
  flex-shrink: 0;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.modal-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== FORM FIELDS ===== */
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.field-label.no-margin {
  margin-top: 0;
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: background 0.15s;
}

.field-input:focus {
  background: #e8e4de;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  letter-spacing: -0.1px;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-ghost:hover { background: var(--bg-surface); }

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  padding: 13px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

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

.btn-small {
  background: var(--bg-surface);
  color: var(--text-soft);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-small:hover { background: #e0dcd5; }

.btn-outline-sm {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s;
}

.btn-outline-sm:hover { background: var(--accent-soft); }

.full-width { width: 100%; }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.icon-btn:hover { background: var(--bg-surface); }

/* ===== SCAN UPLOAD ===== */
.image-preview-area {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}

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

.clear-img-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 12, 8, 0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.upload-zone-btns {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.upload-choice-btn {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  transition: background 0.15s;
  position: relative;
  text-align: center;
}

.upload-choice-btn:hover { background: #e8e4de; }

/* Scan modal inner views */
#scan-default-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#camera-view {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* The scan modal sheet itself has two children (default-view and camera-view),
   so we remove the sheet gap and let the inner views control their own spacing */
#scan-modal-sheet {
  gap: 0;
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.scan-note-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scan-note {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  background: var(--text-muted);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.analyzing-banner {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(61, 107, 53, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== APP LAYOUT ===== */
.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.app-header {
  height: var(--header-h);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: relative;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.header-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px calc(var(--nav-h) + 80px);
  -webkit-overflow-scrolling: touch;
}

/* ===== TABS ===== */
.tab-section { display: none; }
.tab-section.active { display: block; }

/* ===== STATS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-card);
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

/* ===== SPECIES SUMMARY CARDS ===== */
.species-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.species-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background 0.15s;
}

.species-card:hover { background: #faf9f7; }

.species-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.species-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.species-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.species-count-badge {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.species-chevron {
  color: var(--text-muted);
}

/* ===== ANIMAL LIST ===== */
.animal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.animal-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background 0.15s;
}

.animal-card:hover { background: #faf9f7; }

.animal-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.animal-thumb-placeholder {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.animal-info {
  flex: 1;
  min-width: 0;
}

.animal-breed {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.animal-meta {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-top: 3px;
}

.animal-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.tag-good { background: #e4f0e4; color: #2a6632; }
.tag-fair { background: var(--warn-soft); color: var(--warn); }
.tag-poor { background: var(--danger-soft); color: var(--danger); }
.tag-unknown { background: var(--bg-surface); color: var(--text-muted); }

/* ===== HERD TAB ===== */
.search-bar-row {
  margin-bottom: 16px;
}

.search-bar {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
  color: var(--text-muted);
}

.search-input {
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  flex: 1;
}

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

.herd-species-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.herd-species-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.herd-species-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.herd-count-pill {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* ===== DETAIL VIEW ===== */
.detail-hero {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-surface);
}

.detail-hero img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.detail-hero-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.detail-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.detail-species-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 4px;
}

.detail-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: -4px;
  padding: 0 2px;
}

.anatomy-diagram {
  background: var(--bg-card);
  border: 1.5px solid var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px 12px 8px;
  margin-top: 10px;
}

.anatomy-diagram-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.detail-cell {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.detail-cell-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-cell-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.detail-notes-block {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
}

.detail-notes-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.detail-notes-text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.detail-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: right;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.detail-actions .btn-danger {
  flex: 1;
}

/* ===== SCAN FAB ===== */
.scan-fab {
  position: fixed;
  bottom: calc(var(--nav-h) + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  z-index: 200;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.1px;
}

.scan-fab:hover {
  background: var(--accent-hover);
}

.scan-fab:active {
  transform: translateX(-50%) scale(0.97);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  height: var(--nav-h);
  background: var(--bg-card);
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 -1px 0 rgba(0,0,0,0.06);
}

.nav-btn {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font);
  font-weight: 500;
  padding-bottom: 4px;
  transition: color 0.15s;
}

.nav-btn.active { color: var(--accent); }

.nav-btn svg {
  transition: transform 0.15s;
}

.nav-btn.active svg { transform: scale(1.08); }

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state p {
  font-size: 14px;
  font-weight: 500;
}

.empty-hint {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
}

/* ===== SETTINGS ===== */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.settings-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-row-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.settings-row-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.settings-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== REPORT ===== */
.report-content {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
  max-height: 50vh;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: monospace;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 90px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1a1a18;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 30px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0cdc7; border-radius: 2px; }

/* ===== CAMERA VIEW ===== */
.camera-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

#camera-video {
  width: 100%;
  max-height: 62vh;
  border-radius: var(--radius-md);
  background: #0a0c08;
  object-fit: contain; /* show full frame — no cropping */
  display: block;
}

.camera-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
}

.cam-capture-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.1s;
  flex-shrink: 0;
}

.cam-capture-btn:active {
  transform: scale(0.92);
}

.cam-capture-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--text);
  display: block;
  transition: background 0.1s;
}

.cam-capture-btn:active .cam-capture-ring {
  background: var(--accent);
}

.cam-ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: background 0.15s;
  flex-shrink: 0;
}

.cam-ctrl-btn:hover { background: #e0dcd5; }
