/* FLUX. Rielnix brand tokens, taken from rielnixsystems.com. Light only, the
   same as the website: "only light" stops phone browsers force-darkening it. */

:root {
  --brg: #004225;
  --brg-dark: #00301b;
  --brg-deep: #002416;
  --ink: #0F1612;
  --paper: #F6F5F1;
  --bone: #F0F0F0;
  --rule: #d8d6cf;
  --muted: #5a615d;
  --surface: #ffffff;
  --tint: #e5eee8;
  --danger: #a4262c;
  --warn-ink: #6b4a00;
  --warn-bg: #fff3d1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 22, 18, 0.06), 0 6px 18px rgba(15, 22, 18, 0.06);
  --font: "Bahnschrift", "Barlow", "DIN Next", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --nav-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: only light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
a { color: var(--brg); }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: 0.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1.05rem; }
button, input, select, textarea { font: inherit; color: inherit; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.grow { flex: 1; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Header and navigation -------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Side padding keeps the centred brand clear of the sync status. */
  padding: 12px 40px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  background: var(--brg);
  color: var(--bone);
  --logo-h: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { height: var(--logo-h); width: auto; flex: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  border-left: 1px solid rgba(240, 240, 240, 0.4);
  line-height: 1.2;
}
.app-name { font-weight: 600; letter-spacing: 0.22em; font-size: 1.1rem; }
.top-tagline { font-size: 0.66rem; letter-spacing: 0.05em; color: rgba(240, 240, 240, 0.75); white-space: nowrap; }
.top-tagline b { color: #ffffff; font-weight: 700; }

.sync-pill {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(240, 240, 240, 0.45);
  background: transparent;
  color: var(--bone);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
}
.sync-pill.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-bg); }
.sync-pill.busy { opacity: 0.8; }

/* Phones: the status shrinks to a dot so the brand can sit in the middle.
   The words stay in the button for screen readers, and anything that needs
   attention also shows in the banner. */
@media (max-width: 599px) {
  .top { padding: 12px 16px; --logo-h: 28px; }
  /* Top corner, level with "FLUX": the tagline line runs nearly edge to edge. */
  .sync-pill { top: 12px; right: 12px; transform: none; width: 14px; height: 14px; padding: 0; font-size: 0; border: 2px solid rgba(240, 240, 240, 0.8); background: #7fd49b; }
  .sync-pill.warn { background: #f5c451; border-color: #f5c451; }
  .sync-pill.busy { background: transparent; opacity: 1; }
}
@media (max-width: 359px) {
  .top { --logo-h: 24px; }
  .top-tagline { font-size: 0.6rem; }
}

/* Phones: a tab bar pinned to the bottom, clear of the home indicator. */
#nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding-bottom: var(--safe-b);
}
#nav:empty { display: none; }
#nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  min-height: var(--nav-h);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
}
#nav a.active { color: var(--brg); font-weight: 600; }
#nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 24px);
}
body[data-route="team"] main, body[data-route="clients"] main { max-width: 1040px; }

#banner {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.9rem;
}

/* Desktop: the tabs move up into the header. */
@media (min-width: 900px) {
  .top { position: relative; padding: 14px 140px; --logo-h: 46px; }
  .brand { gap: 16px; }
  .brand-text { padding-left: 16px; }
  .app-name { font-size: 1.5rem; }
  .top-tagline { font-size: 0.82rem; }
  #nav {
    position: sticky;
    top: 0;
    bottom: auto;
    justify-content: center;
    gap: 4px;
    border-top: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 16px;
  }
  #nav a { flex: 0 0 auto; flex-direction: row; gap: 6px; min-height: 38px; padding: 0 12px; font-size: 0.85rem; border-bottom: 2px solid transparent; }
  #nav a.active { border-bottom-color: var(--brg); }
  #nav svg { width: 16px; height: 16px; }
  main { padding-bottom: 48px; }
}

/* ---- Building blocks --------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.empty { color: var(--muted); text-align: center; padding: 18px 0; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--brg); border-color: var(--brg); color: var(--bone); }
.btn-primary:hover { background: var(--brg-dark); border-color: var(--brg-dark); }
.btn-stop { background: var(--ink); border-color: var(--ink); color: var(--bone); min-width: 96px; }
.btn-danger { color: var(--danger); border-color: #e3c3c4; }
.btn-block { width: 100%; margin-top: 12px; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 0.85rem; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.icon-btn.small { width: 32px; height: 32px; font-size: 0.95rem; border-color: transparent; color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--brg); font-weight: 600; padding: 8px 0; cursor: pointer; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--muted);
  white-space: nowrap;
}
.tag-bill { background: var(--tint); border-color: #c4d8cc; color: var(--brg); }
.tag-wait { background: var(--warn-bg); border-color: #f0dca0; color: var(--warn-ink); }

.warn-box { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 10px 12px; }

/* ---- Timer ------------------------------------------------------------- */

