/* The pro web app, in the onDiem brand (Figma: "onDiem Brand - Fall 2026",
   pages 03 Typography and 04 Color). Marketplace 2.0 products use the Sky
   accent; type follows the app type scale. Weights stop at 700. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Core */
  --surface: #ffffff;
  --cream: #fffaf5;
  --navy: #2a3b59;

  /* Accents: background, contrast, base */
  --sky-bg: #e5f5f5;
  --sky-contrast: #b2e2e3;
  --sky: #7fcfd1;
  --peach-bg: #fdeedf;
  --peach-contrast: #fbd4bb;
  --peach: #f9b78e;
  --yellow-bg: #fcf6de;
  --yellow-contrast: #f7e8b1;

  /* Supporting neutrals */
  --grey-body: #3e4b63;
  --grey-secondary: #6b7791;
  --grey-border: #eaebee;
  --grey-light: #f4f5f7;

  /* Not in the brand sheet: the 2.0 app's error colour, for errors and
     the one destructive button. */
  --error: #ba1a1a;

  /* Spacing (the 2.0 app's AppSpacing) */
  --xs: 4px;
  --sm: 8px;
  --md: 12px;
  --lg: 16px;
  --xl: 20px;
  --xxl: 24px;
  --xxxl: 32px;

  /* Radii: cards, forms, pills */
  --radius: 20px;
  --radius-inner: 8px;
  --radius-form: 4px;
  --pill: 999px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Body · 14/21 · 400 */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--cream);
  color: var(--grey-body);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  line-height: 1.3125rem;
  font-weight: 400;
}

/* Page title · H1 · 34/42 · 700 · -0.02em */
h1 {
  margin: var(--xxl) 0 var(--sm);
  color: var(--navy);
  font-size: 2.125rem;
  line-height: 2.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
/* Card and item title · 16/24 · 700 */
h2 {
  margin: var(--xs) 0 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
}
/* Section title · 17/24 · 700 */
h3 {
  margin: var(--xl) 0 var(--sm);
  color: var(--navy);
  font-size: 1.0625rem;
  line-height: 1.5rem;
  font-weight: 700;
}
p { margin: var(--xs) 0; }
strong { color: var(--navy); font-weight: 500; }
a { color: var(--navy); font-weight: 600; }

/* Caption and meta · 13/18 · 400 */
.muted {
  color: var(--grey-secondary);
  font-size: 0.8125rem;
  line-height: 1.125rem;
}

/* Shell */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lg);
  min-height: 60px;
  padding: var(--sm) var(--xxl);
  background: var(--surface);
  border-bottom: 1px solid var(--grey-border);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 24px; width: auto; }
/* Label and nav · 14/20 · 500, 600 when active */
.nav { display: flex; align-items: center; gap: var(--xs); }
.nav form { margin: 0; }
.nav a, .nav .link {
  padding: var(--sm) var(--md);
  border-radius: var(--pill);
  color: var(--navy);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a[aria-current="page"] { background: var(--sky-bg); font-weight: 600; }
.nav a, .nav .link { white-space: nowrap; }
.bar .nav { margin-left: auto; }
.sign-out { display: flex; align-items: center; gap: var(--xs); }
.sign-out form { margin: 0; }
.sign-out a[aria-current="page"] { background: var(--sky-bg); font-weight: 600; }
.sign-out a, .sign-out .link {
  padding: var(--sm) var(--md);
  border-radius: var(--pill);
  color: var(--navy);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.sign-out a:hover, .sign-out .link:hover { background: var(--grey-light); }
/* Phones: the logo and Sign out on top, the page links in a row below. */
/* Two rows once the eight links no longer fit on one. */
@media (max-width: 64rem) {
  .bar { flex-wrap: wrap; row-gap: var(--xs); padding: var(--sm) var(--lg); }
  .sign-out { order: 1; margin-left: auto; }
  .bar .nav { order: 2; width: 100%; margin-left: 0; justify-content: space-between; }
  .nav a { padding: var(--sm); }
}
/* On a phone: the logo, then the main links, then the pro's own. */
@media (max-width: 30rem) {
  .sign-out { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 0; }
  .nav a, .sign-out a, .sign-out .link { padding: 6px; font-size: 0.875rem; }
}

/* Payments (the app's payments screens) */
.hub { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--md); }
.hub a {
  display: block;
  padding: var(--lg) var(--xl);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
  color: var(--navy);
  text-decoration: none;
}
.hub a:hover { background: var(--grey-light); }
.hub strong { display: block; font-size: 1rem; }
.hub span { display: block; margin-top: var(--xs); color: var(--grey-secondary); font-size: 0.875rem; }
.documents { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--md); }
.documents li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  padding: var(--md) var(--lg);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.documents .doc-main strong { display: block; color: var(--navy); }
.documents .doc-main span { display: block; color: var(--grey-secondary); font-size: 0.875rem; }
.back { margin: 0 0 var(--md); font-size: 0.875rem; }
.nav a:hover, .nav .link:hover { background: var(--grey-light); }
.nav a[aria-current="page"]:hover { background: var(--sky-bg); }

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--sm) var(--xl) var(--xxxl);
}

