/* ==========================================================================
   NAV1: the menu in modules (Ram, 14 Nov 2026, with the bought ERP's menu: "like this"). The approved mock-up:
   docs/design/nav1/new-menu-mockup.html. Loaded after desk.css, so it decides the frame of every signed-in page:
     1  tokens
     2  the menu bar at the left: dark plum; a module opens in place as a white card; a folder inside it the same way
     3  the narrow bar (icons only), a person's own choice
     4  the top bar: white; where you are, the search, the quick buttons, the bell, the person
     5  a phone: the same bar as a drawer; the everyday pages along the bottom, then "Menu"
     6  the page header: plain (a title and one line), no night-sky card
     7  a module's own page
     8  the Dashboard
   SLP's own colours and Poppins stay. No inline styles or scripts anywhere (the Content-Security-Policy).
   ========================================================================== */

/* ---- 1. tokens ------------------------------------------------------------------------------------------------ */
body.app {
  --nav1-deep: #33004f;
  --nav1-plum: #4a0072;
  --nav1-on-deep: #efe3f7;
  --nav1-tint: #f3e9f9;
  --nav1-tint-strong: #efe1f8;
  --nav1-line: #e4d9ed;
  --nav1-ink: #22122e;
  --nav1-soft: #5d4b6b;
  --nav1-orange: #e07020;
  --nav1-side: 276px;
  --appbar-h: 64px;
}

/* ---- 2. the menu bar ------------------------------------------------------------------------------------------ */
body.app .rail {
  color: var(--nav1-on-deep);
  background: var(--nav1-deep);
  border-right: 0;
  box-shadow: none;
}

body.app .rail__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-bottom: 0;
}

body.app .rail__burger {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}

body.app .rail__burger:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

body.app .rail__burger-icon {
  width: 22px;
  height: 22px;
}

body.app .rail .brand,
body.app .rail .brand:hover {
  flex: 1;
  min-width: 0;
  color: #ffffff;
}

body.app .rail .brand__sub {
  color: var(--uip-gold);
}

body.app .rail .brand__words {
  min-width: 0;
}

body.app .rail .brand__name {
  font-size: 0.95rem;
  white-space: nowrap;
}

body.app .rail .brand__sub {
  overflow: hidden;
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.app .rail .logo-tile {
  width: 40px;
  height: 40px;
  border-width: 2px;
  border-radius: 11px;
}

body.app .rail__close {
  position: static;
  flex: none;
  color: #ffffff;
}

body.app .rail__nav {
  display: block;
  flex: 1;
  min-height: 0;
  padding: 8px 12px 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

body.app .rail__list--modules {
  display: grid;
  gap: 4px;
}

/* A module that is one page, and the top of a module that opens. */
body.app .rail__link--main,
body.app .rail__top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--nav1-on-deep);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border-radius: 10px;
}

body.app .rail__top {
  position: relative;
  list-style: none;
  cursor: pointer;
}

body.app .rail__top::-webkit-details-marker,
body.app .rail__folder-top::-webkit-details-marker {
  display: none;
}

body.app .rail__link--main:hover,
body.app .rail__top:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

body.app .rail__link--main[aria-current='page'] {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 3px 0 0 var(--uip-gold);
}

body.app .rail__icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: inherit;
}

/* MENU1 (Ram, 18 Nov 2026, on the live system: "I am unable to close the submenu"): a click anywhere on a module's row
   opens or closes its list, on a computer as in the phone's drawer. The name inside the row is a link to the module's
   own page and filled the row up to the arrow, so a click on the name (most of the row) opened that page, where the
   module was open again: only the 16 px arrow closed the list. The name takes no click of its own now (the row does);
   the link stays for the narrow bar (below), for the keyboard, and the top bar's place line opens the module's page. */
body.app .rail__top-link {
  display: flex;
  flex: 1;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

body.app .rail__chev {
  flex: none;
  width: 16px;
  height: 16px;
  color: inherit;
  transition: transform 0.15s ease;
}

body.app .rail__module[open] > .rail__top .rail__chev,
body.app .rail__folder[open] > .rail__folder-top .rail__chev {
  transform: rotate(180deg);
}

/* The open module: a white card in the dark bar, as in the bought ERP. */
body.app .rail__module[open] {
  padding-bottom: 8px;
  color: var(--nav1-ink);
  background: #ffffff;
  border-radius: 12px;
}

body.app .rail__module[open] > .rail__top {
  color: var(--nav1-plum);
  font-weight: 600;
}

body.app .rail__module[open] > .rail__top:hover {
  color: var(--nav1-plum);
  background: var(--nav1-tint);
}

body.app .rail__top-link[aria-current='page'] {
  font-weight: 700;
}

/* MENU1: every list can be closed, the one a person is in too. The closed row of that module keeps the gold line of a
   current page (as Dashboard and Inbox wear it), so a closed menu still says where they are. */
body.app .rail__module:not([open]):has([aria-current='page']) > .rail__top {
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--uip-gold);
}

body.app .rail__kids,
body.app .rail__sub {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

body.app .rail__sub {
  padding: 0 0 0 14px;
}

body.app .rail__kids .rail__link,
body.app .rail__folder-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--nav1-ink);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border-radius: 8px;
}

