/* GGD design system look for TimeTrack (/), GGD Cash (/cash), TimeTrack Admin (/admin) and the
   Monitor (/monitor): navy actions, one gold highlight, a module colour per app area (People, Money,
   Admin), 8px corners on controls and 12px on cards and dialogs, soft shadows instead of hairlines,
   sentence case, Outfit 600 headings and Inter text. Material's phone parts (bottom navigation,
   floating buttons, lists, snackbars, filled fields, dialogs, tabs, toggles, filter chips) with
   Material Icons (icons.js). Values come from the design system's tokens. */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@600&family=Inter:wght@400;500;600&display=swap");

:root {
  /* Brand */
  --ggd-gold: #ffd51e;
  --ggd-ink: #232323;
  --ggd-olive: #4a4233;
  --ggd-cream: #dcd9cd;
  --ggd-navy: #091762;

  /* Design system */
  --ds-navy: #1a2f8a; --ds-navy-dark: #13236a; --ds-navy-light: #e3e8fa;
  --ds-peri: #849bff; --ds-peri-dark: #6e86f2; --ds-peri-light: #e6eaff; --ds-peri-text: #3b4fb8;
  --ds-gold: #ffd51e; --ds-gold-dark: #e0b800; --ds-gold-text: #7a6400; --ds-headline-gold: #8f7400;
  --ds-info: #0277bd; --ds-info-light: #e1f1fb; --ds-canvas: #e0e0e0; --ds-bg: #f7f7f6;
  --mod-people: #7b3fc4; --mod-people-soft: #efe5fb; --mod-people-text: #5b2a9a;
  --mod-money: #267a31; --mod-money-soft: #e2f4e1; --mod-money-text: #1e5a20;
  --mod-admin: #5b6b7f; --mod-admin-soft: #e8ecf1; --mod-admin-text: #3d4957;

  --neutral-0: #ffffff; --neutral-50: #f7f7f6; --neutral-100: #ededeb; --neutral-200: #e0e0e0; --neutral-300: #cfcfcc;
  --neutral-400: #a9a9a5; --neutral-500: #7c7c78; --neutral-600: #565653; --neutral-700: #3a3a38; --neutral-800: #232323;
  --peri-700: #3b4fb8;
  --success: #2e7d32; --success-text: #1b5e20; --success-tint: #e2f2e3; --success-soft: #e2f2e3; --success-border: #e2f2e3;
  --warning: #c25400; --warning-text: #9a4200; --warning-tint: #fdebd9; --warning-soft: #fdebd9; --warning-border: #fdebd9;
  --danger: #c62828; --danger-text: #9e1c1c; --danger-tint: #fce4e4; --danger-soft: #fce4e4; --danger-border: #fce4e4;

  --text-strong: var(--ggd-ink);
  --text-body: var(--neutral-700);
  --text-muted: var(--neutral-600);
  --text-faint: var(--neutral-600);
  --text-accent: var(--ds-gold-text); /* ordinals only */
  --divider: var(--neutral-300);
  --field-bg: #ededeb;
  --scrim: rgba(19, 19, 19, 0.44);

  --font-display: "Outfit", "Garet", "Avenir Next", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-small: 0 1px 2px rgba(35, 35, 35, 0.06), 0 2px 8px rgba(35, 35, 35, 0.06);
  --shadow-medium: 0 8px 24px rgba(35, 35, 35, 0.12), 0 2px 6px rgba(35, 35, 35, 0.08);
  --shadow-large: 0 24px 64px rgba(19, 19, 19, 0.24);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-hover: 90ms;
  --t-control: 140ms;
  --t-panel: 200ms;

  --app-max: 560px;
  --gutter: 16px;
  --nav-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}