/* Controls: buttons are pills at 700 */
.button {
  display: inline-block;
  border: 0;
  border-radius: var(--pill);
  padding: var(--md) var(--xl);
  background: var(--navy);
  color: var(--surface);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary {
  background: var(--surface);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.button.secondary:hover { background: var(--grey-light); }
.button.danger { background: var(--error); }
/* The website's outlined pill (Web/Nav's "Sign up") */
.button.outline {
  padding: var(--sm) var(--lg);
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.button.outline:hover { background: var(--surface); }
/* White pill on navy (the footer's "Subscribe") */
.button.light { background: var(--surface); color: var(--navy); }
.button.light:hover { background: var(--grey-light); }
.button[disabled] { opacity: 0.6; cursor: wait; }

.link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
}

.stack { display: flex; flex-direction: column; gap: var(--sm); }
.stack .button { margin-top: var(--md); align-self: flex-start; }
.stack label { margin-top: var(--sm); }

/* Form label · 11/14 · 700 · 0.08em · caps */
label {
  color: var(--navy);
  font-size: 0.6875rem;
  line-height: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
input[type="email"], input[type="password"], input[type="tel"], input[type="text"], input[type="date"], input:not([type]), textarea, select {
  width: 100%;
  padding: var(--md);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-form);
  background: var(--surface);
  color: var(--navy);
  font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--grey-secondary); }
input:focus, textarea:focus, .button:focus-visible, a:focus-visible, .link:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.alert {
  padding: var(--md) var(--lg);
  border-radius: var(--radius-inner);
  background: var(--peach-bg);
  box-shadow: inset 0 0 0 1px var(--peach-contrast);
  color: var(--navy);
  font-weight: 500;
}

/* Sign in, forgot password */
.sign-in {
  max-width: 26rem;
  margin: var(--xxl) auto 0;
  padding: var(--xs) var(--xxl) var(--xxl);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.sign-in h1 { margin-top: var(--xl); }
.sign-in > form + p, .sign-in > form + form { margin-top: var(--lg); }
.sign-in > p.muted { margin-bottom: var(--md); }

/* My shifts */
.tabs { margin: 0 0 var(--lg); }
.tab {
  display: inline-block;
  padding: var(--xs) var(--md);
  border-radius: var(--pill);
  background: var(--sky-bg);
  color: var(--navy);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.empty { padding: var(--xxl) 0; color: var(--grey-secondary); }
a.tab { background: none; box-shadow: inset 0 0 0 1px var(--grey-border); text-decoration: none; }
a.tab:hover { background: var(--grey-light); }

/* Offers tab (the app's pending_tab) */
.section-title { display: flex; align-items: center; gap: var(--sm); margin: var(--xl) 0 var(--md); font-size: 1.125rem; }
.count {
  padding: 0 var(--sm);
  border-radius: var(--pill);
  background: var(--sky-bg);
  color: var(--navy);
  font-size: 0.8125rem;
  line-height: 1.375rem;
  font-weight: 700;
}
.section-title + .empty, .day + .shifts { margin-top: 0; }
.section-title + .empty { padding: var(--md) 0 var(--lg); }
.offer-top { display: flex; align-items: flex-start; gap: var(--md); }
.offer-top .found-name { margin: 0; }
a.match { text-decoration: none; }
.request .badge { align-self: flex-start; margin-top: 0; padding: 2px var(--sm); background: var(--sky-bg); font-size: 0.75rem; line-height: 1rem; font-weight: 700; }
.request .badge.critical { background: var(--peach-contrast); }
.shift .actions { display: flex; flex-wrap: wrap; gap: var(--sm); }
.shift.outcome { padding: var(--md) var(--lg); background: var(--sky-bg); box-shadow: none; }
.shift.outcome.stopped { background: var(--peach-bg); }
.shift.outcome p { margin: 0; color: var(--navy); font-weight: 600; }
.shifts .more { display: flex; justify-content: center; }
/* Timesheets tab (the app's past_tab) */
.timesheet-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--md); margin-top: var(--md); }
.timesheet-foot .badge { margin-top: 0; padding: 2px var(--sm); background: var(--sky-bg); font-size: 0.75rem; line-height: 1rem; font-weight: 700; }
.timesheet-foot .badge.critical { background: var(--peach-contrast); }
.page > .timesheet.editing { margin-top: var(--xl); }
.timesheet.editing .practice { margin: 0; }
.timesheet.editing .muted { margin: var(--xs) 0 var(--md); }
.decline-reason { margin-bottom: var(--md); padding: var(--md); border-radius: var(--radius-inner); background: var(--peach-bg); }
.decline-reason h3 { margin: 0 0 var(--xs); font-size: 0.875rem; }
.decline-reason p { margin: 0; }
input[type="datetime-local"], input[type="number"] {
  width: 100%;
  padding: var(--md);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-form);
  background: var(--surface);
  color: var(--navy);
  font: inherit;
}
.alert.calm { background: var(--sky-bg); box-shadow: inset 0 0 0 1px var(--sky-contrast); }

.shifts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--md); }

