/* The admin page on a computer (1000px and wider): the whole window, a colourful dashboard with its own menu.
   Only the admin page changes (it is the one page drawn with main.page.wide). Chatbee itself stays a phone app,
   and on a phone the admin page stays as it is in style.css. */
/* admin alerts: red counts on the Me tab, the Admin button and each admin section (app.js waitBadge) */
.abadge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; font-style: normal; text-align: center;
  border: 2px solid var(--card); box-sizing: content-box; }
.abadge-row { margin-left: auto; margin-right: 6px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--bad);
  color: #fff; font-size: 12.5px; font-weight: 700; line-height: 22px; font-style: normal; text-align: center; flex: none; }
.mrow:has(.abadge-row:not(.hidden)) > span { flex: 0 1 auto; }
.chip .cbadge { display: inline-block; min-width: 16px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--bad);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; font-style: normal; text-align: center; vertical-align: 1px; }

/* earnings questions: the listener's link and list (Listen page), the admin's facts and answer box */
.ask-earn span { display: flex; flex-direction: column; }
.ask-earn small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.issue-row > div { display: flex; flex-direction: column; gap: 3px; }
.issue-row .badge { margin-left: 6px; }
.issue-reply { color: var(--ink) !important; background: var(--brand-soft); padding: 6px 10px; border-radius: 10px; margin-top: 2px; }
.iss-facts { display: grid; gap: 4px; margin: 10px 0; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.iss-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
.iss-facts span { color: var(--muted); }
.iss-facts b { font-weight: 600; }
.iss-facts em { font-style: normal; font-weight: 700; }
.iss-facts em.up { color: var(--good); } .iss-facts em.down { color: var(--bad); }
.iss-answer { display: flex; flex-direction: column; gap: 8px; }
.iss-answer label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.iss-answer label input { width: 120px; padding: 8px 10px; }
.iss-answer .btn { align-self: flex-start; }
.acard.issue.answered { opacity: .8; }
@media (max-width: 520px) { .iss-facts > div { grid-template-columns: 1fr; gap: 0; } }

/* Admin > Overview: phone alerts for the admin */
.adm-alerts { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; padding: 14px 16px; border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow); border: 1.5px dashed color-mix(in srgb, var(--honey) 70%, transparent); }
.adm-alerts.on { border: 1.5px solid color-mix(in srgb, var(--good) 40%, transparent); background: color-mix(in srgb, var(--good) 7%, var(--card)); }
.adm-alerts > svg { flex: none; color: var(--honey-ink); }
.adm-alerts.on > svg { color: var(--good); }
.adm-alerts > span { flex: 1; display: flex; flex-direction: column; }
.adm-alerts b { font-size: 15.5px; }
.adm-alerts small { font-size: 13px; color: var(--muted); }
.adm-alerts .switch { flex: none; }
@media (min-width: 1000px) { .page.wide .adm-alerts { max-width: 820px; border-radius: 20px; } }

/* Listen page: My earnings, for the dates the listener picks */
.my-earn { margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.my-earn h3 { margin: 0 0 10px; font-size: 17px; }
.me-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.me-picks .chip { padding: 7px 12px; font-size: 13.5px; }
.me-dates { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 14px; color: var(--muted); }
.me-dates input { flex: 1; min-width: 0; padding: 8px 10px; }
.me-total { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.me-total b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--brand-ink); }
.me-total span { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; line-height: 1.3; }
.me-total small { font-size: 12.5px; }