/* Status-chip icons (Material), written by scripts/build-material-icons.js. */
/* status-icons:start */
:root {
  --ic-success: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm0%2018c-4.41%200-8-3.59-8-8s3.59-8%208-8%208%203.59%208%208-3.59%208-8%208zm4.59-12.42L10%2014.17l-2.59-2.58L6%2013l4%204%208-8z%22%2F%3E%3C%2Fsvg%3E");
  --ic-warning: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M11%2015h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47%202%202%206.48%202%2012s4.47%2010%209.99%2010C17.52%2022%2022%2017.52%2022%2012S17.52%202%2011.99%202zM12%2020c-4.42%200-8-3.58-8-8s3.58-8%208-8%208%203.58%208%208-3.58%208-8%208z%22%2F%3E%3C%2Fsvg%3E");
  --ic-danger: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202C6.47%202%202%206.47%202%2012s4.47%2010%2010%2010%2010-4.47%2010-10S17.53%202%2012%202zm0%2018c-4.41%200-8-3.59-8-8s3.59-8%208-8%208%203.59%208%208-3.59%208-8%208zm3.59-13L12%2010.59%208.41%207%207%208.41%2010.59%2012%207%2015.59%208.41%2017%2012%2013.41%2015.59%2017%2017%2015.59%2013.41%2012%2017%208.41z%22%2F%3E%3C%2Fsvg%3E");
  --ic-info: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%204V1L8%205l4%204V6c3.31%200%206%202.69%206%206%200%201.01-.25%201.97-.7%202.8l1.46%201.46A7.93%207.93%200%200%200%2020%2012c0-4.42-3.58-8-8-8zm0%2014c-3.31%200-6-2.69-6-6%200-1.01.25-1.97.7-2.8L5.24%207.74A7.93%207.93%200%200%200%204%2012c0%204.42%203.58%208%208%208v3l4-4-4-4v3z%22%2F%3E%3C%2Fsvg%3E");
  --ic-neutral: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m17%208-1.41%201.41L17.17%2011H9v2h8.17l-1.58%201.58L17%2016l4-4-4-4zM5%205h7V3H5c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h7v-2H5V5z%22%2F%3E%3C%2Fsvg%3E");
}
/* status-icons:end */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font: 400 16px/1.5 var(--font-text);
  font-variant-numeric: tabular-nums;
  color: var(--text-body);
  background: var(--ds-bg);
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--text-strong); }
[hidden] { display: none !important; }
::selection { background: var(--ggd-gold); color: var(--ggd-ink); }
:focus-visible { outline: 2px solid var(--ggd-navy); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes ggd-appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ggd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ggd-spin { to { transform: rotate(360deg); } }

/* ---------- app frame ---------- */
/* One phone-width column. The document scrolls (better on iOS); nav, FAB and snackbar are fixed
   to the column. */
.app {
  position: relative;
  width: 100%;
  max-width: var(--app-max);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--neutral-0);
  display: flex;
  flex-direction: column;
}
@media (min-width: 600px) {
  .app { box-shadow: 0 0 0 1px var(--divider); }
}
.app--nav .screen { padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 96px); }
.screen { flex: 1; display: flex; flex-direction: column; min-width: 0; animation: ggd-fade var(--t-panel) var(--ease); }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hr { height: 1px; background: var(--divider); border: 0; margin: 0; }

/* ---------- top bars ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(var(--safe-top) + 16px) var(--gutter) 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-name { font: 600 18px/1 var(--font-display); letter-spacing: normal; text-transform: none; color: var(--text-strong); white-space: nowrap; }
.logo { display: inline-flex; line-height: 0; color: var(--text-strong); --ggd-logo-ring: var(--ggd-gold); }
.logo svg { display: block; fill: currentColor; }

/* Page headers (the module strip colours below). */
.band { padding: calc(var(--safe-top) + 16px) var(--gutter) 20px; }
.band .eyebrow { color: inherit; opacity: 0.88; }
.band .title { color: inherit; }
.band .sub { color: inherit; opacity: 0.86; }
.band-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  font: 600 12px/1 var(--font-text); letter-spacing: normal; text-transform: none; color: var(--ggd-gold);
  min-height: 48px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  font: 600 12px/1 var(--font-text); letter-spacing: normal; text-transform: none; min-height: 48px; color: var(--text-strong);
}

