/* GENERATED from sohow-brand@2f6ac88 (2026-10-01) by scripts/sync-brand.sh — DO NOT EDIT. Master: sohow-brand. Record: brand Saga e-b0aa776f87df */
/* =============================================================
   Components — depends on brand.css tokens
   ============================================================= */

/* =============================================================
   Card
   ============================================================= */

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid rgba(107, 90, 72, 0.18);
}

.card + .card {
  margin-top: var(--space-3);
}

/* =============================================================
   Badge
   ============================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  border: 1px solid rgba(107, 90, 72, 0.28);
}

.badge-accent {
  background: rgba(143, 0, 0, 0.10);
  color: var(--accent);
  border-color: rgba(143, 0, 0, 0.22);
}

.badge-secondary {
  background: rgba(158, 171, 154, 0.30);
  color: var(--sage-legible);   /* was #696d60 — not a brand token (#705) */
  border-color: rgba(158, 171, 154, 0.45);
}

/* =============================================================
   Divider
   ============================================================= */

.divider {
  border: none;
  border-top: 1px solid rgba(107, 90, 72, 0.22);
  margin: var(--space-4) 0;
}

/* =============================================================
   Avatar
   ============================================================= */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 2px solid rgba(107, 90, 72, 0.28);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  min-width: 56px;
  font-size: 20px;
}

/* =============================================================
   Progress bar
   ============================================================= */

.progress {
  width: 100%;
  height: 8px;
  background: rgba(107, 90, 72, 0.18);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* =============================================================
   Spinner
   ============================================================= */

.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(107, 90, 72, 0.22);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* =============================================================
   Empty state
   ============================================================= */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  gap: var(--space-3);
  color: var(--muted);
}

.empty-state-icon {
  font-size: 40px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
  color: var(--muted);
  max-width: 260px;
}

/* =============================================================
   Toast
   ============================================================= */

.toast-container {
  position: fixed;
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--space-5));
  max-width: 420px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  pointer-events: all;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  animation: toast-in 0.2s ease;
}

.toast-error   { background: var(--error); }
.toast-success { background: var(--secondary); color: var(--text); }

/* Persistent alert variant */
.toast-persistent {
  position: static;
  animation: none;
  box-shadow: none;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   Bottom sheet (covers modal)
   ============================================================= */

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 16, 8, 0.4);
  z-index: 8000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* On wider screens, centre as a modal */
@media (min-width: 600px) {
  .sheet-overlay {
    align-items: center;
  }

  .sheet {
    border-radius: var(--radius-lg) !important;
    max-width: 480px;
  }
}

.sheet {
  width: 100%;
  max-height: 90dvh;
  background: var(--bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--muted);
  opacity: 0.3;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
}

.sheet-title {
  font-family: 'Zilla Slab', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-3);
}

/* =============================================================
   Callout — accent-tinted highlight block (doc-level emphasis)
   ============================================================= */

.callout {
  background: rgba(143, 0, 0, 0.07);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-3);
}

.callout h3 {
  color: var(--accent);
  margin-bottom: var(--space-2);
}

/* =============================================================
   Check row — action-item grid (owner / action / deadline)
   ============================================================= */

.check-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: var(--space-3);
  align-items: baseline;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--surface);
  font-size: 16px;
}

.check-row:last-child {
  border-bottom: none;
}

.check-row-name {
  font-weight: 600;
  color: var(--text);
}

.check-row-action {
  color: var(--text);
}

.check-row-deadline {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.check-row-header {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--surface);
  margin-bottom: var(--space-1);
}

/* =============================================================
   Bottom nav
   ============================================================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 7000;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-top: 1px solid rgba(107, 90, 72, 0.18);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 56px;
  padding: var(--space-2) var(--space-1);
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}

.bottom-nav-item.is-active {
  color: var(--accent);
}

.bottom-nav-item:active {
  opacity: 0.7;
}

.bottom-nav-icon {
  font-size: 22px;
  line-height: 1;
}
