/* Reset + base typography + primitives */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.is-hidden { display: none !important; }

/* brand lockup */
.lockup { display: inline-flex; align-items: center; gap: var(--s2); color: var(--petrol); }
.lockup--light { color: var(--white); }
.mark { display: inline-flex; }
.wordmark {
  font-weight: var(--fw-extrabold);
  letter-spacing: .22em;
  font-size: 20px;
}
.wordmark--sm { font-size: 15px; letter-spacing: .20em; }

/* LOGIN */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--s5) var(--s4); background: var(--surface); }
.login__panel { display: flex; flex-direction: column; align-items: center; width: 100%; }
.login__card.card { width: 100%; max-width: 420px; border-top: 4px solid var(--teal); }
.login__title { font-size: 26px; font-weight: var(--fw-extrabold); color: var(--ink); }
.login__sub { color: var(--text-muted); margin: var(--s3) 0 var(--s5); font-size: 15px; }
.login__note { font-size: 13px; color: var(--text-muted); margin-top: var(--s4); text-align: center; }
.login__demo { font-size: 12px; color: var(--text-muted); margin-top: var(--s5); opacity: .8; }

/* APP shell */
.topbar {
  height: var(--topbar-h);
  background: var(--petrol);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s4);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid var(--teal);
}
.topbar__brand { font-weight: var(--fw-bold); font-size: 15px; letter-spacing: .01em; color: var(--white); }
.topbar__user { display: flex; align-items: center; gap: var(--s3); }
.topbar__name { font-size: 14px; font-weight: var(--fw-semibold); }
.avatar {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  background: var(--teal); color: var(--white);
  display: grid; place-items: center;
  font-size: 13px; font-weight: var(--fw-bold);
}

.page { max-width: var(--maxw); margin: 0 auto; padding: var(--s6) var(--s4) var(--s8); }
.page__head { margin-bottom: var(--s5); }
.page__title { font-size: 28px; font-weight: var(--fw-extrabold); }
.page__lead { color: var(--text-muted); margin-top: var(--s2); font-size: 15px; }

.filters { display: flex; gap: var(--s2); margin-bottom: var(--s5); flex-wrap: wrap; }
.list__empty { text-align: center; color: var(--text-muted); padding: var(--s7) 0; }

@media (max-width: 480px) {
  .login { grid-template-rows: 38% 62%; }
  .page { padding: var(--s5) var(--s3) var(--s7); }
}