/* Module colour: the tile in the top bar, the pale page strip, and the brand ground (sign-in). */
.mod-tile { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: #ffffff; }
.mod-tile--people { background: var(--mod-people); } .mod-tile--money { background: var(--mod-money); } .mod-tile--admin { background: var(--mod-admin); }
.band--people, .band--money, .band--admin, .mod-strip { color: #232323; border-bottom: 1px solid #cfcfcc; }
.band--people, .mod-strip--people { background: var(--mod-people-soft); }
.band--money { background: var(--mod-money-soft); }
.band--admin { background: var(--mod-admin-soft); }
.band--canvas, .screen--brand { background: var(--ds-canvas); }
.screen--brand .pinboxes span { background: #ffffff; }
.mod-strip { padding: 14px var(--gutter); }

/* ---------- type ---------- */
.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 600 12px/1.2 var(--font-text);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow .ord { color: var(--text-accent); letter-spacing: 0.04em; }
.title { margin: 0; font: 600 30px/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--text-strong); }
.title--md { font-size: 26px; }
.sub { margin: 0; font: 400 14px/20px var(--font-text); color: var(--text-muted); }
.small { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.strong { color: var(--text-strong); font-weight: 600; }
.label {
  font: 600 12px/1.2 var(--font-text); letter-spacing: normal; text-transform: none; color: var(--text-strong);
}
.label--muted { color: var(--text-muted); }
.big {
  font: 600 54px/0.92 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.big--xl { font-size: 64px; }
.big--lg { font-size: 54px; }
.big--md { font-size: 40px; }
.big--sm { font-size: 30px; }
.display {
  margin: 0; font: 600 40px/0.92 var(--font-display); letter-spacing: normal; text-transform: none; color: var(--text-strong);
}
.display .accent, .title--split .accent { display: block; color: var(--ds-headline-gold); }
.text-success { color: var(--success-text); }
.text-warning { color: var(--warning-text); }
.text-danger { color: var(--danger-text); }
.text-muted { color: var(--text-muted); }

/* ---------- section header ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.section-head .meta { font-size: 13px; color: var(--text-muted); }

/* ---------- buttons (navy actions, one gold highlight (.btn--accent); 48px touch height, 56px large) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  min-width: 80px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-md);
  font: 600 15px/1 var(--font-text);
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  background: var(--neutral-300);
  color: var(--ggd-ink);
  transition: background-color var(--t-control) var(--ease), transform var(--t-hover) var(--ease);
}
.btn svg { flex: none; }
.btn--sm { height: 48px; min-width: 64px; padding: 0 12px; border-radius: var(--radius-md); }
.btn--lg { height: 56px; min-width: 96px; padding: 0 24px; gap: 12px; font-size: 16px; border-radius: var(--radius-md); }
.btn--block { display: flex; width: 100%; }
.btn--icon { min-width: 0; width: 40px; padding: 0; }
.btn--icon.btn--sm { width: 48px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
/* solid */
.btn--primary { background: var(--ds-navy); color: #ffffff; }
.btn--primary:hover, .btn--primary:active { background: var(--ds-navy-dark); }
.btn--accent { background: var(--ds-gold); color: #232323; }
.btn--accent:hover { background: var(--ds-gold-dark); }
.btn--danger { background: var(--danger); color: var(--neutral-0); }
.btn--danger:hover { background: var(--danger-text); }
/* bordered (1px navy ring) */
.btn--bordered { background: transparent; color: var(--ds-navy); box-shadow: inset 0 0 0 1px var(--ds-navy); }
.btn--bordered:hover { background: var(--neutral-50); }
.btn--bordered.btn--danger { color: var(--danger-text); box-shadow: inset 0 0 0 2px var(--danger); background: transparent; }
.btn--bordered.btn--danger:hover { background: var(--danger-tint); }
.btn--bordered[aria-pressed="true"] {
  background: var(--ds-navy); border-color: var(--ds-navy); color: #ffffff; box-shadow: none;
}
.btn--bordered[aria-pressed="true"]:hover { background: var(--ds-navy-dark); }
/* light (text button; tints on hover) */
.btn--light { background: transparent; color: var(--ds-navy); }
.btn--light:hover { background: var(--neutral-100); }
.btn--light.btn--danger { color: var(--danger-text); }
.btn--light.btn--danger:hover { background: var(--danger-tint); }
.btn--light[aria-pressed="true"] { background: var(--ds-navy); border-color: var(--ds-navy); color: #ffffff; box-shadow: none; }
.btn .spinner { width: 16px; height: 16px; }
/* Choice grids (categories, types, methods, time tiles) */
.choices { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--1 { grid-template-columns: 1fr; }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choices .btn { min-width: 0; padding: 0 6px; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; }
/* Press: buttons (each app's too) shrink to 98% and darken one step; no shrink under reduced
   motion. .key shrinks with its own fill instead (.key:active). */
.btn:active, .fab:active, .bnav-item:active, .pick:active, .fchip:active, .toggle button:active, .icon-btn:active, .stepper button:active, .snackbar-action:active, .back-link:active, button.avatar:active, .tt-textbtn:active, .tt-cal-day:active, .text-btn:active, .cash-tile:active, .at-step:active, .at-textbtn:active, .mz-chip-btn:active, .mon-btn:active { transform: scale(0.98); filter: brightness(0.94); }
@media (prefers-reduced-motion: reduce) { .btn:active, .key:active, .fab:active, .bnav-item:active, .pick:active, .fchip:active, .toggle button:active, .icon-btn:active, .stepper button:active, .snackbar-action:active, .back-link:active, button.avatar:active, .tt-textbtn:active, .tt-cal-day:active, .text-btn:active, .cash-tile:active, .at-step:active, .at-textbtn:active, .mz-chip-btn:active, .mon-btn:active { transform: none; } }

/* ---------- chips (status) ---------- */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 24px; padding: 0 8px; border-radius: 999px;
  font: 500 13px/1 var(--font-text); letter-spacing: normal; text-transform: none; white-space: nowrap;
  background: var(--neutral-100); color: var(--ggd-ink);
}
.chip--md { height: 28px; padding: 0 10px; }
/* status chips: solid fill, white text, icon */
.chip--success, .chip--warning, .chip--danger, .chip--secondary { color: #ffffff; padding: 0 10px 0 6px; }
.chip--success { background: var(--success); } .chip--warning { background: var(--warning); }
.chip--danger { background: var(--danger); } .chip--secondary { background: var(--ds-info); }
.chip--primary { background: var(--ds-navy-light); color: var(--ds-navy); }
.chip--neutral { background: #ededeb; color: #232323; padding: 0 10px 0 6px; }
.chip--success::before, .chip--warning::before, .chip--danger::before, .chip--secondary::before, .chip--neutral::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.chip--success { --ic: var(--ic-success); } .chip--warning { --ic: var(--ic-warning); }
.chip--danger { --ic: var(--ic-danger); } .chip--secondary { --ic: var(--ic-info); } .chip--neutral { --ic: var(--ic-neutral); }
.chip--solid.chip--success { background: var(--success); color: var(--neutral-0); }
.chip--solid.chip--danger { background: var(--danger); color: var(--neutral-0); }
.chip--solid.chip--warning { background: var(--warning); color: var(--ggd-ink); }
.chip--solid.chip--primary { background: var(--ggd-gold); color: var(--ggd-ink); }

/* Filter chips (MUI outlined chip, 32px; navy filled when set) */
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--gutter); border-bottom: 1px solid var(--divider); }
.fchips::-webkit-scrollbar { display: none; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 32px; padding: 0 12px 0 10px; border-radius: 16px;
  border: 1px solid var(--neutral-400); background: var(--neutral-0); color: var(--text-strong);
  font: 500 13px/1 var(--font-text); white-space: nowrap;
  transition: background-color var(--t-control) var(--ease);
}
.fchip:hover { background: var(--neutral-50); }
.fchip.is-on, .fchip[aria-pressed="true"] { background: var(--ds-navy); border-color: var(--ds-navy); color: #ffffff; box-shadow: none; }
.fchip.is-on:hover, .fchip[aria-pressed="true"]:hover { background: var(--ds-navy-dark); }

/* ---------- avatar & badge ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--neutral-300); color: var(--ggd-ink);
  font: 500 12px/1 var(--font-text); letter-spacing: normal; text-transform: none;
}
.avatar--sm { width: 32px; height: 32px; }
.avatar--primary { background: var(--ds-peri); color: #131313; }
.avatar--secondary { background: var(--ds-peri); }
.badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--ds-gold); color: #232323;
  font: 600 12px/18px var(--font-text); text-align: center;
  box-shadow: 0 0 0 2px var(--neutral-0);
}
.badge--inline { position: static; display: inline-block; box-shadow: none; }

/* ---------- icons ---------- */
.icon { display: inline-block; flex: none; vertical-align: middle; }
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--neutral-100); color: var(--ggd-ink);
}
.icon-circle--success { background: var(--success-tint); color: var(--success-text); }
.icon-circle--danger { background: var(--danger-tint); color: var(--danger-text); }
.icon-circle--primary { background: var(--ds-navy-light); color: var(--ds-navy); }
.icon-circle--secondary { background: var(--ds-peri-light); color: var(--ds-peri-text); }

/* ---------- cards, alerts, banners (cards lift on a soft shadow, no border) ---------- */
.card { border: 0; border-radius: var(--radius-lg); background: var(--neutral-0); padding: 20px; box-shadow: var(--shadow-small); }
.card--tight { padding: 16px; }
.card--warning { background: var(--warning-tint); }
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-md);
  font-size: 14px; line-height: 20px;
  background: var(--neutral-50); color: var(--text-body); box-shadow: none;
}
.alert .icon { margin-top: 1px; }
.alert-title { display: block; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--text-strong); }
.alert--warning { background: var(--warning-tint); color: var(--warning-text); }
.alert--danger { background: var(--danger-tint); color: var(--danger-text); }
.alert--success { background: var(--success-tint); color: var(--success-text); }
.alert--info { background: var(--ds-info-light); color: #232323; }
.alert--warning .alert-title, .alert--danger .alert-title, .alert--success .alert-title { color: var(--text-strong); }
/* Tappable banner (e.g. "Did you receive $600.00?") */
.banner {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 14px 14px 16px; border: 1px solid var(--warning-border); border-radius: var(--radius-md);
  background: var(--warning-tint); color: var(--warning-text); text-align: left;
  font-size: 13px; line-height: 18px;
}
.banner--danger { border-color: var(--danger-border); background: var(--danger-tint); color: var(--danger-text); }
.banner-title { display: block; font: 600 15px/20px var(--font-text); color: var(--text-strong); }

/* ---------- progress ---------- */
.progress { height: 8px; border-radius: 4px; background: var(--ds-navy-light); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ds-navy); transition: width var(--t-panel) var(--ease); }

/* ---------- stat strip (hairline grid) ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 12px 0; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--divider); padding-left: 14px; }
.stats:not(.stats--3) .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
.stats:not(.stats--3) .stat:nth-child(n + 3) { border-top: 1px solid var(--divider); }
.stat-value { font: 300 26px/1.1 var(--font-display); letter-spacing: -0.01em; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value--sm { font-size: 19px; font-weight: 400; }
.stat-label { margin-top: 4px; font: 600 12px/1.2 var(--font-text); letter-spacing: normal; text-transform: none; color: var(--text-muted); }

/* ---------- lists (MUI List) ---------- */
.list { margin: 0; padding: 0; list-style: none; }
.li {
  display: flex; align-items: center; gap: 0; width: 100%;
  min-height: 56px; padding: 8px var(--gutter);
  border: 0; background: transparent; text-align: left; color: inherit;
  transition: background-color var(--t-hover) var(--ease);
}
.li--divided { border-bottom: 1px solid var(--divider); }
button.li:hover, a.li:hover { background: var(--neutral-50); }
button.li, a.li { cursor: pointer; text-decoration: none; }
.li-lead { flex: none; width: 56px; display: flex; align-items: center; }
.li-lead--icon { color: var(--neutral-600); }
.li-text { flex: 1; min-width: 0; padding: 4px 0; }
.li-primary { display: block; font: 400 16px/22px var(--font-text); color: var(--text-strong); }
.li-secondary { display: block; font: 400 14px/20px var(--font-text); color: var(--text-muted); }
.li-tertiary { display: block; font: 400 13px/18px var(--font-text); color: var(--text-muted); }
.li-trail { flex: none; margin-left: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.li-value { font: 600 15px/20px var(--font-text); color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.li-value--muted { color: var(--text-muted); font-weight: 500; }
.li-meta { font: 400 12px/16px var(--font-text); color: var(--text-muted); white-space: nowrap; }
.li-chevron { flex: none; margin-left: 8px; color: var(--neutral-500); }
/* Date circle (40px) used in day lists */
.datecircle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--neutral-100); color: var(--text-strong);
}
.datecircle b { font: 600 12px/1 var(--font-text); letter-spacing: normal; text-transform: none; color: var(--text-muted); }
.datecircle span { margin-top: 2px; font: 500 15px/1 var(--font-text); }

/* ---------- filled text fields (MUI filled, 8px top corners, ink underline) ---------- */
.field { position: relative; display: block; }
.field-box {
  position: relative; display: flex; align-items: flex-end;
  min-height: 56px; background: var(--field-bg); border-radius: 8px 8px 0 0;
  transition: background-color var(--t-control) var(--ease);
}
.field-box:hover { background: #e0e0e0; }
.field-box::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px solid var(--neutral-500); }
.field-box::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 2px solid var(--ggd-ink);
  transform: scaleX(0); transition: transform var(--t-panel) var(--ease);
}
.field-box:focus-within::after { transform: scaleX(1); }
.field-label {
  position: absolute; left: 12px; top: 8px; right: 12px;
  font: 400 12px/16px var(--font-text); color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.field-box:focus-within .field-label { color: var(--text-strong); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 26px 12px 8px; font: 400 16px/22px var(--font-text); color: var(--text-strong);
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field--nolabel input, .field--nolabel textarea, .field--nolabel select { padding-top: 17px; padding-bottom: 17px; }
.field textarea { resize: vertical; min-height: 96px; }
.field select { padding-right: 36px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23565653' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--neutral-500); opacity: 1; }
.field input[type="date"]::-webkit-date-and-time-value, .field input[type="time"]::-webkit-date-and-time-value { text-align: left; }
/* Chrome greys a date part that min/max lock (often the year); keep the whole date ink. */
.field input::-webkit-datetime-edit-year-field, .field input::-webkit-datetime-edit-month-field, .field input::-webkit-datetime-edit-day-field { color: var(--text-strong); }
/* "$" or a unit before the value: sits on the typed text's line under a label, centred otherwise. */
.field-adorn { flex: none; align-self: flex-end; padding: 0 0 8px 12px; line-height: 22px; color: var(--text-muted); font-size: 16px; }
.field--nolabel .field-adorn, .field--amount .field-adorn, .field--search .field-adorn { align-self: center; padding-bottom: 0; }
.field-adorn + input { padding-left: 8px; }
.field-help { margin: 4px 12px 0; font: 400 12px/16px var(--font-text); color: var(--text-muted); }
/* A form's error line, hidden while empty. */
.form-error { margin: 8px 0 0; font: 500 14px/20px var(--font-text); color: var(--danger-text); }
.form-error:empty { display: none; }
.field.is-error .field-box::before { border-bottom-color: var(--danger); border-bottom-width: 2px; }
.field.is-error .field-label, .field.is-error .field-help { color: var(--danger); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* Amount fields: external uppercase label, Outfit 300 36px with "$" */
.field--amount .field-box { min-height: 72px; align-items: center; }
.field--amount .field-adorn { font: 300 32px/1 var(--font-display); color: var(--text-strong); padding-left: 16px; }
.field--amount input { padding: 14px 12px 12px 10px; font: 300 36px/1.1 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.field--amount input::placeholder { color: var(--neutral-400); }
.field-ext-label { display: block; margin-bottom: 8px; }
/* Search field (filled, no label, icon) */
.field--search .field-box { min-height: 48px; align-items: center; }
.field--search input { padding: 12px 12px 12px 4px; min-height: 48px; }
.field--search .field-adorn { padding-left: 14px; }

/* ---------- switch ---------- */
.switch { position: relative; display: inline-flex; flex: none; width: 48px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: var(--neutral-300); transition: background-color var(--t-control) var(--ease); }
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--neutral-0); box-shadow: 0 1px 2px rgba(19, 19, 19, 0.24); transition: transform var(--t-control) var(--ease);
}
.switch input:checked + span { background: var(--ds-navy); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--ggd-navy); outline-offset: 2px; }

/* ---------- tabs (MUI Tabs, full width, navy indicator and label when selected) ---------- */
.tabs { display: flex; border-bottom: 1px solid var(--divider); padding: 0 4px; }
.tab {
  position: relative; flex: 1; height: 48px; padding: 0 12px; border: 0; background: none;
  font: 500 14px/1 var(--font-text); letter-spacing: normal; text-transform: none; color: var(--text-muted);
  transition: color var(--t-control) var(--ease);
}
.tab:hover { color: var(--text-strong); }
.tab.is-on { color: var(--ds-navy); }
.tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ds-navy); }
.tabs--inline { border-bottom: 0; padding: 0; }
.tabs--inline .tab { flex: none; min-width: 72px; }

/* ---------- toggle button group ---------- */
.toggle { display: flex; width: 100%; }
.toggle button {
  flex: 1; height: 48px; border: 1px solid var(--ds-navy); background: transparent; color: var(--ds-navy);
  font: 500 14px/1 var(--font-text); letter-spacing: normal; text-transform: none;
  transition: background-color var(--t-control) var(--ease), color var(--t-control) var(--ease);
}
.toggle button + button { margin-left: -1px; }
.toggle button:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.toggle button:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.toggle button:hover { background: var(--neutral-50); }
.toggle button[aria-pressed="true"] { background: var(--ds-navy); border-color: var(--ds-navy); color: #ffffff; box-shadow: none; position: relative; }

/* ---------- pick tiles (days etc.) ---------- */
.tiles { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.tiles::-webkit-scrollbar { display: none; }
.pick {
  flex: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  min-width: 128px; min-height: 72px; padding: 10px 12px; border: 0; border-radius: var(--radius-md);
  background: var(--neutral-0); box-shadow: inset 0 0 0 1px var(--divider); text-align: left; color: var(--text-strong);
}
.pick:hover { background: var(--neutral-50); }
.pick[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ds-navy); background: var(--ds-navy-light); }
.pick-top { font: 600 13px/1 var(--font-text); letter-spacing: normal; text-transform: none; color: var(--text-muted); }
.pick-main { font: 600 19px/1.1 var(--font-display); color: var(--text-strong); }
.pick-sub { font: 400 12px/16px var(--font-text); color: var(--text-muted); white-space: nowrap; }

/* ---------- stepper (− n +) ---------- */
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-md); background: transparent; box-shadow: inset 0 0 0 1px var(--neutral-400); color: var(--text-strong);
}
.stepper button:hover { background: var(--neutral-50); }
.stepper button:disabled { opacity: 0.4; pointer-events: none; }
.stepper--sm button { width: 32px; height: 32px; }
button.avatar { width: 48px; height: 48px; } /* a tappable avatar is a 48px target */
.stepper output { min-width: 28px; text-align: center; font: 600 17px/1 var(--font-text); color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* ---------- PIN entry ---------- */
.pinboxes { display: flex; justify-content: center; gap: 12px; }
.pinboxes span {
  width: 56px; height: 64px; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--divider); border-radius: var(--radius-md);
  font: 600 28px/1 var(--font-display); color: var(--text-strong);
}
.pinboxes span.is-filled { box-shadow: inset 0 0 0 2px var(--ggd-ink); }
.pinboxes span.is-next { box-shadow: inset 0 0 0 2px var(--ggd-navy); }
.pinboxes span.is-filled::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ggd-ink); }
.pindots { display: flex; justify-content: center; gap: 14px; }
.pindots span { width: 14px; height: 14px; border-radius: 50%; background: var(--neutral-200); transition: background-color var(--t-control) var(--ease); }
.pindots span.is-filled { background: var(--ggd-ink); }
.pin-error { min-height: 20px; margin: 12px 0 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--danger-text); }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.key {
  height: 64px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-md); background: var(--neutral-0); color: var(--text-strong); box-shadow: var(--shadow-small);
  font: 600 28px/1 var(--font-display); user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: background-color var(--t-hover) var(--ease);
}
.key:hover { background: var(--neutral-50); }
.key:active { background: var(--neutral-100); transform: scale(0.98); }
.key--text {
  font: 600 16px/1 var(--font-text); letter-spacing: normal; text-transform: none;
  color: var(--ds-navy); box-shadow: none; background: transparent;
}
.keypad--compact .key { height: 58px; }

