/* ==========================================================================
   UI-P: the SLP desk, fully redesigned (Ram, 31 Oct 2026: "fully redesigned for SLP, not just one thing … the
   hamburger menu, everything"). The approved mockups: claude.ai/artifact/Bb3tFk5gdf3EswRf4rah9g.
   Loaded after app.css, m2b.css and a page's own stylesheet, so it decides the look of every page:
     1  tokens
     2  the frame: one purple top bar on every screen; a white side menu (everyday pages first, the rest under
        "More"); the phone drawer and bottom tabs
     3  the page header (band): a rounded night-sky card inside the page, no photo
     4  the shared parts every page uses: cards, buttons, fields, chips, tables, notices
     5  motion (only inside prefers-reduced-motion: no-preference; transform and opacity only)
   No inline styles or scripts anywhere (the Content-Security-Policy): every look lives here.
   ========================================================================== */

/* ---- 1. tokens ------------------------------------------------------------------------------------------------ */
:root {
  --uip-page: #f6f2fb;
  --uip-surface: #ffffff;
  --uip-line: #ece2f5;
  --uip-line-strong: #e0cfee;
  --uip-ink: #1a001f;
  --uip-text: #3d2a4a;
  --uip-muted: #5b4a66;
  --uip-faint: #8a7896;
  --uip-tint: #f3e9fb;
  --uip-soft: #faf6fd;
  --uip-royal: #4a0072;
  --uip-purple: #6a0099;
  --uip-violet: #9821c8;
  --uip-gold: #ffd54f;
  --uip-gold-deep: #ffb300;
  --uip-on-gold: #3a2600;
  --uip-green: #16a34a;
  --uip-green-ink: #0f5f2e;
  --uip-night: #1a0033;
  --uip-night-2: #2d0a4e;
  --uip-bar-h: 64px;
  --uip-rail-w: 248px;
  --uip-radius: 18px;
  --uip-radius-sm: 12px;
  --uip-shadow: 0 8px 24px rgba(74, 0, 114, 0.07);
  --uip-shadow-up: 0 16px 36px rgba(74, 0, 114, 0.12);
  --uip-ring: 0 0 0 4px rgba(152, 33, 200, 0.18);
  --uip-grad-bar: linear-gradient(90deg, #4a0072 0%, #6a0099 100%);
  --uip-grad-night: radial-gradient(circle at 85% 15%, rgba(152, 33, 200, 0.5), rgba(26, 0, 51, 0) 55%), linear-gradient(135deg, #1a0033 0%, #2d0a4e 55%, #4a0072 100%);
  --uip-grad-gold: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
}

body.app {
  /* The older pages' own tokens, moved to the new look in one place: lilac lines instead of gold ones, softer
     shadows, rounder corners, purple-grey text. Field borders keep 3:1 against white (WCAG 1.4.11). */
  --gold-line: #ece2f5;
  --line: #ece2f5;
  --page: #f6f2fb;
  --mist: #f6f2fb;
  --text: #3d2a4a;
  --muted: #5b4a66;
  --heading: #2c0045;
  --input-border: #9d86b3;
  --row-hover: #f7f1fc;
  --shadow-sm: 0 6px 18px rgba(74, 0, 114, 0.06);
  --shadow-md: 0 10px 28px rgba(74, 0, 114, 0.08);
  --shadow-card: 0 8px 24px rgba(74, 0, 114, 0.07);
  --shadow-btn-gold: 0 6px 16px rgba(255, 179, 0, 0.26);
  --shadow-btn-green: 0 6px 16px rgba(22, 163, 74, 0.24);
  --r-md: 14px;
  --r-btn: 12px;
  --r-card: 18px;
  background: var(--uip-page);
  color: var(--uip-ink);
}

/* ---- 2. the frame --------------------------------------------------------------------------------------------- */

/* The strip of date, hours and AI state is gone (Ram, 31 Oct); the page itself says what matters. */
body.app .utility {
  display: none;
}

/* The top bar, on every screen. */
body.app .appbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--uip-bar-h);
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
  color: #ffffff;
  background: var(--uip-grad-bar);
  border-bottom: 0;
  box-shadow: 0 2px 16px rgba(26, 0, 51, 0.2);
}

body.app .appbar .brand {
  display: inline-flex;
  flex: none;
}

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

body.app .appbar__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  color: #ffffff;
}

body.app .appbar__menu:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.app .appbar__search {
  position: relative;
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  max-width: 620px;
  min-width: 0;
  margin: 0 0 0 8px;
}

body.app .appbar__search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #ffffff;
  opacity: 0.85;
  pointer-events: none;
}

body.app .appbar__search input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 14px 0 42px;
  color: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--uip-radius-sm);
  box-shadow: none;
}

body.app .appbar__search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

body.app .appbar__search input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

body.app .appbar .topbar-alerts {
  margin-left: auto;
}

body.app .appbar__me {
  position: relative;
  flex: none;
}

body.app .appbar__search ~ .appbar__me,
body.app .appbar .topbar-alerts ~ .appbar__me {
  margin-left: 0;
}

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

body.app .appbar__me-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 3px 14px 3px 4px;
  list-style: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

body.app .appbar__me-button::-webkit-details-marker {
  display: none;
}

body.app .appbar__me-button:hover,
body.app .appbar__me[open] .appbar__me-button {
  background: rgba(255, 255, 255, 0.18);
}

body.app .appbar__avatar,
body.app .rail__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--uip-on-gold);
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--uip-gold);
  border-radius: 50%;
}

body.app .appbar__who {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

body.app .appbar__name {
  font-size: 0.82rem;
  font-weight: 700;
}

body.app .appbar__role {
  font-size: 0.7rem;
  opacity: 0.8;
}

body.app .appbar__me-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  display: grid;
  min-width: 220px;
  padding: 8px;
  color: var(--uip-ink);
  background: var(--uip-surface);
  border: 1px solid var(--uip-line);
  border-radius: 14px;
  box-shadow: var(--uip-shadow-up);
}

body.app .appbar__me-menu form {
  margin: 0;
}

body.app .appbar__me-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  color: var(--uip-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  cursor: pointer;
}

body.app .appbar__me-link:hover {
  color: var(--uip-royal);
  background: var(--uip-tint);
  transform: none;
}

body.app .appbar__me-icon {
  width: 18px;
  height: 18px;
  color: var(--uip-purple);
}

/* The side menu (desktop) and the drawer (phones): white, the everyday pages first. */
body.app .rail {
  color: var(--uip-ink);
  background: var(--uip-surface);
  border-right: 1px solid var(--uip-line);
  box-shadow: none;
}

body.app .rail__head {
  border-bottom: 1px solid var(--uip-line);
}

body.app .rail .brand,
body.app .rail .brand:hover {
  color: var(--uip-ink);
}

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

body.app .rail__close {
  color: var(--uip-text);
}

body.app .rail__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 12px 20px;
  overflow-y: auto;
}

body.app .rail__nav::after {
  display: none;
}

body.app .rail__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app .rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--uip-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border-radius: var(--uip-radius-sm);
}

body.app .rail__link--main {
  min-height: 50px;
  font-size: 1rem;
}

body.app .rail__link:hover {
  color: var(--uip-royal);
  background: rgba(152, 33, 200, 0.07);
}

body.app .rail__link[aria-current='page'] {
  color: var(--uip-royal);
  font-weight: 700;
  background: var(--uip-tint);
  box-shadow: none;
}

/* The person at the foot of the phone drawer: white, like the drawer. */
body.app .rail__me {
  color: var(--uip-ink);
  background: var(--uip-surface);
  border-top: 1px solid var(--uip-line);
}

body.app .rail__me .rail__name {
  color: var(--uip-ink);
}

body.app .rail__me .rail__role {
  color: var(--uip-faint);
}

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

body.app .rail__link[aria-current='page']::before {
  display: none;
}

body.app .rail__icon {
  width: 20px;
  height: 20px;
  color: var(--uip-purple);
}

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

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

body.app .rail__more {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--uip-line);
}

body.app .rail__more-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--uip-muted);
  font-size: 0.92rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  border-radius: var(--uip-radius-sm);
}

body.app .rail__more-button::-webkit-details-marker {
  display: none;
}

body.app .rail__more-button::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

body.app .rail__more[open] > .rail__more-button::after {
  transform: rotate(-135deg) translateY(-2px);
}

body.app .rail__more-button:hover {
  color: var(--uip-royal);
  background: rgba(152, 33, 200, 0.07);
}

body.app .rail__group + .rail__group {
  margin-top: 4px;
}

