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

:root {
  --blue:       #007aff;
  --blue-dark:  #0056b3;
  --blue-light: #e8f2ff;
  --bg:         #ffffff;
  --bg-subtle:  #f8f8f8;
  --text:       #1c1c1e;
  --text-muted: #6e6e73;
  --border:     #e5e5ea;
  --red:        #ff3b30;
  --orange:     #ff9500;
  --green:      #34c759;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg-subtle); -webkit-font-smoothing: antialiased; }
p { color: var(--text-muted); }
button { font-family: var(--font); }

/* ── Logo ── */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-wordmark { font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -0.3px; }

/* ── App navbar (cabinet + household) ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 60px; display: flex; align-items: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav .inner { max-width: 720px; margin: 0 auto; padding: 0 20px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 5px 11px; border-radius: 8px; transition: color 0.15s, background 0.15s; white-space: nowrap; }
.nav-link:hover { color: var(--text); background: var(--bg-subtle); }
.nav-link.active { color: var(--blue); font-weight: 600; background: var(--blue-light); }
.user-pill { display: flex; align-items: center; gap: 8px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 10px; padding: 4px 10px 4px 6px; }
.user-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; text-transform: uppercase; flex-shrink: 0; }
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-signout { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); background: none; border: none; cursor: pointer; padding: 0; transition: color 0.15s; }
.btn-signout:hover { color: var(--red); }