/* ---------- bottom navigation ---------- */
.bnav {
  position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-max);
  display: flex; height: calc(var(--nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: var(--neutral-0); border-top: 1px solid var(--divider);
}
.bnav-item {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  position: relative; border: 0; background: none; padding: 6px 0 0; color: var(--text-muted);
  font: 500 12px/1.2 var(--font-text);
}
.bnav-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 28px; border-radius: 14px; transition: background-color var(--t-control) var(--ease);
}
/* selected: navy, with a 3px gold bar on top */
.bnav-item.is-on { color: var(--ds-navy); font-weight: 600; font-size: 12px; }
.bnav-item.is-on .bnav-icon { background: none; }
.bnav-item.is-on::before { content: ""; position: absolute; top: 0; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ds-gold); }
.bnav-item .badge { top: -2px; right: 10px; }

/* ---------- floating action button (extended) ---------- */
.fab {
  position: fixed; z-index: 31;
  right: max(16px, calc((100vw - var(--app-max)) / 2 + 16px));
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  display: inline-flex; align-items: center; gap: 12px; overflow: hidden;
  height: 56px; padding: 0 22px; border: 0; border-radius: 28px;
  background: var(--ggd-gold); color: var(--ggd-ink); box-shadow: var(--shadow-medium);
  font: 600 16px/1 var(--font-text); letter-spacing: normal; text-transform: none; white-space: nowrap;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none;
  transition: bottom var(--t-panel) var(--ease), background-color var(--t-control) var(--ease);
}
.fab:hover { background: var(--ds-gold-dark); }
.fab > * { position: relative; }
.fab.is-disabled { background: var(--neutral-200); color: var(--text-muted); box-shadow: var(--shadow-small); cursor: default; }
.fab-fill { position: absolute !important; inset: 0 auto 0 0; width: 0; background: var(--ds-gold-dark); pointer-events: none; }
.no-nav .fab { bottom: calc(var(--safe-bottom) + 16px); }
body.has-snackbar .fab { bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px + var(--snack-h, 48px)); }
body.has-snackbar.no-nav .fab { bottom: calc(var(--safe-bottom) + 24px + var(--snack-h, 48px)); }