body.app .rail__group-label {
  margin: 14px 14px 6px;
  color: var(--uip-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.app .rail__me {
  color: var(--uip-ink);
  border-top: 1px solid var(--uip-line);
}

body.app .rail__role {
  color: var(--uip-muted);
}

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

body.app .scrim {
  background: rgba(26, 0, 51, 0.45);
}

/* The phone's bottom tabs: white, the current one in purple. */
body.app .tabbar {
  background: var(--uip-surface);
  border-top: 1px solid var(--uip-line);
  box-shadow: 0 -8px 24px rgba(74, 0, 114, 0.06);
}

body.app .tabbar__item {
  color: var(--uip-muted);
}

body.app .tabbar__item[aria-current='page'],
body.app .tabbar__more.is-current {
  color: var(--uip-royal);
  font-weight: 700;
}

body.app .tabbar__item[aria-current='page'] .tabbar__icon-wrap {
  background: var(--uip-tint);
}

/* Phones and tablets: the top bar stays; the search sits in Chats (no room for it beside the brand). */
@media (max-width: 1023.98px) {
  body.app .appbar__search {
    display: none;
  }

  body.app .appbar__who {
    display: none;
  }

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

  body.app .appbar .topbar-alerts {
    margin-left: auto;
  }

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

/* Computers: the top bar across, the side menu under it on the left, the page on the right. */
@media (min-width: 1024px) {
  body.app {
    display: grid;
    min-height: 100vh;
    background: var(--uip-page);
    grid-template-columns: var(--uip-rail-w) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'bar bar'
      'rail frame';
  }

  body.app .appbar {
    grid-area: bar;
    min-height: var(--uip-bar-h);
    padding: 10px 24px 10px 18px;
    background: var(--uip-grad-bar);
  }

  body.app .appbar__menu {
    display: none;
  }

  body.app .rail {
    grid-area: rail;
    position: sticky;
    top: var(--uip-bar-h);
    height: calc(100vh - var(--uip-bar-h));
  }

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

  body.app .frame {
    grid-area: frame;
  }
}

/* ---- 3. the page header (band): a rounded night-sky card inside the page ---------------------------------------- */
body.app .band {
  width: calc(100% - 32px);
  max-width: calc(var(--content-max, 1240px) - 64px);
  margin: 16px auto 0;
  color: #ffffff;
  background: var(--uip-grad-night);
  border-bottom: 0;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(26, 0, 51, 0.18);
}

body.app .band__inner {
  max-width: none;
  padding: 22px 24px;
}

body.app .band__title,
body.app .band h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

body.app .band__lede {
  color: #eadcf5;
}

@media (min-width: 1024px) {
  body.app .band {
    width: calc(100% - 64px);
    margin-top: 24px;
  }

  body.app .band__inner {
    padding: 26px 30px;
  }
}

/* ---- 4. the shared parts -------------------------------------------------------------------------------------- */
body.app .page h1:not(.band__title) {
  color: var(--uip-ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.app .card,
body.app .panel-card,
body.app .desk-card,
body.app .tile,
body.app .kpi {
  background: var(--uip-surface);
  border: 1px solid var(--uip-line);
  border-radius: var(--uip-radius);
  box-shadow: var(--uip-shadow);
}

body.app .card-head {
  border-bottom-color: var(--uip-line);
}

/* Buttons: gold for the one main action, purple outline for the second choice. */
body.app .button,
body.app a.button {
  min-height: 46px;
  border-radius: var(--uip-radius-sm);
}

body.app .button.secondary,
body.app a.button.secondary {
  color: var(--uip-royal);
  background: var(--uip-surface);
  border: 1.5px solid var(--uip-line-strong);
  box-shadow: none;
}

body.app .button.secondary:hover,
body.app a.button.secondary:hover {
  background: var(--uip-tint);
  border-color: #c9a3e3;
}

/* The night check (31 Oct 2026): a form's second-choice button (<button class="secondary">, 57 of them on 20 pages) is the
   same purple outline as a link's; it was gold like the one main action beside it. */
body.app button.secondary {
  color: var(--uip-royal);
  background: var(--uip-surface);
  border: 1.5px solid var(--uip-line-strong);
  box-shadow: none;
}

body.app button.secondary:hover {
  color: var(--uip-royal);
  background: var(--uip-tint);
  border-color: #c9a3e3;
}

/* Fields: tall, rounded, a violet ring when in use. */
body.app input[type='text'],
body.app input[type='url'],
body.app input[type='search'],
body.app input[type='password'],
body.app input[type='email'],
body.app input[type='tel'],
body.app input[type='number'],
body.app input[type='date'],
body.app input[type='time'],
body.app select,
body.app textarea {
  border: 1.5px solid var(--input-border);
  border-radius: var(--uip-radius-sm);
}

body.app input[type='text']:focus,
body.app input[type='url']:focus,
body.app input[type='search']:focus,
body.app input[type='password']:focus,
body.app input[type='email']:focus,
body.app input[type='tel']:focus,
body.app input[type='number']:focus,
body.app select:focus,
body.app textarea:focus {
  border-color: var(--uip-violet);
  box-shadow: var(--uip-ring);
  outline: none;
}

body.app .appbar__search input[type='search'] {
  border: 1px solid rgba(255, 255, 255, 0.24);
}

body.app .appbar__search input[type='search']:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

/* Notices: a calm green card. */
body.app .notice {
  background: #ecf8f0;
  border: 1px solid #bfe8cc;
  border-radius: 14px;
}

/* Round 3, item 8: a warning (a refusal, such as an Undo after its 10 minutes) is never the green of a success: the
   gold of app.css's .notice--warn, as strong as the green above. */
body.app .notice.notice--warn {
  background: var(--tint-gold);
  border-color: rgba(255, 179, 0, 0.5);
}

/* Tables: quiet lines, the header in small muted capitals. */
body.app .table th {
  color: var(--uip-muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.app .table td,
body.app .table th {
  border-bottom-color: var(--uip-line);
}

/* The footer: quiet, on the page colour. */
body.app .foot {
  color: var(--uip-faint);
  background: transparent;
  border-top: 1px solid var(--uip-line);
}

body.app .foot__brand,
body.app .foot__who,
body.app .foot__version {
  color: var(--uip-faint);
}

/* ---- 5. motion ------------------------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  body.app .band,
  body.app .page > * {
    animation: uip-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  body.app .page > *:nth-child(2) {
    animation-delay: 0.05s;
  }

  body.app .page > *:nth-child(3) {
    animation-delay: 0.1s;
  }

  body.app .appbar__me-menu {
    animation: uip-drop 0.18s ease-out both;
  }

  body.app .rail__link,
  body.app .button,
  body.app .card {
    transition: background 0.15s, color 0.15s, box-shadow 0.2s, border-color 0.15s;
  }
}

@keyframes uip-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes uip-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- 6. Today (Home): callbacks first --------------------------------------------------------------------------- */

/* The hero: the night sky with the route line and three small planes crossing it. */
body.app .today-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.app .today-hero__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 24%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 28% 70%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 18%, rgba(255, 213, 79, 0.6), transparent 60%),
    radial-gradient(1px 1px at 63% 82%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 36%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 91% 64%, rgba(255, 213, 79, 0.55), transparent 60%);
}

body.app .today-hero__plane {
  position: absolute;
  left: -40px;
  width: 22px;
  height: 22px;
  color: var(--uip-gold);
  opacity: 0;
}

body.app .today-hero__plane .plane-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 2px 6px rgba(255, 213, 79, 0.35));
}

body.app .today-hero__plane--a {
  top: 7%;
}

body.app .today-hero__plane--b {
  top: 88%;
  width: 16px;
  height: 16px;
  color: #ffffff;
}

body.app .today-hero__plane--c {
  top: 50%;
  width: 13px;
  height: 13px;
  color: #e9c7ff;
}

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

body.app .today-hero__route {
  display: none;
}

body.app .today-hero__date {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--uip-gold);
  letter-spacing: 0.01em;
}

body.app .today-hero__title {
  margin: 0;
  color: #ffffff;
}

body.app .today-hero .today-hero__sub {
  display: block;
  margin: 8px 0 0;
  max-width: 60ch;
  font-size: 0.98rem;
  line-height: 1.5;
}

body.app .today-hero__progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px;
}

body.app .today-meter {
  position: relative;
  display: block;
  flex: 1 1 200px;
  max-width: 340px;
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

body.app .today-meter__fill {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--uip-grad-gold);
  border-radius: inherit;
  transform-origin: left center;
}

body.app .today-hero__progress-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

body.app .today-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

body.app .today-hero a.today-hero__button {
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  border-radius: 14px;
}

body.app .today-hero a.today-hero__button:not(.ghost) {
  color: var(--uip-on-gold);
  background: var(--uip-grad-gold);
  border: 0;
  box-shadow: 0 10px 24px rgba(255, 179, 0, 0.28);
}

body.app .today-hero a.today-hero__button.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

body.app .today-hero a.today-hero__button.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (min-width: 1024px) {
  body.app .today-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  }

  body.app .today-hero__route {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.9;
  }
}

/* The page under the hero. */
body.app .today {
  display: grid;
  gap: 18px;
}

body.app .today > *,
body.app .today__side > * {
  grid-column: auto;
  min-width: 0;
  margin: 0;
}

/* The four numbers: a compact strip, two by two on a phone. */
body.app .today .desk__tiles {
  margin: 0;
  gap: 12px;
}

body.app .today .tile {
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid var(--uip-line);
  border-radius: var(--uip-radius);
  box-shadow: var(--uip-shadow);
}

body.app .today .tile:hover {
  border-color: var(--uip-line-strong);
  box-shadow: var(--uip-shadow-up);
}

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

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

/* Phones: the four numbers in one short row (the number and its name), so the calls start on the first screen. */
@media (max-width: 599px) {
  body.app .today .desk__tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body.app .today .tile {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 2px;
    padding: 10px 6px;
    text-align: center;
  }

  body.app .today .tile__head {
    justify-content: center;
    font-size: 0.66rem;
    line-height: 1.2;
  }

  body.app .today .tile__icon,
  body.app .today .tile__line,
  body.app .today .tile__extra {
    display: none;
  }

  body.app .today .tile__row {
    justify-content: center;
    margin: 0;
  }

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

/* The one status line. */
body.app .today-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 14px;
  border: 1px solid transparent;
}

body.app .today-status__icon {
  flex: none;
  width: 20px;
  height: 20px;
}

body.app .today-status__text {
  flex: 1 1 260px;
}

body.app .today-status__link {
  font-weight: 700;
  white-space: nowrap;
}

body.app .today-status--good {
  color: var(--uip-green-ink);
  background: #e9f7ee;
  border-color: #c3e8d0;
}

body.app .today-status--warn {
  color: #6b4e00;
  background: #fff8e1;
  border-color: #ffe08a;
}

body.app .today-status--bad {
  color: #8f1d14;
  background: #fdeceb;
  border-color: #f6c6c1;
}

body.app .today-status a {
  color: inherit;
}

/* The two columns: the calls, and the rest beside them. */
body.app .today__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

body.app .today__side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

@media (min-width: 1180px) {
  body.app .today__grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  }
}

/* "Call them now": one card per person. */
body.app .today-calls {
  display: grid;
  gap: 14px;
  min-width: 0;
}

body.app .today-calls__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

body.app .today-calls__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--uip-ink);
}

body.app .today-calls__icon {
  width: 24px;
  height: 24px;
  color: var(--uip-green);
}

body.app .today-calls__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--uip-on-gold);
  background: var(--uip-grad-gold);
  border-radius: 999px;
}

body.app .today-calls__all,
body.app .today-calls__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

body.app .today-calls__all .ui-icon,
body.app .today-calls__more .ui-icon {
  width: 18px;
  height: 18px;
}

body.app .today-calls__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app .callcard {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px 18px 16px;
  background: var(--uip-surface);
  border: 1px solid var(--uip-line);
  border-radius: var(--uip-radius);
  box-shadow: var(--uip-shadow);
}

body.app .callcard::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 4px;
  background: var(--uip-violet);
  border-radius: 0 4px 4px 0;
}

body.app .callcard.is-due::before {
  background: #f97316;
}

body.app .callcard.is-urgent::before {
  background: #dc2626;
}

body.app .callcard__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
}

body.app .callcard__avatar {
  width: 46px;
  height: 46px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--uip-on-gold);
  background: var(--uip-grad-gold);
}

body.app .callcard__who {
  display: grid;
  /* TB1 T5 (the screen walk's finding 6: the page was 430 px wide at 390): the column never grows past the card. */
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
}

/* TB1 T5: a long reason ("The goods need a check before we accept them") wraps inside its tag. */
body.app .callcard__meta .tag {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  line-height: 1.3;
  padding-block: 3px;
}

body.app .callcard__name {
  overflow: hidden;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--uip-ink);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app .callcard__name:hover {
  color: var(--uip-purple);
  text-decoration: underline;
}

body.app .callcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.82rem;
  color: var(--uip-muted);
}

body.app .callcard__number {
  font-variant-numeric: tabular-nums;
}

body.app .callcard__wait {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--uip-royal);
  background: var(--uip-tint);
  border-radius: 999px;
}

body.app .callcard__wait.is-late {
  color: #8a3a00;
  background: #ffe8d1;
}

body.app .callcard__wait-icon {
  width: 15px;
  height: 15px;
}

@media (min-width: 600px) {
  body.app .callcard__head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body.app .callcard__wait {
    grid-column: auto;
    justify-self: end;
  }
}

/* TB1 T1: a pickup person waits at the door: the line on top of the call card, in red, before anything else. */
body.app .callcard__pickup-call {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  overflow-wrap: anywhere;
}

body.app .callcard__pickup-call small {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #991b1b;
}

body.app .callcard__pickup-call-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

body.app .callcard__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

body.app .callcard__fact {
  min-width: 0;
  padding: 10px 12px;
  background: var(--uip-soft);
  border: 1px solid var(--uip-line);
  border-radius: 12px;
}

body.app .callcard__fact dt {
  margin: 0 0 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uip-faint);
}

body.app .callcard__fact dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--uip-text);
  overflow-wrap: anywhere;
}

body.app .callcard__fact--wants dd {
  font-weight: 700;
  color: var(--uip-ink);
}

body.app .callcard__fact--ai {
  background: #f6efff;
  border-color: #e6d4f6;
}

body.app .callcard__fact--tip {
  background: #fff8e1;
  border-color: #ffe08a;
}

body.app .callcard__fact--tip dt {
  color: #8a6400;
}

/* Wave 1B round 6, item 1: what the customer wrote about calling, quoted, with its time; across the whole card. */
body.app .callcard__fact--said {
  grid-column: 1 / -1;
  background: #ffffff;
  border-color: #d9c6ea;
}

body.app .callcard__fact--said dd {
  font-weight: 600;
  color: var(--uip-ink);
  white-space: normal;
  -webkit-line-clamp: unset;
}

body.app .callcard__said-time {
  margin-left: 4px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--uip-faint);
}

/* Wave 1B round 6, item 3: a call whose customer wrote against calling: the chip "Wrote about calling" in the warning tone. */
body.app .callcard.is-warned .callcard__wait {
  color: #991b1b;
  background: #fdecec;
}

body.app .callcard__not-needed--first {
  font-weight: 800;
  border-color: #991b1b;
}

/* Wave 1B round 5, item 3: "The customer later wrote: do not call." in the warning look, in place of the tip. */
body.app .callcard__fact--tip.callcard__fact--warn {
  background: #fdecec;
  border-color: #f2b8b8;
}

body.app .callcard__fact--warn dt,
body.app .callcard__fact--warn dd {
  color: #991b1b;
}

body.app .callcard__fact--warn dd {
  font-weight: 700;
}

@media (min-width: 760px) {
  body.app .callcard__facts {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 1fr);
  }

  body.app .callcard__facts:not(:has(.callcard__fact--ai)) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

