/* ── ValorApp Design Tokens ── */
:root {
  --primary: #B85440;
  --olive: #6B7F4A;
  --saffron: #E8A33D;
  --bg: #FAF7F2;
  --text-primary: #2A2A2A;
  --text-secondary: #8B7E72;
  --border: #E5DDD4;
  --card-bg: #FFFFFF;
  --viewfinder-bg: #E8E2D9;
  --photo-placeholder: #D4C9BB;
  --comparable-photo: #E2D9CD;

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;

  --screen-pad: 20px;
  --radius-card: 14px;
  --radius-btn: 12px;
  --radius-search: 12px;
  --radius-comparable: 10px;
  --radius-chip: 8px;
  --radius-confidence: 6px;
  --radius-viewfinder: 16px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  touch-action: manipulation;
}

button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { font-family: inherit; }

/* ── App Shell ── */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.screen.active {
  display: flex;
}

.screen-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen-scrollable {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* ── FOUC guard ── */
body:not(.i18n-ready) { visibility: hidden; }

/* ── App Header ── */
.app-header {
  padding: 10px var(--screen-pad) 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.header-icon-btn:active { background: rgba(0,0,0,0.04); }

/* ── Language Switcher ── */
.lang-switcher {
  position: relative;
}

.lang-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.lang-trigger__flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 160px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
}

.lang-option:active,
.lang-option--active { background: rgba(107, 127, 74, 0.08); }

.lang-option__flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-option__name {
  flex: 1;
  font-weight: 500;
}

.lang-option__check {
  flex-shrink: 0;
  color: var(--olive);
  font-size: 14px;
  font-weight: 600;
}

/* ── Estimator Subheader ── */
.estimator-subheader {
  padding: 0 var(--screen-pad) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.tagline {
  font-size: 11px;
  color: var(--text-secondary);
  font-style: italic;
}

.credit-counter {
  font-size: 12px;
  color: var(--text-secondary);
}

.viewfinder-wrap {
  flex: 1;
  padding: 16px var(--screen-pad) 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.viewfinder {
  flex: 1;
  border-radius: var(--radius-viewfinder);
  border: 1px solid var(--border);
  background: var(--viewfinder-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
  cursor: pointer;
}

.viewfinder__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

.viewfinder__corner--tl { top: 24px; left: 24px; border-top: 2px solid var(--primary); border-left: 2px solid var(--primary); border-radius: 6px 0 0 0; }
.viewfinder__corner--tr { top: 24px; right: 24px; border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); border-radius: 0 6px 0 0; }
.viewfinder__corner--bl { bottom: 24px; left: 24px; border-bottom: 2px solid var(--primary); border-left: 2px solid var(--primary); border-radius: 0 0 0 6px; }
.viewfinder__corner--br { bottom: 24px; right: 24px; border-bottom: 2px solid var(--primary); border-right: 2px solid var(--primary); border-radius: 0 0 6px 0; }

.viewfinder__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px dashed var(--text-secondary);
  opacity: 0.3;
  margin-bottom: 12px;
}

.viewfinder__circle--loading {
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  opacity: 1;
  animation: spin 0.9s linear infinite;
}

.viewfinder__title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.viewfinder__subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 4px;
}

.capture-area {
  padding: 0 var(--screen-pad) 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.capture-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary), 0 4px 16px rgba(200, 85, 61, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.capture-btn svg { pointer-events: none; }

.text-fallback {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  padding-bottom: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
}

/* ── Describe-item form (text fallback) ── */
.describe-wrap {
  flex: 1;
  padding: 16px var(--screen-pad) 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.describe-input {
  flex: 1;
  width: 100%;
  border-radius: var(--radius-viewfinder);
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  resize: none;
  outline: none;
  min-height: 0;
}

.describe-input:focus {
  border-color: var(--primary);
}

.describe-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.describe-wrap--loading {
  align-items: center;
  justify-content: center;
}

.describe-loading-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.describe-submit {
  width: auto;
  min-width: 200px;
  height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  background: var(--primary);
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.describe-submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Preview (selected photos) ── */
.preview-wrap {
  flex: 1;
  padding: 12px var(--screen-pad) 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.preview-wrap--loading {
  align-items: center;
  justify-content: center;
}

.thumbs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-content: start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--viewfinder-bg);
  border: 1px solid var(--border);
  display: block;
  width: 100%;
}

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

.thumb__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(42, 42, 42, 0.78);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.thumb--add {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px dashed var(--text-secondary);
  color: var(--text-secondary);
  cursor: pointer;
}

.thumb--add:active {
  background: rgba(0, 0, 0, 0.03);
}

.preview-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
  opacity: 0.8;
}

/* ── Screen 2: Result Card ── */
.result-photo {
  height: 280px;
  background: var(--photo-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

/* Blurred photo backdrop fills the frame on both portrait and landscape, while
   the foreground image is contained — so nothing gets crop-squished. */
.result-photo__blur {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.85);
  transform: scale(1.08);
  z-index: 0;
}

.result-photo__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.result-photo__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.result-photo__label {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-secondary);
}

.back-btn {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.result-body {
  padding: 24px var(--screen-pad) 0;
}

.price-range {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
}

.confidence-bar {
  margin-top: 14px;
  display: flex;
  border-radius: var(--radius-confidence);
  overflow: hidden;
  height: 28px;
  border: 1px solid var(--border);
}

.confidence-bar__segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.confidence-bar__segment:not(:last-child) {
  border-right: 1px solid var(--border);
}

.confidence-bar__segment--filled {
  background: var(--olive);
  color: #fff;
}

.confidence-bar__segment--empty {
  background: var(--card-bg);
  color: var(--text-secondary);
}

.reasoning {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 14px;
}

.comparables {
  padding: 20px 0 0 var(--screen-pad);
}

.comparables__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.comparables__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-right: var(--screen-pad);
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.comparable-card {
  min-width: 100px;
  border-radius: var(--radius-comparable);
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden;
  flex-shrink: 0;
}

.comparable-card__photo {
  height: 72px;
  background: var(--comparable-photo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparable-card__photo span {
  font-family: monospace;
  font-size: 9px;
  color: var(--text-secondary);
}

.comparable-card__info {
  padding: 8px 10px;
}

.comparable-card__price {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.comparable-card__label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.result-actions {
  padding: 20px var(--screen-pad) 12px;
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.btn-secondary {
  flex: 1;
  height: 50px;
  border-radius: var(--radius-btn);
  background: transparent;
  border: 1.5px solid var(--olive);
  font-size: 14px;
  font-weight: 600;
  color: var(--olive);
}

.btn-primary {
  flex: 1.4;
  height: 50px;
  border-radius: var(--radius-btn);
  background: var(--primary);
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.result-fine-print {
  padding: 0 var(--screen-pad) 8px;
  text-align: right;
}

.result-fine-print span {
  font-size: 10px;
  color: var(--text-secondary);
}

/* ── Screen 3: Out-of-Credits Paywall ── */
.paywall-header {
  padding: 20px 24px 0;
  text-align: center;
}

.paywall-icon {
  font-size: 36px;
  margin-bottom: 16px;
  opacity: 0.15;
  line-height: 1;
}

.paywall-headline {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
}

.paywall-subhead {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pack-list {
  padding: 24px var(--screen-pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pack-card {
  border-radius: var(--radius-card);
  padding: 18px 20px;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.pack-card--popular {
  border: 2px solid var(--saffron);
  background: rgba(232, 163, 61, 0.03);
}

.pack-card__tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--saffron);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pack-card__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pack-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pack-card__credits {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pack-card__count {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.pack-card__unit {
  font-size: 13px;
  color: var(--text-secondary);
}

.pack-card__price-btn {
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
}

.pack-card--popular .pack-card__price-btn {
  background: var(--saffron);
  box-shadow: 0 2px 12px rgba(232, 163, 61, 0.25);
}

.paywall-reassurance {
  padding: 0 24px 16px;
  text-align: center;
}

.paywall-reassurance p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Screen 4: Catalogue Browse ── */
.catalogue-header {
  padding: 8px var(--screen-pad) 0;
}

.catalogue-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
}

.catalogue-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.search-bar {
  margin: 14px var(--screen-pad) 0;
  height: 46px;
  border-radius: var(--radius-search);
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}

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

.search-bar__input::placeholder {
  color: #bbb;
}


.filter-chips {
  display: flex;
  gap: 8px;
  padding: 12px var(--screen-pad) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.chip--active {
  border-color: var(--olive);
  background: rgba(107, 127, 74, 0.08);
  color: var(--olive);
}

.catalogue-feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px var(--screen-pad);
  -webkit-overflow-scrolling: touch;
}

.catalogue-item {
  padding: 14px 0;
  cursor: pointer;
}

.catalogue-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.catalogue-item__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.catalogue-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(107, 127, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.catalogue-item__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.catalogue-item__thumb-placeholder {
  font-size: 22px;
}

.catalogue-item__info {
  flex: 1;
  min-width: 0;
}

.catalogue-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.catalogue-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.catalogue-item__range {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.catalogue-item__estimates {
  font-size: 11px;
  color: var(--text-secondary);
}

.catalogue-item__chevron {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.catalogue-item--expanded .catalogue-item__chevron {
  transform: rotate(180deg);
}

.catalogue-item__desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 0 0 66px;
}

.catalogue-item--expanded .catalogue-item__desc {
  max-height: 200px;
  padding: 10px 0 4px 66px;
}

.catalogue-item__desc p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.catalogue-item__details {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.catalogue-item__detail {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(107, 127, 74, 0.08);
  color: var(--olive);
  font-weight: 600;
  text-transform: capitalize;
}


/* ── Catalogue item modal ── */
.cat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cat-modal--open {
  opacity: 1;
}

.cat-modal__card {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  -webkit-overflow-scrolling: touch;
}

.cat-modal--open .cat-modal__card {
  transform: translateY(0);
}

.cat-modal__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.cat-modal__footer {
  padding: 20px var(--screen-pad) calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.cat-modal__footer strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.cat-modal__footer em {
  font-style: italic;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Bottom Navigation ── */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(2px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.bottom-nav__tab {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-secondary);
  padding: 4px 16px;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
}

.bottom-nav__tab--active {
  color: var(--olive);
}

.bottom-nav__tab svg {
  display: block;
}

.bottom-nav__label {
  font-size: 10px;
  font-weight: 600;
}

/* ── Loading spinner ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.capture-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Error banner ── */
.error-banner {
  margin: 8px var(--screen-pad) 0;
  padding: 10px 14px;
  background: rgba(184, 84, 64, 0.08);
  border: 1px solid rgba(184, 84, 64, 0.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--primary);
  line-height: 1.4;
  cursor: pointer;
}

/* ── Token input on paywall ── */
.token-input-area {
  padding: 0 24px 20px;
}

.token-divider {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 10px;
}

.token-row {
  display: flex;
  gap: 8px;
}

.token-field {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 13px;
  color: var(--text-primary);
}

.token-field::placeholder {
  color: #bbb;
}

.token-activate-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--olive);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ── Tips on result card ── */
.tips {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(107, 127, 74, 0.06);
  border-radius: 10px;
}

.tips ul {
  list-style: none;
  padding: 0;
}

.tips li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 2px 0;
}

.tips li::before {
  content: "→ ";
  color: var(--olive);
}

/* ── Catalogue empty state ── */
.catalogue-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.catalogue-empty p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.catalogue-item__flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Utility ── */
.hidden { display: none !important; }

/* Hide scrollbars on horizontal scroll containers */
.comparables__scroll::-webkit-scrollbar { display: none; }
.comparables__scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Multi-object disambiguation screen ── */
.ms-screen {
  background: var(--bg);
}

.ms-photo {
  height: 240px;
  background: var(--photo-placeholder);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ms-body {
  padding: 22px var(--screen-pad) 8px;
}

.ms-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  line-height: 1.2;
}

.ms-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ms-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
}

.ms-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ms-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ms-option--checked {
  border-color: var(--olive);
  background: rgba(107, 127, 74, 0.05);
}

.ms-option--all {
  background: rgba(107, 127, 74, 0.04);
  border-style: dashed;
}

.ms-option--all.ms-option--checked {
  background: rgba(107, 127, 74, 0.10);
  border-style: solid;
}

.ms-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ms-checkbox svg { opacity: 0; }

.ms-option--checked .ms-checkbox {
  background: var(--olive);
  border-color: var(--olive);
}

.ms-option--checked .ms-checkbox svg { opacity: 1; }

.ms-option__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ms-option__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.ms-option__hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

.ms-actions {
  padding: 10px var(--screen-pad) calc(14px + env(safe-area-inset-bottom, 0px));
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.ms-actions .btn-primary {
  width: 100%;
  flex: none;
}

.ms-actions .btn-primary:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Toast notification ── */
.va-toast {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #2A2A2A;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  max-width: calc(100vw - 48px);
  text-align: center;
  white-space: normal;
}

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

.va-toast--error {
  background: #B85440;
}