/* ---------- snackbar ---------- */
.snackbar {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
  display: flex; align-items: center; gap: 8px;
  min-width: 288px; max-width: min(calc(100vw - 16px), calc(var(--app-max) - 16px));
  padding: 6px 8px 6px 16px; border-radius: var(--radius-md);
  background: var(--ggd-ink); color: var(--neutral-0); box-shadow: var(--shadow-medium);
  font: 400 14px/20px var(--font-text);
  animation: ggd-appear var(--t-panel) var(--ease);
}
.no-nav .snackbar { bottom: calc(var(--safe-bottom) + 16px); }
.snackbar-msg { flex: 1; padding: 8px 8px 8px 0; }
.snackbar-msg small { display: block; color: var(--neutral-300); font-size: 13px; line-height: 18px; }
.snackbar-action {
  flex: none; height: 36px; padding: 0 8px; border: 0; background: none; border-radius: var(--radius-md);
  color: var(--ggd-gold); font: 600 13px/1 var(--font-text); letter-spacing: normal; text-transform: none;
}
.snackbar-action:hover { background: rgba(220, 217, 205, 0.10); }

/* ---------- dialogs ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: var(--scrim); padding: 24px; animation: ggd-fade var(--t-panel) var(--ease);
}
.dialog {
  width: 100%; max-width: 420px; max-height: calc(100dvh - 48px); display: flex; flex-direction: column;
  background: var(--neutral-0); border-radius: var(--radius-lg); box-shadow: var(--shadow-large);
  animation: ggd-appear var(--t-panel) var(--ease); overflow: hidden;
}
.dialog-title { margin: 0; padding: 20px 24px 12px; font: 500 20px/1.2 var(--font-display); color: var(--text-strong); }
.dialog-content { flex: 1; overflow-y: auto; padding: 4px 24px 16px; font-size: 14px; line-height: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 8px 16px 16px; }
.dialog-text { margin: 0 0 16px; font: 400 14px/20px var(--font-text); color: var(--text-muted); text-wrap: pretty; }
.dialog-text b { color: var(--text-strong); font-weight: 600; }
/* Full-screen dialog (long tasks) */
.scrim--full { padding: 0; align-items: stretch; background: var(--scrim); }
.fsdialog {
  width: 100%; max-width: var(--app-max); height: 100dvh; margin: 0 auto; display: flex; flex-direction: column;
  background: var(--neutral-0); animation: ggd-appear var(--t-panel) var(--ease);
}
.fsdialog-bar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-top) + 8px) 12px 8px; min-height: 56px; border-bottom: 1px solid var(--divider);
}
.fsdialog-bar h2 { margin: 0; flex: 1; font: 500 20px/1.2 var(--font-display); color: var(--text-strong); }
.fsdialog-body { flex: 1; overflow-y: auto; padding: 16px var(--gutter) 24px; }
.fsdialog-foot { flex: none; padding: 12px var(--gutter) calc(12px + var(--safe-bottom)); border-top: 1px solid var(--divider); background: var(--neutral-0); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: var(--text-strong);
}
.icon-btn:hover { background: var(--neutral-100); }
.icon-btn--sm { width: 48px; height: 48px; }
.band .icon-btn { color: inherit; }
.band .icon-btn:hover { background: rgba(220, 217, 205, 0.10); }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv dt, .kv .k { color: var(--text-muted); }
.kv dd, .kv .v { margin: 0; color: var(--text-strong); text-align: right; font-weight: 500; }
.kv .text-success { color: var(--success-text); }
.kv .text-warning { color: var(--warning-text); }
.kv .text-danger { color: var(--danger-text); }
.kv .text-muted { color: var(--text-muted); }
dl.kvs { margin: 0; }

