/* HOMES Timesheets: colors and the top bar, shared by the app and the Setup
   screens. Navy for headers and totals, pale yellow for boxes that still need
   filling in. */
:root {
  --navy: #10174B;
  --navy-text: #ffffff;
  --page: #f4f5f9;
  --card: #ffffff;
  --text: #1b1e2e;
  --muted: #5b6075;
  --line: #d8dbe6;
  --todo: #fff6c8;
  --ok: #1e7b3c;
  --bad: #b3261e;
  --link: #10174B;
  --font: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-cond: "Barlow Condensed", Barlow, "Arial Narrow", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #2a3480;
    --page: #11131c;
    --card: #1b1e2b;
    --text: #eceef5;
    --muted: #a3a8bd;
    --line: #343849;
    --todo: #4a4320;
    --ok: #6fcf8b;
    --bad: #ff8a80;
    --link: #a9b6ff;
  }
}

.topbar {
  background: var(--navy);
  color: var(--navy-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-family: var(--font);
}
.topbar .logo { font-weight: 800; font-size: 24px; letter-spacing: 1px; color: inherit; text-decoration: none; }
.topbar .who { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topbar form { margin: 0; }
.topbar .name { display: flex; align-items: center; gap: 8px; margin-right: 6px; font-weight: 600; }
.topbar .avatar {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: #ffffff; color: #10174B;
  font-size: 13px; font-weight: 800; letter-spacing: .5px;
}

/* Rounded buttons in the top bar: Menu, Setup, Log out. */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: #ffffff;
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.topbar a.pill:link, .topbar a.pill:visited { color: #ffffff; }
.pill:hover, .topbar a.pill:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.35); color: #ffffff; text-decoration: none; }
.pill:active { transform: scale(.97); }
.pill:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.pill.ghost { background: transparent; border-color: rgba(255,255,255,.4); }
.pill.ghost:hover { background: rgba(255,255,255,.12); }
.pill.current, .topbar a.pill.current:link, .topbar a.pill.current:visited { background: #ffffff; color: #10174B; border-color: #ffffff; }
.pill.current:hover, .topbar a.pill.current:hover { background: #ffffff; color: #10174B; }
.topbar a.logo:link, .topbar a.logo:visited, .topbar a.logo:hover { color: #ffffff; text-decoration: none; }
/* Your name and initials are a link to Change my PIN. */
.topbar a.name:link, .topbar a.name:visited { color: #ffffff; text-decoration: none; border-radius: 999px; padding: 2px 8px 2px 2px; }
.topbar a.name:hover { background: rgba(255,255,255,.12); }
.topbar a.name:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pill svg { width: 18px; height: 18px; fill: currentColor; }
.pill svg.line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* On phones, keep the buttons and drop the long name. */
@media (max-width: 560px) {
  .topbar .name-text { display: none; }
  .pill { padding: 0 12px; }
}
/* On small phones, Menu and Setup show just their icons so the bar stays one line. Log out keeps its words. */
@media (max-width: 430px) {
  .topbar .who { flex-wrap: nowrap; gap: 6px; }
  .topbar .name { margin-right: 0; }
  .pill-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pill:has(.pill-text) { padding: 0; width: 38px; justify-content: center; }
}

/* The practice copy's banner: impossible to mistake for the real app. */
.practice-banner { background: #F2B705; color: #10174B; font-weight: 800; text-align: center; padding: 6px 12px;
  letter-spacing: .04em; font-size: 15px; font-family: var(--font); }