body.app .rail__folder-top {
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

body.app .rail__kids .rail__link:hover,
body.app .rail__folder-top:hover {
  color: var(--nav1-plum);
  background: var(--nav1-tint);
}

body.app .rail__kids .rail__link[aria-current='page'] {
  color: var(--nav1-plum);
  font-weight: 600;
  background: var(--nav1-tint-strong);
  box-shadow: inset 3px 0 0 var(--uip-gold);
}

body.app .rail__label {
  flex: 1;
  min-width: 0;
}

body.app .rail .nav-badge {
  flex: none;
  min-width: 24px;
  padding: 2px 8px;
  color: var(--uip-on-gold);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  background: var(--uip-gold);
  border: 0;
  border-radius: 999px;
}

body.app .rail__me {
  color: var(--nav1-on-deep);
  background: var(--nav1-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body.app .rail__me .rail__name {
  color: #ffffff;
}

body.app .rail__me .rail__role {
  color: rgba(239, 227, 247, 0.8);
}

body.app .rail__signout-button {
  color: var(--uip-gold);
}

body.app .rail :focus-visible {
  outline: 3px solid var(--uip-gold);
  outline-offset: 2px;
}

body.app .rail__module[open] :focus-visible {
  outline-color: var(--uip-violet);
}

/* ---- 4. the top bar ------------------------------------------------------------------------------------------- */
body.app .appbar {
  gap: 14px;
  min-height: var(--appbar-h);
  color: var(--nav1-ink);
  background: #ffffff;
  border-bottom: 1px solid var(--nav1-line);
  box-shadow: none;
}

body.app .appbar__menu {
  flex: none;
  color: var(--nav1-plum);
  border: 1px solid var(--nav1-line);
  border-radius: 10px;
}

body.app .appbar__menu:hover {
  background: var(--nav1-tint);
}

body.app .appbar__crumb {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  max-width: 60%;
  min-width: 0;
  color: var(--nav1-soft);
  font-size: 0.9rem;
  white-space: nowrap;
}

body.app .appbar__crumb-part {
  color: var(--nav1-soft);
  text-decoration: none;
}

body.app a.appbar__crumb-part:hover {
  color: var(--nav1-plum);
  text-decoration: underline;
}

body.app .appbar__crumb-sep {
  color: #b9a8c6;
}

body.app .appbar__crumb-here {
  overflow: hidden;
  color: var(--nav1-plum);
  font-weight: 600;
  text-overflow: ellipsis;
}

body.app .appbar__search {
  flex: 1 1 140px;
  max-width: 360px;
  min-width: 0;
  margin: 0;
}

body.app .appbar__search-icon {
  color: var(--nav1-soft);
  opacity: 1;
}

body.app .appbar__search input {
  min-height: 42px;
  color: var(--nav1-ink);
  background: var(--uip-page);
  border: 1px solid var(--nav1-line);
  border-radius: 8px;
}

body.app .appbar__search input::placeholder {
  color: var(--nav1-soft);
}

body.app .appbar__search input:focus {
  background: #ffffff;
  border-color: var(--uip-violet);
  box-shadow: var(--uip-ring);
}

body.app .appbar__quick {
  display: none;
  flex: none;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1.5px solid var(--nav1-plum);
  border-radius: 999px;
}

body.app .appbar__quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: var(--nav1-plum);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
}

body.app .appbar__quick-link:hover {
  background: var(--nav1-tint);
}

body.app .appbar__quick-link[aria-current='page'] {
  color: #ffffff;
  background: var(--nav1-plum);
}

body.app .appbar__bell {
  display: inline-flex;
  flex: none;
  margin-left: auto;
}

body.app .appbar__quick + .appbar__bell {
  margin-left: 0;
}

body.app .appbar .topbar-alerts {
  width: 44px;
  height: 44px;
  margin-left: 0;
  color: var(--nav1-plum);
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 10px;
}

body.app .appbar .topbar-alerts:hover,
body.app .appbar__bell.is-current .topbar-alerts {
  background: var(--nav1-tint);
  border-color: var(--nav1-plum);
}

body.app .appbar .topbar-alerts__icon {
  color: var(--nav1-plum);
}

body.app .appbar .topbar-alerts__count {
  color: #ffffff;
  background: var(--nav1-orange);
  border-color: #ffffff;
}

body.app .appbar__bell ~ .appbar__me,
body.app .appbar__quick ~ .appbar__me {
  margin-left: 0;
}

body.app .appbar__me {
  margin-left: auto;
}

body.app .appbar__me-button {
  padding: 3px 12px 3px 4px;
  color: var(--nav1-ink);
  background: none;
  border: 1px solid transparent;
}

body.app .appbar__me-button:hover,
body.app .appbar__me[open] .appbar__me-button {
  background: var(--nav1-tint);
}

body.app .appbar__name {
  color: var(--nav1-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

body.app .appbar__role {
  color: var(--nav1-soft);
  opacity: 1;
}

/* ---- a computer: the bar at the left, the top bar over the page ------------------------------------------------- */
@media (min-width: 1024px) {
  body.app {
    display: grid;
    grid-template-columns: var(--nav1-side) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'rail bar'
      'rail frame';
    min-height: 100vh;
    background: var(--uip-page);
  }

  body.app .rail {
    grid-area: rail;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
  }

  body.app .rail__head {
    display: flex;
  }

  body.app .rail__burger {
    display: inline-flex;
  }

  body.app .rail__close,
  body.app .rail__me {
    display: none;
  }

  body.app .appbar {
    grid-area: bar;
    padding: 10px 24px;
    background: #ffffff;
  }

  body.app .appbar .brand,
  body.app .appbar__menu {
    display: none;
  }

  body.app .appbar__quick {
    display: flex;
  }

  body.app .frame {
    grid-area: frame;
    min-width: 0;
  }

  /* ---- 3. the narrow bar: icons only ---------------------------------------------------------------------------- */
  body.app.nav-narrow {
    --nav1-side: 72px;
  }

  body.app.nav-narrow .rail .brand,
  body.app.nav-narrow .rail__label,
  body.app.nav-narrow .rail__chev,
  body.app.nav-narrow .rail__kids,
  body.app.nav-narrow .rail .nav-badge {
    display: none;
  }

  body.app.nav-narrow .rail__head,
  body.app.nav-narrow .rail__link--main,
  body.app.nav-narrow .rail__top {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }

  /* Icons only: there is no list to open, so the link is the whole row and opens the module's own page. */
  body.app.nav-narrow .rail__top-link {
    position: absolute;
    inset: 0;
    pointer-events: auto;
  }

  body.app.nav-narrow .rail__module[open] {
    padding-bottom: 0;
    background: none;
  }

  body.app.nav-narrow .rail__module[open] > .rail__top {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
  }
}

/* A smaller computer screen (Ram's own, 14 Nov 2026: 1920 wide at 150 % is 1280): the name of the page a person is on
   is never cut ("Pickups / Setup / T"). The person's name gives way first (the round mark stays), then the menu bar is
   a little narrower, then the place keeps only the page's own name, then the search waits on the Inbox page. */
@media (min-width: 1024px) and (max-width: 1499.98px) {
  body.app .appbar__who {
    display: none;
  }

  body.app .appbar__me-button {
    padding: 3px;
  }

  body.app .appbar {
    gap: 12px;
    padding: 10px 18px;
  }
}

@media (min-width: 1024px) and (max-width: 1399.98px) {
  body.app {
    --nav1-side: 252px;
  }

  body.app .rail__head {
    gap: 8px;
    padding: 10px;
  }

  body.app .rail__burger {
    width: 40px;
  }

  body.app .rail .brand__sub {
    font-size: 0.5rem;
    letter-spacing: 0;
  }

  body.app .appbar__quick-link {
    padding: 0 11px;
  }
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
  body.app .appbar__crumb-part,
  body.app .appbar__crumb-sep {
    display: none;
  }

  body.app .appbar__search {
    display: none;
  }

  body.app .appbar__quick {
    margin-left: auto;
  }
}

/* ---- 5. a phone: the drawer and the bottom bar ------------------------------------------------------------------ */
@media (max-width: 1023.98px) {
  body.app .appbar {
    gap: 10px;
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
  }

  body.app .appbar .brand,
  body.app .appbar__search,
  body.app .appbar__crumb-part,
  body.app .appbar__crumb-sep {
    display: none;
  }

  body.app .appbar__crumb {
    flex: 1;
    font-size: 1rem;
  }

  body.app .appbar__me {
    margin-left: 0;
  }

  body.app .appbar > .brand + .appbar__me,
  body.app .appbar__menu + .appbar__me {
    margin-left: auto;
  }

  /* A page outside the menu has no name in the bar (the page "Call customer"): nothing pushed the bell and the person
     to the right, and they stood beside the menu button (the quick buttons, hidden here, still switched the bell's own
     push off). With a name in the bar this changes nothing: the name takes the room. */
  body.app .appbar__quick + .appbar__bell {
    margin-left: auto;
  }

  body.app .rail {
    width: min(86vw, 330px);
  }

  body.app .rail__link--main,
  body.app .rail__top {
    min-height: 50px;
  }

  body.app .rail__kids .rail__link,
  body.app .rail__folder-top {
    min-height: 44px;
  }

  body.app .tabbar {
    background: var(--nav1-deep);
    border-top: 0;
    box-shadow: 0 -6px 20px rgba(34, 18, 46, 0.18);
  }

  body.app .tabbar__item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    color: var(--nav1-on-deep);
  }

  body.app .tabbar__item[aria-current='page'],
  body.app .tabbar__more.is-current {
    color: #ffffff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
  }

  body.app .tabbar__item[aria-current='page']::before,
  body.app .tabbar__more.is-current::before {
    content: '';
    position: absolute;
    top: 0;
    right: 16px;
    left: 16px;
    height: 4px;
    background: var(--uip-gold);
    border-radius: 0 0 4px 4px;
  }

  body.app .tabbar__item[aria-current='page'] .tabbar__icon-wrap,
  body.app .tabbar__more.is-current .tabbar__icon-wrap {
    background: none;
  }

  body.app .tabbar__label {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* ---- 6. the page header: plain ---------------------------------------------------------------------------------- */
body.app .band {
  color: var(--nav1-ink);
  background: none;
  border-radius: 0;
  box-shadow: none;
}

body.app .band__inner {
  padding: 4px 0 0;
}

body.app .band__title,
body.app .band h1 {
  color: var(--nav1-plum);
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.app .band__lede {
  max-width: 68ch;
  color: var(--nav1-soft);
}

body.app .band__lede--bad {
  color: #ffffff;
}

body.app .band__crumb,
body.app .band__eyebrow {
  color: var(--nav1-plum);
}

body.app .band__meta,
body.app .band__meta li,
body.app .band__meta a {
  color: var(--nav1-soft);
}

body.app .band .band__route,
body.app .band .route-line {
  display: none;
}

/* The header's buttons were drawn for the night sky: on the plain page the quiet ones are outlined in plum. */
body.app .band .button.ghost,
body.app .band .button.secondary,
body.app .band button.ghost {
  color: var(--nav1-plum);
  background: #ffffff;
  border-color: var(--nav1-plum);
  box-shadow: none;
}

body.app .band .button.ghost:hover,
body.app .band .button.secondary:hover,
body.app .band button.ghost:hover {
  color: var(--nav1-plum);
  background: var(--nav1-tint);
}

@media (min-width: 1024px) {
  body.app .band__inner {
    padding: 6px 0 0;
  }
}

/* ---- 7. a module's own page ------------------------------------------------------------------------------------- */
body.app .module-pages {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 12px;
}

body.app .module-pages__item + .module-pages__item {
  border-top: 1px solid var(--nav1-line);
}

body.app .module-pages__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 14px 18px;
  color: var(--nav1-ink);
  text-decoration: none;
}

body.app .module-pages__item:first-child .module-pages__link {
  border-radius: 12px 12px 0 0;
}

body.app .module-pages__item:last-child .module-pages__link {
  border-radius: 0 0 12px 12px;
}

body.app .module-pages__link:hover {
  background: var(--nav1-tint);
}

body.app .module-pages__words {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.app .module-pages__name {
  color: var(--nav1-plum);
  font-size: 1.02rem;
  font-weight: 600;
}

body.app .module-pages__folder {
  margin-left: 6px;
  padding: 1px 8px;
  color: var(--nav1-soft);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--uip-page);
  border-radius: 6px;
}

body.app .module-pages__job {
  color: var(--nav1-soft);
  font-size: 0.92rem;
}

body.app .module-pages__go {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--nav1-plum);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--nav1-plum);
  border-radius: 8px;
}

body.app .module-pages__go .ui-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 599px) {
  body.app .module-pages__link {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app .module-pages__go {
    display: none;
  }
}

/* ---- 8. the Dashboard ------------------------------------------------------------------------------------------- */
/* The head: the day, the one status line, one helper line, two buttons. No night sky, no planes. */
body.app .dash-head {
  overflow: visible;
}

body.app .dash-head .today-hero__inner {
  display: block;
}

body.app .dash-head .today-hero__date {
  margin: 0 0 4px;
  color: var(--nav1-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
}

body.app .dash-head .today-hero__title {
  color: var(--nav1-plum);
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

body.app .dash-head .today-hero__sub {
  display: block;
  max-width: 60ch;
  margin: 10px 0 0;
  color: var(--nav1-soft);
  font-size: 1rem;
}

/* Wave 1B, U-060: the plain entry to "Stop all automatic replies" under the line about the AI (an owner's, while the AI
   answers by itself). A link in the line, never a button; tall enough for a thumb. */
body.app .dash-head .today-hero__stop {
  margin: 2px 0 0;
  font-size: 0.92rem;
}

body.app .dash-head .today-hero__stop a {
  display: inline-block;
  padding: 10px 0;
  color: var(--nav1-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.app .dash-head a.today-hero__button {
  min-height: 46px;
  padding: 0 20px;
  font-weight: 600;
  border-radius: 8px;
}

body.app .dash-head a.today-hero__button:not(.ghost) {
  color: var(--nav1-deep);
  background: var(--uip-gold);
  border: 1px solid var(--uip-gold);
  box-shadow: none;
}

body.app .dash-head a.today-hero__button:not(.ghost):hover {
  background: #ffca28;
}

body.app .dash-head a.today-hero__button.ghost {
  color: var(--nav1-plum);
  background: #ffffff;
  border: 1px solid var(--nav1-plum);
}

body.app .dash-head a.today-hero__button.ghost:hover {
  background: var(--nav1-tint);
}

/* Ready to act: one list; each line says the kind, who or what, and the one thing to do. */
body.app .today .ready {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.app .today .ready__title {
  margin: 0 0 10px;
  color: var(--nav1-ink);
  font-size: 1.1rem;
  font-weight: 600;
}

body.app .today .ready__icon {
  color: var(--uip-green);
}

body.app .today .ready__list {
  display: block;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 10px;
}

body.app .today .ready__line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  min-height: 56px;
  margin: 0 0 8px;
  padding: 10px 14px;
  color: var(--nav1-ink);
  font-size: 0.96rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-left: 4px solid var(--nav1-plum);
  border-radius: 10px;
}

body.app .today .ready__line .today-status__text,
body.app .today .ready__line-link {
  flex: 1 1 240px;
  min-width: 0;
  color: var(--nav1-ink);
  font-weight: 600;
  text-decoration: none;
}

body.app .today .ready__line-link:hover {
  color: var(--nav1-plum);
  text-decoration: underline;
}

body.app .today .ready__item + .ready__item {
  border-top: 1px solid var(--nav1-line);
}

body.app .today .ready__item a,
body.app .today .ready__item--payment a,
body.app .today .ready__item--give a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 14px;
  color: var(--nav1-ink);
  font-weight: 600;
  white-space: normal;
  background: none;
  border-radius: 0;
}

body.app .today .ready__item a:hover {
  background: var(--nav1-tint);
}

body.app .today .ready__badge {
  flex: none;
  min-width: 118px;
  margin: 0;
  padding: 3px 10px;
  color: #1b7f4b;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  vertical-align: 0;
  background: #dff3e7;
  border-radius: 6px;
}

body.app .today .ready__item--payment .ready__badge {
  color: #7a5200;
  background: #fff1c7;
}

body.app .today .ready__item--give .ready__badge {
  color: #9a4208;
  background: #fde6d5;
}

body.app .today .ready__badge--approve {
  color: var(--nav1-plum);
  background: var(--nav1-tint-strong);
}

body.app .today .ready__badge--check {
  color: #b3261e;
  background: #f9dedc;
}

body.app .today .ready__what {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.app .today .ready__go {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 36px;
  margin-left: auto;
  padding: 0 12px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  background: var(--nav1-plum);
  border-radius: 8px;
}

body.app .today a.ready__go:hover {
  color: #ffffff;
  background: var(--uip-purple);
}

body.app .today .ready .ready__more {
  margin: 8px 0 0;
}

/* The four counts: one strip, a number and its name; the line under a number says how old the oldest is. */
body.app .today .desk__tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 4px;
  background: #ffffff;
  border-top: 2px solid var(--nav1-plum);
  border-bottom: 1px solid var(--nav1-line);
}

body.app .today .desk__tiles > li + li {
  border-left: 1px solid var(--nav1-line);
}

body.app .today .tile,
body.app .today .tile:hover {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  min-height: 0;
  padding: 14px 16px 12px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.app .today .tile:hover {
  background: var(--uip-page);
}

body.app .today .tile__head {
  order: 2;
  justify-content: flex-start;
  color: var(--nav1-ink);
  font-size: 0.92rem;
  font-weight: 500;
}

body.app .today .tile__icon {
  display: none;
}

body.app .today .tile__row {
  order: 1;
  justify-content: flex-start;
  margin: 0;
}

body.app .today .tile__count {
  color: var(--nav1-plum);
  font-size: 2.1rem;
  font-weight: 700;
}

body.app .today .tile--busy .tile__count,
body.app .today .tile--late .tile__count {
  color: var(--nav1-orange);
}

body.app .today .tile__line {
  order: 3;
  display: flex;
  margin-top: 2px;
  color: var(--nav1-soft);
  font-size: 0.78rem;
  font-weight: 500;
}

body.app .today .tile__line .ui-icon {
  display: none;
}

/* The day in one line and the calls made, quiet, under the helper line. */
body.app .dash-head .today-hero__verdict {
  display: block;
  margin: 8px 0 0;
  color: var(--nav1-soft);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

body.app .dash-head .today-hero__verdict:hover {
  color: var(--nav1-plum);
  text-decoration: underline;
}

body.app .dash-head .today-hero__progress {
  margin-top: 10px;
}

body.app .dash-head .today-hero__progress-text {
  color: var(--nav1-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

body.app .dash-head .today-meter {
  background: var(--nav1-line);
}

/* The day's detail, folded. */
body.app .dash-more {
  margin: 22px 0 0;
  border-top: 1px solid var(--nav1-line);
}

body.app .dash-more__top {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  color: var(--nav1-plum);
  font-size: 0.94rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

body.app .dash-more__top::-webkit-details-marker {
  display: none;
}

body.app .dash-more__chev {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

body.app .dash-more[open] .dash-more__chev {
  transform: rotate(180deg);
}

body.app .dash-more__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
  align-items: start;
  padding: 6px 0 4px;
}

@media (max-width: 767.98px) {
  body.app .today .desk__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app .today .desk__tiles > li:nth-child(3) {
    border-left: 0;
  }

  body.app .today .desk__tiles > li:nth-child(n + 3) {
    border-top: 1px solid var(--nav1-line);
  }

  body.app .today .tile,
  body.app .today .tile:hover {
    padding: 12px 12px 10px;
  }

  body.app .today .tile__count {
    font-size: 1.8rem;
  }

  body.app .today .ready__badge {
    min-width: 0;
  }

  body.app .today .ready__go {
    display: none;
  }

  body.app .today a.ready__go {
    display: inline-flex;
  }
}

body.app .dash-head .band__text {
  max-width: none;
}

body.app .dash-head .today-hero__title {
  text-wrap: pretty;
}

body.app .today .tile__line {
  align-self: flex-start;
}

/* The page is one column of parts with an even gap (desk.css: `.today` is a grid). */
body.app .today .ready,
body.app .today .desk__tiles,
body.app .today .dash-more {
  margin: 0;
}

/* A phone: what waits for a yes, then the calls, then the counts and the rest. */
@media (max-width: 599px) {
  body.app .today > .ready {
    order: 0;
  }

  body.app .today > .today__grid {
    order: 1;
  }

  body.app .today > .desk__tiles {
    order: 2;
  }

  body.app .today > .today-status {
    order: 4;
  }

  body.app .today > .dash-more {
    order: 5;
  }

  body.app .today > .today-signin {
    order: 6;
  }
}

/* The person at the foot of the drawer: a long name keeps to two lines. */
body.app .rail__me .rail__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.app .tabbar__icon {
  color: inherit;
}

/* ---- 6b. the page header's small parts, drawn for the night sky before: now on the plain page ------------------- */
body.app .band__eyebrow,
body.app .band .pill {
  color: var(--nav1-plum);
  background: var(--nav1-tint);
  border: 1px solid var(--nav1-line);
}

body.app .band__meta-icon,
body.app .band__dates,
body.app .band-search__label {
  color: var(--nav1-plum);
}

body.app .band__crumb:hover {
  color: var(--uip-purple);
}

body.app .band__lede.band__lede--late {
  color: #3a2600;
}

body.app .band-search input[type='search'] {
  border: 1px solid var(--input-border);
}

body.app .band-search input[type='search']:hover {
  border-color: var(--nav1-plum);
}

body.app .band-search__hint {
  color: var(--nav1-soft);
}

/* ---- 9. Alerts one can act on (step 2) ------------------------------------------------------------------------------ */
/* The kinds: one row of chips, each with how many are open. */
body.app .alert-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

body.app .alert-kinds__chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--nav1-ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 999px;
}

body.app .alert-kinds__chip:hover {
  border-color: var(--nav1-plum);
}

body.app .alert-kinds__chip[aria-current='true'] {
  color: #ffffff;
  font-weight: 600;
  background: var(--nav1-plum);
  border-color: var(--nav1-plum);
}

body.app .alert-kinds__n {
  min-width: 22px;
  padding: 0 6px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  background: var(--nav1-orange);
  border-radius: 999px;
}

body.app .alert-kinds__chip[aria-current='true'] .alert-kinds__n {
  color: var(--nav1-plum);
  background: var(--uip-gold);
}

body.app .alerts-live__done {
  margin: 16px 0 0;
  font-size: 0.9rem;
}

body.app .alerts-live__done a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--nav1-soft);
}

/* An alert: what happened, then its one button and Done. */
body.app .alert-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-left: 6px solid #c9b8d6;
  border-radius: 10px;
  box-shadow: none;
}

body.app .alert-item--in-pickups {
  border-left-color: var(--nav1-orange);
}

body.app .alert-item--in-rates {
  border-left-color: var(--nav1-plum);
}

body.app .alert-item--in-customers {
  border-left-color: #1b7f4b;
}

body.app .alert-item--in-ai {
  border-left-color: var(--uip-violet);
}

body.app .alert-item--urgent {
  border-left-color: #b3261e;
}

body.app .alert-item:not(.alert-item--unread) {
  background: var(--nav1-tint);
  border-left-color: #d9cfe2;
}

body.app .alert-item__do {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

body.app .alert-item__do .alert-item__read,
body.app .alert-item__do .alert-item__done {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
}

body.app .alert-item__go {
  color: #ffffff;
  white-space: nowrap;
  background: var(--nav1-plum);
  border-color: var(--nav1-plum);
  box-shadow: none;
}

body.app .alert-item__go:hover {
  color: #ffffff;
  background: var(--uip-purple);
}

body.app .alert-item__kind {
  padding: 1px 8px;
  color: var(--nav1-soft);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--uip-page);
  border-radius: 6px;
}

body.app .side-help__more {
  margin: 10px 0 0;
  font-size: 0.86rem;
}

@media (max-width: 719.98px) {
  body.app .alert-item {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app .alert-item__do {
    justify-content: flex-start;
  }
}

/* ---- 10. Book Pickup: a usual pickup form (step 3) ------------------------------------------------------------------ */
/* The address and the parcel in their own boxes, each group under its name. */
body.app .fb-boxes {
  min-width: 0;
  margin: 0 0 14px;
  padding: 14px 16px 16px;
  background: var(--nav1-tint);
  border: 1px solid var(--nav1-line);
  border-radius: 10px;
}

body.app .fb-boxes > legend.fb-label {
  float: left;
  width: 100%;
  margin: 0 0 8px;
  color: var(--nav1-plum);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.app .fb-boxes > legend.fb-label + * {
  clear: both;
}

body.app .fb-boxes label {
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 500;
}

body.app .fb-boxes input[type='text'],
body.app .fb-boxes select,
body.app .fb-boxes textarea {
  min-height: 44px;
  background: #ffffff;
}

/* The parcel's three boxes stand three across where each has room, two and one where it has not: a box is never too
   small to read what it holds ("Normal" was "No" in a narrow column). */
@media (min-width: 600px) {
  body.app .pk-row--3 {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }
}

body.app .fb-paste {
  margin: 0 0 14px;
}

body.app .fb-paste > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--nav1-plum);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

body.app .fb-paste__body {
  padding: 4px 0 0;
}

body.app .fb-alt {
  margin: 0 0 14px;
}

body.app .fb-alt .hint {
  margin: 4px 0 0;
}

/* The alternate phone on a pickup's own page. */
body.app .pk-alt {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--nav1-line);
}

body.app .pk-alt__line {
  margin: 0 0 8px;
}

body.app .pk-alt__label {
  display: block;
  color: var(--nav1-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

body.app .pk-alt__number {
  font-weight: 600;
}

body.app .fb-pin-known {
  display: block;
  margin: 4px 0 0;
  color: #1b7f4b;
  font-size: 0.8rem;
  font-weight: 500;
}

body.app .fb-pin-known:empty {
  display: none;
}

/* NOTE1: the note for the pickup person, with "Make it clear" under it. The button says "Writing…" while the AI
   works (htmx puts .htmx-request on it); the typed words stand under the AI's version, in a box of their own with
   "Put my words back", until the form is booked. */
body.app .pk-notebox .pk-notebox__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 8px;
}

body.app .pk-notebox .pk-notebox__actions .button {
  flex: none;
  margin: 0;
}

body.app .pk-notebox .pk-notebox__actions .hint {
  flex: 1 1 170px;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

body.app .pk-notebox__busy,
body.app .pk-notebox__clear.htmx-request .pk-notebox__idle {
  display: none;
}

body.app .pk-notebox__clear.htmx-request .pk-notebox__busy {
  display: inline;
}

body.app .pk-notebox__clear.htmx-request {
  cursor: progress;
  opacity: 0.7;
}

body.app .pk-notebox .pk-notebox__said {
  margin: 8px 0 0;
  color: var(--nav1-soft);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

body.app .pk-notebox .pk-notebox__said--done {
  color: #1b7f4b;
}

body.app .pk-notebox .pk-notebox__before {
  margin: 8px 0 0;
  padding: 8px 12px 2px;
  border: 1px solid var(--nav1-line);
  border-radius: 10px;
  background: #fff;
}

body.app .pk-notebox .pk-notebox__before p {
  margin: 0;
  color: var(--nav1-ink);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* A quiet button of words: it undoes, it is not the way on. Tall enough for a thumb. */
body.app .pk-notebox .pk-notebox__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--nav1-plum);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body.app .pk-notebox .pk-notebox__failed {
  margin: 8px 0 0;
  color: #b3261e;
  font-size: 0.9rem;
  font-weight: 500;
}

body.app .pk-notebox .pk-notebox__failed:empty {
  display: none;
}

body.app .fb-override {
  margin-top: 10px;
}

body.app .fb-override > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--nav1-soft);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
}

/* A smaller computer screen (Ram's own, 1280 wide): the form of a customer who phoned stands beside the list of
   requests, and its two columns are narrow there. The list gives way first (300 wide, its cards shrinking with it); up
   to 1260 the form is one column; from there its two columns keep the caller's number and name each on a line of their
   own. No label is cut and no pair of boxes stands uneven. The page's two columns start at 1100 (app.css), so this does. */
@media (min-width: 1100px) and (max-width: 1499.98px) {
  body.app .pk-find-page {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }

  body.app .pk-find-page > .pk-find-side {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  body.app .pk-find-page > .pk-find-side > * {
    min-width: 0;
  }

  body.app .pk-find-side .pk-request-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app .pk-find-side .pk-request {
    min-width: 0;
  }

  /* In the narrower list a request's waiting time may take a second line, and the search box stands over its button. */
  body.app .pk-find-side .pk-request__when {
    white-space: normal;
  }

  body.app .pk-find-side .pk-search__row {
    flex-wrap: wrap;
  }

  body.app .pk-find-side .pk-search__row input {
    flex: 1 1 100%;
  }

  body.app .pk-find-side .pk-search__row button {
    flex: 1 1 auto;
  }
}

@media (min-width: 1100px) and (max-width: 1259.98px) {
  body.app .fb-phoned .fb-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1260px) and (max-width: 1499.98px) {
  body.app .fb-phoned .fb-who-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- 11. Integrations: one clean card a connection (Ram, 14 Nov 2026) ----------------------------------------------- */
body.app .conn-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

body.app .conn {
  display: block;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-left: 6px solid #c9b8d6;
  border-radius: 10px;
}

body.app .conn--ok {
  border-left-color: #1b7f4b;
}

body.app .conn--warn {
  border-left-color: #b45309;
}

body.app .conn--bad {
  border-left-color: #b3261e;
}

body.app .conn__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 6px;
}

body.app .conn__title {
  margin: 0;
  color: var(--nav1-ink);
  font-size: 1.08rem;
  font-weight: 600;
}

body.app .conn__state {
  flex: none;
  padding: 3px 12px;
  color: var(--nav1-soft);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--uip-page);
  border-radius: 999px;
}

body.app .conn__state--ok {
  color: #1b7f4b;
  background: #dff3e7;
}

body.app .conn__state--warn {
  color: #713f12;
  background: #fff4d6;
}

body.app .conn__state--bad {
  color: #b3261e;
  background: #f9dedc;
}

body.app .conn__line {
  margin: 0 0 4px;
  color: var(--nav1-soft);
  font-size: 0.95rem;
}

body.app .conn__server {
  margin: 8px 0 0;
}

body.app .conn__server > summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--nav1-plum);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

body.app .conn__settings {
  margin: 4px 0 0;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

/* EZ1 (Ram, 16 Nov 2026: "It picks up suggestions, not the needed button ... Many things should be very, very easy"):
   a line of Ready to act is its name, its needed button, and a quiet "Not needed" that is one tap. The needed button
   shows at every width: a phone used to show "Not needed" alone. */
body.app .today .ready__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* OS2 round 4 (the coordinator, 26 Nov 2026: 50 pickups to confirm drew all 52 lines, ten screens, under "49 more"): the
   rule above outranked the fold of app.css and desk.css (FR3 C3: 5 lines, a phone 3, the rest behind "N more", a
   <details> whose [open] shows them: no script). The fold again, at the same widths, over that rule. */
body.app .today .ready__item.ready__item--extra {
  display: none;
}

body.app .today .ready:has(.ready__more[open]) .ready__item.ready__item--extra {
  display: flex;
}

@media (max-width: 599px) {
  body.app .today .ready__item.ready__item--phone-extra {
    display: none;
  }

  body.app .today .ready:has(.ready__more[open]) .ready__item.ready__item--phone-extra {
    display: flex;
  }
}

body.app .today .ready__item > a.ready__main {
  flex: 1 1 280px;
  min-width: 0;
}

body.app .today .ready__acts {
  display: flex;
  flex: none;
  gap: 8px;
  align-items: center;
  margin: 0 14px 0 0;
}

body.app .today .ready__item .ready__acts a.ready__go {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  background: var(--nav1-plum);
  border-radius: 8px;
}

body.app .today .ready__item .ready__acts a.ready__go:hover {
  color: #ffffff;
  background: var(--uip-purple);
}

body.app .today .ready__drop-form {
  margin: 0;
}

body.app .today button.ready__drop-top {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  /* A form's button has a top margin of its own on these pages: here it would stand lower than the button beside it. */
  margin: 0;
  padding: 0 12px;
  color: var(--nav1-soft);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 8px;
  box-shadow: none;
}

body.app .today button.ready__drop-top:hover,
body.app .today button.ready__drop-top:focus-visible {
  color: var(--nav1-plum);
  background: #ffffff;
  border-color: var(--nav1-plum);
}

/* A phone: the name on its own line, the two buttons under it, inside the line's own padding. */
@media (max-width: 767.98px) {
  body.app .today .ready__item > a.ready__main {
    flex: 1 1 100%;
    display: flex;
    min-height: 44px;
    padding: 10px 14px 4px;
    white-space: normal;
  }

  body.app .today .ready__acts {
    flex: 1 1 100%;
    margin: 0;
    padding: 2px 14px 12px;
  }

  body.app .today .ready__item .ready__acts a.ready__go,
  body.app .today button.ready__drop-top {
    min-height: 44px;
  }
}

/* ---- 12. the site's calendar is never cut by the form or the card it stands in (Ram, 14 Nov 2026: the closed days) ---- */
body.app .pk-form:has(.site-date__panel),
body.app .panel-card:has(.site-date__panel),
body.app .card:has(.site-date__panel),
body.app .card-body:has(.site-date__panel) {
  overflow: visible;
}

/* ---- 13. Rates: "Send to a WhatsApp number" on Generate Rate Card (step 4) ------------------------------------------ */
/* The number and the name side by side, each with its own line under it; the one button under them. */
body.app .to-number__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  align-items: start;
}

body.app .to-number__box {
  min-width: 0;
}

body.app .to-number__box > label {
  display: block;
  margin: 0 0 6px;
}

body.app .to-number__box > input {
  width: 100%;
  margin: 0;
}

body.app .to-number__box > .hint,
body.app .to-number__box > .field-error {
  margin: 6px 0 0;
}

body.app .to-number__next {
  margin: 14px 0 0;
}

@media (max-width: 719.98px) {
  body.app .to-number__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.app .to-number__next {
    width: 100%;
  }
}

/* "Make a rate card": on a smaller screen its four buttons do not fit one line, and "Excel" fell alone under the others
   (Ram's screen, 14 Nov 2026, 20:59). Below 1500: "Show the card" on a line of its own, the three downloads level under
   it; from 1500 the four stand on one line as before. */
@media (max-width: 1499.98px) {
  body.app .cards-make-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.app .cards-make-actions > :first-child {
    grid-column: 1 / -1;
    justify-content: center;
  }

  body.app .cards-make-actions > button[formaction] {
    min-width: 0;
    justify-content: center;
  }
}

/* ---- 14. Phone Calls (CALL1): the owners' page, the call list, "Call through the office line" ----------------------- */
body.app .calls-page {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

/* A part of the page opened by its own address (after "Try", after a saved phone) stands under the top bar, not behind it. */
body.app .calls-page > section {
  scroll-margin-top: calc(var(--appbar-h) + 12px);
}

body.app .calls-state--on {
  border-left: 6px solid #1b7f4b;
}

body.app .calls-state--problem {
  border-left: 6px solid #b45309;
}

body.app .calls-state__words {
  margin: 0 0 12px;
  font-weight: 500;
}

body.app .calls-switch {
  margin: 0 0 10px;
}

body.app .calls-sub {
  margin: 14px 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

body.app .calls-bring,
body.app .calls-rules {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 6px;
}

body.app .calls-people {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

body.app .calls-person {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  align-items: center;
  padding: 2px 0;
  border-top: 1px solid var(--nav1-line);
}

body.app .calls-person:first-child {
  border-top: 0;
}

body.app .calls-person__tick {
  flex: 1 1 260px;
}

body.app p.calls-person__tick {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-weight: 500;
}

body.app .calls-phone {
  flex: 0 1 auto;
  max-width: 100%;
}

body.app .calls-phone > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--nav1-plum);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

body.app .calls-phone[open] {
  flex-basis: 100%;
  padding: 0 0 12px;
}

body.app .calls-phone__form label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.9rem;
}

body.app .calls-person label,
body.app .calls-way label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-weight: 500;
}

body.app .calls-person__who {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  align-items: baseline;
}

body.app .calls-person--none label {
  color: var(--nav1-soft);
}

body.app .calls-person__phone {
  font-size: 0.86rem;
  font-weight: 400;
}

body.app .calls-way {
  margin: 0 0 12px;
}

body.app .calls-try__row {
  display: flex;
  gap: 8px;
  max-width: 420px;
}

body.app .calls-try__row input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

body.app .calls-try__row button {
  flex: none;
  margin: 0;
}

body.app .calls-try__result {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--nav1-tint);
  border: 1px solid var(--nav1-line);
  border-radius: 10px;
}

body.app .calls-try__result p {
  margin: 0 0 4px;
}

body.app .calls-sum {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

body.app .calls-sum dt {
  color: var(--nav1-soft);
  font-size: 0.86rem;
}

body.app .calls-sum dd {
  margin: 2px 0 0;
  color: var(--nav1-plum);
  font-size: 1.5rem;
  font-weight: 700;
}

body.app .calls-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app .calls-list__item {
  padding: 10px 0;
  border-top: 1px solid var(--nav1-line);
}

body.app .calls-list__item:first-child {
  border-top: 0;
}

body.app .calls-list__main {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin: 0 0 2px;
}

body.app .calls-list__who {
  font-weight: 600;
}

body.app .calls-list__status--answered {
  color: #1b7f4b;
  background: #dff3e7;
}

body.app .calls-list__status--missed,
body.app .calls-list__status--none {
  color: #b3261e;
  background: #f9dedc;
}

body.app .calls-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0;
  font-size: 0.86rem;
}

body.app .call-line {
  margin: 0;
}

body.app .call-line-ready {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin: 10px 0 0;
  padding: 12px 14px;
  background: #eef8f1;
  border: 1px solid #b9e0c6;
  border-radius: 10px;
}

body.app .call-line-ready__words,
body.app .call-line-ready .hint {
  margin: 0;
}

body.app .call-line-refused {
  margin: 10px 0 0;
}

body.app .pk-my__line {
  margin: 0 0 10px;
}

/* On a callback card the button stands in the card's own row of buttons, in their size. */
body.app .callcard__actions .call-line {
  display: flex;
  flex: 0 1 auto;
}

body.app .callcard__actions .call-line button {
  flex: 1 1 auto;
  min-height: 52px;
  margin: 0;
  padding: 0 18px;
  border-radius: 14px;
}

body.app .call-line__slot:empty {
  display: none;
}

@media (max-width: 599.98px) {
  body.app .calls-sum {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app .callcard__actions .call-line {
    flex: 1 1 100%;
  }

  body.app .callcard__actions .call-line button {
    min-height: 44px;
  }

  body.app .pk-my__line .call-line button {
    width: 100%;
    min-height: 50px;
  }
}


/* ---- 15. The Inbox's tabs with Callbacks among them (NAV1 step 5a) ------------------------------------------------- */
/* The Callbacks page draws the Inbox's own strip: the same look as on the chat list (which styles it inside .inbox). */
body.app .inbox-tabs-row {
  margin: 0 0 14px;
}

body.app .inbox-tabs-row .inbox-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

body.app .inbox-tabs-row .inbox-tab {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  padding: 0 18px;
}

/* Four tabs do not fit a phone's width in one row: two rows of two, each tab half the width. */
@media (max-width: 599.98px) {
  body.app .inbox--si1 .inbox-tabs,
  body.app .inbox-tabs-row .inbox-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.app .inbox--si1 .inbox-tab,
  body.app .inbox-tabs-row .inbox-tab {
    min-width: 0;
    padding: 0 8px;
  }
}

/* ---- 16. The label control says what it is (NAV1 step 5a) ------------------------------------------------------------ */
/* "Change label" after the label: the words are the button's name, so the small arrow on the label itself goes. */
body.app .label-menu__button {
  gap: 8px;
}

body.app .label-menu__button .tag::after {
  content: none;
}

body.app .label-menu__say {
  flex: none;
  color: var(--nav1-plum);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

body.app .label-menu[open] > .label-menu__button .label-menu__say {
  text-decoration: none;
}

/* A chat without a label: "Add label" says it all, so the grey "No label" beside it is not drawn. */
body.app .label-menu__button:has(.tag--c-none) .tag {
  display: none;
}

/* On a card the label and its words share the foot with the card's other chips: the control may take the room it needs. */
body.app .convo__foot .label-menu {
  max-width: 100%;
}



/* ---- 17. EZ1: a pickup's card on the board shows its needed button; Cancel is quiet beside it ---------------------- */
body.app .pk-card .pk-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0 10px 10px;
}

body.app .pk-card .pk-card__next {
  flex: none;
  min-height: 36px;
}

body.app .pk-card .pk-card__foot > details.pk-cancel {
  flex: none;
  margin: 0 0 0 auto;
  padding: 0;
  background: none;
  border: 0;
}

body.app .pk-card .pk-card__foot > details.pk-cancel > summary {
  min-height: 36px;
  padding: 0 8px;
  color: var(--nav1-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

body.app .pk-card .pk-card__foot > details.pk-cancel > summary:hover {
  color: var(--danger);
}

/* Open, the fold takes the card's whole width under the two buttons, and says in red what it is. */
body.app .pk-card .pk-card__foot > details.pk-cancel[open] {
  flex: 1 1 100%;
  margin: 0;
  padding: 0 2px;
}

body.app .pk-card .pk-card__foot > details.pk-cancel[open] > summary {
  color: var(--danger);
}

/* The fold itself is short, so its button is in sight when it opens: one pick list for the reason, the few words for
   "Other" only, and the enquiry's choice folded (it stays open unless it is changed). */
body.app .pk-cancel__form .pk-cancel__words > label {
  margin-top: 14px;
}

/* Where the browser can tell which line of the list is chosen, the few words show for "Other" only (and whenever
   something was typed there, or it was refused). Elsewhere they always show, as before. */
@supports selector(:has(*)) {
  body.app .pk-cancel__form .pk-cancel__words:not(.pk-cancel__words--kept) {
    display: none;
  }

  body.app .pk-cancel__form:has(select[name="reason_code"] option[value="other"]:checked) .pk-cancel__words {
    display: block;
  }
}

body.app details.pk-cancel details.pk-cancel__enquiry {
  margin: 10px 0 0;
  padding: 0;
  background: none;
  border: 0;
}

body.app details.pk-cancel details.pk-cancel__enquiry > summary {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0;
  color: var(--nav1-soft);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  border: 0;
}

body.app details.pk-cancel details.pk-cancel__enquiry > summary::-webkit-details-marker {
  display: none;
}

body.app details.pk-cancel details.pk-cancel__enquiry > summary::after {
  flex: none;
  width: 7px;
  height: 7px;
  margin: -3px 4px 0 auto;
  content: "";
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

body.app details.pk-cancel details.pk-cancel__enquiry[open] > summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

body.app details.pk-cancel details.pk-cancel__enquiry > fieldset.pk-choices {
  margin-top: 4px;
}

/* In a column of the board the pick list is narrow: less padding, so that its chosen line is read whole. */
@media (min-width: 768px) {
  body.app .pk-card .pk-cancel__form select {
    padding-right: 4px;
    padding-left: 8px;
    font-size: 0.82rem;
  }
}

/* On a phone the cancel fold's boxes keep 16 px, so the browser does not zoom into the reason's pick list or its few
   words on a tap. This comes after the board's smaller list above, so at exactly 768 px (where both widths meet, a
   tablet held upright) 16 px wins too. */
@media (max-width: 768px) {
  body.app .pk-cancel__form select,
  body.app .pk-card .pk-cancel__form select,
  body.app .pk-cancel__form input[type="text"] {
    font-size: 16px;
  }
}

/* ---- 18. EZ1: "Not needed" on a pickup request of the board: quiet, after the needed buttons ------------------------ */
body.app .pk-request .pk-request__drop {
  margin: 0 0 0 auto;
}

body.app .pk-request button.pk-request__drop-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  color: var(--nav1-soft);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 8px;
  box-shadow: none;
}

body.app .pk-request button.pk-request__drop-button:hover,
body.app .pk-request button.pk-request__drop-button:focus-visible {
  color: var(--nav1-plum);
  background: #ffffff;
  border-color: var(--nav1-plum);
}

/* A phone and a tablet (the cards are narrow there): it stands beside "Open chat", in the buttons' second row. */
@media (max-width: 1199.98px) {
  body.app .pk-request .pk-request__drop {
    margin-left: 0;
  }
}

/* A laptop: "Not needed" stands at the card's top right, where a card is put away from, so the needed buttons keep
   one row (seen at 1280 wide, 16 Nov: it had wrapped to a row of its own under them). */
@media (min-width: 1200px) {
  body.app .pk-request {
    position: relative;
  }

  body.app .pk-request .pk-request__drop {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
  }

  body.app .pk-request button.pk-request__drop-button {
    min-height: 32px;
    padding: 0 10px;
  }

  body.app .pk-request .callback-item__head {
    padding-right: 104px;
  }
}

/* ---- 19. EZ2 A1: a disabled pickup person can be deleted; the deleted people are folded at the end of the page ------ */
body.app .pk-person-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* The fold of an active person ("Disable account") keeps the card's whole width, as before. */
body.app .pk-person-card__actions > details.confirm.pk-fold {
  flex: 1 1 100%;
}

body.app .pk-person-card__actions .pk-person-card__delete {
  margin: 0 0 0 auto;
}

body.app .pk-person-card__actions button.pk-person-card__delete-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  color: var(--nav1-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 8px;
  box-shadow: none;
}

body.app .pk-person-card__actions button.pk-person-card__delete-button:hover,
body.app .pk-person-card__actions button.pk-person-card__delete-button:focus-visible {
  color: var(--danger);
  background: #ffffff;
  border-color: var(--danger);
}

body.app .pk-person-card__actions .pk-person-card__delete-wait {
  flex: 1 1 220px;
  margin: 0;
}

/* A fold of this kind centres its words on these pages; a list of people reads from the left. */
body.app details.pk-deleted {
  text-align: left;
  background: #ffffff;
}

body.app details.pk-deleted > .pk-deleted__list {
  display: grid;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 0;
  list-style: none;
}

body.app .pk-deleted__item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 10px;
}

body.app .pk-deleted__who {
  display: grid;
  flex: 1 1 180px;
  gap: 2px;
  min-width: 0;
}

body.app .pk-deleted__name {
  color: var(--nav1-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.app .pk-deleted__meta {
  color: var(--nav1-soft);
  font-size: 0.86rem;
}

body.app .pk-deleted__form {
  margin: 0;
}

body.app .pk-deleted__form button {
  min-height: 44px;
  margin: 0;
}

body.app .user-list__deleted {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--nav1-line);
}

/* ---- 20. EZ2 B1: the office hours are chosen (the same every day, or one row a day); the approved message's words ---- */
body.app .hr-same__title {
  margin: 0 0 4px;
  color: var(--nav1-ink);
  font-size: 0.95rem;
  font-weight: 700;
}

body.app details.hr-days {
  margin-top: 14px;
  text-align: left;
  background: #ffffff;
}

body.app details.hr-days > .hr-days__form {
  margin: 0 14px 14px;
}

body.app .hr-days__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app .hr-day {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

body.app .hr-day__open {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-weight: 600;
}

body.app .hr-day select,
body.app .pk-form select.time-select {
  width: 100%;
  min-width: 0;
}

body.app form.hr-words {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--nav1-line);
}

body.app details.pk-template-words {
  margin: 8px 0 14px;
  text-align: left;
  background: #ffffff;
}

body.app .pk-template-words__list {
  margin: 0 14px 12px;
}

body.app .pk-template-words__list dt {
  margin-top: 8px;
  color: var(--nav1-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.app .pk-template-words__list dd {
  margin: 2px 0 0;
  color: var(--nav1-soft);
  overflow-wrap: anywhere;
}

@media (max-width: 559.98px) {
  body.app .hr-day {
    grid-template-columns: 1fr 1fr;
  }

  body.app .hr-day__open {
    grid-column: 1 / -1;
    min-height: 36px;
  }
}

/* ---- 21. EZ2 B2: the Inbox has one layout on every tab ----------------------------------------------------------------
   Ram, 16 Nov 2026: "Today's chats" and "All" had different layouts. Measured at 1280 wide: the filter menus (label, age,
   sort) stood at the top left on Today's chats, under the tabs on Done, and at the very foot of the page on All (they had
   no place of their own in the page's grid, so they fell into whatever was free); the tabs stood at three heights.
   Now, on every tab and at every width: the tabs first (so they never move), then the filter menus and the search, each
   in its one place; what only some tabs have ("Enquiries / Other" on All and Done, the chips on All) comes after them,
   so it moves nothing above it. */
body.app .inbox--si1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'tabs'
    'search'
    'filters'
    'sections'
    'chips'
    'list'
    'tests';
  column-gap: 16px;
  align-items: start;
}

body.app .inbox--si1 > .inbox-tabs {
  grid-area: tabs;
  margin: 0 0 12px;
}

body.app .inbox--si1 > .inbox-head {
  grid-area: search;
  margin: 0 0 10px;
}

body.app .inbox--si1 > .inbox-filters {
  grid-area: filters;
  margin: 0 0 10px;
}

body.app .inbox--si1 > .section-control {
  grid-area: sections;
  justify-self: start;
  margin: 0 0 10px;
}

body.app .inbox--si1 > .inbox-chips {
  grid-area: chips;
}

body.app .inbox--si1 > .inbox-list {
  grid-area: list;
}

body.app .inbox--si1 > .inbox-tests-row {
  grid-area: tests;
}

/* A laptop: the filter menus at the left and the search at the right share one row. */
@media (min-width: 1100px) {
  body.app .inbox--si1 {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 432px);
    grid-template-areas:
      'tabs tabs'
      'filters search'
      'sections sections'
      'chips chips'
      'list list'
      'tests tests';
    align-items: center;
  }

  body.app .inbox--si1 > .inbox-filters,
  body.app .inbox--si1 > .inbox-head {
    margin: 0 0 12px;
  }

  body.app .inbox--si1 > .section-control {
    margin: 0 0 12px;
  }
}

/* The Callbacks tab's own line and counts stand under the tabs (they stood in the page's head, which made the tabs sit
   lower there than on the chat lists). */
body.app .callbacks-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  margin: 0 0 12px;
}

body.app .callbacks-facts__intro {
  margin: 0;
  color: var(--nav1-soft);
}

body.app .callbacks-facts__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------------------------------------------------------------------------------------------------------------
   EZ9 §3 (Ram, 18 Nov 2026): the Undo beside "Taken off the list" (partials/notice-undo.eta). A plain bordered button:
   it is the way back from a slip, not the next thing to do.

   The page's own line (`notice--toast`, the layout's) stays in view wherever the page lands. A page comes back at the
   part the person was working in (the board at its requests, Home at its list, a chat at its newest message), and a
   line at the top of the page was then out of sight: on a phone about 690 px above the screen (seen in the walk of
   18 Nov). So that line is a small card fixed near the bottom edge, above the phone's tabs, where the thumb is; in a
   chat, whose bottom is the reply box, it sits under the chat's own head. A card over the page must not stay there
   (it would cover the page's last buttons): it leaves by itself after the seconds its `data-leaves` names
   (app-feel.js), and with the page. The Undo in a page's own card (the page "Call customer") is not fixed and stays.
   --------------------------------------------------------------------------------------------------------------- */
.notice.notice--undo {
  flex-wrap: wrap;
  align-items: center;
}

body.app .notice.notice--toast {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 70;
  align-items: center;
  width: min(34rem, calc(100vw - 24px));
  margin: 0;
  box-shadow: 0 12px 32px rgba(34, 18, 46, 0.28);
  transform: translateX(-50%);
}

@media (max-width: 1023.98px) {
  body.app .notice.notice--toast {
    bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));
  }
}

body.app.page-chat .notice.notice--toast {
  top: calc(var(--chat-bar-h, var(--uip-bar-h, 56px)) + var(--chat-sticky, 136px) + 8px);
  bottom: auto;
}

body.app .notice.notice--toast.is-leaving {
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* The parts a page comes back to after "Not needed" and its Undo stand under the top bar, not behind it (the bar is
   about 82 px tall on a phone). */
body.app #requests,
body.app .pk-request,
body.app #ready,
body.app #calls {
  scroll-margin-top: calc(var(--appbar-h) + env(safe-area-inset-top, 0px) + 28px);
}

.notice.notice--undo > span {
  flex: 1 1 10rem;
  min-width: 0;
}

.notice--undo .notice__undo {
  flex: 0 0 auto;
  margin: 0;
}

.notice--undo button.notice__undo-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  color: var(--green-ink, #14532d);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid currentColor;
  border-radius: 10px;
  box-shadow: none;
}

.notice--undo button.notice__undo-button:hover,
.notice--undo button.notice__undo-button:focus-visible {
  color: #ffffff;
  background: var(--green-ink, #14532d);
}

/* ---------------------------------------------------------------------------------------------------------------
   EZ9 §5 (Ram, 18 Nov 2026, on his phone: "if i press this chat up the number click on that then it should make sure
   I able to see number like whatsapp"): the hidden number in a chat's head is a button, a small pill with an eye. One
   tap and the number stands there instead, for 60 seconds; a tap on the number calls. The pill is small so the head
   keeps its height; the space a thumb needs is around it.
   --------------------------------------------------------------------------------------------------------------- */
body.app .chat-head__reveal {
  display: flex;
  min-width: 0;
  margin: 0;
}

body.app .chat-head button.chat-head__number--tap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin: 2px 0 0;
  padding: 2px 10px 2px 9px;
  color: var(--nav1-plum);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  background: var(--nav1-tint);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

/* The pill steps aside while the number shows (a class rule for `display` would win over the attribute alone). */
body.app .chat-head button.chat-head__number--tap[hidden] {
  display: none;
}

body.app .chat-head button.chat-head__number--tap::after {
  position: absolute;
  inset: -9px -8px;
  content: '';
}

body.app .chat-head button.chat-head__number--tap:hover,
body.app .chat-head button.chat-head__number--tap:focus-visible {
  background: var(--nav1-tint-strong);
}

body.app .chat-head__eye {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

/* CB1 (Ram, 24 Nov 2026): the green Call in a chat's head. One tap: the number shows in the head and a phone dials.
   40 px tall (a thumb's size); on a narrow phone the word steps aside and the round phone stays, as in WhatsApp. */
body.app .chat-head__call-form {
  flex: 0 0 auto;
  margin: 0;
}

body.app .chat-head button.chat-head__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: var(--green-strong);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

body.app .chat-head button.chat-head__call:hover,
body.app .chat-head button.chat-head__call:focus-visible {
  background: var(--green-ink);
}

body.app .chat-head__call-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

@media (max-width: 379px) {
  body.app .chat-head button.chat-head__call {
    padding: 0;
  }

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

body.app .chat-head a.chat-head__number--shown {
  display: inline-flex;
  align-items: center;
  /* As tall as the pill it stands in for: the head keeps its height. */
  height: 26px;
  margin-top: 2px;
  line-height: 1.2;
  color: var(--nav1-plum);
  font-size: 0.98rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------------------------------------------
   DUTY1 (docs/DUTY1-ON-DUTY-CONTRACT.md; Ram, 16 Nov 2026: "if the boy is available ... For the attendance type or
   whatever"): On duty / Off duty. One look for the state wherever it shows: a dot (grey off, green on), the words,
   and one button. Green is "on duty" and nothing else on these pages.
   --------------------------------------------------------------------------------------------------------------- */

/* My pickups: the pickup person's own line, first on the page. Off duty: the one needed button, big. On duty: since
   when, and a quiet Off duty. */
body.app .duty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 14px;
}

body.app .duty--on {
  background: #f0faf3;
  border-color: #bfe8cc;
}

body.app .duty__state {
  flex: 1 1 14rem;
  min-width: 0;
}

body.app .duty__line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.02rem;
}

body.app .duty__dot,
body.app .pk-duty__dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: #b9b3c4;
  border-radius: 50%;
}

body.app .duty--on .duty__dot,
body.app .pk-duty__person--on .pk-duty__dot {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

body.app .duty__hint {
  margin: 4px 0 0 22px;
}

body.app .duty__form,
body.app .duty__confirm-actions form {
  flex: 0 0 auto;
  margin: 0;
}

body.app .duty button.duty__on {
  min-height: 52px;
  margin: 0;
  padding: 0 28px;
  font-size: 1.05rem;
}

body.app .duty button.duty__off,
body.app .pk-duty button.pk-duty__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  color: var(--nav1-soft);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 10px;
  box-shadow: none;
}

body.app .duty button.duty__off:hover,
body.app .duty button.duty__off:focus-visible,
body.app .pk-duty button.pk-duty__button:hover,
body.app .pk-duty button.pk-duty__button:focus-visible {
  color: var(--nav1-plum);
  border-color: var(--nav1-plum);
}

body.app .duty__confirm,
body.app .pk-duty__confirm {
  flex: 1 1 100%;
  padding: 12px 14px;
  background: #fff8e6;
  border: 1px solid #f1d38a;
  border-radius: 12px;
}

body.app .duty__confirm-text,
body.app .pk-duty__confirm-text {
  margin: 0;
}

body.app .duty__confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

body.app .duty__confirm-actions .button {
  min-height: 46px;
  margin: 0;
}

@media (max-width: 599.98px) {
  body.app .duty--off .duty__form {
    flex: 1 1 100%;
  }

  body.app .duty button.duty__on {
    width: 100%;
  }

  body.app .duty__confirm-actions form,
  body.app .duty__confirm-actions .button {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* The Pickup Board: the pickup people of today. A quiet card above the time boxes; a person is one row: the dot, the
   name, what there is to say, and the button at the row's end. */
body.app .pk-duty {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--nav1-line);
  border-radius: 14px;
}

body.app .pk-duty__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 8px;
}

body.app .pk-duty__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1rem;
}

body.app .pk-duty__icon {
  width: 18px;
  height: 18px;
}

body.app .pk-duty__mode,
body.app .pk-duty__words,
body.app .pk-duty__none {
  color: var(--nav1-soft);
  font-size: 0.9rem;
}

body.app .pk-duty__nobody {
  margin: 0 0 8px;
  padding: 8px 12px;
  color: #7a4a00;
  font-weight: 600;
  background: #fff8e6;
  border: 1px solid #f1d38a;
  border-radius: 10px;
}

body.app .pk-duty__none {
  margin: 0;
}

body.app .pk-duty__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app .pk-duty__list + .pk-duty__list,
body.app .pk-duty__list + .pk-duty__more {
  margin-top: 8px;
}

body.app .pk-duty__person {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--nav1-line);
  border-radius: 10px;
}

body.app .pk-duty__person--on {
  background: #f0faf3;
  border-color: #bfe8cc;
}

body.app .pk-duty__who {
  flex: 1 1 8rem;
  min-width: 0;
  line-height: 1.3;
}

body.app .pk-duty__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app .pk-duty__form {
  flex: 0 0 auto;
  margin: 0;
}

body.app .pk-duty button.pk-duty__button {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.9rem;
}

body.app .pk-duty button.pk-duty__button--on {
  color: #ffffff;
  background: var(--nav1-plum);
  border-color: var(--nav1-plum);
}

body.app .pk-duty button.pk-duty__button--on:hover,
body.app .pk-duty button.pk-duty__button--on:focus-visible {
  color: #ffffff;
  filter: brightness(1.12);
}

body.app .pk-duty__confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

body.app .pk-duty__confirm-text {
  flex: 1 1 100%;
}

body.app .pk-duty__confirm form {
  margin: 0;
}

body.app .pk-duty__more > summary {
  min-height: 40px;
  color: var(--nav1-soft);
  font-weight: 600;
  cursor: pointer;
}

body.app .pk-duty__more[open] > summary {
  margin-bottom: 8px;
}

body.app .pk-card__duty {
  white-space: nowrap;
}

/* A pickup's page and the booking form: under a person's name, "on duty · 2 left today" or "off duty". */
body.app .pk-next__person {
  flex-wrap: wrap;
}

body.app .pk-next__duty,
body.app .fb-give__duty {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
}

body.app .pk-next__duty {
  flex: 1 1 100%;
  text-align: left;
}

body.app .pk-next__take-back-hint,
body.app .fb-give__hint {
  margin: 8px 0 0;
}

/* Pickup Staff: how pickups are given, and each person's duty. */
body.app .pk-giving {
  margin: 0 0 16px;
}

body.app .pk-giving__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin: 0;
}

body.app .pk-giving__choices {
  display: grid;
  flex: 1 1 22rem;
  gap: 8px;
}

body.app .pk-giving__choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid var(--nav1-line);
  border-radius: 10px;
}

body.app .pk-giving__choice:has(input:checked) {
  background: #f7f1fc;
  border-color: var(--nav1-plum);
}

body.app .pk-giving__choice input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

body.app .pk-giving__text {
  color: var(--nav1-soft);
}

body.app .pk-giving__form button.pk-giving__save {
  min-height: 44px;
  margin: 0;
}

body.app .pk-giving__read {
  margin: 0;
  font-weight: 600;
}

body.app .pk-giving__rules {
  margin-top: 12px;
}

body.app .pk-giving__list {
  margin: 8px 0;
  padding-left: 1.3rem;
}

body.app .pk-giving__list li + li {
  margin-top: 4px;
}

body.app .pk-person-card__duty {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  margin: 6px 0 0;
}

body.app .pk-person-card__days {
  color: var(--nav1-soft);
  font-size: 0.86rem;
}

/* Attendance: a month, person by person. The month's name between its two steps; a person is a card with the days and
   the hours first, and the days themselves behind one tap. */
body.app .pk-month {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 12px;
}

body.app .pk-month__name {
  margin: 0;
  font-size: 1.15rem;
  text-align: center;
}

body.app .pk-month__step {
  justify-self: start;
  min-height: 44px;
  margin: 0;
}

body.app .pk-month__step[rel='next'] {
  justify-self: end;
}

body.app .pk-month__this {
  margin: 0 0 12px;
  text-align: center;
}

body.app .pk-attend {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app .pk-attend__person {
  padding: 14px 16px;
}

body.app .pk-attend__person--none {
  background: #fbfafc;
}

body.app .pk-attend__name,
body.app .pk-attend__totals,
body.app .pk-attend__unknown {
  margin: 0;
}

body.app .pk-attend__id {
  color: var(--nav1-soft);
  font-size: 0.86rem;
}

body.app .pk-attend__totals {
  margin-top: 2px;
  font-size: 1.02rem;
}

body.app .pk-attend__days {
  font-weight: 700;
}

body.app .pk-attend__person--none .pk-attend__days {
  color: var(--nav1-soft);
  font-weight: 500;
}

body.app .pk-attend__fold {
  margin-top: 10px;
}

body.app .pk-attend__days-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

body.app .pk-attend__day {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--nav1-line);
  font-variant-numeric: tabular-nums;
}

body.app .pk-attend__date {
  font-weight: 600;
}

body.app .pk-attend__length {
  text-align: right;
  white-space: nowrap;
}

body.app .pk-attend__notes {
  grid-column: 2 / -1;
  color: var(--nav1-soft);
  font-size: 0.86rem;
}

body.app .pk-attend__day--warn .pk-attend__notes {
  color: #7a4a00;
}

@media (max-width: 479.98px) {
  body.app .pk-month {
    grid-template-columns: 1fr 1fr;
  }

  body.app .pk-month__name {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.app .pk-attend__day {
    grid-template-columns: 5.6rem minmax(0, 1fr);
  }

  body.app .pk-attend__length {
    grid-column: 2;
    text-align: left;
  }

  body.app .pk-attend__notes {
    grid-column: 1 / -1;
  }
}

/* --- DUTY1 and PB1: what the screen walk of 18 Nov 2026 found --------------------------------------------------- */

/* The board comes back at "Pickup people today" (#duty) after a duty tap: the top bar stays in place, so the part's
   title and its first name must not land under it. */
body.app .pk-duty {
  scroll-margin-top: 96px;
}

/* A person's name is never cut ("Kiran Kumar Pickup (…"): it wraps. */
body.app .pk-duty__name {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: break-word;
}

/* The phone: nothing to tap is under 44 px (the card's quiet Cancel was 36, the office's On duty and Off duty 40). */
@media (max-width: 767.98px) {
  body.app .pk-card .pk-card__foot > details.pk-cancel > summary,
  body.app .pk-duty button.pk-duty__button {
    min-height: 44px;
  }
}

/* --- HS1 (19 Nov 2026): My Pickups, "Not done": the reasons as big rows to tap (app.css `.pk-choice`) --------------- */
/* One reason a row across the card, as tall as the Not done button under them; the chosen one is plainly marked. */
body.app .pk-my__notdone fieldset.pk-my__reasons {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 4px 0 12px;
}

body.app .pk-my__reasons label.pk-choice {
  min-height: 52px;
  padding: 10px 14px;
  font-size: 1rem;
}

body.app .pk-my__reasons .pk-choice input {
  width: 22px;
  height: 22px;
}

body.app .pk-my__reasons label.pk-choice:has(input:checked) {
  box-shadow: inset 4px 0 0 var(--primary);
}

body.app .pk-my__reasons label.pk-choice:has(input:focus-visible) {
  outline: 3px solid var(--uip-violet);
  outline-offset: 2px;
}

/* --- TE1: the one-tap language switch, "తెలుగు / EN" (partials/lang-switch.eta) --------------------------------- */

.lang-switch {
  display: inline-flex;
  flex: none;
  margin: 0;
}

.lang-switch__button {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 3px;
  color: var(--nav1-plum, #4a0072);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #ffffff;
  border: 1.5px solid var(--nav1-plum, #4a0072);
  border-radius: 999px;
  box-shadow: none;
}

.lang-switch__button:hover {
  background: var(--nav1-tint, #f3e9f9);
}

.lang-switch__button:focus-visible {
  outline: 3px solid var(--uip-violet, #9821c8);
  outline-offset: 2px;
}

.lang-switch__opt {
  padding: 7px 9px;
  border-radius: 999px;
}

.lang-switch__opt[lang='te'] {
  /* Telugu letters stand taller than Latin ones: a little more room so their marks are never cut. */
  padding-top: 5px;
  padding-bottom: 6px;
  font-size: 0.86rem;
  line-height: 1.25;
}

.lang-switch__opt.is-on {
  color: #ffffff;
  background: var(--nav1-plum, #4a0072);
}

/* In the top bar: just before the person's menu, pushed right when nothing before it is. */
body.app .appbar__lang {
  margin-left: auto;
}

body.app .appbar__bell ~ .appbar__lang,
body.app .appbar__quick ~ .appbar__lang,
body.app .appbar__lang ~ .appbar__me {
  margin-left: 0;
}

/* The sign-in pages: on the skyline scene, light on dark. */
body.auth-scene .lang-switch__button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

body.auth-scene .lang-switch__button:hover {
  background: rgba(255, 255, 255, 0.16);
}

body.auth-scene .lang-switch__opt.is-on {
  color: #2b0040;
  background: #ffd54f;
}

.authbar__lang {
  margin-left: auto;
}

/* WK2 (walk F11): on a narrow phone the bar of a half-finished sign-in (the first password, the 2-step setup) holds the
   name, the language switch and Sign out; the name never shrinks under the switch: what does not fit goes to a second
   line, the switch and Sign out at its right. */
.authbar {
  flex-wrap: wrap;
  row-gap: 8px;
}

.authbar > .brand--auth {
  flex: none;
}

/* The sign-in page has no bar: the switch stands alone at the top right of the scene. */
.auth-lang {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 5;
}

/* A phone: the bar keeps its menu button, the page's name, the bell and the person; the switch is the smallest. */
@media (max-width: 1023.98px) {
  body.app .appbar__lang {
    margin-left: 0;
  }

  body.app .appbar > .brand + .appbar__lang,
  body.app .appbar__menu + .appbar__lang,
  body.app .appbar__quick + .appbar__lang {
    margin-left: auto;
  }
}

@media (max-width: 767.98px) {
  .lang-switch__button {
    min-height: 44px;
    font-size: 0.76rem;
  }

  .lang-switch__opt {
    padding: 8px 7px;
  }
}

@media (max-width: 380px) {
  /* The smallest phones: only the language one tap gives ("తెలుగు" or "EN"), the lit half goes. */
  body.app .lang-switch__opt.is-on {
    display: none;
  }

  body.app .lang-switch__opt {
    padding: 8px 9px;
  }
}

/* ---- Wave 2 M (docs/FABLE-5.5-BATCH3-SPEC.md Phase 4 item 2): no zoom into a box on an iPhone -------------------------
   iPhone Safari zooms the page into any box whose text is smaller than 16 px when it is tapped, and the page then stays
   zoomed. On a phone every box of the booking form, the pickup person's own list and the KYC, billing, reviews and
   scorecard pages is 16 px: by the page's own class, and by the form's address too (so a page whose class is not known
   here, such as a later round's, is covered as soon as its form posts to its own address). Ticks and round choices keep
   their size (they hold no text). Last in the file, after every smaller size above. */
@media (max-width: 768px) {
  body.app :is(.pk-form, .page-pickups-book, .page-my-pickups, .page-kyc, .page-billing, .page-reviews, .page-scorecard)
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
  body.app form:is([action^="/pickups"], [action^="/my-pickups"], [action^="/kyc"], [action^="/billing"], [action^="/reviews"], [action^="/scorecard"])
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    font-size: 16px;
  }
}

/* Lane 3 (Ram, 22 Nov 2026): Quick Send Hub is the Send module's home, so it stands out from the tools under it: a gold
   edge, a soft gold wash and its own icon, on the dark bar and in the phone's drawer alike. */
.rail__link--hub {
  margin: 2px 0 6px;
  border: 1px solid rgba(255, 213, 79, 0.55);
  background: linear-gradient(90deg, rgba(255, 213, 79, 0.18), rgba(255, 213, 79, 0.04));
  color: #ffd54f;
  font-weight: 700;
  gap: 8px;
}
.rail__link--hub .rail__hub-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: #ffd54f;
}
.rail__link--hub:hover,
.rail__link--hub:focus-visible {
  background: linear-gradient(90deg, rgba(255, 213, 79, 0.28), rgba(255, 213, 79, 0.08));
  color: #fff3c4;
}
.rail__link--hub[aria-current="page"] {
  background: #ffd54f;
  color: #4a0072;
  border-color: #ffd54f;
}
.rail__link--hub[aria-current="page"] .rail__hub-icon {
  color: #4a0072;
}
body.nav-narrow .rail__link--hub .rail__hub-icon {
  display: none;
}

/* Lane 3: "Today's Leads" beside the Inbox's search and after the Callbacks tabs: a plain button, never a second tab bar. */
.inbox-leads-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: none;
}
.inbox-tabs-row .inbox-leads-link {
  margin: 6px 0 0;
}

/* ==========================================================================
   9. WAVE B LANE 1 (Ram, 23 Nov 2026; run_20261123T052118Z_38cc74d4): the frame, finished.
   Ram and Papa keep the admin site open all day on the office computer (1280 to 1920 wide) and on their phones. The
   menu bar must read as one dark plum column from the top of the page to its end, the open module must sit in the bar
   (not a white box punched into it), and the top bar must never cut a word. Plain CSS, after sections 1 to 8.
   ========================================================================== */

/* ---- 9a. the menu bar runs the page's whole height ---------------------------------------------------------------- */
/* The bar is 100vh tall and stays in view (sticky). Where the page was taller than its frame (a long fold opened at the
   end, a line fixed under the page), the column under the bar showed the page's pale lavender. A fixed plum track
   stands under the bar: the body's own background covers it everywhere the body is, so it shows only where the bar
   would have stopped. */
@media (min-width: 1024px) {
  body.app .rail {
    align-self: start;
    min-height: 100vh;
  }

  body.app::before {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: var(--nav1-side);
    pointer-events: none;
    background: #2a0040;
  }
}

/* ---- 9b. the open module: a dark plum glass inset, not a white box ------------------------------------------------- */
body.app .rail__module[open] {
  color: var(--nav1-on-deep);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  box-shadow:
    inset 3px 0 0 rgba(255, 213, 79, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.app .rail__module[open] > .rail__top,
body.app .rail__module[open] > .rail__top:hover {
  color: #ffffff;
}

body.app .rail__module[open] > .rail__top:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.app .rail__kids .rail__link {
  color: rgba(239, 227, 247, 0.9);
}

/* A folder's name ("Setup"): crisp lilac on the plum, white once it is open; never dark on dark. */
body.app .rail__folder-top {
  color: #e6d3f5;
}

body.app .rail__folder[open] > .rail__folder-top {
  color: #ffffff;
}

body.app .rail__kids .rail__link:hover,
body.app .rail__folder-top:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

/* The page a person is on: a crisp gold pill with deep plum words. */
body.app .rail__kids .rail__link[aria-current='page'] {
  color: #2a0040;
  font-weight: 600;
  background: linear-gradient(90deg, #ffe07a 0%, #ffd54f 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

body.app .rail__kids .rail__link[aria-current='page'] .nav-badge {
  color: #ffd54f;
  background: #2a0040;
}

/* The pages inside a folder hang from a thin line under its name. */
body.app .rail__sub {
  margin: 2px 0 4px 12px;
  padding: 0 0 0 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/* Quick Send Hub keeps its gold (it stood on the white box). */
body.app .rail__kids .rail__link--hub {
  color: #ffd54f;
}

body.app .rail__kids .rail__link--hub:hover {
  color: #fff3c4;
}

body.app .rail__kids .rail__link--hub[aria-current='page'] {
  color: #2a0040;
}

body.app .rail__module[open] :focus-visible {
  outline-color: var(--uip-gold);
}

/* A quiet scrollbar for a long menu: thin, plum and gold, never the system's grey slab. */
body.app .rail__nav {
  scrollbar-color: rgba(255, 213, 79, 0.32) transparent;
}

body.app .rail__nav::-webkit-scrollbar {
  width: 8px;
}

body.app .rail__nav::-webkit-scrollbar-track {
  background: transparent;
}

body.app .rail__nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
}

body.app .rail__nav::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 213, 79, 0.45);
}

@media (min-width: 1024px) {
  body.app.nav-narrow .rail__module[open] {
    box-shadow: none;
  }
}

/* ---- 9c. the top bar: the search reads whole; the quick buttons have their own dividers ------------------------- */
@media (min-width: 1024px) {
  body.app .appbar__search {
    flex: 1 1 300px;
    max-width: 420px;
  }
}

body.app .appbar__quick-link {
  position: relative;
}

body.app .appbar__quick-link + .appbar__quick-link::before {
  content: '';
  position: absolute;
  top: 28%;
  bottom: 28%;
  left: -2px;
  width: 1px;
  background: rgba(74, 0, 114, 0.22);
}

body.app .appbar__quick-link[aria-current='page']::before,
body.app .appbar__quick-link[aria-current='page'] + .appbar__quick-link::before,
body.app .appbar__quick-link:hover::before,
body.app .appbar__quick-link:hover + .appbar__quick-link::before {
  opacity: 0;
}

/* ---- 9d. a small phone: the page's name keeps its room ------------------------------------------------------------ */
/* Below 480 px the language switch shows "తె / EN" (its full name stays its label for a screen reader), the gaps on
   the right close up, and the page's name may use the whole space left, so "Pickup Board" is never cut to "Picku". */
@media (max-width: 479.98px) {
  body.app .appbar {
    gap: 6px;
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    padding-left: max(8px, env(safe-area-inset-left, 0px));
  }

  body.app .appbar__crumb {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    font-size: 0.95rem;
  }

  body.app .appbar__lang .lang-switch__opt {
    padding: 8px 6px;
  }

  body.app .appbar__lang .lang-switch__opt[lang='te'] {
    font-size: 0;
  }

  body.app .appbar__lang .lang-switch__opt[lang='te']::before {
    content: '\0C24\0C46';
    font-size: 0.86rem;
  }

  body.app .appbar__me-button {
    padding: 2px;
  }
}

/* ---- OS2 (Ram, 25 Nov 2026): a pickup to confirm on "Ready to act" ------------------------------------------------
   What the customer prefers beside the name; then the call cards' Call, the one tap "Confirm pickup" (the needed
   button, in the house plum) and "Change details" (the booking form, quiet); "Not needed" stays last and quiet. */
body.app .today .ready__prefers {
  flex: none;
  max-width: 100%;
  padding: 2px 8px;
  color: var(--nav1-plum);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--nav1-tint);
  border-radius: 6px;
}

body.app .today .ready__call-form,
body.app .today .ready__confirm-form {
  margin: 0;
}

body.app .today button.ready__confirm,
body.app .today button.ready__call {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: none;
}

body.app .today button.ready__confirm {
  color: #ffffff;
  background: var(--nav1-plum);
  border: 1px solid var(--nav1-plum);
}

body.app .today button.ready__confirm:hover,
body.app .today button.ready__confirm:focus-visible {
  background: var(--uip-purple);
}

body.app .today button.ready__call {
  color: #1b7f4b;
  background: #ffffff;
  border: 1px solid #1b7f4b;
}

body.app .today button.ready__call .button__icon,
body.app .today button.ready__confirm .button__icon {
  width: 16px;
  height: 16px;
}

body.app .today .ready__item .ready__acts a.ready__change {
  color: var(--nav1-plum);
  background: #ffffff;
  border: 1px solid var(--nav1-line);
}

body.app .today .ready__item .ready__acts a.ready__change:hover {
  color: var(--nav1-plum);
  background: var(--nav1-tint);
}

body.app .today .ready__call-slot:not(:empty) {
  flex: 1 1 100%;
  padding: 0 14px 10px;
}

@media (max-width: 767.98px) {
  /* A phone: the badge and the name on the first line, what they prefer on its own line under them. */
  body.app .today .ready__item--confirm > a.ready__main {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  body.app .today .ready__item--confirm .ready__prefers {
    flex: 1 1 100%;
    white-space: normal;
  }

  body.app .today .ready__item--confirm .ready__acts {
    flex-wrap: wrap;
  }

  /* 44 px at least on a phone, as "Change details": desk.css's phone rule for every button of a page (min-height 40px,
     a selector far more specific than this one) would hold them at 40, so the height itself is set here. OS2 round 3
     (ruling 5): "Not needed" too, the fourth button of the line. */
  body.app .today button.ready__confirm,
  body.app .today button.ready__call,
  body.app .today button.ready__drop-top {
    min-height: 44px;
    height: 44px;
  }
}

/* OS2: the board's request that waits for "Confirm pickup": what the customer prefers, and the one tap beside "Book"'s place. */
body.app .pk-request__prefers {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 6px 0 0;
  color: var(--nav1-plum);
  font-size: 0.9rem;
  font-weight: 600;
}

body.app .pk-request__confirm {
  display: inline-flex;
  margin: 0;
}

body.app .pk-request__confirm button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}