/* ---------- misc ---------- */
.spinner {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: ggd-spin 0.8s linear infinite; opacity: 0.7;
}
.loading { display: flex; justify-content: center; padding: 40px 0; color: var(--text-muted); }
.empty { padding: 32px var(--gutter); text-align: center; color: var(--text-muted); font-size: 14px; line-height: 20px; }
.empty .icon { color: var(--neutral-400); margin-bottom: 8px; }
.error-box { margin: 16px var(--gutter); }
.code {
  font: 500 13px/1.5 var(--font-mono); background: var(--neutral-50); border: 1px solid var(--divider);
  border-radius: var(--radius-md); padding: 10px 12px; word-break: break-all; color: var(--text-strong);
}
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--text-muted); }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; }
.sticky-foot {
  position: sticky; bottom: 0; z-index: 5; background: var(--neutral-0); border-top: 1px solid var(--divider);
  padding: 12px var(--gutter) calc(12px + var(--safe-bottom));
}

/* Full-screen result screens (count result, payment recorded) */
.result { flex: 1; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 40px 24px calc(40px + var(--safe-bottom)); }
.result--success { background: var(--success-tint); }
.result--warning { background: var(--warning-tint); }
.result--danger { background: var(--danger-tint); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ---------- spacing utilities (last, so they win over component margins) ---------- */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ---------- notifications: bell, inbox, conversation ---------- */
.bell { position: relative; }
.bell .badge { top: 2px; right: 2px; }
.inbox-tools { display: flex; justify-content: flex-end; min-height: 32px; margin-bottom: 4px; }
.inbox-item {
  display: flex; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--divider);
  background: none; text-align: left; cursor: pointer;
}
.inbox-item:hover { background: var(--neutral-50); }
/* unread is a plain dot, needs action the error icon, so they differ by more than colour (FR-4) */
.inbox-dot { flex: none; width: 8px; height: 8px; margin: 6px 4px 0; border-radius: 50%; background: transparent; }
.inbox-item.is-unread .inbox-dot { background: var(--peri-700); }
.inbox-item.is-unread.is-action .inbox-dot {
  width: 16px; height: 16px; margin: 2px 0 0; border-radius: 0; background: var(--danger);
  -webkit-mask: var(--ic-danger) center / contain no-repeat; mask: var(--ic-danger) center / contain no-repeat;
}
.inbox-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inbox-text strong { font: 500 15px/20px var(--font-text); color: var(--text-strong); overflow-wrap: anywhere; }
.inbox-item.is-unread .inbox-text strong { font-weight: 700; }
.inbox-text span { font: 400 14px/20px var(--font-text); color: var(--text-body); overflow-wrap: anywhere; }
.inbox-text small { font: 400 12px/16px var(--font-text); color: var(--text-muted); }