body.app .callcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.app .callcard__call-form {
  display: flex;
  flex: 1 1 220px;
  margin: 0;
}

body.app .callcard__call {
  flex: 1 1 auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a 0%, #0f8a3c 100%);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.26);
  cursor: pointer;
}

body.app .callcard__call:hover {
  background: linear-gradient(135deg, #15913f 0%, #0d7a35 100%);
}

/* Round 4, item 4: a call not due yet: the plain Call (white, the brand's line), never the green "Call now". */
body.app .callcard__call.callcard__call--later {
  color: #4b0082;
  background: #ffffff;
  border: 1px solid #d9c6ea;
  box-shadow: none;
}

body.app .callcard__call.callcard__call--later:hover {
  background: #fbf7fd;
  border-color: #9821c8;
}

/* Round 4, item 4: "Due later" under the calls to make now. */
body.app .today-calls__subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--uip-ink);
}

body.app .callcard__call .button__icon {
  width: 22px;
  height: 22px;
}

body.app a.callcard__chat {
  flex: 0 1 auto;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
}

body.app .callcard__slot:empty {
  display: none;
}

/* FR2 R2 (the re-timing, 2 Nov 2026 night): after Call now the outcome row ("Call done", "No answer", ...) comes right
   under the name, then the number; on a laptop it is on the first screen (it was at y 1494). The card's other parts follow. */
body.app .callcard.is-called > .callcard__head,
body.app .callcard:has(.callcard__slot .number-reveal) > .callcard__head {
  order: -3;
}

body.app .callcard.is-called > .callcard__after,
body.app .callcard:has(.callcard__slot .number-reveal) > .callcard__after {
  order: -2;
}

body.app .callcard.is-called > .callcard__slot,
body.app .callcard:has(.callcard__slot .number-reveal) > .callcard__slot {
  order: -1;
}

/* FR2 R2: on a computer the green "Call +91…" link dials nothing: the large number and Copy (F3) stand in its place. */
@media (min-width: 1024px) and (hover: hover) {
  body.app .callcard__slot .call-now {
    display: none;
  }
}

/* FR1 F3 (the hurried-person audit, 2 Nov 2026): a computer cannot dial: the number large, with Copy; phones dial. */
body.app .number-reveal__big {
  display: none;
}

@media (min-width: 1024px) and (hover: hover) {
  body.app .number-reveal__big {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    flex-basis: 100%;
  }

  body.app .number-reveal__big-label {
    flex-basis: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--uip-muted);
  }

  body.app .number-reveal__big-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--uip-ink);
    font-variant-numeric: tabular-nums;
    user-select: all;
  }
}

body.app .callcard__slot .number-reveal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
}

body.app .callcard__slot .call-now {
  min-height: 52px;
  font-size: 1.05rem;
  border-radius: 14px;
}

body.app .callcard__after {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--uip-line-strong);
}

body.app .callcard__after-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--uip-muted);
}

body.app .callcard__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

body.app .callcard__outcomes {
  display: contents;
}

body.app .callcard__booked {
  order: 1;
}
/* EZ2 A6 (Ram, 16 Nov 2026: "keep one or two like notify again and dont"): after the job's own button, two chips. */
body.app .callcard__remind {
  order: 2;
}

body.app .callcard__no-answer,
body.app .callcard__not-needed {
  order: 3;
}

/* Wave 1B round 6, item 3: the customer wrote against calling: "Not needed" is the first answer. */
body.app .callcard__not-needed.callcard__not-needed--first {
  order: 0;
}
body.app .callcard__more {
  order: 5;
  align-self: center;
  padding: 8px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--uip-muted);
}

body.app .chip-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin: 0;
  padding: 0 13px;
  line-height: 1.2;
  box-shadow: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--uip-royal);
  background: var(--uip-surface);
  border: 1px solid var(--uip-line-strong);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

body.app .chip-button::-webkit-details-marker {
  display: none;
}

body.app .chip-button:hover {
  background: var(--uip-tint);
  border-color: #c9a3e3;
}

body.app .chip-button:focus-visible {
  outline: none;
  box-shadow: var(--uip-ring);
}

body.app .chip-button__icon {
  width: 16px;
  height: 16px;
}

body.app .chip-button--good {
  color: var(--uip-green-ink);
  background: #e9f7ee;
  border-color: #b7e2c6;
}

body.app .chip-button--good:hover {
  background: #d9f1e2;
  border-color: #94d3ab;
}


@media (max-width: 599px) {
  body.app .callcard {
    gap: 12px;
    padding: 14px 12px 12px;
  }

  /* FR1 F5 (the hurried-person audit, 2 Nov 2026: Today was 6,400 px on a phone, each call about 900 px): a folded call
     is one line, the name, why and how late, with Call now at its end; a tap on the line opens the rest (inbox.js). */
  body.app .callcard.is-folded {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 10px 10px 12px;
  }

  body.app .callcard.is-folded > :not(.callcard__head):not(.callcard__actions):not(.callcard__slot) {
    display: none;
  }

  body.app .callcard.is-folded .callcard__head {
    cursor: pointer;
  }

  body.app .callcard.is-folded .callcard__avatar,
  body.app .callcard.is-folded .callcard__number {
    display: none;
  }

  body.app .callcard.is-folded .callcard__head {
    grid-template-columns: minmax(0, 1fr);
  }

  body.app .callcard.is-folded .callcard__actions > :not(.callcard__call-form) {
    display: none;
  }

  body.app .callcard.is-folded .callcard__call-form {
    flex-basis: auto;
  }

  body.app .callcard.is-folded .callcard__call {
    min-height: 48px;
    padding: 0 16px;
  }

  body.app .callcard.is-folded .callcard__slot {
    grid-column: 1 / -1;
  }

  /* Wave 1B round 7, item 6: a folded card keeps the customer's newest words (two lines at most, cut with "…") and the
     warning, in a row under the name and the Call (the Call stays where it was); a tap opens the whole card. */
  body.app li.callcard.is-folded > .callcard__head {
    order: 1;
  }

  body.app li.callcard.is-folded > .callcard__actions {
    order: 2;
  }

  body.app li.callcard.is-folded > dl.callcard__facts:not(.callcard__head):not(.callcard__actions):not(.callcard__slot) {
    display: grid;
    order: 3;
    grid-column: 1 / -1;
    gap: 4px;
    margin: 0;
  }

  body.app li.callcard.is-folded > .callcard__slot {
    order: 4;
  }

  body.app li.callcard.is-folded .callcard__fact {
    display: none;
  }

  body.app li.callcard.is-folded .callcard__fact--said:has(+ .callcard__fact--tip),
  body.app li.callcard.is-folded .callcard__fact--tip.callcard__fact--warn {
    display: flex;
    gap: 6px;
    align-items: baseline;
    padding: 5px 9px;
  }

  body.app li.callcard.is-folded .callcard__fact--said:has(+ .callcard__fact--tip) dt {
    display: none;
  }

  body.app li.callcard.is-folded .callcard__fact--said dd {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.3;
  }

  /* the warning is one short sentence of ours: it stands whole in the compact form */
  body.app li.callcard.is-folded .callcard__fact--warn dd {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  body.app li.callcard.is-folded .callcard__fact--warn dt {
    flex: none;
    margin: 0;
  }

  body.app .callcard__facts {
    gap: 6px;
  }

  body.app .callcard__fact {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
  }

  body.app .callcard__fact dt {
    margin: 2px 0 0;
    font-size: 0.64rem;
    line-height: 1.3;
  }

  body.app .callcard__fact dd {
    font-size: 0.86rem;
  }

  body.app .callcard__fact--ai dd {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body.app .callcard__call-form {
    flex-basis: 100%;
  }

  body.app .callcard__call {
    min-height: 50px;
  }

  body.app a.callcard__chat {
    min-height: 44px;
  }

  body.app .callcard__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.app .callcard__chips .chip-button {
    justify-content: center;
    width: 100%;
    padding: 0 8px;
    text-align: center;
  }

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

  body.app .callcard__not-needed.callcard__not-needed--first {
    grid-column: 1 / -1;
  }

  body.app .callcard__more {
    justify-self: center;
  }
  body.app a.callcard__chat {
    flex: 1 1 auto;
  }
}

/* No calls: the good news, big. */
body.app .today-done {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 34px 20px;
  text-align: center;
  background: var(--uip-surface);
  border: 1px dashed #b7e2c6;
  border-radius: var(--uip-radius);
}

body.app .today-done__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a 0%, #0f8a3c 100%);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.26);
}

/* Wave 1B, O-05: no call to make while chats wait for a person: amber, never the green "all done". */
body.app .today-done--waiting {
  border-color: #f0c987;
}

body.app .today-done--waiting .today-done__mark {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.26);
}

/* Round 3, item 5: no call now, calls due later (at night, the ones for 9 AM): a calm slate clock, neither the green
   "all done" nor the amber "waiting". */
body.app .today-done--later {
  border-color: #cbd5e1;
}

body.app .today-done--later .today-done__mark {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  box-shadow: 0 10px 22px rgba(71, 85, 105, 0.24);
}

body.app .today-done__go {
  margin-top: 8px;
}

body.app .today-done__mark .ui-icon {
  width: 28px;
  height: 28px;
}

body.app .today-done__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--uip-ink);
}

body.app .today-done__text {
  margin: 0;
  max-width: 44ch;
  color: var(--uip-muted);
}

/* The cards beside the calls. */
body.app .today-card {
  padding-bottom: 6px;
}

body.app .today-card__lede {
  margin: -4px 18px 8px;
  font-size: 0.82rem;
  color: var(--uip-faint);
}

body.app .ai-feed {
  display: grid;
  margin: 0;
  padding: 0 8px 8px;
  list-style: none;
}

body.app .ai-feed__row {
  display: grid;
  grid-template-columns: 62px 10px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
  color: var(--uip-text);
  text-decoration: none;
  border-radius: 12px;
}

body.app .ai-feed__row:hover {
  color: var(--uip-text);
  background: var(--uip-soft);
}

body.app .ai-feed__time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--uip-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.app .ai-feed__dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  background: var(--uip-line-strong);
  border-radius: 50%;
}

body.app .ai-feed__row--sent .ai-feed__dot {
  background: var(--uip-green);
}

body.app .ai-feed__row--handed .ai-feed__dot {
  background: #f97316;
}

body.app .ai-feed__row--wrote .ai-feed__dot {
  background: var(--uip-violet);
}

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

body.app .ai-feed__name {
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--uip-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app .ai-feed__did {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--uip-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Who is signed in, one quiet line at the end. */
body.app .today-signin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 4px 2px;
  font-size: 0.8rem;
  color: var(--uip-faint);
}

body.app .today-signin__icon {
  width: 16px;
  height: 16px;
}

body.app .today-signin a {
  font-weight: 600;
}

/* Today's motion: the cards come in one after another, the Call icon rings now and then, the planes cross the sky. */
@media (prefers-reduced-motion: no-preference) {
  body.app .callcard {
    animation: uip-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  body.app .callcard:nth-child(2) {
    animation-delay: 0.06s;
  }

  body.app .callcard:nth-child(3) {
    animation-delay: 0.12s;
  }

  body.app .callcard:nth-child(n + 4) {
    animation-delay: 0.18s;
  }

  body.app .callcard__ring {
    animation: uip-ring 3.2s ease-in-out 1s infinite;
    transform-origin: 50% 50%;
  }

  body.app .today-meter__fill {
    animation: uip-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
  }

  body.app .today-hero__plane--a {
    animation: uip-fly-a 16s linear 0.5s infinite;
  }

  body.app .today-hero__plane--b {
    animation: uip-fly-b 23s linear 4s infinite;
  }

  body.app .today-hero__plane--c {
    animation: uip-fly-c 29s linear 9s infinite;
  }

  body.app .chip-button,
  body.app .callcard__call {
    transition: background 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.15s;
  }

  body.app .chip-button:active,
  body.app .callcard__call:active {
    transform: scale(0.97);
  }}

@keyframes uip-ring {
  0%, 18%, 100% {
    transform: rotate(0);
  }
  3% {
    transform: rotate(-14deg);
  }
  6% {
    transform: rotate(12deg);
  }
  9% {
    transform: rotate(-10deg);
  }
  12% {
    transform: rotate(6deg);
  }
}

@keyframes uip-grow {
  from {
    transform: scaleX(0);
  }
}

@keyframes uip-fly-a {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0) rotate(-8deg);
  }
  8% {
    opacity: 0.9;
  }
  50% {
    transform: translate3d(55vw, -6px, 0) rotate(0deg);
  }
  92% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate3d(110vw, 22px, 0) rotate(8deg);
  }
}

