@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #1a1d1a;
  --paper: #f4f1ea;
  --card: #fff;
  --accent: #c8451f;
  --accentDk: #9e3517;
  --steel: #3d4a52;
  --line: #d9d4c8;
  --muted: #6b6357;
  --good: #2f7d4f;
  --warn: #b8860b;
  --err: #b3341a;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.qa-h { font-family: 'Archivo', sans-serif; letter-spacing: -.02em; }

button { font-family: inherit; border: none; cursor: pointer; transition: all .15s ease; }
button:active { transform: scale(.97); }
button:disabled { opacity: .5; cursor: default; transform: none; }

select, input, textarea {
  font-family: inherit;
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 15px;
  background: var(--paper);
}

.lbl {
  font-size: 12px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}

.pill {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
}

.wrap { max-width: 480px; margin: 0 auto; }

.card {
  background: var(--card); border-radius: 12px; padding: 16px;
  border: 1px solid var(--line);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.pop { animation: pop .25s ease both; }

/* App header */
.topbar {
  background: var(--ink); color: var(--paper);
  padding: 16px 18px; position: sticky; top: 0; z-index: 10;
}

/* Tabs */
.tabs { display: flex; padding: 14px 16px 0; }
.tab {
  flex: 1; padding: 11px 8px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: transparent; border-bottom: 3px solid var(--line); color: var(--muted);
}
.tab.on {
  background: var(--card); border-bottom-color: var(--accent);
  color: var(--ink); border-radius: 8px 8px 0 0;
}

/* Buttons */
.btn-primary {
  width: 100%; padding: 18px; border-radius: 12px; background: var(--accent);
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 14px rgba(200, 69, 31, .3);
}
.btn-good {
  width: 100%; padding: 14px; border-radius: 10px; background: var(--good);
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-steel {
  width: 100%; padding: 15px; border-radius: 12px; background: var(--steel);
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-ghost { background: none; color: var(--muted); }

/* Sync status dots */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.pending { background: var(--warn); }
.dot.syncing { background: var(--steel); animation: pulse 1s infinite; }
.dot.synced  { background: var(--good); }
.dot.error   { background: var(--err); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.thumb-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
}
.thumb-grid img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; }

.muted-note {
  font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5;
}

.empty {
  text-align: center; padding: 30px 20px; color: var(--muted); font-size: 14px;
  border: 1.5px dashed var(--line); border-radius: 12px;
}

.banner {
  font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 8px; margin: 0 16px;
}
.banner.offline { background: #f3e9c8; color: #7a5b00; }