/* Listen page blocks: online (with call alerts inside), today, money, profile */
.online-card:has(> .oc-today), .online-card:has(> .oc-row) { display: block; padding: 14px; }
.oc-row { display: grid; grid-template-columns: 1fr; gap: 10px; }     /* one switch per row: side by side squeezed the words */
.oc-sw { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--card) 70%, transparent); min-width: 0; }
.oc-sw > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.oc-sw b { font-size: 15px; line-height: 1.2; }
.online-card.on .oc-sw:first-child b { color: var(--brand-ink); }
.oc-sw small { font-size: 12px; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.oc-sw .switch { flex: none; }
.online-card:not(.on) .oc-sw, .online-card:not(.on) .oc-today > div { background: var(--bg); }
.oc-paused h2 { margin: 0; font-size: 20px; }
.oc-paused p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.oc-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.oc-today > div { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 14px; background: var(--card); }
.oc-today b { font-size: 19px; font-weight: 700; line-height: 1.2; }
.oc-today span { font-size: 12px; color: var(--muted); }
.earn-card { position: relative; z-index: 1; }
.earn-pan { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #B8442A; font-size: 13.5px; font-weight: 700; }
.earn-held { display: block; margin-top: 4px; font-size: 12.5px; opacity: .85; }
/* Admin > Inbox (static/inbox.js) */
.ib-head { background: var(--honey-soft); padding: 10px 14px; border-radius: 12px; font-weight: 600; margin: 8px 0; }
.ib-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; margin: 6px 0; }
.ib textarea { display: block; width: 100%; box-sizing: border-box; margin: 6px 0 8px; padding: 8px 10px; font: inherit; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); resize: vertical; }
.ib-step input { width: 7em; margin-left: 6px; }
.ib-sum { margin: 8px 0 2px; }
.ib-group > .btn { margin: 0 0 8px; }
.need-list { list-style: none; padding: 0; margin: 4px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.need-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.need-list svg { flex: none; color: var(--muted); margin-top: 3px; }
.payouts-list { margin-top: 14px; }
.list-head { margin: 0; padding: 12px 16px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.prof-card { padding: 14px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.prof-card .statrow { margin: 0 0 12px; }
.prof-card .statrow > div { box-shadow: none; background: var(--bg); }
.prof-links { display: flex; gap: 8px; }
.prof-links .btn { flex: 1; gap: 6px; }
.me-rows > div { font-size: 14.5px; }
.me-credit b { color: var(--good); }
.me-out { border-top: 1px dashed var(--line); }
.me-days { margin-top: 8px; font-size: 14px; }
.me-days summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 4px 0; }

/* Listen page: set offline after calls in a row went unanswered */
.auto-off { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 14px; border-radius: 14px;
  background: var(--honey-soft); border: 1.5px solid color-mix(in srgb, var(--honey) 55%, transparent); font-size: 14px; }
.auto-off svg { flex: none; margin-top: 2px; }

/* Accounts: Finance and Backups (static/finance.js) */
.fdates { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 0; }
.fdates label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.fdates input { width: auto; padding: 8px 10px; }
.frows { display: flex; flex-direction: column; }
.frows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.frows > div:last-child { border-bottom: 0; }
.frows span { color: var(--muted); }
.fdl { display: flex; gap: 10px; flex-wrap: wrap; }
.ffilter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ffilter select, .ffilter input { width: auto; flex: 1 1 220px; padding: 9px 12px; }
.fpages { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.fpages .muted { margin-right: auto; }
.kpi.bad b { color: var(--bad); }
.kpi.warn b { color: var(--busy); }

/* the admin menu's group names: shown only where the menu runs down the left (computer) */
.admin-tabs .agroup { display: none; }

/* Overview: groups of tiles; what needs you is red while something waits, calm once it's clear */
.osec { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--muted); margin: 22px 0 10px; text-transform: uppercase; }
.osec:first-of-type { margin-top: 4px; }
.tile.todo { box-shadow: inset 4px 0 0 var(--bad), var(--shadow); }
.tile.todo b { color: var(--bad); }
.tile.done b { color: var(--muted); }
.onext { margin-top: 22px; }

/* Grow the business pages: key numbers, a What to do box, then charts and tables */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.kpi { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.kpi b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kpi span { font-size: 13.5px; color: var(--ink); margin-top: 2px; }
.kpi small { font-size: 12px; color: var(--muted); }
.btodo { margin: 4px 0 6px; padding: 14px 16px; border-radius: 16px; background: var(--honey-soft); border: 1.5px solid color-mix(in srgb, var(--honey) 55%, transparent); }
.btodo > b { display: block; font-size: 15px; margin-bottom: 4px; }
.btodo ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.bhead p { margin: 2px 0 0; }

/* Overview: where sign-ups come from (phone and computer) */
.growth { margin-top: 26px; }
.ghead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ghead .h { margin: 0; }
.ghead .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.gcols { display: grid; gap: 16px; margin-top: 12px; }
.gcard { padding: 16px 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.gcard h3 { margin: 0 0 10px; font-size: 17px; }
.grow { display: grid; grid-template-columns: minmax(0, 1fr) 64px 48px 78px; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.grow b { text-align: right; font-weight: 600; }
.grow.ghd { border-top: 0; padding-top: 0; font-size: 12px; color: var(--muted); }
.grow.ghd span { text-align: right; }
.gname { position: relative; min-width: 0; padding: 4px 8px; isolation: isolate; }
.gname i { position: absolute; inset: 0 auto 0 0; z-index: -1; border-radius: 8px; background: color-mix(in srgb, var(--honey) 32%, transparent); }
.gname em { font-style: normal; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gname small { color: var(--muted); margin-left: 6px; font-size: 12.5px; }
.gcard:nth-child(2) .gname i { background: color-mix(in srgb, var(--brand) 22%, transparent); }

/* Admin > Business (static/business.js). Chart colours checked for colour-blind readers in light and dark. */
:root { --s1: #00806A; --s2: #F28A3C; --s3: #C98500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s1: #18A08A; --s2: #E0622C; --s3: #C98500; } }
:root[data-theme="dark"] { --s1: #18A08A; --s2: #E0622C; --s3: #C98500; }
.s1 { background: var(--s1); } .s2 { background: var(--s2); } .s3 { background: var(--s3); }
.bhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bhead .h { margin: 0; }
.bhead .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.bsec { margin-top: 18px; padding: 16px 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.bsec > h3 { margin: 0 0 4px; font-size: 18px; }
.bsec > p.muted { margin: 0 0 12px; }
.binsight { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--honey-soft); font-size: 14.5px; }
.blegend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.blegend span { display: inline-flex; align-items: center; gap: 6px; }
.blegend i { width: 12px; height: 12px; border-radius: 3px; }
.bchart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 160px auto; column-gap: 8px; }
.by { grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; color: var(--muted); text-align: right; line-height: 1; margin: -5px 0; }
.bplot { grid-row: 1; grid-column: 2; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.bcol { height: 100%; display: flex; flex-direction: column-reverse; gap: 2px; padding: 0 max(1px, 12%); cursor: default; border-radius: 6px; }
.bcol i { display: block; flex: none; min-height: 2px; }
.bcol i:last-child { border-radius: 4px 4px 0 0; }
.bcol.hot { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.bx { grid-row: 2; grid-column: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); font-size: 11.5px; color: var(--muted); padding-top: 6px; }
.bx span { white-space: nowrap; overflow: visible; }
.btip { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; opacity: 0; transition: opacity .1s; max-width: 260px;
  padding: 9px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btip.in { opacity: 1; }
.btip b { display: block; margin-bottom: 2px; }
.bmulti { display: grid; gap: 18px; }
.bmulti h4 { margin: 0 0 8px; font-size: 15px; }
.bmulti h4 small { color: var(--muted); font-weight: 500; }
.bmulti .bchart { grid-template-rows: 110px auto; }
.bempty { padding: 26px 0; text-align: center; border: 1.5px dashed var(--line); border-radius: 12px; }
.bdata { margin-top: 10px; font-size: 13.5px; }
.bdata summary { cursor: pointer; color: var(--muted); }
.btable { overflow-x: auto; }
.btable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.btable th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.btable td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.btable tr:last-child td { border-bottom: 0; }
.btable .bcost { width: 96px; padding: 6px 8px; border-radius: 10px; box-shadow: none; }
.flag { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--bad); }
b.up { color: var(--good); } b.down { color: var(--bad); }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.frow2 { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px 44px 44px; gap: 10px; align-items: center; font-size: 14.5px; }
.frow2 b { text-align: right; }
.fbar { height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--line) 60%, transparent); overflow: hidden; }
.fbar i { display: block; height: 100%; border-radius: 6px; }
.fp { text-align: right; color: var(--muted); }
.fd { text-align: right; font-size: 12.5px; }
@media (max-width: 520px) { .frow2 { grid-template-columns: 110px minmax(0, 1fr) 36px 40px; } .frow2 .fd { display: none; } }

@media (min-width: 1000px) {
  .page.wide .bsec { padding: 22px 26px; border-radius: 22px; box-shadow: var(--lift); margin-top: 22px; }
  .page.wide .bsec > h3 { font-size: 20px; }
  .page.wide .bchart { grid-template-rows: 220px auto; }
  .page.wide .bmulti { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .page.wide .bmulti .bchart { grid-template-rows: 150px auto; }
  .page.wide .btable table { font-size: 15px; }
  .page.wide .gcols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .page.wide .gcard { padding: 22px 26px; border-radius: 22px; box-shadow: var(--lift); }
  .page.wide .grow { grid-template-columns: minmax(0, 1fr) 90px 70px 110px; font-size: 15.5px; padding: 9px 0; }
  .page.wide .growth { margin-top: 36px; }

  html:has(main.page.wide) {
    --aside: 270px;
    --a1: #0E7C6B; --a2: #0A5C50; --a3: #07423A;
    --t-teal: #DDF2EC; --t-teal-ink: #0A5C50; --t-teal-bar: #0E7C6B;
    --t-honey: #FFF1C9; --t-honey-ink: #9A5B00; --t-honey-bar: #FFB020;
    --t-peach: #FFE4D9; --t-peach-ink: #B8442A; --t-peach-bar: #FF7A59;
    --t-lilac: #ECE6FF; --t-lilac-ink: #5B3FC4; --t-lilac-bar: #7C5CFF;
    --t-sky: #E0EFFF; --t-sky-ink: #1D5FA8; --t-sky-bar: #3A8DFF;
    --t-rose: #FFE3EC; --t-rose-ink: #B02A5B; --t-rose-bar: #FF4D8D;
    --lift: 0 2px 4px rgba(23, 35, 42, .05), 0 14px 34px rgba(23, 35, 42, .10);
    background:
      radial-gradient(1000px 560px at 100% -10%, color-mix(in srgb, var(--honey) 24%, transparent), transparent 70%),
      radial-gradient(800px 520px at 40% 115%, color-mix(in srgb, var(--peach) 14%, transparent), transparent 70%),
      var(--bg);
    background-attachment: fixed;
  }
  @media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]):has(main.page.wide) {
      --a1: #0D4A42; --a2: #0A3530; --a3: #072520;
      --t-teal: #143A34; --t-teal-ink: #7FE0CF; --t-honey: #3A2E10; --t-honey-ink: #FFD36B;
      --t-peach: #3D251D; --t-peach-ink: #FFA98C; --t-lilac: #2A2443; --t-lilac-ink: #C3B3FF;
      --t-sky: #182C42; --t-sky-ink: #8FC2FF; --t-rose: #3D1E2A; --t-rose-ink: #FF9EC0;
      --lift: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35);
    }
  }
  html[data-theme="dark"]:has(main.page.wide) {
    --a1: #0D4A42; --a2: #0A3530; --a3: #072520;
    --t-teal: #143A34; --t-teal-ink: #7FE0CF; --t-honey: #3A2E10; --t-honey-ink: #FFD36B;
    --t-peach: #3D251D; --t-peach-ink: #FFA98C; --t-lilac: #2A2443; --t-lilac-ink: #C3B3FF;
    --t-sky: #182C42; --t-sky-ink: #8FC2FF; --t-rose: #3D1E2A; --t-rose-ink: #FF9EC0;
    --lift: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35);
  }
  html:has(main.page.wide) body { background: transparent; }

  /* the window */
  #app:has(> main.page.wide) { max-width: none; padding-left: var(--aside); background: transparent; box-shadow: none; }
  #app:has(> main.page.wide) > .bar { padding: 18px 44px 10px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); }
  #app:has(> main.page.wide) .bar-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
  .page.wide { max-width: none; padding: 10px 44px 64px; font-size: 16.5px; }

  /* the admin menu down the left (the section chips, stood on end) */
  .page.wide > .admin-tabs {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: var(--aside); margin: 0;
    display: flex; flex-direction: column; gap: 4px; padding: 98px 16px 24px; overflow-y: auto; isolation: isolate;
    background: linear-gradient(170deg, var(--a1) 0%, var(--a2) 58%, var(--a3) 100%);
  }
  .page.wide > .admin-tabs::before {   /* the bee and the name at the top */
    content: "Chatbee"; position: absolute; top: 26px; left: 26px; padding-left: 52px; height: 42px; line-height: 42px;
    color: #fff; font-size: 25px; font-weight: 700; letter-spacing: -.02em;
    background: url("/static/icon.svg") left center / 42px 42px no-repeat;
  }
  .page.wide > .admin-tabs::after {   /* "Admin" under the name, and faint honeycomb at the bottom */
    content: "ADMIN"; position: absolute; top: 60px; left: 78px; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--honey);
  }
  .page.wide > .admin-tabs .chip {
    display: flex; align-items: center; padding: 12px 18px; border: 0; border-radius: 14px; background: transparent;
    color: rgba(255, 255, 255, .82); font-size: 16px; font-weight: 500; transition: background .15s, color .15s;
  }
  .page.wide > .admin-tabs .agroup { display: block; margin: 16px 0 4px 18px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
  .page.wide > .admin-tabs .agroup:first-child { margin-top: 0; }
  .page.wide .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 18px 0 16px; }
  .page.wide .kpi { padding: 20px 22px; border-radius: 20px; box-shadow: var(--lift); }
  .page.wide .kpi b { font-size: 34px; }
  .page.wide .kpi span { font-size: 15px; }
  .page.wide .btodo { padding: 18px 22px; border-radius: 20px; }
  .page.wide .btodo ul { font-size: 15.5px; }
  .page.wide .tile.todo { box-shadow: inset 6px 0 0 var(--bad), var(--lift); }
  .page.wide .osec { margin: 30px 0 12px; }
  .page.wide .osec:first-of-type { margin-top: 6px; }
  .page.wide > .admin-tabs .chip:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .page.wide > .admin-tabs .chip.on { background: var(--honey); color: #3A2A00; font-weight: 600; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
  .page.wide > .admin-tabs .chip .cbadge { margin-left: auto; min-width: 20px; height: 22px; line-height: 22px; font-size: 12px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .12); }

  /* Overview: plain number tiles in groups; only what needs you turns red (and green once it's clear) */
  .page.wide .tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .page.wide .tile { position: relative; padding: 20px 22px; border-radius: 20px; box-shadow: var(--lift); background: var(--card); transition: transform .15s, box-shadow .15s; }
  .page.wide a.tile[href]:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(23, 35, 42, .16); }
  .page.wide .tile b { font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
  .page.wide .tile span { font-size: 15px; margin-top: 4px; }

  /* lists and cards: wide rows, cards side by side */
  .page.wide .ledger { border-radius: 22px; box-shadow: var(--lift); }
  .page.wide .lrow { padding: 16px 26px; gap: 16px; }
  .page.wide .lrow:hover { background: color-mix(in srgb, var(--brand) 5%, var(--card)); }
  .page.wide:has(> .acard) { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 18px; align-items: start; }
  .page.wide:has(> .acard) > :not(.acard) { grid-column: 1 / -1; }
  .page.wide .acard { margin: 0; padding: 22px 26px; border-radius: 22px; box-shadow: var(--lift); border-top: 5px solid var(--t-teal-bar); }
  .page.wide .acard:nth-of-type(4n+2) { border-top-color: var(--t-honey-bar); }
  .page.wide .acard:nth-of-type(4n+3) { border-top-color: var(--t-lilac-bar); }
  .page.wide .acard:nth-of-type(4n+4) { border-top-color: var(--t-peach-bar); }
  .page.wide .acard h3 { font-size: 19px; }
  .page.wide .pgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .page.wide input:not([type=checkbox]) { max-width: 640px; box-shadow: var(--lift); border-color: transparent; }
  .page.wide .btn { transition: transform .12s, box-shadow .12s; }
  .page.wide .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 28%, transparent); }
  .page.wide > .muted:first-of-type { margin-top: 0; }

  /* big screens: everything a little larger */
  @media (min-width: 1800px) {
    html:has(main.page.wide) { --aside: 300px; }
    .page.wide { font-size: 17.5px; padding-left: 56px; padding-right: 56px; }
    .page.wide .tiles { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
    .page.wide .tile b { font-size: 40px; }
    .page.wide .tile span { font-size: 16.5px; }
    .page.wide .kpi b { font-size: 40px; }
    .page.wide > .admin-tabs .chip { font-size: 17.5px; padding: 14px 20px; }
  }
}