@keyframes uip-fly-b {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  10% {
    opacity: 0.55;
  }
  90% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translate3d(110vw, -34px, 0) rotate(-10deg);
  }
}

@keyframes uip-fly-c {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  12% {
    opacity: 0.5;
  }
  88% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate3d(110vw, 18px, 0) rotate(6deg);
  }
}

/* The prices card: the website prices first (what customers and the AI are quoted), the office files under them. */
body.app .today-prices {
  display: grid;
  gap: 12px;
}

body.app .today-prices__website {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  color: var(--uip-text);
  text-decoration: none;
  background: #e9f7ee;
  border: 1px solid #c3e8d0;
  border-radius: 14px;
}

body.app .today-prices__website:hover {
  color: var(--uip-text);
  border-color: #94d3ab;
}

body.app .today-prices__website.is-late {
  background: #fdeceb;
  border-color: #f6c6c1;
}

body.app .today-prices__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}

body.app .today-prices__name {
  font-weight: 800;
  color: var(--uip-ink);
}

body.app .today-prices__week {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--uip-ink);
}

body.app .today-prices__what {
  font-size: 0.8rem;
  color: var(--uip-muted);
}

body.app .today-prices__office-title {
  margin: 4px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--uip-ink);
}

body.app .today-prices__office-title span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--uip-faint);
}

/* Phones: a tighter top bar (the menu, the logo with one line, the bell, the person), the hero's buttons in one row. */
@media (max-width: 599px) {
  body.app .appbar {
    gap: 8px;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  body.app .appbar .brand--bar .brand__sub {
    display: none;
  }

  body.app .today-hero__actions {
    gap: 8px;
  }

  body.app .today-hero a.today-hero__button {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  /* Chats and Rate cards are bottom tabs on a phone: the header keeps only "Today's leads", so the calls come up. */
  body.app .today-hero a.today-hero__button--tabbed {
    display: none;
  }

  body.app .today-hero .today-hero__actions {
    margin-top: 14px;
  }

  body.app .today-hero .band__inner {
    padding: 18px 18px 16px;
  }
}

/* ---- 7. Chats (the list) ---------------------------------------------------------------------------------------- */

/* One card per chat, with room between them; the whole card opens the chat. */
body.app .inbox .convo-list--cards {
  display: grid;
  gap: 10px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.app .inbox .convo-list--cards .convo,
body.app .inbox .convo-list--cards .convo:first-child,
body.app .inbox .convo-list--cards .convo:last-child {
  background: var(--uip-surface);
  border: 1px solid var(--uip-line);
  border-radius: 16px;
  box-shadow: var(--uip-shadow);
}

body.app .inbox .convo-list--cards .convo:hover {
  background: var(--uip-surface);
  border-color: var(--uip-line-strong);
  box-shadow: var(--uip-shadow-up);
}

body.app .inbox .convo-list--cards .convo--unread {
  border-color: #e3cdf3;
}

body.app .inbox .convo-list--cards .convo__link {
  gap: 12px;
  padding: 14px 16px 4px;
}

body.app .inbox .avatar--card {
  width: 42px;
  height: 42px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--uip-royal);
  background: var(--uip-tint);
  border: 0;
  box-shadow: none;
}

body.app .inbox .convo--unread .avatar--card {
  color: var(--uip-on-gold);
  background: var(--uip-grad-gold);
}

body.app .inbox .convo-list--cards .convo__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--uip-ink);
}

body.app .inbox .convo-list--cards .convo__number {
  font-size: 0.8rem;
  color: var(--uip-faint);
}

body.app .inbox .convo__wait {
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--uip-royal);
  background: var(--uip-tint);
  border-radius: 999px;
}

body.app .inbox .convo--unread .convo__wait {
  color: #8a3a00;
  background: #ffe8d1;
}

body.app .inbox .convo__wait.is-late,
body.app .inbox .convo--unread .convo__wait.is-late {
  color: #ffffff;
  background: #dc2626;
}

body.app .inbox .convo__time {
  font-size: 0.78rem;
  color: var(--uip-faint);
}

body.app .inbox .convo__line {
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--uip-text);
}

body.app .inbox .convo--unread .convo__line--en {
  font-weight: 600;
  color: var(--uip-ink);
}

body.app .inbox .convo__line--te {
  font-size: 0.84rem;
  color: var(--uip-faint);
}

body.app .inbox .convo-list--cards .convo__last {
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--uip-text);
}

body.app .inbox .convo__foot {
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 8px 14px 12px 70px;
}

/* The next step: a clear purple pill that opens the chat (red when it is late). */
body.app .inbox .convo__next {
  min-height: 34px;
  margin-block: 0;
  padding: 0 12px;
  font-size: 0.8rem;
  color: var(--uip-royal);
  background: var(--uip-tint);
  border-radius: 999px;
}

body.app .inbox .convo__next:hover {
  text-decoration: none;
  background: #e8d6f7;
}

body.app .inbox .convo__next.is-urgent {
  color: #ffffff;
  background: #dc2626;
}

body.app .inbox .convo__foot .label-menu__button {
  min-height: 34px;
  margin-block: 0;
}

body.app .inbox .convo__toggle-button {
  min-height: 34px;
  margin-block: 0;
}

body.app .inbox .convo__toggle-text {
  padding: 5px 10px;
  font-size: 0.72rem;
  border-radius: 999px;
}

body.app .inbox .convo--urgent .convo__link::before,
body.app .inbox .convo--amber .convo__link::before {
  top: 14px;
  bottom: 14px;
  width: 4px;
}

@media (max-width: 599px) {
  body.app .inbox .convo-list--cards .convo__link {
    padding: 12px 12px 4px;
  }

  body.app .inbox .avatar--card {
    width: 38px;
    height: 38px;
  }

  body.app .inbox .convo__foot {
    padding: 6px 10px 10px 12px;
  }

  /* The name gets the room (the number is in the chat); the summary may take two lines. */
  body.app .inbox .convo-list--cards .convo__number {
    display: none;
  }

  body.app .inbox .convo__line--en {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* The search and the date on one line above the list. */
body.app .inbox-head input[type='search'] {
  min-height: 46px;
}

body.app .inbox-foot {
  margin-top: 14px;
  font-size: 0.8rem;
  text-align: center;
}

/* ---- 8. A chat ---------------------------------------------------------------------------------------------------- */

/* The head: the person, big and clear. */
body.app .chat-head {
  min-height: 66px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--uip-line);
  box-shadow: 0 6px 18px rgba(74, 0, 114, 0.06);
}

/* chatback (Ram's own screen, 2 Nov 2026): the top bar stays on the screen on every width (sticky, section 2), so the
   head (the back arrow, the avatar, the name) sticks just below it, never under it; the "who replies" strip below the
   head, and on a computer the side panel below both. The heights are measured (src/web/static/inbox.js: --chat-bar-h,
   --chat-head-h, --chat-sticky); without the script, the bar's token and the head's least height. */
body.app .chat-head {
  top: var(--chat-bar-h, var(--uip-bar-h));
}

body.app .chat-state {
  top: calc(var(--chat-bar-h, var(--uip-bar-h)) + var(--chat-head-h, 66px));
  /* Its empty handler line is see-through otherwise: the messages showed through it under the head. */
  background: rgba(255, 255, 255, 0.97);
}

@media (min-width: 1024px) {
  body.app .chat-info {
    top: calc(var(--chat-bar-h, var(--uip-bar-h)) + var(--chat-sticky, 136px) + 12px);
    max-height: calc(100vh - var(--chat-bar-h, var(--uip-bar-h)) - var(--chat-sticky, 136px) - 32px);
    max-height: calc(100dvh - var(--chat-bar-h, var(--uip-bar-h)) - var(--chat-sticky, 136px) - 32px);
  }
}

/* Wave 1B, O-12 (the office tester, 24 Nov 2026, at 1440 x 900): when a chat opened, the page moved down to the newest
   message and Done, "Not replying…" and the label slid under the head; the office scrolled up to mark a chat done.
   On a computer the "What to do" strip now stays on the screen like the head. It stands in the messages' column, under
   the head and the "who replies" line (that line comes first here, so the three stack by the heights the page already
   measures: --chat-bar-h, --chat-sticky), and the side panel starts beside it, so a short chat no longer makes the
   page longer than the screen. The messages pass under the strip; the page's own colour fills the gap above it.
   Nothing moves on a phone or a tablet, and nothing in the head (the Call button stays where it is). */
@media (min-width: 1024px) {
  body.app .chat {
    grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas:
      'head head'
      'state state'
      'triage info'
      'thread info'
      'reply info';
  }

  body.app .triage-strip {
    position: sticky;
    top: calc(var(--chat-bar-h, var(--uip-bar-h)) + var(--chat-sticky, 136px) + 10px);
    z-index: 18;
    align-self: start;
    background: var(--uip-surface);
  }

  body.app .triage-strip::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -2px;
    left: -6px;
    height: 12px;
    background: var(--uip-page);
  }
}

body.app .chat-head .avatar {
  color: var(--uip-on-gold);
  background: var(--uip-grad-gold);
  border: 0;
}

body.app .chat-head__name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--uip-ink);
}

/* "What to do": the label and the next step on the first line, the buttons at its end, the summary under them. */
body.app .triage-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'row actions'
    'summary summary';
  align-items: start;
  column-gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--uip-line);
  border-left: 4px solid var(--uip-violet);
  border-radius: 16px;
  box-shadow: var(--uip-shadow);
}

body.app .triage-strip.is-urgent {
  border-left-color: #dc2626;
}

body.app .triage-strip__row {
  grid-area: row;
  min-height: 36px;
}

body.app .triage-strip__summary {
  grid-area: summary;
  min-width: 0;
}

body.app .triage-strip__actions {
  grid-area: actions;
  justify-content: flex-end;
  margin: 0;
}

body.app .triage-strip__actions .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-width: 1px;
}

body.app .triage-strip__step {
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--uip-royal);
  background: var(--uip-tint);
  border-radius: 999px;
}

body.app .triage-strip__summary p {
  margin-top: 4px;
}

body.app .triage-strip__en {
  font-size: 0.95rem;
  color: var(--uip-ink);
}

body.app .triage-strip__te,
body.app .triage-strip__help,
body.app .triage-strip__meta {
  font-size: 0.82rem;
  color: var(--uip-faint);
}

/* The bar about the AI: one line, small buttons. */
body.app .handler {
  gap: 10px;
  padding: 8px 14px;
}

body.app .handler__text {
  font-size: 0.9rem;
}

body.app .handler__button,
body.app a.handler__button {
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  font-size: 0.84rem;
}

/* The messages: the customer on the left in white, the AI on the right in lilac, a person on the right in gold. */
body.app .chat-thread {
  background: linear-gradient(180deg, rgba(243, 233, 251, 0.35) 0%, rgba(246, 242, 251, 0) 240px);
}