.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timer-idle { font-size: 1.05rem; font-weight: 600; margin-top: 2px; }
.timer.running { background: var(--brg); border-color: var(--brg); color: var(--bone); flex-wrap: wrap; }
.timer.running .eyebrow { color: rgba(240, 240, 240, 0.75); }
.timer-info { min-width: 0; }
.timer-label { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.timer-sub { font-size: 0.9rem; color: rgba(240, 240, 240, 0.8); overflow-wrap: anywhere; }
.timer-clock { font-size: 2.3rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.timer-actions { display: flex; gap: 8px; }
.timer.running .timer-actions .btn:not(.btn-stop) { background: transparent; color: var(--bone); border-color: rgba(240, 240, 240, 0.5); }
.timer.running .btn-stop { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ---- Week strip -------------------------------------------------------- */

.week-head { display: flex; align-items: center; gap: 8px; }
.week-title { flex: 1; text-align: center; font-weight: 600; }
.week-total { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.week-total b { color: var(--ink); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  min-width: 0;
}
.day .dow { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.day .dnum { font-size: 1.1rem; font-weight: 600; }
.day .dh { font-size: 0.72rem; color: var(--brg); font-variant-numeric: tabular-nums; }
.day.today .dnum { color: var(--brg); text-decoration: underline; text-underline-offset: 3px; }
.day.sel { background: var(--brg); border-color: var(--brg); }
.day.sel .dow, .day.sel .dnum, .day.sel .dh { color: var(--bone); }

/* ---- Entries ----------------------------------------------------------- */

.entries { display: flex; flex-direction: column; }
.entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.entry:last-child { border-bottom: 0; }
.entry:hover { background: var(--paper); }
.entry-main { display: flex; flex-direction: column; min-width: 0; }
.entry-title { font-weight: 600; overflow-wrap: anywhere; }
.entry-sub { font-size: 0.85rem; color: var(--muted); }
.entry-notes { font-size: 0.85rem; margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.entry-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.entry-hours { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.entry.running .entry-hours { color: var(--brg); }
.entry-date { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

.sum-table { width: 100%; border-collapse: collapse; }
.sum-table td { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.sum-table tr:last-child td { border-bottom: 0; }

/* ---- Projects ---------------------------------------------------------- */

.project-head { display: flex; justify-content: space-between; gap: 12px; }
.project-head h3 { margin: 2px 0; }
.project-hours { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.project-hours b { font-size: 1.3rem; }
.project.inactive { opacity: 0.75; }
.bar { height: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; margin: 12px 0 4px; }
.bar span { display: block; height: 100%; width: 0; background: var(--brg); }
.bar.over span { background: var(--danger); }
.tasks { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.tasks li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.tasks li.sub { padding-left: 20px; font-size: 0.93rem; }
.tasks li.done { color: var(--muted); }
.t-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.t-hours { font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-hours.over { color: var(--danger); font-weight: 600; }

/* ---- Clients ----------------------------------------------------------- */

.map-card { padding: 10px; }
.map {
  position: relative;
  aspect-ratio: 975 / 610;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2ef;
  /* One finger scrolls the page until the map is zoomed; see map.js. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.map.zoomed { touch-action: none; cursor: grab; }
.map.zoomed:active { cursor: grabbing; }
.map-svg, .map-lines { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-svg .st { fill: #d9e3dc; stroke: #ffffff; stroke-width: 0.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map-svg .st.on { fill: #b3cbbc; }
.map-lines { pointer-events: none; }
.map-lines line { stroke: var(--brg); stroke-width: 1.5; }
.map-lines circle { fill: var(--brg); stroke: #ffffff; stroke-width: 2; }
.map-lines circle.sel { fill: var(--danger); }
.pin {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  height: 40px;
  max-width: 150px;
  padding: 4px 7px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(15, 22, 18, 0.25);
  cursor: pointer;
}
.pin:hover, .pin:focus-visible { border-color: var(--brg); z-index: 2; }
.pin:focus-visible { outline: 2px solid var(--brg); outline-offset: 1px; }
.pin.sel { border-color: var(--brg); box-shadow: 0 0 0 2px var(--brg); z-index: 3; }
.pin img { display: block; height: 100%; width: auto; max-width: 136px; object-fit: contain; }
.pin span { font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-zoom { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 4; }
.map-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--surface);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.map-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-note { margin: 8px 4px 0; }
@media (max-width: 599px) {
  .map-card { padding: 6px; }
  .pin { height: 28px; max-width: 104px; padding: 2px 5px; }
  .pin img { max-width: 94px; }
  .map-btn { width: 30px; height: 30px; }
}

.client-list { display: flex; flex-direction: column; }
.client-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 4px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.client-row:last-child { border-bottom: 0; }
.client-row:hover, .client-row.sel { background: var(--paper); }
.client-row:focus-visible { outline: 2px solid var(--brg); outline-offset: -2px; }
.client-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.client-name { font-weight: 600; overflow-wrap: anywhere; }
.client-logo, .client-logo-lg { flex: none; object-fit: contain; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
.client-logo { width: 64px; height: 36px; padding: 3px; }
.client-logo-lg { width: 132px; height: 66px; padding: 6px; }
.logo-initials { display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--brg); font-weight: 700; letter-spacing: 0.06em; }
.client-logo-lg.logo-initials { font-size: 1.4rem; }

.client-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.client-title { flex: 1; min-width: 0; }
.client-title h2 { font-size: 1.3rem; margin: 2px 0; overflow-wrap: anywhere; }
.client-tools { display: flex; align-self: flex-start; }
.client-kv { margin-bottom: 6px; }
.link-btn.inline { padding: 0; font: inherit; font-weight: 600; }
.sub-head { margin-top: 16px; margin-bottom: 8px; }
.contacts, .client-projects { list-style: none; margin: 0; padding: 0; }
.contact { display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid var(--rule); }
.contact:first-child { border-top: 0; padding-top: 2px; }
.contact-main { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; }
.contact-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.chip:hover { border-color: var(--brg); color: var(--brg); }
.client-projects li { padding: 4px 0; }
.client-notes { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .client-head { flex-wrap: wrap; }
  .client-logo-lg { width: 108px; height: 54px; }
}

.logo-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-preview { width: 132px; height: 66px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--rule); border-radius: 8px; background: var(--surface); }
.logo-preview img { max-width: 120px; max-height: 56px; object-fit: contain; }
.logo-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.locate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row3.addr { grid-template-columns: 1.4fr 1fr 0.8fr; }

/* ---- Tables (team) ----------------------------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grid { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.grid th, .grid td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.grid th.num, .grid td.num { text-align: right; }
.grid thead th { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.grid tbody th { font-weight: 600; white-space: nowrap; }
.grid tfoot th, .grid tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 600; }

details.person summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 600; list-style: none; }
details.person summary::-webkit-details-marker { display: none; }
details.person summary::before { content: "\25B8"; margin-right: 8px; color: var(--muted); }
details.person[open] summary::before { content: "\25BE"; }
details.person summary span:first-of-type { flex: 1; }

/* ---- Account ----------------------------------------------------------- */

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.failed-list { list-style: none; padding: 0; margin: 8px 0 0; }
.failed { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.row-actions { display: flex; gap: 6px; }

/* ---- Forms ------------------------------------------------------------- */

dialog {
  border: 0;
  padding: 0;
  width: min(560px, 100%);
  max-height: 100%;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(15, 22, 18, 0.3);
}
dialog::backdrop { background: rgba(15, 22, 18, 0.45); }
@media (max-width: 599px) {
  /* A bottom sheet on phones. */
  dialog { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 14px 14px 0 0; max-height: 92vh; }
}
.sheet { padding: 20px 16px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.sheet h2 { font-size: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field .opt { font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  font-size: 16px; /* anything smaller makes iOS zoom the page on focus */
}
.field input[readonly] { background: var(--surface); color: var(--muted); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .btn:focus-visible, .day:focus-visible, .entry:focus-visible, #nav a:focus-visible {
  outline: 2px solid var(--brg);
  outline-offset: 1px;
}
.hint { color: var(--muted); font-size: 0.8rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--brg); }
.form-error { color: var(--danger); font-weight: 600; margin: 0; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* ---- Sign in ----------------------------------------------------------- */

.signin { text-align: center; padding: 48px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.signin img { border-radius: 22px; box-shadow: var(--shadow); }
.signin h1 { font-size: 2rem; letter-spacing: 0.22em; }
.signin p { margin: 0; }

/* ---- Toast ------------------------------------------------------------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bone);
  padding: 10px 16px;
  border-radius: 8px;
  max-width: calc(100% - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 30;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { #toast { bottom: 24px; } }