.shift {
  padding: var(--lg) var(--xl);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.shift.cancelled { background: var(--grey-light); }
/* Caption and meta, with the day at 600 */
.shift .when {
  color: var(--grey-secondary);
  font-size: 0.8125rem;
  line-height: 1.125rem;
}
.shift .when strong { color: var(--navy); font-weight: 600; }
.shift .pay { color: var(--navy); font-weight: 600; }
.shift .actions { margin-top: var(--md); }

/* Label · 13/18 · 600 */
.badge {
  display: inline-block;
  margin-top: var(--sm);
  padding: var(--xs) var(--md);
  border-radius: var(--pill);
  color: var(--navy);
  font-size: 0.8125rem;
  line-height: 1.125rem;
  font-weight: 600;
}
.badge.critical { background: var(--peach-contrast); }

/* Cancel */
.reasons { display: flex; flex-direction: column; gap: var(--xs); }
.reasons label.choice {
  display: flex;
  align-items: center;
  gap: var(--sm);
  padding: var(--sm) var(--md);
  border-radius: var(--radius-inner);
  color: var(--grey-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.reasons label.choice:hover { background: var(--sky-bg); }
.reasons input { accent-color: var(--navy); }
.effect {
  margin: var(--lg) 0 var(--sm);
  padding: var(--md) var(--lg);
  border-radius: var(--radius-inner);
  background: var(--yellow-bg);
  box-shadow: inset 0 0 0 1px var(--yellow-contrast);
  color: var(--navy);
}

.message { padding: var(--xxl) 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The website's header, on pages for visitors (Figma 06 Website: Web/Nav).
   Behind it, the sign-in page's Sky arc. */
body.public { position: relative; overflow-x: hidden; }
.arc {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: max(101vw, 56rem);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -56%);
  background: linear-gradient(to bottom, var(--cream) 50%, #c5e9e8 100%);
}
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--lg);
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: var(--lg) var(--xxl);
}
.site-nav .brand img { height: 22px; }
.site-links, .site-account { display: flex; align-items: center; }
.site-links { gap: var(--xxxl); }
.site-account { justify-content: flex-end; gap: var(--xl); }
.site-nav a:not(.button) {
  color: var(--navy);
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.button):hover { text-decoration: underline; }
.menu { display: none; }

@media (max-width: 48rem) {
  .site-nav { grid-template-columns: 1fr auto; padding: var(--md) var(--lg); }
  /* Taller on phones, so the sign-in card sits on the sky */
  .arc { width: 220vw; transform: translate(-50%, -28%); }
  .site-links, .site-account { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    list-style: none;
    cursor: pointer;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; height: 2px; border-radius: 1px; background: var(--navy); }
  .menu nav {
    position: absolute;
    z-index: 10;
    right: 0;
    top: calc(100% + var(--sm));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--lg);
    min-width: 13rem;
    padding: var(--xl);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 24px rgb(42 59 89 / 0.12), inset 0 0 0 1px var(--grey-border);
  }
}

/* Sign in sits lower on the arc */
.public .sign-in { margin-top: clamp(var(--xxl), 8vh, 6rem); }

/* The website's footer (Figma 06 Website: Web/Footer) */
.site-footer {
  margin-top: 4rem;
  background: var(--navy);
  color: rgb(255 255 255 / 0.85);
}
.site-footer a { color: var(--surface); font-weight: 500; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 22rem) auto minmax(0, 22rem);
  justify-content: space-between;
  gap: var(--xxxl) 4rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 3.5rem var(--xxl) 4rem;
}
.footer-about p { margin: var(--xxl) 0 var(--lg); line-height: 1.375rem; }
.footer-mail { display: inline-flex; align-items: center; gap: var(--md); }
/* Form label style, light on navy */
.site-footer h2 {
  margin: 0 0 var(--md);
  color: rgb(255 255 255 / 0.65);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links { display: flex; gap: 3rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--md); }
.footer-links a { font-size: 0.9375rem; line-height: 1.125rem; }
.footer-newsletter > p { margin: 0 0 var(--lg); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: var(--sm); }
.newsletter-form input {
  flex: 1 1 12rem;
  width: auto;
  padding: var(--md) var(--xl);
  border: 0;
  border-radius: var(--pill);
}
.newsletter-error { flex-basis: 100%; margin: 0; color: var(--peach); font-weight: 500; }
.newsletter-done { margin: 0; color: var(--surface); font-weight: 600; }
.social { list-style: none; display: flex; gap: var(--md); margin: var(--lg) 0 0; padding: 0; }
.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5);
}
.social a:hover { background: rgb(255 255 255 / 0.1); }
.footer-bottom {
  display: flex;
  justify-content: center;
  gap: var(--xxxl);
  padding: var(--xl) var(--xxl);
  background: #1f2c44;
  font-size: 0.875rem;
}
.footer-bottom a { font-weight: 400; }
.site-footer a:focus-visible, .site-footer .button:focus-visible { outline-color: var(--sky); }

@media (max-width: 60rem) {
  .footer-top { grid-template-columns: 1fr; padding: var(--xxxl) var(--xxl) var(--xxl); }
  .footer-bottom { flex-direction: column; gap: var(--sm); padding: var(--lg) var(--xxl) var(--xxxl); background: var(--navy); }
}

/* Find shifts (the app's Find Shifts and Shift Details) */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--md) var(--lg);
  margin: var(--md) 0 var(--xl);
  padding: var(--lg);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.filter { display: flex; flex-direction: column; gap: var(--xs); flex: 1 1 9rem; }