/* Admin > Live video calls: the list, and both sides of the call being watched, side by side */
.live-row > img + img, .live-row > span + span { margin-left: -12px; }
.watch { margin: 6px 0 16px; }
.watch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; max-width: 640px; }   /* a computer: phone-sized, side by side */
.wside { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #111; aspect-ratio: 3 / 4; }
.wside video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wwait { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; color: #fff; font-size: 13px; }
.wside figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; }
/* Profile and rate: her price first; greyed out until she has earned her own price */
.rate-top { margin-bottom: 6px; }
.rate-top.locked .chip:disabled { opacity: .5; cursor: not-allowed; }
.rate-top.locked .chip.on:disabled { opacity: .85; }
.rate-note { display: flex; align-items: flex-start; gap: 6px; }
.rate-note svg { flex: none; margin-top: 2px; }
/* Chats > Call log: today's line, and missed calls in red */
.log-today { margin: 4px 2px 10px; font-size: 14px; color: var(--muted); }
.log-today b { color: var(--ink); }
.log-today b.pos { color: var(--good); }
.log-today b.miss-n { color: var(--bad); }
.call-log .lrow.miss span { color: color-mix(in srgb, var(--bad) 75%, var(--ink)); }
/* the Call log's three boxes for the range picked: calls, missed (red when any), earned (green) */
.log-box { margin: 4px 0 10px; }
.log-box .oc-today .miss-box b { color: var(--bad); }
.log-box .oc-today .earn-box b { color: var(--good); }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 8px; font-size: 14px; color: var(--muted); }
.log-head em { font-style: normal; font-weight: 600; }
.call-log .lrow[data-open] { cursor: pointer; }      /* tap a call: the chat with that person */
.log-head b { color: var(--ink); font-weight: 700; }
.log-head b.miss-n { color: var(--bad); }
.log-head b.pos { color: var(--good); }