body.app .bubble {
  padding: 9px 13px 6px;
  font-size: 0.97rem;
  border-color: var(--uip-line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(42, 0, 67, 0.06);
}

body.app .msg--ai .bubble {
  background: #f1e6fb;
  border-color: #e0cbf2;
}

body.app .msg--owner .bubble {
  background: #fff4cc;
  border-color: #f6dc85;
}

/* The writing bar at the bottom. */
body.app .reply-bar {
  border-top: 1px solid var(--uip-line);
  box-shadow: 0 -8px 24px rgba(74, 0, 114, 0.06);
}

@media (max-width: 599px) {
  body.app .triage-strip {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'row'
      'summary'
      'actions';
    padding: 10px 12px;
  }

  body.app .triage-strip__actions {
    justify-content: flex-start;
    margin-top: 8px;
  }

  body.app .triage-strip__en {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.app .triage-strip__te {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.app .triage-strip__meta {
    display: none;
  }

  body.app .handler {
    flex-wrap: wrap;
    padding: 8px 12px;
  }

  body.app .handler__actions {
    gap: 6px;
  }

  body.app .chat-summary__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* ---- 9. Signing in ---------------------------------------------------------------------------------------------- */

/* Planes crossing the night sky behind the sign-in, as on Today. */
body.auth-scene .auth {
  position: relative;
}

body.auth-scene .auth-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.auth-scene .auth__hero,
body.auth-scene .auth__card {
  position: relative;
  z-index: 1;
}

body.auth-scene .auth-sky__plane {
  position: absolute;
  left: -40px;
  width: 24px;
  height: 24px;
  color: #ffd54f;
  opacity: 0;
}

body.auth-scene .auth-sky__plane .plane-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 2px 8px rgba(255, 213, 79, 0.4));
}

body.auth-scene .auth-sky__plane--a {
  top: 12%;
}

body.auth-scene .auth-sky__plane--b {
  top: 58%;
  width: 18px;
  height: 18px;
  color: #ffffff;
}

body.auth-scene .auth-sky__plane--c {
  top: 82%;
  width: 14px;
  height: 14px;
  color: #e9c7ff;
}

@media (prefers-reduced-motion: no-preference) {
  body.auth-scene .auth-sky__plane--a {
    animation: uip-fly-a 18s linear 0.3s infinite;
  }

  body.auth-scene .auth-sky__plane--b {
    animation: uip-fly-b 26s linear 5s infinite;
  }

  body.auth-scene .auth-sky__plane--c {
    animation: uip-fly-c 31s linear 11s infinite;
  }
}

/* The card: white, round, the fields tall; "Keep me signed in" is a clear choice of its own. */
body.auth-scene .auth__card {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(10, 0, 25, 0.45);
}

body.auth-scene .auth__card input[type='text'],
body.auth-scene .auth__card input[type='password'] {
  min-height: 50px;
  border: 1.5px solid #9d86b3;
  border-radius: 14px;
}

body.auth-scene .auth__card input[type='text']:focus,
body.auth-scene .auth__card input[type='password']:focus {
  border-color: #9821c8;
  box-shadow: 0 0 0 4px rgba(152, 33, 200, 0.18);
  outline: none;
}

body.auth-scene .trust {
  margin: 18px 0 4px;
  padding: 12px 14px;
  background: #f6efff;
  border: 1.5px solid #e0cbf2;
  border-radius: 14px;
}

body.auth-scene .trust:has(input:checked) {
  background: #ecf8f0;
  border-color: #9fd9b4;
}

body.auth-scene .trust__option {
  font-weight: 700;
  color: #1a001f;
}

body.auth-scene .trust__option input {
  width: 24px;
  height: 24px;
  accent-color: #16a34a;
}

body.auth-scene .trust .hint {
  margin: 4px 0 0 34px;
  font-size: 0.84rem;
  line-height: 1.45;
}

body.auth-scene .auth__card button[type='submit'] {
  min-height: 52px;
  font-size: 1.05rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
}

/* ---- 10. Callbacks: the same call cards as Today ------------------------------------------------------------------ */
body.app .callcard-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app .callcard.callback-item {
  padding: 18px 18px 16px;
  border: 1px solid var(--uip-line);
}

body.app .callcard .callback-item__name {
  margin: 0;
  overflow: hidden;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--uip-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app .callcard .special-banner {
  margin: 0;
}

/* "Something else…" on Callbacks opens the whole form under the buttons. */
body.app .callcard__full {
  order: 5;
  align-self: center;
  margin: 0;
  border: 0;
}

body.app .callcard__full > summary.callcard__more {
  display: inline-flex;
  min-height: 40px;
  list-style: none;
  cursor: pointer;
  text-decoration: underline;
}

body.app .callcard__full > summary.callcard__more::-webkit-details-marker {
  display: none;
}

body.app .callcard__full[open] {
  flex-basis: 100%;
  padding: 12px 14px;
  background: var(--uip-soft);
  border: 1px solid var(--uip-line);
  border-radius: 14px;
}

@media (max-width: 599px) {
  body.app .callcard.callback-item {
    padding: 14px 12px 12px;
  }

  body.app .callcard__full {
    justify-self: center;
  }

  body.app .callcard__full[open] {
    grid-column: 1 / -1;
  }
}

/* ---- 11. The alert's "Call customer" page: the call card, full width ------------------------------------------- */
body.app .call-page--uip {
  display: grid;
  gap: 16px;
  max-width: 880px;
}

body.app .call-page__card {
  padding: 20px;
}

body.app .call-page__card .notice {
  margin: 0;
}

body.app a.callcard__call {
  display: inline-flex;
  flex: 1 1 260px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a 0%, #0f8a3c 100%);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.26);
}

body.app a.callcard__call:hover {
  color: #ffffff;
}

/* Wave 1B round 5, item 6: the alert's Call page while the call is not due yet (or the customer later wrote not to
   call): the plain Call the cards use, never the green one. */
body.app a.callcard__call.callcard__call--later {
  color: #4b0082;
  background: #ffffff;
  border: 1px solid #d9c6ea;
  box-shadow: none;
}

body.app a.callcard__call.callcard__call--later:hover {
  color: #4b0082;
  background: #fbf7fd;
  border-color: #9821c8;
}

body.app .callcard__after-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--uip-ink);
}

body.app .call-page__called {
  padding: 16px 18px;
}

body.app .call-page__called-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
}

body.app .call-page__called-form .button {
  margin: 0;
}

body.app .call-page__called-form .hint {
  flex: 1 1 240px;
  margin: 0;
}

/* ---------------------------------------------------------------------------------------------------------------------
   OBS1: the System page (owners and the Viewer): right now, the problems, how the pages are used, the business in
   numbers, how it works. Calm by default; amber and red only where something went wrong.
   ------------------------------------------------------------------------------------------------------------------- */
body.app .system-page {
  display: grid;
  /* minmax(0, 1fr): a wide table scrolls in its own box instead of widening the page on a phone. */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body.app .system-page > * {
  min-width: 0;
}

body.app .system-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--uip-radius-sm);
  background: var(--uip-tint);
  color: var(--uip-ink);
  font-weight: 600;
}

body.app .system-note__icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--uip-violet);
}

