/* Control Room — the simple mode: roomier and quieter. Everything here hangs on  body.ux  (the simple mode) and, for the width limit,  body.ux-main  (a screen of the five menu items), so the
   advanced mode and the screens reached by a link (the CRM tables, the pipeline board ...) keep the width they need. Loaded after app.css and the other screen files. */

/* ------------------------------------------------------------------ the switch, the note on an advanced screen */
.ux-mode { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 18px; padding: 20px 22px; background: var(--surface); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); }
.ux-mode-t { min-width: 0; }
.ux-mode-t b { display: block; font-size: 17px; }
.ux-mode-t small { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.ux-quick { margin-top: 10px; }
.advbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 auto; max-width: 1560px; padding: 12px 40px; background: var(--amber-soft); color: var(--amber-ink); font-size: 15px; box-shadow: inset 0 -1px 0 var(--amber-edge); }
.advbar > span { flex: 1 1 260px; min-width: 0; line-height: 1.4; }
.advbar .btn { flex: none; }
@media (max-width: 899px) { .advbar { padding: 12px 16px; } }

/* ------------------------------------------------------------------ the menu */
body.ux .sb-head .conn, body.ux .sb-nav kbd, body.ux .sb-foot .btn kbd, body.ux .sb-foot [data-act="new-task"], body.ux .sb-foot .hint, body.ux .sb-group:not(.sb-cl-group), body.ux .sb-agents { display: none; }
body.ux .sb-nav { gap: 4px; }
body.ux .sb-foot .btn { white-space: nowrap; }
body.ux .sb-nav a { min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 16.5px; }
body.ux .sb-nav a.sb-sub { min-height: 42px; margin-left: 22px; font-size: 15px; }
body.ux .sb-head b { font-size: 18px; }
.sb-adv-h { margin-top: 22px; }
.sb-adv-sub { color: var(--cobalt-ink); }
@media (min-width: 900px) { body.ux .shell { grid-template-columns: 280px 1fr; } body.ux .sidebar { padding-top: 24px; } }
body.ux .tabbar a { font-size: 12px; }