.filters input[type="date"] {
  padding: var(--md);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-form);
  background: var(--surface);
  color: var(--navy);
  font: inherit;
}
.toggles { display: flex; flex-wrap: wrap; gap: var(--sm); flex-basis: 100%; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  padding: var(--sm) var(--md);
  border-radius: var(--pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
  color: var(--navy);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.chip:has(input:checked) { background: var(--sky-bg); box-shadow: inset 0 0 0 1px var(--sky); }
.chip input { accent-color: var(--navy); margin: 0; }

.day { margin-top: var(--xxl); }
.empty-day { color: var(--grey-secondary); }
.found-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--md); }
.found {
  display: flex;
  align-items: flex-start;
  gap: var(--md);
  padding: var(--lg);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
  color: var(--grey-body);
  font-weight: 400;
  text-decoration: none;
}
.found:hover { box-shadow: inset 0 0 0 1px var(--sky); }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky-bg);
  color: var(--navy);
  font-weight: 700;
}
.avatar.large { width: 48px; height: 48px; font-size: 1.125rem; }
.found-main { display: flex; flex-direction: column; gap: var(--xs); flex: 1; min-width: 0; }
.found-name { color: var(--navy); font-size: 1rem; line-height: 1.5rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.found-meta { color: var(--grey-secondary); font-size: 0.8125rem; line-height: 1.125rem; white-space: pre-wrap; }
.found-pay { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.rate { color: var(--navy); }
.rate strong { font-weight: 700; }
.rate.bonus { color: #2e7d4f; }
.was { color: var(--grey-secondary); font-size: 0.8125rem; }
.match {
  align-self: flex-start;
  padding: 2px var(--sm);
  border-radius: var(--pill);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}
.match.perfect { background: var(--green-bg, #e5f2e8); color: #2e6b4a; }
.match.strong { background: var(--sky-bg); color: var(--navy); }
.match.weak { background: var(--grey-light); color: var(--grey-secondary); }
.instant {
  padding: 2px var(--sm);
  border-radius: var(--pill);
  background: var(--yellow-bg);
  color: var(--navy);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}
.instant::before { content: "⚡ "; }

.back { margin: var(--lg) 0 0; }
.banner {
  margin: var(--md) 0;
  padding: var(--md) var(--lg);
  border-radius: var(--radius-inner);
  color: var(--navy);
  font-weight: 500;
}
.banner.info { background: var(--sky-bg); }
.banner.muted { background: var(--grey-light); color: var(--grey-secondary); }
.practice { display: flex; align-items: center; gap: var(--md); margin: var(--lg) 0; }
.practice > div { flex: 1; min-width: 0; }
.practice h2 { margin: 0; }
.practice p { margin: 0; white-space: pre-wrap; }
.directions { padding: var(--sm) var(--md); }
.pick {
  margin-top: var(--sm);
  padding: var(--md) var(--lg);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.pick:has(input:checked) { box-shadow: inset 0 0 0 2px var(--sky); }
.pick.off { background: var(--grey-light); }
.pick > label {
  display: flex;
  align-items: center;
  gap: var(--md);
  color: var(--grey-body);
  font-size: 0.875rem;
  line-height: 1.3125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.pick.off > label { cursor: default; }
.pick input { width: 18px; height: 18px; accent-color: var(--navy); }
.pick-when { display: flex; flex-direction: column; flex: 1; }
.pick-when strong { color: var(--navy); font-weight: 600; }
.pick-match { display: flex; align-items: center; gap: var(--sm); margin: var(--sm) 0 0 30px; }
.pick-match summary { cursor: pointer; list-style: none; }
.pick-match summary::-webkit-details-marker { display: none; }
.breakdown { display: grid; grid-template-columns: 1fr auto; gap: var(--xs) var(--lg); margin: var(--sm) 0 0; font-size: 0.8125rem; }
.breakdown dt { color: var(--grey-secondary); }
.breakdown dd { margin: 0; color: var(--navy); text-align: right; }
.breakdown .total { color: var(--navy); font-weight: 700; padding-top: var(--xs); border-top: 1px solid var(--grey-border); }
.fold { margin-top: var(--md); padding: var(--md) var(--lg); border-radius: var(--radius-inner); background: var(--surface); box-shadow: inset 0 0 0 1px var(--grey-border); }
.fold summary { color: var(--navy); font-weight: 600; cursor: pointer; }
.ticks { margin: var(--sm) 0 0; padding-left: var(--xl); }
.ticks li::marker { content: "✓  "; color: #2e7d4f; }
.dock {
  position: sticky;
  bottom: 0;
  margin-top: var(--xl);
  padding: var(--lg);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
  box-shadow: 0 -4px 16px rgb(42 59 89 / 0.08), inset 0 0 0 1px var(--grey-border);
}
.dock-total { margin: 0; color: var(--grey-secondary); }
.dock-total strong { color: var(--navy); font-size: 1.25rem; }
.dock .fold { margin: var(--sm) 0; padding: 0; box-shadow: none; }
.dock .button { width: 100%; margin-top: var(--sm); }
.dock .button[disabled] { opacity: 0.4; cursor: not-allowed; }

.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sm); }
.rows li {
  display: flex;
  justify-content: space-between;
  gap: var(--md);
  padding: var(--md) var(--lg);
  border-radius: var(--radius-inner);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.rows li > span:first-child { display: flex; flex-direction: column; }
.rows .status { color: var(--navy); font-weight: 600; }
.rows .failed { color: var(--error); }
.summary .actions { display: flex; flex-wrap: wrap; gap: var(--sm); margin-top: var(--xl); }

/* Sign up */
.agree {
  display: flex;
  align-items: flex-start;
  gap: var(--sm);
  margin-top: var(--md);
  color: var(--grey-body);
  font-size: 0.875rem;
  line-height: 1.3125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.agree input { margin-top: 3px; accent-color: var(--navy); }

/* Sign up (Figma 06 Website: Pro - Sign up w/form): a wider card, labels
   in sentence case, a full-width button, and "Prefer the app?" */
.sign-up { max-width: 32.5rem; padding: var(--md) 2.5rem 2.5rem; background: var(--cream); }
.sign-up label:not(.agree) {
  color: var(--grey-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.sign-up .pair .stack label { margin-top: 0; }
.sign-up .pair { margin-top: var(--sm); }
.sign-up .stack .button.wide { align-self: stretch; padding: var(--lg); font-size: 1rem; }
.sign-up .hint { margin: 0; }
.sign-up > form + form { margin-top: var(--md); }
.reveal { position: relative; }
.reveal input { padding-right: 3rem; }
.reveal-button {
  position: absolute;
  top: 50%;
  right: var(--sm);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: var(--radius-form);
  background: none;
  color: var(--grey-body);
  cursor: pointer;
}
.reveal-button[hidden] { display: none; }
.reveal-button[aria-pressed="true"] { color: var(--navy); background: var(--grey-light); }
.divider {
  display: flex;
  align-items: center;
  gap: var(--md);
  margin: var(--xl) 0 var(--lg);
  color: var(--grey-secondary);
  font-size: 0.8125rem;
}
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--grey-border); }
.get-app {
  display: flex;
  align-items: center;
  gap: var(--xl);
  padding: var(--lg);
  border-radius: var(--radius-inner);
  background: #f4f0ec;
}
.get-app h2 { margin: 0 0 var(--xs); font-size: 1rem; }
.get-app .muted { margin: 0; font-size: 0.875rem; }
.qr { flex: none; width: 92px; padding: var(--xs); border-radius: var(--radius-form); background: var(--surface); }
.qr svg { display: block; width: 100%; height: auto; }
.stores { display: flex; flex-wrap: wrap; gap: var(--md); margin: var(--md) 0 0; }
.stores img { display: block; }
.on-phone { display: none; }
@media (max-width: 48rem) {
  .sign-up .pair { grid-template-columns: 1fr; }
  .sign-up { padding: var(--xs) var(--xl) var(--xl); }
  .qr, .on-desktop { display: none; }
  .on-phone { display: inline; }
}
.note { color: var(--navy); font-weight: 500; }

/* Home address */
.field-error { margin: 0; color: var(--error); font-size: 0.8125rem; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--md); }
.address-search { margin-bottom: var(--sm); }
.suggestions { list-style: none; margin: 0 0 var(--lg); padding: 0; border-radius: var(--radius-inner); box-shadow: inset 0 0 0 1px var(--grey-border); overflow: hidden; }
.suggestions li + li { border-top: 1px solid var(--grey-border); }
.suggestions a { display: block; padding: var(--md); color: var(--navy); font-weight: 500; text-decoration: none; }
.suggestions a:hover, .suggestions a:focus-visible { background: var(--sky-bg); }
.hint { font-size: 0.8125rem; }
input[type="search"] { width: 100%; padding: var(--md); border: 1px solid var(--grey-border); border-radius: var(--radius-form); background: var(--surface); color: var(--navy); font: inherit; }

/* License step */
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sm); }
.choices legend { font-weight: 600; margin-bottom: var(--sm); }
.choice { display: inline-flex; align-items: center; gap: var(--xs); padding: var(--sm) var(--md); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--grey-border); cursor: pointer; }
.choice:has(input:checked) { background: var(--sky-bg); box-shadow: inset 0 0 0 1px var(--navy); }
.choices .field-error { flex-basis: 100%; }

/* Restriction notice */
.banner.restriction { background: var(--grey-light); }
.banner.restriction p { margin: 0; }
.banner.restriction p + p { margin-top: var(--xs); font-weight: 400; }

/* Action needed (compliance) */
.banner.action { display: flex; flex-direction: column; gap: var(--xs); background: var(--peach-bg); color: inherit; text-decoration: none; }
.banner.action span { font-weight: 400; }
.banner.action:hover strong { text-decoration: underline; }
.banner.action.calm { background: var(--sky-bg); margin: 0; }
.banner.action.calm:hover strong { text-decoration: none; }

/* Become an employee */
.employee h2 { font-size: 1rem; margin: var(--md) 0 0; }
.employee fieldset { border: 0; margin: 0; padding: 0; }
.employee legend { margin-bottom: var(--sm); }
.check { display: flex; align-items: flex-start; gap: var(--sm); font-size: 0.9375rem; font-weight: 400; letter-spacing: normal; text-transform: none; }
.check input { margin-top: 0.2em; }

/* Everee's embedded experiences */
.everee { display: flex; flex-direction: column; align-items: center; gap: var(--md); }
.everee iframe { width: 100%; max-width: 430px; height: min(844px, 80vh); border: 0; border-radius: 15px; box-shadow: inset 0 0 0 1px var(--grey-border); background: var(--surface); }

/* Dashboard (the app's dashboard_screen) */
.dashboard h1 { margin-bottom: var(--lg); }
.card.earnings {
  padding: var(--lg) var(--xl);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.card-title { margin: 0 0 var(--md); font-size: 1rem; }
.figures { display: flex; gap: var(--sm); margin: 0; }
.figures > div { flex: 1; padding: var(--md); border-radius: var(--radius-inner); background: var(--sky-bg); }
.figures dt { font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--grey-secondary); }
.figures dd { margin: var(--xs) 0 0; font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.card-foot { margin: var(--lg) 0 0; }
.button.wide { display: flex; align-items: center; justify-content: center; gap: var(--sm); width: 100%; text-align: center; }
.count-badge { padding: 0 var(--sm); border-radius: var(--pill); background: var(--surface); color: var(--navy); font-size: 0.75rem; line-height: 1.25rem; }
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { text-decoration: underline; }

/* Paid leave (the app's paid_leave card and history) */
.card.paid-leave {
  margin: 0 0 var(--md);
  padding: var(--lg) var(--xl);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.paid-leave h2 { margin: 0 0 var(--md); font-size: 1rem; }
.paid-leave .available { display: flex; flex-direction: column; margin: 0 0 var(--md); }
.paid-leave .available span { font-size: 0.75rem; font-weight: 600; color: var(--grey-secondary); }
.paid-leave .available strong { font-size: 1.5rem; color: var(--navy); }
.buckets { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sm); }
.buckets li {
  padding: var(--md);
  border-radius: var(--radius-inner);
  background: var(--sky-bg);
}
.bucket-link { display: block; color: var(--navy); text-decoration: none; }
.bucket-link:hover strong { text-decoration: underline; }
.bucket-head { display: flex; justify-content: space-between; gap: var(--md); }
.buckets .line { display: block; margin-top: var(--xs); color: var(--grey-secondary); font-size: 0.875rem; }
.buckets progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: var(--sm);
  border: 0;
  border-radius: var(--pill);
  background: var(--grey-light);
  accent-color: var(--navy);
}
.buckets progress::-webkit-progress-bar { background: var(--grey-light); border-radius: var(--pill); }
.buckets progress::-webkit-progress-value { background: var(--navy); border-radius: var(--pill); }
.buckets progress::-moz-progress-bar { background: var(--navy); border-radius: var(--pill); }
.paid-leave .note { margin: var(--md) 0 0; font-size: 0.875rem; color: var(--grey-secondary); }
.paid-leave .how { margin: var(--md) 0 0; }
.paid-leave .how summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.paid-leave .how h3 { margin: var(--md) 0 var(--xs); font-size: 0.875rem; }
.paid-leave .how ul { margin: 0; padding-left: var(--lg); font-size: 0.875rem; }
.paid-leave .how .footer-lines { margin-top: var(--md); color: var(--grey-secondary); }
.paid-leave .history-link { margin: var(--md) 0 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sm); margin: 0 0 var(--lg); }
.chips a {
  padding: var(--xs) var(--md);
  border-radius: var(--pill);
  box-shadow: inset 0 0 0 1px var(--grey-border);
  color: var(--navy);
  font-size: 0.875rem;
  text-decoration: none;
}
.chips a[aria-current="page"] { background: var(--sky-bg); box-shadow: inset 0 0 0 1px var(--sky); }
.month { margin: var(--lg) 0 var(--sm); font-size: 1rem; }
.history .signed { font-weight: 600; color: var(--navy); white-space: nowrap; }
.bucket-action { margin: var(--sm) 0 0; text-align: right; }
.cash-out .figures { margin: 0 0 var(--lg); }
.cash-out .summary { margin: 0 0 var(--md); }
.cash-out label { display: block; margin: 0 0 var(--xs); font-weight: 600; }
.cash-out select { width: 100%; margin: 0 0 var(--lg); }
.cash-out .note { margin: 0 0 var(--lg); color: var(--grey-secondary); font-size: 0.875rem; }
.buckets > li > .line { margin: var(--sm) 0 0; color: var(--grey-secondary); font-size: 0.875rem; }
.use-leave .day { display: grid; grid-template-columns: 1fr 7rem auto; gap: var(--sm); align-items: end; margin: 0 0 var(--md); }
.use-leave .day label { display: block; margin: 0 0 var(--xs); }
.use-leave .day input[type="date"] {
  width: 100%;
  padding: var(--md);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-form);
  background: var(--surface);
  color: var(--navy);
  font: inherit;
}
.use-leave .add { margin: 0 0 var(--lg); }
.use-leave .attest {
  display: flex;
  gap: var(--sm);
  align-items: flex-start;
  margin: 0 0 var(--lg);
  font-size: 0.9375rem;
  line-height: 1.375rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

/* Shift reliability (the app's reliability screens) */
.reliability .card {
  margin: 0 0 var(--md);
  padding: var(--lg) var(--xl);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.reliability .card h2 { margin: 0 0 var(--xs); font-size: 1rem; }
.reliability .card p { margin: 0 0 var(--sm); }
.reliability .card p:last-child { margin-bottom: 0; }
.reliability h2 { margin: var(--xl) 0 var(--md); font-size: 1.125rem; }
.reliability .counts .label { font-size: 0.75rem; font-weight: 600; color: var(--grey-secondary); }
.reliability .counts .big { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.reliability .counts dl { margin: var(--md) 0 0; }
.reliability .counts dl div { display: flex; justify-content: space-between; gap: var(--md); padding: var(--sm) 0; border-top: 1px solid var(--grey-border); }
.reliability .counts dt { color: var(--grey-secondary); }
.reliability .counts dd { margin: 0; font-weight: 600; color: var(--navy); }
.reliability .policy { margin: 0 0 var(--lg); padding-left: var(--lg); display: grid; gap: var(--sm); }
.reliability .chip-status { display: inline-block; padding: 0 var(--sm); border-radius: var(--pill); background: var(--sky-bg); color: var(--navy); font-size: 0.75rem; font-weight: 600; }
.reliability .attest {
  display: flex;
  gap: var(--sm);
  align-items: flex-start;
  margin: 0 0 var(--lg);
  font-size: 0.9375rem;
  line-height: 1.375rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
.use-leave .attest input { margin-top: 0.25rem; }
.use-leave .estimate { margin: 0 0 var(--lg); color: var(--grey-secondary); }
.bucket-action .button[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Account (the app's account screens) */
.account-hub { max-width: 40rem; }
.account-hub .banner { margin: 0 0 var(--lg); }

.reliability .attest input { margin-top: 0.25rem; }
.banner.restriction a { color: inherit; font-weight: 600; }

/* Profile (the app's Edit Profile screen) */
.profile { max-width: 40rem; }
.profile-head { display: flex; align-items: center; gap: var(--lg); margin: 0 0 var(--lg); }
.profile-head h1 { margin: 0; }
.profile-head p { margin: var(--xs) 0 0; }
.profile-head .avatar { width: 72px; height: 72px; object-fit: cover; }
.profile-head .avatar.empty { display: block; box-shadow: inset 0 0 0 2px var(--sky); }
.profile .banner { margin: 0 0 var(--lg); }
.profile .strength {
  margin: 0 0 var(--lg);
  padding: var(--lg) var(--xl);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
}
.strength .label { margin: 0; font-size: 0.75rem; font-weight: 600; color: var(--grey-secondary); }
.strength .big { margin: var(--xs) 0 var(--sm); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.strength .big span { font-size: 0.875rem; font-weight: 500; color: var(--grey-secondary); }
.strength progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: var(--pill);
  background: var(--grey-light);
  accent-color: var(--navy);
}
.strength progress::-webkit-progress-bar { background: var(--grey-light); border-radius: var(--pill); }
.strength progress::-webkit-progress-value { background: var(--navy); border-radius: var(--pill); }
.strength progress::-moz-progress-bar { background: var(--navy); border-radius: var(--pill); }
.strength ul { list-style: none; margin: var(--lg) 0 0; padding: 0; display: grid; gap: var(--md); }
.strength li strong { display: block; color: var(--navy); }
.strength li a { color: var(--navy); }
.strength li span { display: block; margin-top: var(--xs); font-size: 0.875rem; color: var(--grey-secondary); }
.profile h2 { margin: var(--xl) 0 var(--md); font-size: 1.125rem; }
.hub .static {
  display: block;
  padding: var(--lg) var(--xl);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--grey-border);
  color: var(--navy);
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.hub .in-app { font-size: 0.75rem; }
.required { margin-left: var(--sm); padding: 0 var(--sm); border-radius: var(--pill); background: var(--sky-bg); font-size: 0.75rem; font-style: normal; font-weight: 600; }
.account textarea { width: 100%; font: inherit; }
.account .choice { margin: 0; font-size: 0.9375rem; font-weight: 500; letter-spacing: normal; text-transform: none; }
.account .choices + label { margin-top: var(--md); }

/* Calendar (the app's calendar screen) */
.calendar { max-width: 40rem; }
.calendar .banner { margin: 0 0 var(--lg); }
.month-head { display: flex; align-items: center; justify-content: space-between; margin: var(--lg) 0 var(--md); }
.month-head h2 { margin: 0; font-size: 1.375rem; }
.month-head .step { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); font-size: 1.5rem; text-decoration: none; }
.month-head .step:hover { background: var(--grey-light); }
.cal-grid { width: 100%; border-collapse: separate; border-spacing: 0 var(--xs); table-layout: fixed; }
.cal-grid th { padding: var(--xs) 0; font-size: 0.75rem; font-weight: 600; color: var(--grey-secondary); }
.cal-grid td { padding: 0; text-align: center; }
.cal-grid .cell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); font-weight: 500; text-decoration: none; }
.cal-grid .cell.open { background: var(--surface); box-shadow: inset 0 0 0 1px var(--sky-contrast); }
.cal-grid .cell.unavailable { background: var(--grey-light); color: var(--grey-secondary); }
.cal-grid .cell.booked { background: #e6dcf5; font-weight: 700; }
.cal-grid .cell.past { color: var(--grey-secondary); opacity: 0.6; }
.cal-grid .cell.today span { text-decoration: underline; text-underline-offset: 3px; }
.cal-grid .cell.selected { outline: 2px solid var(--navy); outline-offset: 2px; }
.cal-grid .cell .dot { position: absolute; bottom: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--peach); }
.day-detail { margin-top: var(--xl); padding: var(--lg) var(--xl); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--grey-border); }
.day-detail .day-name { margin: 0 0 var(--md); font-size: 1.125rem; }
.day-detail h3 { margin: var(--lg) 0 var(--sm); font-size: 0.9375rem; }
.day-detail .availability { display: flex; align-items: center; justify-content: space-between; gap: var(--md); margin: 0 0 var(--md); }
.day-detail .hub { margin-top: var(--md); }

/* Notifications (the app's notification settings) */
.notifications .banner { margin: 0 0 var(--lg); }
.notifications .category { margin: 0 0 var(--lg); padding: var(--lg) var(--xl); border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--grey-border); }
.notifications legend { float: left; width: 100%; margin: 0 0 var(--sm); padding: 0; }
.notifications legend strong { display: block; font-size: 1.0625rem; }
.notifications legend span { display: block; color: var(--grey-secondary); font-size: 0.875rem; }
.notifications .kind { clear: both; padding: var(--md) 0; border-top: 1px solid var(--grey-border); }
.notifications .kind p { margin: 0 0 var(--sm); font-weight: 600; color: var(--navy); }
.notifications .channels { display: flex; flex-wrap: wrap; gap: var(--sm) var(--xl); }
.notifications .check { margin: 0; }
.notifications .always { color: var(--grey-secondary); }
.notifications .check { display: inline-flex; align-items: center; gap: var(--xs); font-size: 0.9375rem; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--navy); }
.notifications .check .muted { font-size: 0.875rem; }

/* Messages (the app's inbox and conversation) */
.messages, .conversation { max-width: 40rem; }
.messages .empty, .conversation .empty { margin: var(--xxl) 0; text-align: center; }
.inbox { list-style: none; margin: 0 0 var(--lg); padding: 0; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--grey-border); overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--grey-border); }
.inbox a { display: flex; align-items: center; gap: var(--md); padding: var(--md) var(--lg); color: var(--grey-body); font-weight: 400; text-decoration: none; }
.inbox a:hover { background: var(--grey-light); }
.inbox .avatar { width: 44px; height: 44px; object-fit: cover; }
.inbox .who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.inbox .who strong { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox .snippet { color: var(--grey-secondary); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox .unread .snippet { color: var(--grey-body); font-weight: 600; }
.inbox .meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--xs); flex: none; }
.inbox .when { color: var(--grey-secondary); font-size: 0.75rem; }
.inbox .count { min-width: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--peach); color: var(--navy); font-size: 0.75rem; font-weight: 700; line-height: 20px; text-align: center; }
.messages .support { margin: 0; }
.conversation h1 { margin-bottom: var(--lg); }
.conversation .earlier { margin: 0 0 var(--md); text-align: center; font-size: 0.875rem; }
.thread { list-style: none; margin: 0 0 var(--lg); padding: 0; display: flex; flex-direction: column; gap: var(--md); }
.thread li { display: flex; flex-direction: column; max-width: 80%; }
.thread .in { align-self: flex-start; align-items: flex-start; }
.thread .out { align-self: flex-end; align-items: flex-end; }
.thread .bubble { margin: 0; padding: var(--sm) var(--md); border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.375rem; }
.thread .in .bubble { background: var(--surface); box-shadow: inset 0 0 0 1px var(--grey-border); border-bottom-left-radius: var(--xs); color: var(--grey-body); }
.thread .out .bubble { background: var(--sky-bg); border-bottom-right-radius: var(--xs); color: var(--navy); }
.thread .photo { display: block; padding: 0; overflow: hidden; }
.thread .photo img { display: block; max-width: 100%; max-height: 20rem; }
.thread .when { margin-top: 2px; color: var(--grey-secondary); font-size: 0.75rem; }
.compose { display: flex; gap: var(--sm); align-items: flex-end; position: sticky; bottom: 0; padding: var(--md) 0; background: var(--cream); }
.compose textarea { flex: 1; min-height: 44px; padding: var(--sm) var(--md); border: 1px solid var(--grey-border); border-radius: var(--radius-inner); font: inherit; resize: vertical; }