body.app .system-meta {
  margin: 0;
  color: var(--uip-muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

body.app .system-now {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
}

body.app .system-now__line {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--uip-line);
  border-radius: var(--uip-radius-sm);
  background: var(--uip-surface);
}

body.app .system-now__line dt {
  color: var(--uip-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

body.app .system-now__line dd {
  display: grid;
  gap: 2px;
  margin: 4px 0 0;
}

body.app .system-now__value {
  color: var(--uip-ink);
  font-weight: 700;
}

body.app .system-now__detail {
  color: var(--uip-muted);
  font-size: 0.8125rem;
}

body.app .system-now__line.is-warn {
  border-color: #f5c58a;
  background: #fff6ea;
}

body.app .system-problems {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

body.app .system-problem {
  padding: 12px 14px;
  border: 1px solid var(--uip-line);
  border-left: 4px solid #f59e0b;
  border-radius: var(--uip-radius-sm);
  background: var(--uip-surface);
}

body.app .system-problem.is-bad {
  border-left-color: #dc2626;
  background: #fff7f6;
}

body.app .system-problem__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

body.app .system-problem__title {
  margin: 0;
  color: var(--uip-ink);
  font-size: 1rem;
}

body.app .system-problem__count {
  color: var(--uip-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.app .system-problem__what {
  margin: 6px 0 0;
  color: var(--uip-text);
  font-size: 0.875rem;
}

body.app .system-problem__last {
  color: var(--uip-muted);
  white-space: nowrap;
}

body.app .system-parts {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

body.app .system-part {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--uip-soft);
  font-size: 0.8125rem;
}

body.app .system-part__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.app .system-part__count {
  color: var(--uip-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.app .system-clear,
body.app .system-clear-all {
  margin: 0;
  color: var(--uip-muted);
  font-size: 0.875rem;
}

body.app .system-clear-all {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--uip-green-ink);
  font-weight: 600;
}

body.app .system-clear-all__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

body.app .system-subtitle {
  margin: 14px 14px 0;
  color: var(--uip-ink);
  font-size: 0.9375rem;
}

body.app .system-table code {
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

body.app .system-how {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 14px 14px 34px;
  color: var(--uip-text);
}

/* ---------------------------------------------------------------------------------------------------------------------
   The smart inbox (Ram, 31 Oct 2026): Today's chats in four groups, a strip of the groups with their sizes, a header
   before each group, and one clear button first on each card that waits for a person.
   ------------------------------------------------------------------------------------------------------------------- */
body.app .inbox .smart-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

body.app .inbox .smart-groups__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--uip-line);
  border-radius: 999px;
  background: var(--uip-surface);
  color: var(--uip-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

body.app .inbox .smart-groups__item:hover {
  text-decoration: none;
  border-color: var(--uip-line-strong);
}

body.app .inbox .smart-groups__count {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--uip-soft);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

body.app .inbox .smart-groups__item--urgent:not(.is-empty) .smart-groups__count {
  color: #ffffff;
  background: #dc2626;
}

body.app .inbox .smart-groups__item--needs_you:not(.is-empty) .smart-groups__count {
  color: #3a2300;
  background: #fbbf24;
}

body.app .inbox .smart-groups__item.is-empty {
  color: var(--uip-muted);
}

body.app .inbox .inbox-group {
  margin: 14px 0 4px;
  padding: 0 4px;
  list-style: none;
}

body.app .inbox .inbox-group:first-child {
  margin-top: 0;
}

body.app .inbox .inbox-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--uip-ink);
  font-size: 1rem;
}

body.app .inbox .inbox-group__title::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--uip-faint);
}

body.app .inbox .inbox-group--urgent .inbox-group__title::before {
  background: #dc2626;
}

body.app .inbox .inbox-group--needs_you .inbox-group__title::before {
  background: #f59e0b;
}

body.app .inbox .inbox-group--answered .inbox-group__title::before {
  background: #16a34a;
}

body.app .inbox .inbox-group__count {
  color: var(--uip-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

body.app .inbox .inbox-group__hint {
  margin: 2px 0 0 20px;
  color: var(--uip-muted);
  font-size: 0.8125rem;
}

/* The one clear button of a waiting chat: filled, first on the card, red when it is urgent. */
body.app .inbox .convo__next.convo__action {
  order: -1;
  min-height: 40px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--uip-royal);
  font-size: 0.875rem;
  font-weight: 700;
}

body.app .inbox .convo__next.convo__action:hover {
  background: var(--uip-violet);
}

body.app .inbox .convo__next.convo__action.is-urgent {
  background: #dc2626;
}

@media (max-width: 600px) {
  body.app .inbox .convo__next.convo__action {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* The tabs share the row by their words ("Today's chats 7" is longer than "All 8"), never a third each that cuts it. */
body.app .inbox--si1 .inbox-tab {
  flex: 1 1 auto;
}

/* The partners' country page (Ram, 31 Oct 2026): every country A to Z, a row of letters to jump, the names in columns. */
body.app .az-card {
  padding-bottom: 14px;
}

body.app .az-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 6px;
}

body.app .az-letters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  background: var(--uip-soft);
  color: var(--uip-royal);
  font-weight: 700;
  text-decoration: none;
}

body.app .az-letter {
  margin: 14px 14px 6px;
  color: var(--uip-ink);
  font-size: 1rem;
}

body.app .az-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 4px 12px;
  margin: 0;
  padding: 0 14px;
  list-style: none;
}

body.app .az-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--uip-ink);
  text-decoration: none;
}

body.app .az-list a:hover {
  background: var(--uip-tint);
}

/* The pickup page's "Picked up": the measured weight, the tick and the button, one under the other on a phone. */
body.app .pk-done {
  display: grid;
  gap: 10px;
  align-items: center;
}

body.app .pk-done__weight {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

body.app .pk-done__weight input {
  max-width: 180px;
}

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

@media (max-width: 600px) {
  body.app .pk-done__button {
    justify-self: stretch;
    justify-content: center;
  }
}

/* FR3 C3: "All callbacks" under the calls is the phone's (the head has it on a computer). */
body.app .today-calls__all-foot {
  display: none;
}

/* FR2 R3 (the re-timing, 2 Nov 2026 night: once any banner showed, the first Call now dropped below a phone's first
   screen, y 767 to 939; at 360 names were cut after one line and "Overdue by 44 min" wrapped): on a phone Today's
   banners are one line each (a tap opens one, inbox.js), the address banners fold to their heading, "Ready to act" and
   the hero's date and meter lines are tighter, the four tiles (the bottom tabs and the bell count the same) and who is
   signed in follow the calls, and Call now sits beside the name. A name gets two lines before it is cut; the wait never
   wraps. */
@media (max-width: 599px) {
  body.app .today {
    gap: 12px;
  }

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

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

  /* Who is signed in stays the page's quiet last line. */
  body.app .today > .today-signin {
    order: 3;
  }

  body.app .today-hero__date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.app .today > .today-status {
    flex-wrap: nowrap;
    padding: 10px 14px;
    cursor: pointer;
  }

  body.app .today > .today-status.is-open {
    flex-wrap: wrap;
  }

  body.app .today > .today-status:not(.is-open) .today-status__text {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.app .today > .today-status:not(.is-open) .today-status__link {
    display: none;
  }

  body.app .today > .desk__red a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.app .today .new-addresses .pu1-address__heading {
    margin: 0;
    cursor: pointer;
  }

  body.app .today .new-addresses:not(.is-open) .new-addresses__list {
    display: none;
  }

  body.app .ready {
    padding: 10px 12px;
  }

  body.app .ready__title {
    margin-bottom: 6px;
  }

  body.app .ready__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  /* FR3 C3 (the coordinator, 2 Nov 2026 night): three cards on a phone, the rest behind "N more". */
  body.app .ready__item--phone-extra,
  body.app .ready__more-laptop {
    display: none;
  }

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

  body.app .ready__more-phone {
    display: inline;
  }

  body.app .ready__more--phone-only {
    display: block;
  }

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

  body.app .ready__more-toggle {
    min-height: 32px;
  }

  body.app .ready__title {
    margin-bottom: 6px;
  }

  /* The hero's "Today's leads" is the AI card's link further down (its other two are the bottom tabs): the calls come up. */
  body.app .today-hero .today-hero__actions {
    display: none;
  }

  /* The owners' verdict line (FR2 D1) in smaller type; where it shows, it is the hero's line (the AI's line under the
     headline is the laptop's: the red line below and the Chats tab's count say the same on a phone). Round 3, item 7:
     not while "Stop all automatic replies" is shown: on a phone too that entry stands with the line about the AI. */
  body.app .today-hero__verdict {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  /* Wave 1B round 5, item 6: never the line that says the AI is not connected (nothing is answered by itself). */
  body.app .today-hero__text:has(.today-hero__verdict):not(:has(.today-hero__stop)):not([data-ai-line-keep]) .today-hero__sub {
    display: none;
  }

  /* "All callbacks" moves under the calls (home.eta), so the head is one line. */
  body.app .today-calls__head .today-calls__all {
    display: none;
  }

  body.app .today-calls__all-foot {
    display: inline-flex;
  }

  body.app .ready__item {
    min-width: 0;
  }

  body.app .ready__item a {
    display: block;
    min-height: 44px;
    padding: 11px 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* FR5: on a phone the badge is one word, so the name and the area fit beside it. */
  body.app .ready__badge-long {
    display: none;
  }

  body.app .ready__badge-short {
    display: inline;
  }

  body.app .callcard .callback-item__name {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  /* Call now beside the name, not in the middle of a two-line name and its wait: it comes up 30 px. */
  body.app .callcard.is-folded > .callcard__actions {
    align-self: start;
  }

  /* The hero's meter and "0 calls made today · 5 to go" share one line. */
  body.app .today-hero__progress {
    flex-wrap: nowrap;
    gap: 10px;
  }

  body.app .today-meter {
    flex: 1 1 40px;
    min-width: 40px;
  }

  body.app .today-hero__progress-text {
    flex: none;
    white-space: nowrap;
  }

  body.app .callcard__wait {
    white-space: nowrap;
  }
}

/* ---------------------------------------------------------------------------------------------------------------------
   12. NA1: the night audit of 10 Nov 2026 (Ram: "UI/UX fixed, more animated, branded, powerful to view … expandable").
   Found by walking every page of every role at a phone's width and a computer's (tests/demo/night-crawl.py) and held by
   the screen rules in tests/demo/na1-screens.py (U1 … U14). Nothing moves a button a person has learnt.
     a  the app feel: pages cross-fade with the frame standing still; the gold bar while a page loads; a pressed
        button shows it is working; folds open and close smoothly
     b  a page's parts slide in once (never again at each 10-second refresh); a count that changed pops
     c  the flaws: words too pale, too small, cut or crossed; thumbs' targets; the cramped button rows
   --------------------------------------------------------------------------------------------------------------------- */

/* ---- 12a. the app feel ---------------------------------------------------------------------------------------- */

/* The gold bar was drawn under the purple top bar (60) since UI-P: nobody saw it. */
.page-progress {
  z-index: 80;
}

/* While the next page loads (src/web/static/app-feel.js sets `is-loading` on a tap that opens a page). */
html.is-loading .page-progress {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  html.is-loading .page-progress::before {
    animation: sl-progress 1.1s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-loading .page-progress::before {
    width: 100%;
    transform: none;
    opacity: 0.85;
  }
}

/* The button that was pressed, while its form is on its way: a quiet ring turning beside its words. */
body .is-busy {
  position: relative;
  pointer-events: none;
  opacity: 0.82;
}

body .is-busy::after {
  content: '';
  flex: none;
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.55em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -0.12em;
}

@media (prefers-reduced-motion: no-preference) {
  body .is-busy::after {
    animation: ui30-spin 0.7s linear infinite;
  }
}

/* One page gives way to the next like the screens of an app: the top bar, the side menu and the phone's tab bar stand
   still, the page between them cross-fades. Browsers without it change pages as before. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  body.app .appbar {
    view-transition-name: slp-appbar;
  }

  body.app .rail {
    view-transition-name: slp-rail;
  }

  body.app .tabbar {
    view-transition-name: slp-tabbar;
  }

  /* The page that leaves fades quickly; the page that comes is there at once and its own parts rise in (section 5),
     so a tap is answered without a second, slower fade on top of the first. */
  ::view-transition-old(root) {
    animation: na1-page-out 0.1s ease-in both;
  }

  ::view-transition-new(root) {
    animation: none;
  }

  ::view-transition-group(slp-appbar),
  ::view-transition-group(slp-rail),
  ::view-transition-group(slp-tabbar) {
    animation-duration: 0.18s;
  }
}

@keyframes na1-page-out {
  to {
    opacity: 0;
  }
}

/* Folds (the "More", "Change", "Not done", "Edit the details" …) open and close smoothly where the browser can size
   to its content; a sheet (a menu over the page) keeps its own rise. */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    body.app {
      interpolate-size: allow-keywords;
    }

    /* Not the folds that float over the page (a sheet, "Call me later", "Not replying…") nor the chat's side column:
       their content is placed by itself and keeps its own way of appearing. */
    body.app .page details:not(.sheet):not(.not-replying):not(.chat-info)::details-content,
    body.app .rail__more::details-content {
      block-size: 0;
      overflow-y: clip;
      transition:
        block-size 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        content-visibility 0.24s allow-discrete;
    }

    /* Once it is open a fold cuts nothing off (18 Nov 2026: the calendar of a date box inside a fold stands under the
       box, outside the fold, and was cut away whole: "Another day" on Book Pickup showed no calendar since these
       lines came). The switch waits for the fold to have grown, so nothing spills while it opens; the way back has no
       wait (the rule above): a closing fold cuts at once. */
    body.app .page details:not(.sheet):not(.not-replying):not(.chat-info)[open]::details-content,
    body.app .rail__more[open]::details-content {
      block-size: auto;
      overflow-y: visible;
      transition:
        block-size 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        content-visibility 0.24s allow-discrete,
        overflow-y 0s 0.24s allow-discrete;
    }
  }
}

/* A fold's arrow turns as it opens (the summaries that carry the shared chevron). */
@media (prefers-reduced-motion: no-preference) {
  body.app .page details > summary .ui-icon--chevron,
  body.app .page details > summary .fold__chevron {
    transition: transform 0.2s ease;
  }
}

/* ---- 12b. entrances once; a changed count pops ------------------------------------------------------------------ */

/* From the page's first own refresh on (`is-live`, app-feel.js): a part the refresh puts back does not play its entrance
   again. The same parts as the entrance rules of app.css (PART 1d, PART 5, the pickups) and of section 5 above. */
html.is-live body.app .band,
html.is-live body.app .page > *,
html.is-live .page > :not(.auth):not(.desk),
html.is-live .desk > *,
html.is-live .tiles > li,
html.is-live .list > .row,
html.is-live .stats .stat,
html.is-live .rate-cards > li,
html.is-live .carrier-grid > .card,
html.is-live .rates-grid > .card,
html.is-live .pk-request,
html.is-live .pk-card,
html.is-live .pk-my,
html.is-live .convo__unread,
html.is-live .topbar-alerts__count,
html.is-live .nav-badge {
  animation: none;
}

/* A count that changed at a refresh, and only then. */
@media (prefers-reduced-motion: no-preference) {
  html.is-live .is-changed.is-changed {
    animation: na1-count-pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

@keyframes na1-count-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.28);
  }
  100% {
    transform: scale(1);
  }
}

/* ---- 12c. the flaws ---------------------------------------------------------------------------------------------- */

/* U6: the quiet grey was 3.65 to 1 on the page and 4.03 on white (the footer, a chat's number, the Telugu summary, the
   menu's group names, "Sorting is off": 2,558 places on the owner's pages). 5.07 and 5.6 now; still the quietest ink. */
:root {
  --uip-faint: #736180;
}

/* U13: a slot that cannot be chosen took that grey as its BACKGROUND (it was written for a pale tint): dark words on a
   mid grey. A pale, dashed chip. */
body.app .fb-chip--off label {
  background: #f4f1f6;
  color: #5b4a66;
}

/* U1: a phone's header draws the flight line in its top-right corner, behind the words; a name chip there (the
   partner's firm, "Welcome, …") was crossed by it. Such a header goes without the line on a phone. */
@media (max-width: 767.98px) {
  body.app .band__inner:has(.band__eyebrow) .band__route {
    display: none;
  }
}

/* U2: the slot pill's clock stood against the time ("◷4–6 PM"). */
body.app .pk-my__slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* U3: on a phone "Ask the office to call" took three lines beside "Open in Maps": one under the other, one line each. */
@media (max-width: 479.98px) {
  body.app .pk-my__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* U4: Today's date line on a phone is the short one ("Tue, 10 Nov · Good night, Ramesh"), whole, in place of the long
   one cut at "Good night, R…". */
body.app .today-hero__date-short {
  display: none;
}

@media (max-width: 599px) {
  body.app .today-hero__date-long {
    display: none;
  }

  body.app .today-hero__date-short {
    display: inline;
  }
}

/* U5: "Today so far: …" is a link, said by a thin gold line, not three lines of heavy white underline. */
body.app .today-hero__verdict {
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255, 213, 79, 0.8);
  text-underline-offset: 4px;
}

body.app .today-hero__verdict:hover,
body.app .today-hero__verdict:focus-visible {
  text-decoration-color: #ffd54f;
  text-decoration-thickness: 2px;
}

/* U7: nothing a person reads is under 12 px (the tab bar's names were 11.5, tags 11.8, a call card's small capitals
   10.2). Each selector below is the very one whose rule set the part smaller (app.css, m2b.css, pickup-address.css and
   this file), no stronger: a part that another rule makes larger ("3 will go" on a bulk sheet, a label's own page) keeps
   its size. The logo's own small line ("International couriers") is the logo, not words of a page. */
.tabbar__item,
.tabbar__badge,
.topbar-alerts__count,
.rail__tag,
.tag,
.pk-table thead th,
.tile__extra,
.fact-list dt,
.mini-stats dt,
.side-stats__item dt,
.pk-stat dt,
.convo__toggle-button,
.convo__summary-time,
.chat-summary__label,
.chat-summary__time,
.bubble__meta,
.today-item__time small,
.subhead-line,
.work-tile__soon,
.pk-slot__note,
.pk-chip-link__day,
.nt-code,
.nt-template__code,
.triage-strip__priority,
.section-control__item--other .section-control__count,
.pu1-address__flags,
.pu1-chip,
body.app .rail .nav-badge,
body.app .rail__group-label,
body.app .table th,
body.app .today .tile__head,
body.app .callcard__fact dt,
body.app .inbox .convo__toggle-text {
  font-size: max(0.75rem, 12px);
}

/* The tab bar's names at 12 px stay one line each ("Find a country" in bold, the tab one is on, wrapped and pushed its
   icon out of the bar): never wrapped, a hair tighter, and a long name may reach a few pixels past its quarter. */
body.app .tabbar__label {
  white-space: nowrap;
  letter-spacing: -0.015em;
}

/* U8: Find a country: each letter and each country is a thumb's size. */
body.app .az-letters a {
  min-width: 44px;
  min-height: 44px;
}

body.app .az-list a {
  min-height: 44px;
}

/* U10: Business: a tile's number stays one line; what it counts ("enquiries") sits beside it in small words. */
body.app .db1-tile__value {
  white-space: nowrap;
}

body.app .db1-tile__unit {
  align-self: baseline;
  color: var(--uip-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

/* U12: "What happened?" was four buttons a row wherever the screen was wide, also in the chat's narrow side column
   (66 px each: "Not interested" ran into "Wrong number"). The row now follows its own width: four where they fit at
   128 px or more, else two. */
@media (min-width: 768px) {
  body.app .outcome-buttons {
    grid-template-columns: repeat(auto-fit, minmax(max(128px, calc((100% - 24px) / 4)), 1fr));
  }
}

body.app .outcome-button {
  overflow-wrap: anywhere;
}

/* U14: thumbs. On a touch screen every button, fold and next-step link of the daily pages is 44 px tall or more (a
   chat card's label button was 34, "Mark as unread" 38, its next step 40, the chat's small buttons 34, "Open chat" 26).
   Each rule is as strong as the rule that made the part small. A label or a toggle keeps its look: the part around it
   grows, the pill inside stays. */
@media (pointer: coarse), (max-width: 767.98px) {
  body.app .inbox .convo__foot .label-menu__button,
  body.app .inbox .convo__toggle-button,
  body.app .inbox .convo__next,
  body.app .inbox .convo__next.convo__action,
  body.app .callcard__full > summary.callcard__more,
  body.app .page .callcard__more,
  body.app .page .chip-button,
  body.app .page summary.chip-button,
  body.app .page .smart-groups__item,
  body.app .page .fb-part,
  body.app .page .fb-pin,
  body.app .page .ready__more-toggle,
  body.app .page .button.small,
  body.app .page button.small,
  body.app .page summary.button.small,
  body.app .page .triage-strip .button,
  body.app .page .triage-strip summary,
  body.app .page .fb-details > summary,
  body.app .page .fb-other-day > summary,
  body.app .page .fb-what > summary,
  body.app .page .fb-more > summary,
  body.app .page .fb-help > summary,
  body.app .page details.confirm > summary,
  body.app .page details.more > summary,
  body.app .page details.pk-fold > summary,
  body.app .page details:not([class]) > summary {
    min-height: 44px;
  }

  body.app .inbox .convo__foot .label-menu__button,
  body.app .inbox .convo__toggle-button,
  body.app .page .smart-groups__item,
  body.app .page .fb-part,
  body.app .page .ready__more-toggle,
  body.app .page details:not([class]) > summary {
    display: inline-flex;
    align-items: center;
  }

  body.app .page .fb-who__chat,
  body.app .page .today-signin a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* The booking form's pin code box (36) and the rate cards' "Change for this customer" (40). */
  body.app .fb-pin-box input.fb-pin,
  body.app .page .cards-adjust > summary {
    min-height: 44px;
  }
}

/* ============================================================================================================
   13. NA1, the second batch (10 Nov 2026, docs/NA1-NIGHT-AUDIT-CONTRACT.md §6): what the owner's remaining pages
       showed on a phone. Each rule is as heavy as the one it answers, so nothing else changes size.
   ============================================================================================================ */

/* U20: an alert on a phone. The one-column rule of app.css left "Mark read" in a second column (its `grid-column: 2`
   made one), so the alert's words had half the card: six lines for one sentence. Under 720 px the words take the
   card's width and the button stands under them. */
@media (max-width: 719.98px) {
  .alert-item__read,
  .alert-item__done {
    grid-column: 1;
    justify-self: start;
    margin: 6px 0 0;
  }
}

/* U21: the alert's time and its links are two parts with a drawn gap: no typed dot is left at a line's end. */
.alert-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
}

.alert-item__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

/* U22: a phone's page header. The flight line sat at the height of the title's letters, so a long title ran into
   it ("Tracking messages", "Tracking sheets"). It flies along the header's top edge, above every title. */
@media (max-width: 767.98px) {
  .band:not(.band--home) .band__route {
    top: -7px;
  }
}

/* U23: today's leads. A name is never cut: the number's last digits are how the office tells two customers apart. */
.today-lead .today-item__name {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

/* U24: the words that explain a page, under its header (the lead replies page). */
body.app .page .page-note {
  max-width: 68ch;
  margin: 0 0 18px;
  color: var(--uip-muted);
  line-height: 1.6;
}

/* U25: a plain file field wears the site's look: a dashed box and the purple button, like the drop zones beside it
   (it was the browser's own grey button). The drop zones' hidden fields and the pickup person's camera fields
   (hidden on purpose, behind their own buttons) are left alone. */
body.app .page input[type="file"]:not(.dropzone__input):not(.sr-only) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  margin: 4px 0 12px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--uip-muted);
  background: var(--uip-soft);
  border: 1.5px dashed #c3a9d9;
  border-radius: 14px;
}

body.app .page input[type="file"]:not(.dropzone__input):not(.sr-only)::file-selector-button {
  margin: 0 12px 0 0;
  padding: 9px 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--uip-royal);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

body.app .page input[type="file"]:not(.dropzone__input):not(.sr-only):focus-visible {
  outline: none;
  border-color: var(--uip-violet);
  box-shadow: var(--uip-ring);
}

/* U26: the calendar button stands level with its date field (a form's own space above its buttons pushed it down
   and made the field taller than every other field). */
body.app .site-date > .site-date__open {
  align-self: stretch;
  margin: 0;
}

/* U27: the pickup pages' tab strip leaves room for the chosen tab's shadow (the strip cut it into a grey box). */
.pk-tabs {
  margin: -10px -8px 0;
  padding: 12px 8px 20px;
}

/* U28: a page's own links to its sister pages, as one row of pills (the AI's page). */
body.app .page .page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 18px;
}

body.app .page .page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 600;
  color: var(--uip-royal);
  text-decoration: none;
  background: var(--uip-surface);
  border: 1px solid var(--uip-line-strong);
  border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.app .page .page-links a:hover,
body.app .page .page-links a:focus-visible {
  background: var(--uip-tint);
  border-color: var(--uip-violet);
  box-shadow: var(--uip-shadow);
}

/* U29: "Automatic reply review" asks for its two days side by side, with the site's own date fields. */
body.app .page .teach-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 16px;
}

body.app .page .teach-range label {
  flex: 0 1 15rem;
  margin: 0;
}

body.app .page .teach-range button {
  margin: 0;
}

/* The new row of links and the phone's tab bar answer the thumb as every button already does (a pressed one sinks a
   little). Never for a person whose phone asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  body.app .page .page-links a {
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s;
  }

  body.app .page .page-links a:active,
  body.app .tabbar__item:active {
    transform: scale(0.97);
  }
}

/* Mobile Safari prevents auto-zoom only when form controls are >= 16px. */
@media (max-width: 768px) {
  body.app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
  body.app select,
  body.app textarea {
    font-size: 16px;
  }
}

/* Lane 3 (Ram, 22 Nov 2026; 0108): "Turn off notifications for this alert": a calm card, six big chips for one thumb. */
.alert-quiet {
  max-width: 30rem;
  margin: 0 auto;
  padding: 22px 20px;
  border-top: 4px solid #ffd54f;
}
.alert-quiet__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: #6a0099;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.alert-quiet__bell {
  width: 18px;
  height: 18px;
  color: #6a0099;
}
.alert-quiet__title {
  margin: 0 0 8px;
  color: #4a0072;
  font-size: 1.35rem;
}
.alert-quiet__lede,
.alert-quiet__hint,
.alert-quiet__change {
  margin: 0 0 14px;
  color: #4b4458;
}
.alert-quiet__done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3e9fa;
  color: #4a0072;
  font-weight: 600;
}
.alert-quiet__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.alert-quiet__chip {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d9c6ea;
  border-radius: 12px;
  background: #fff;
  color: #4a0072;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.alert-quiet__chip:hover,
.alert-quiet__chip:focus-visible {
  border-color: #6a0099;
  background: #f7f0fc;
}
.alert-quiet__chip--snooze_6h {
  grid-column: 1 / -1;
  border-color: #ffd54f;
  background: linear-gradient(90deg, #fff8dc, #fffdf3);
}
.alert-quiet__chip.is-current {
  border-color: #4a0072;
  background: #4a0072;
  color: #ffd54f;
}
.alert-quiet__note {
  display: grid;
  gap: 6px;
  color: #4b4458;
  font-size: 0.9rem;
}
.alert-quiet-list__items {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.alert-quiet-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}
.alert-quiet-list__item.is-muted .alert-quiet-list__what {
  color: #8a8296;
}
.alert-quiet-list__link.is-muted {
  color: #6a0099;
  font-size: 0.85rem;
}

/* Lane 3 (Ram, 22 Nov 2026, the live screenshot of /tracking): Track Shipment in SLP purple and gold. */
/* The heading and the parcel a redirect lands on (#parcels) clear the sticky top bar instead of hiding under it. */
#parcels,
.info-card--parcels,
.parcel {
  scroll-margin-top: 96px;
}
.info-card--parcels-page .parcel-form--top {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #e6d7f2;
  border-radius: 14px;
  background: #faf6fd;
}
.parcel-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(110deg, #4a0072 0%, #6a0099 62%, #9821c8 100%);
  color: #fff;
}
.parcel-route__place {
  font-weight: 700;
  font-size: 1.05rem;
}
.parcel-route__plane {
  color: #ffd54f;
  font-size: 1.1rem;
}
.parcel-route__meta {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 213, 79, 0.18);
  color: #ffd54f;
  font-size: 0.85rem;
  font-weight: 600;
}
.parcel-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin: 0 6px 6px 0;
  padding: 4px 12px;
  border: 1px solid #d9c6ea;
  border-radius: 999px;
  background: #fff;
  color: #4a0072;
  font: inherit;
  cursor: pointer;
}
.parcel-chip--plain {
  cursor: default;
}
.parcel-chip__label {
  color: #6a0099;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.parcel-chip:hover,
.parcel-chip:focus-visible {
  border-color: #6a0099;
}
[data-copy].is-copied::after {
  content: attr(data-copied);
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 6px;
  background: #4a0072;
  color: #ffd54f;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
}
.parcel-actions [data-copy] {
  position: relative;
}
.copy-buffer {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
}
.parcel-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: 6px 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.parcel-steps__step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  color: #8a8296;
  font-size: 0.72rem;
  line-height: 1.2;
}
.parcel-steps__step::before {
  content: '';
  position: absolute;
  top: 7px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: #e6d7f2;
  z-index: 0;
}
.parcel-steps__step:first-child::before {
  display: none;
}
.parcel-steps__dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 3px solid #e6d7f2;
  border-radius: 50%;
  background: #fff;
}
.parcel-steps__step--done {
  color: #4a0072;
}
.parcel-steps__step--done::before,
.parcel-steps__step--now::before {
  background: #6a0099;
}
.parcel-steps__step--done .parcel-steps__dot {
  border-color: #6a0099;
  background: #6a0099;
}
.parcel-steps__step--now {
  color: #4a0072;
  font-weight: 700;
}
.parcel-steps__step--now .parcel-steps__dot {
  border-color: #ffd54f;
  background: #4a0072;
  box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.45);
}
.parcel-steps--alert .parcel-steps__step--now .parcel-steps__dot {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.25);
}
.parcel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.parcel-actions__send {
  background: #4a0072;
  border-color: #4a0072;
  color: #fff;
}
.parcel-actions__review {
  background: #ffd54f;
  border-color: #e9b800;
  color: #4a0072;
  font-weight: 700;
}
.parcel-timeline {
  margin: 8px 0 10px;
}
.parcel-timeline__title {
  margin: 0 0 2px;
  color: #4a0072;
  font-size: 0.95rem;
}
.parcel-timeline__list {
  position: relative;
  max-height: 22rem;
  overflow-y: auto;
  margin: 6px 0 0;
  padding: 0 0 0 4px;
  list-style: none;
}
.parcel-timeline__item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 12px 0;
}
.parcel-timeline__item::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 5px;
  width: 2px;
  background: #e6d7f2;
}
.parcel-timeline__item:last-child::before {
  display: none;
}
.parcel-timeline__dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: #d9c6ea;
}
.parcel-timeline__item--latest .parcel-timeline__dot {
  background: #6a0099;
  box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.5);
}
.parcel-timeline__body {
  display: grid;
  gap: 2px;
}
.parcel-timeline__body .parcel-scans__when {
  color: #8a8296;
  font-size: 0.8rem;
}
@media (max-width: 560px) {
  .parcel-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 12px;
  }
  .parcel-steps__step:nth-child(4)::before {
    display: none;
  }
  .parcel-route__meta {
    margin-left: 0;
  }
}