.convo-about { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--divider); font: 500 14px/20px var(--font-text); color: var(--text-body); }
.convo-list { display: flex; flex-direction: column; gap: 10px; }
.convo-empty { margin: 8px 0; font: 400 14px/20px var(--font-text); color: var(--text-muted); text-align: center; }
.convo-record { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 24px; text-align: center; }
.convo-record span { font: 500 13px/18px var(--font-text); color: var(--text-body); overflow-wrap: anywhere; }
.convo-record small, .convo-msg small { font: 400 12px/16px var(--font-text); color: var(--text-muted); }
.convo-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 85%; }
.convo-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.convo-bubble {
  padding: 10px 12px; border-radius: 12px 12px 12px 2px; background: var(--neutral-100); color: var(--text-strong);
  font: 400 15px/21px var(--font-text); white-space: pre-wrap; overflow-wrap: anywhere;
}
.convo-msg.is-mine .convo-bubble { border-radius: 12px 12px 2px 12px; background: var(--ds-navy-light); }
.convo-compose { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
.convo-compose[hidden] { display: none; }
.convo-field textarea { min-height: 44px; resize: vertical; }
.convo-send { min-width: 48px; height: 48px; padding: 0; }
.convo-note { grid-column: 1 / -1; font: 400 12px/16px var(--font-text); color: var(--text-muted); }

/* ---------- notification timing and email/texts (Admin and TimeTrack settings) ---------- */
.ggd-nt { display: flex; flex-direction: column; }
.ggd-nt-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.ggd-nt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ggd-nt-main b { font: 600 14px/20px var(--font-text); color: var(--text-strong); }
.ggd-nt-main small, .ggd-nt-fine { font: 400 13px/18px var(--font-text); color: var(--text-muted); overflow-wrap: anywhere; }
.ggd-nt-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.ggd-nt-contact { border-bottom: 1px solid var(--divider); }
.ggd-nt-contact .ggd-nt-row { border-bottom: 0; }
.ggd-nt-form { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.ggd-nt-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.ggd-nt-form .ggd-nt-acts { padding-bottom: 0; }