.account .attest { display: flex; gap: var(--sm); align-items: flex-start; margin: var(--sm) 0 0; font-size: 0.9375rem; font-weight: 400; letter-spacing: normal; text-transform: none; }
.account .attest input { margin-top: 0.25rem; }
.account .note { margin: var(--md) 0 0; padding: var(--md) var(--lg); border-radius: var(--radius-inner); background: var(--sky-bg); font-size: 0.875rem; }
.account legend .muted { font-weight: 400; }

/* An upcoming shift's confirmation (the app's Confirmed / Confirm needed chips) */
.shift .badge.confirmed { background: var(--sky-bg); color: var(--navy); }
.shift .badge.confirm-due { background: var(--yellow-bg); color: var(--navy); }

/* The header's unread messages count (the app's badge) */
.unread-count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: var(--pill); background: var(--peach); color: var(--navy); font-size: 0.6875rem; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }
input[type="month"] { width: 100%; padding: var(--md); border: 1px solid var(--grey-border); border-radius: var(--radius-form); background: var(--surface); color: var(--navy); font: inherit; }
.history-list .banner { margin: 0 0 var(--lg); }
.entries { list-style: none; margin: 0 0 var(--lg); padding: 0; display: grid; gap: var(--md); }
.entries li { display: flex; justify-content: space-between; gap: var(--md); padding: var(--md) 0; border-bottom: 1px solid var(--grey-border); }
.entries strong { display: block; color: var(--navy); }
.entries span { display: block; margin-top: var(--xs); font-size: 0.875rem; color: var(--grey-secondary); }
.entry-actions { display: flex; gap: var(--md); margin: 0; white-space: nowrap; font-size: 0.875rem; }
.licenses { margin: var(--lg) 0; }
.licenses a { display: flex; justify-content: space-between; align-items: center; gap: var(--md); }
.licenses .badge { margin: 0; color: var(--navy); white-space: nowrap; }
.badge.verified { background: var(--green-bg, #e5f2e8); color: #2e6b4a; }
.badge.pending { background: var(--sky-bg); }
.account .note.plain { margin-top: 0; background: var(--grey-light); color: var(--grey-secondary); }
.contact-card { display: grid; gap: var(--xs); padding: var(--md) var(--lg); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--grey-border); }
.contact-card strong { font-size: 1.0625rem; }