/* ------------------------------------------------------------------ roomy pages: bigger text, more air, a column no wider than 860 px in the middle */
body.ux { font-size: 17px; line-height: 1.6; }
@media (min-width: 900px) { body.ux { font-size: 17.5px; } body.ux-main .view { max-width: 860px; padding: 52px 32px 72px; } }
@media (max-width: 899px) { body.ux-main .view { padding-top: 22px; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 32px); } }
body.ux-main .large-title { font-size: 36px; line-height: 1.12; margin: 0 0 10px; }
body.ux-main .lede { font-size: 18px; line-height: 1.55; margin: 0 0 26px; max-width: 58ch; }
body.ux-main .sec-h { margin: 48px 2px 14px; }
body.ux-main .sec-h h2 { font-size: 22px; }
body.ux-main .group { border-radius: 18px; }
body.ux-main .group + .group { margin-top: 18px; }
body.ux-main .row { min-height: 68px; padding: 14px 20px; gap: 16px; }
body.ux-main .row + .row::before { left: 74px; }
body.ux-main .row .t { font-size: 17.5px; }
body.ux-main .row .s { font-size: 15.5px; line-height: 1.45; }
body.ux-main .row .s.one { -webkit-line-clamp: 2; }
body.ux-main .btn { min-height: 50px; padding: 0 24px; font-size: 16.5px; }
body.ux-main .btn.sm { min-height: 42px; padding: 0 18px; font-size: 15.5px; }
body.ux-main .btn.plain { padding: 0 12px; }
body.ux-main .chip { min-height: 42px; padding: 0 18px; font-size: 15.5px; border-radius: 21px; }
body.ux-main .seg button, body.ux-main .seg a { min-height: 44px; font-size: 16px; }
body.ux-main .empty-note { padding: 26px 24px; font-size: 16.5px; line-height: 1.55; border-radius: 18px; gap: 16px; }
body.ux-main .empty-note b { font-size: 18px; margin-bottom: 4px; }
body.ux-main .actions { gap: 14px; }
body.ux-main .foot { font-size: 14.5px; }
.ux-page .seg, .ux-seg { margin: 0 0 24px; }
body.ux[data-ux-view="inbox"] #view .chips { display: none; }
body.ux[data-ux-view="inbox"] #needs + .chips + .inbox, body.ux[data-ux-view="inbox"] .inbox { margin-top: 28px; }
.ux-fold { margin: 22px 0 0; background: var(--surface); border-radius: 18px; }
.ux-fold > summary { display: flex; align-items: center; min-height: 60px; padding: 0 22px; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.ux-fold > summary::-webkit-details-marker { display: none; }
.ux-fold > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.ux-fold[open] > summary::after { transform: rotate(-135deg); }
.ux-fold .seg { margin: 0 18px 18px; }

/* ------------------------------------------------------------------ Today: the card is the task; one button; one line of status */
body.ux .today { grid-template-columns: minmax(0, 1fr); }
body.ux .today .col-b, body.ux .today #working, body.ux .today-top #t-conn, body.ux #t-stats, body.ux #t-spend, body.ux #s4-today, body.ux .sx-camp-ladder, body.ux .caught-up .nums, body.ux .stack .peek { display: none; }
body.ux .today .col-a { display: flex; flex-direction: column; }
body.ux .today .hero { order: 0; padding-top: 0; }
body.ux .today #needs { order: 1; }
body.ux .today #crm-due { order: 2; }
body.ux .today #pal-top { order: 3; }
body.ux .today #working { order: 4; }
body.ux .today-top { min-height: 28px; margin-bottom: 4px; }
body.ux .today-top .date { margin: 0; font-size: 16px; color: var(--ink-3); }
body.ux .status-line { font-size: 42px; max-width: none; margin: 6px 0 20px; line-height: 1.1; }
@media (max-width: 899px) { body.ux .status-line { font-size: 32px; } }
body.ux .hero-actions { margin: 0 0 8px; }
body.ux .hero-actions .btn { min-height: 54px; padding: 0 30px; font-size: 18px; white-space: normal; }
body.ux .ux-status { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin-top: 6px; font-size: 16px; color: var(--ink-2); }
body.ux .ux-status .sig.dot-only { flex: none; margin-top: 10px; }
body.ux .queue-h { margin: 34px 2px 14px; }
body.ux .queue-h h2 { font-size: 22px; }
body.ux .qcard { border-radius: 22px; }
body.ux .qcard .q-who { padding: 18px 24px 0; font-size: 15px; }
body.ux .qcard .q-to { padding: 16px 24px 14px; }
body.ux .qcard .q-to .name { font-size: 22px; }
body.ux .qcard .q-to .sub { font-size: 15.5px; }
body.ux .qcard .q-kind { padding: 0 24px 12px; font-size: 14.5px; }
body.ux .qcard .letter { margin: 0 16px; padding: 20px 20px 18px; font-size: 17.5px; line-height: 1.6; }
body.ux .qcard .q-act { gap: 10px; padding: 18px 16px 16px; }
body.ux .qcard .q-act .btn { min-height: 54px; font-size: 17px; padding: 0 10px; }
body.ux .qcard .q-foot { padding: 0 24px 18px; font-size: 14.5px; }
body.ux .qcard .q-foot .keys { display: none; }
body.ux .caught-up { padding: 30px 26px; border-radius: 22px; gap: 18px; }
body.ux .caught-up h3 { font-size: 22px; }
body.ux .caught-up p { font-size: 17px; line-height: 1.55; }
body.ux #crm-due .sec-h, body.ux #pal-top .sec-h { margin: 44px 2px 14px; }
body.ux #crm-due .sec-h h2, body.ux #pal-top .sec-h h2 { font-size: 20px; }
body.ux .ux-upnext { margin-top: 26px; }
body.ux .ux-upnext > summary { display: flex; align-items: center; min-height: 52px; padding: 0 4px; cursor: pointer; font-weight: 600; font-size: 16.5px; color: var(--cobalt-ink); list-style: none; }
body.ux .ux-upnext > summary::-webkit-details-marker { display: none; }
body.ux .ux-upnext > summary::before { content: ""; width: 8px; height: 8px; margin-right: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
body.ux .ux-upnext[open] > summary::before { transform: rotate(45deg); }
body.ux .ux-upnext .upnext { margin-top: 6px; }
body.ux .sa-start { margin-bottom: 26px; }
body.ux .sa-start .row .btn { min-width: 0; white-space: normal; }

/* ------------------------------------------------------------------ People */
.ux-find { position: relative; margin: 0 0 16px; }
.ux-find .inp { width: 100%; min-height: 54px; padding: 0 20px 0 52px; font-size: 17px; border-radius: 16px; }
.ux-find-i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); display: grid; pointer-events: none; }
.ux-people { background: var(--surface); border-radius: 18px; overflow: hidden; }
.ux-person { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 20px; min-height: 76px; }
.ux-person + .ux-person::before { content: ""; position: absolute; top: 0; right: 0; left: 76px; border-top: 1px solid var(--line); }
.ux-person:hover { background: var(--surface-2); }
.ux-person-b { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; align-content: center; }
.ux-person-b b { font-size: 17.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.ux-person-b > span { font-size: 15.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ux-wait { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }
.ux-person-s { flex: 0 0 240px; min-width: 0; display: grid; gap: 3px; justify-items: start; align-content: center; }
.ux-stage { font-size: 15px; font-weight: 600; color: var(--ink); }
.ux-person-s small { font-size: 13.5px; color: var(--ink-3); line-height: 1.35; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.ux-ladder { display: inline-flex; gap: 5px; align-items: center; }
.ux-ladder i { width: 18px; height: 6px; border-radius: 3px; background: var(--sunk); }
.ux-ladder i.on { background: var(--cobalt); opacity: .45; }
.ux-ladder i.cur { background: var(--cobalt); opacity: 1; }
@media (max-width: 640px) {
  .ux-person { flex-wrap: wrap; align-content: center; gap: 8px 14px; padding: 16px; }
  .ux-person-b { flex: 1 1 calc(100% - 64px); }
  .ux-person-s { flex: 1 1 100%; padding-left: 62px; }
  .ux-person + .ux-person::before { left: 16px; }
}
.ux-more { display: flex; justify-content: center; margin: 22px 0 0; }
.ux-empty { padding: 30px 24px; text-align: center; background: var(--surface); border-radius: 18px; color: var(--ink-2); }
.ux-empty b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.ux-empty p { margin: 0 auto 18px; max-width: 42ch; font-size: 16.5px; line-height: 1.55; }
.ux-empty.big { padding: 56px 28px; }
.ux-empty.big svg.i { width: 40px; height: 40px; color: var(--cobalt); margin-bottom: 12px; }

/* ------------------------------------------------------------------ Search: the Prepare screen as a path (one next step, the steps, nothing about costs) */
body.ux .pr-pipe, body.ux .pr-tiles, body.ux .pr-tiles + .foot { display: none; }
body.ux .pr-title { margin-bottom: 6px; }
body.ux .pr-next { padding: 26px 26px 24px; border-radius: 20px; }
body.ux .pr-next h2 { font-size: 26px; line-height: 1.2; margin: 6px 0 8px; }
body.ux .pr-next p { font-size: 17px; line-height: 1.55; }
body.ux .pr-next .btn { margin-top: 16px; }
body.ux .pr-steps { margin-top: 20px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
body.ux .pr-steps li a { flex-direction: row; align-items: center; height: auto; min-height: 72px; gap: 18px; padding: 14px 20px; border-radius: 18px; }
body.ux .pr-step-i { width: 40px; height: 40px; flex: none; }
body.ux .pr-step-i svg { width: 21px; height: 21px; }
body.ux .pr-step-t b { font-size: 17.5px; }
body.ux .pr-step-t small { font-size: 15px; line-height: 1.4; }
body.ux .ux-back { margin: 0 0 14px; }
body.ux .ux-back .btn { padding-left: 0; }

/* ------------------------------------------------------------------ the person's page and the rest of the five: a little calmer */
body.ux-main .agent-head h1 { font-size: 30px; }

.lang-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lang-seg button { padding: 0 8px; white-space: normal; text-align: center; line-height: 1.2; }
@media (max-width: 520px) { .lang-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ the set-up wizard on a narrow screen: the language button no longer sits on the step bars */
@media (max-width: 899px) { .sa-wrap.sa-wide { padding-top: calc(var(--safe-t) + 68px); } }

/* "Getting started": one main button (the first step); the others are quiet */
body.ux .sa-start .row ~ .row .btn.primary { background: var(--cobalt-soft); color: var(--cobalt-ink); }

/* the line about the automation on Today: only when it needs a look */
body.ux .au-today:not(.problems):not(.paused) { display: none; }

/* a person's page: the draft that waits for you comes first, then the next step; marks and the CRM timeline are folded or left to the advanced mode */
body.ux[data-ux-view^="prospect"] #view { display: flex; flex-direction: column; }
body.ux[data-ux-view^="prospect"] #view > * { order: 8; }
body.ux[data-ux-view^="prospect"] #view > .navbar { order: 0; }
body.ux[data-ux-view^="prospect"] #view > .agent-head { order: 1; }
body.ux[data-ux-view^="prospect"] #view > .stepper { order: 2; }
body.ux[data-ux-view^="prospect"] #view > #needs { order: 3; }
body.ux[data-ux-view^="prospect"] #view > #ch-card { order: 4; }
body.ux[data-ux-view^="prospect"] #view > .group { order: 5; }
body.ux[data-ux-view^="prospect"] #view > .actions { order: 6; }
body.ux[data-ux-view^="prospect"] #view > .ux-pal { order: 7; }
body.ux[data-ux-view^="prospect"] #crm-pr-tl, body.ux[data-ux-view^="prospect"] #crm-pr-tl + .crm-block { display: none; }
.ux-pal { margin: 22px 0 6px; }
.ux-pal > #pal-card { padding: 0 6px 12px; }
.ux-pal .sec-h:first-child { margin-top: 4px; }

/* tabs that never cut a word: the Prepare tabs get a wider cell (they wrap to a second row instead), and the Palatina tab bar is left out of the one page of it that is in the simple mode (the rules) */
@media (min-width: 600px) { .seg.pr-tabs { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
body.ux[data-ux-view="palatina-rules"] .pal-tabs { display: none; }

/* the three buttons of a card on a phone: Skip and Edit side by side, Approve across the whole width (no label is cut off in any language) */
@media (max-width: 520px) {
  body .qcard .q-act { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .qcard .q-act .btn.approve { grid-column: 1 / -1; }
  body .qcard .q-act .btn { white-space: normal; line-height: 1.15; }
}

.ux-links { display: flex; justify-content: center; margin: 26px 0 0; }

/* ------------------------------------------------------------------ meetings: the extras of the card "Offer a meeting?" and of Settings > Meeting times are for the advanced mode */
body.ux .ms-adv { display: none; }