/* ==========================================================================
   13. WAVE B LANE 1 (Ram, 23 Nov 2026; run_20261123T052118Z_38cc74d4): the shared parts, the same on every page.
   Ram and Papa met the same small faults on many pages: a fold that cut off its own Save button, a heading lost on its
   dark header, a link box drawn unlike the boxes beside it, a status pill broken over two lines, phone buttons too
   small and the last button hidden under the bottom tabs. And the customer's own pages (the ID upload and the address
   form) must look like SLP Express, as the Rates QR page does. Plain CSS, after sections 1 to 12.
   ========================================================================== */

/* ---- 13a. a fold that has opened cuts nothing off ------------------------------------------------------------------ */
/* Section 12a grows a fold smoothly and lets its content out once it has grown. app-feel.js (section 11) marks a fold
   `is-open-settled` once it has opened (and every fold that was open when the page came): from then on nothing in it
   is ever clipped, whatever the browser did with the growing (the Autopilot settings' Save button stood cut off). */
@supports (interpolate-size: allow-keywords) {
  body.app .page details:not(.sheet):not(.not-replying):not(.chat-info).is-open-settled[open]::details-content {
    block-size: auto;
    overflow-y: visible;
    content-visibility: visible;
    transition: none;
  }
}

body.app .page details.setting-fold[open] {
  overflow: visible;
}

/* ---- 13b. a heading always stands out from its header ---------------------------------------------------------- */
/* A dark header (night, plum, the parcel's route, a customer page's header) has white headings and light lines; a
   light header keeps its own plum heading (app.css .card-head__title). */
:is(.band--night, .slab--dark, .card-head--dark, .parcel-route, .kyc-hero, .fd-hero, [data-tone='dark']) :is(h1, h2, h3, h4, .card-head__title, .band__title) {
  color: #ffffff;
}

:is(.band--night, .slab--dark, .card-head--dark, [data-tone='dark']) :is(p, .card-head__note, .band__lede) {
  color: #f1e4fb;
}

/* ---- 13c. a fold's plain title shows a turning arrow ------------------------------------------------------------- */
/* Only the plain titles (a <summary> with no class and no arrow of its own): every designed one keeps its own look. The
   browser's small triangle becomes a chevron like the menu's, turning as the fold opens. */
body.app .page details:not(.sheet):not(.not-replying):not(.chat-info) > summary:not([class]):not(:has(svg, .fold__chevron)) {
  position: relative;
  padding-right: 28px;
  list-style: none;
  cursor: pointer;
}

body.app .page details:not(.sheet):not(.not-replying):not(.chat-info) > summary:not([class]):not(:has(svg, .fold__chevron))::-webkit-details-marker {
  display: none;
}

body.app .page details:not(.sheet):not(.not-replying):not(.chat-info) > summary:not([class]):not(:has(svg, .fold__chevron))::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.7;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin-top 0.2s ease;
}

body.app .page details[open]:not(.sheet):not(.not-replying):not(.chat-info) > summary:not([class]):not(:has(svg, .fold__chevron))::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

/* ---- 13d. a status pill stays on one line --------------------------------------------------------------------------- */
:is(.pill, .badge) {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- 13e. a phone: thumb-sized controls, and the last button clear of the bottom tabs ------------------------------- */
@media (max-width: 500px) {
  body.app .page :is(button:not(.link), .button, a.button, select, input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='range']):not([type='file'])) {
    min-height: 40px;
  }

  body.app:not(.page-chat) .frame {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---- 13f. the customer's own pages: the ID upload (/k/<token>) and the address form (/a/<token>) -------------------- */
/* The website's plum at the top fades into the page instead of stopping on a hard line. */
body.page-kyc-upload,
body.page-address-form {
  color: var(--text, #3d2a4a);
  background: linear-gradient(180deg, #2a0040 0, #3d0060 150px, #5a0a85 230px, #efe4f7 330px, #f6f0fa 420px, #f6f0fa 100%);
  background-color: #f6f0fa;
}

body.page-kyc-upload .auth-page,
body.page-address-form .auth-page {
  padding-top: max(12px, env(safe-area-inset-top, 0px));
}

/* The brand in a customer page's header: the logo in its gold-ringed tile and the two-line wordmark. */
.brand--public,
.brand--public:hover {
  color: #ffffff;
  text-decoration: none;
}

.brand--public .brand__name {
  color: #ffffff;
}

.brand--public .brand__sub {
  color: #ffd54f;
}

.brand--public .logo-tile {
  width: 44px;
  height: 44px;
}

.fd-hero__brand--logo {
  margin: 0 0 0.85rem;
}

/* The address box writes its example in the page's own letters, not a typewriter's. */
.page-address-form .fd-form textarea,
.page-address-form .fd-form textarea::placeholder {
  font-family: inherit;
}

.page-address-form .fd-form textarea::placeholder {
  color: #8a7a98;
}

/* The ID upload page: one branded card, the header flush with the words under it. */
body.page-kyc-upload .kyc-public {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 2rem;
}

body.page-kyc-upload .kyc-card {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  color: var(--text, #3d2a4a);
  background: #ffffff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(42, 0, 64, 0.28);
}

body.page-kyc-upload .kyc-hero {
  padding: 1.1rem 1.25rem 1.15rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 213, 79, 0.28) 0, rgba(255, 213, 79, 0) 38%),
    linear-gradient(135deg, #2a0040 0%, #4a0072 58%, #6a0099 100%);
  border-bottom: 4px solid #ffd54f;
}

body.page-kyc-upload .kyc-hero__brand {
  margin: 0 0 0.85rem;
}

body.page-kyc-upload .kyc-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.2;
}

body.page-kyc-upload .kyc-hero__lede {
  margin: 0.4rem 0 0;
  color: #f1e4fb;
  font-size: 0.95rem;
}

body.page-kyc-upload .kyc-body {
  padding: 1rem 1.25rem 1.25rem;
}

body.page-kyc-upload .kyc-body > :first-child {
  margin-top: 0;
}

body.page-kyc-upload .kyc-state-text {
  margin: 0.25rem 0 0.5rem;
  font-size: 1rem;
}

body.page-kyc-upload .kyc-step {
  margin: 0 0 0.5rem;
  padding: 0;
  color: #2a0040;
  font-weight: 700;
}

/* The document types: tiles to tap, the chosen one ringed in gold. */
body.page-kyc-upload .kyc-types__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.page-kyc-upload .kyc-type {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 10px 12px;
  color: #2a0040;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  background: #ffffff;
  border: 1.5px solid #e2d3ee;
  border-radius: 14px;
  transition: border-color 0.13s ease, background-color 0.13s ease, box-shadow 0.2s ease;
}

body.page-kyc-upload .kyc-type input {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: #4a0072;
}

body.page-kyc-upload .kyc-type:hover {
  background: #faf6fd;
  border-color: #c9a3e3;
}

body.page-kyc-upload .kyc-type:has(input:checked) {
  background: #f6effb;
  border-color: #4a0072;
  box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.6);
}

body.page-kyc-upload .kyc-type:has(input:focus-visible) {
  outline: 3px solid #9821c8;
  outline-offset: 2px;
}

/* The masked Aadhaar tip: in plain sight, right above the files. */
body.page-kyc-upload .kyc-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  color: #4a2a00;
  font-size: 0.95rem;
  font-weight: 600;
  background: #fff8dc;
  border: 1px solid #ffd54f;
  border-left: 4px solid #d4af37;
  border-radius: 12px;
}

body.page-kyc-upload .kyc-tip__icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #a17800;
}

/* Each file: a card to tap, or to drop a file on. Without JavaScript the file box shows as it is, inside the card. */
body.page-kyc-upload .kyc-drop {
  position: relative;
  margin-top: 12px;
  padding: 14px;
  background: #faf6fd;
  border: 2px dashed #c9a3e3;
  border-radius: 16px;
  transition: border-color 0.13s ease, background-color 0.13s ease;
}

body.page-kyc-upload .kyc-drop:hover,
body.page-kyc-upload .kyc-drop:focus-within,
body.page-kyc-upload .kyc-drop.is-dragover {
  background: #f3e9f9;
  border-color: #4a0072;
}

body.page-kyc-upload .kyc-drop.has-file {
  background: #f1faf3;
  border-style: solid;
  border-color: #1b6b35;
}

body.page-kyc-upload .kyc-drop__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #2a0040;
  cursor: pointer;
}

body.page-kyc-upload .kyc-drop__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffd54f;
  background: linear-gradient(135deg, #4a0072 0%, #6a0099 100%);
  border-radius: 12px;
}

body.page-kyc-upload .kyc-drop__svg {
  width: 22px;
  height: 22px;
}

body.page-kyc-upload .kyc-drop__words {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.page-kyc-upload .kyc-drop__title {
  font-weight: 700;
}

body.page-kyc-upload .kyc-drop__hint {
  color: #5b4a66;
  font-size: 0.86rem;
  font-weight: 500;
}

body.page-kyc-upload .kyc-drop__file {
  color: #1b6b35;
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.page-kyc-upload .kyc-drop__file:empty {
  display: none;
}

body.page-kyc-upload .kyc-drop__input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 10px 0 0;
  padding: 0;
  color: #3d2a4a;
  font-size: 16px;
  background: transparent;
  border: 0;
}

body.page-kyc-upload .kyc-drop__input::file-selector-button {
  min-height: 40px;
  margin-right: 10px;
  padding: 0 14px;
  color: #4a0072;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
  border: 1.5px solid #4a0072;
  border-radius: 10px;
}

/* With app-feel.js (section 12): the whole card takes the tap and the drop; the chosen file's name shows in it. */
body.page-kyc-upload .kyc-drop.is-enhanced .kyc-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

body.page-kyc-upload .kyc-files-tip {
  margin: 10px 0 0;
}

/* One full-width gold button. */
body.page-kyc-upload .kyc-send {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  color: #2a0040;
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe07a 0%, #ffd54f 100%);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(255, 179, 0, 0.32);
}

body.page-kyc-upload .kyc-send:hover {
  background: linear-gradient(180deg, #ffe58f 0%, #ffcf33 100%);
}

body.page-kyc-upload .kyc-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.page-kyc-upload .kyc-privacy__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #4a0072;
}

@media (max-width: 359.98px) {
  body.page-kyc-upload .kyc-types__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The footer of a customer's page: SLP Express's own line, centred on the plum. */
.foot--public {
  text-align: center;
  background: #2a0040;
  border-top-color: #ffd54f;
}

.foot--public .foot__brand {
  color: #efe3f7;
}
