/* The owner's Requests list and Wrap-ups list (portal rethink stage 19; ownernew.js).
   Every rule is scoped under .on, except the ones that set the classic screen aside while
   the new page draws (.on-takes) and keep the way back visible over it. Red only for what
   waits on the owner, has gone quiet, or is stuck. */
.view.on-takes > :not(.on) { display: none !important; }
/* desk2 hides a section's other children (#view-x.d2-on > :not(#d2-x-page)) and the app hides
   everything but its page (.view.ios-on > :not(.ios-page)): these win over both */
html #view-requests.view.on-takes.on-takes > #on-requests:not([hidden]), html #view-eod.view.on-takes.on-takes > #on-eod:not([hidden]),
html.tp-ios-app #view-requests.view.on-takes > #on-requests#on-requests:not([hidden]), html.tp-ios-app #view-eod.view.on-takes > #on-eod#on-eod:not([hidden]) { display: block !important; }
html #view-requests > #on-back-requests#on-back-requests.on-backbar:not([hidden]), html #view-eod > #on-back-eod#on-back-eod.on-backbar:not([hidden]) { display: block !important; }
.on[hidden] { display: none !important; }

.on { --on-ink: #111; --on-card: #fff; --on-line: #E3E3DC; --on-line2: #EFEFE9; --on-mute: #73736D; --on-col: #EBEBE4; --on-red: #D6362B;
  color: var(--on-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; box-sizing: border-box; min-width: 0; }
.on *, .on *::before, .on *::after { box-sizing: border-box; }
.on button { font: inherit; color: inherit; }
.on h1, .on h2, .on p { margin: 0; }
.on .is-red { color: var(--on-red); }
.on .on-grow { flex: 1; }
.on-page { padding: 4px 0 28px; max-width: 1040px; }
.on .on-top { display: flex; align-items: center; gap: 16px; margin: 0 0 6px; }
.on .on-title { font-size: 30px; font-weight: 750; letter-spacing: -.02em; }
.on .on-sub { margin: 4px 0 20px; color: var(--on-mute); font-size: 15.5px; line-height: 1.4; }
.on .on-quiet { display: inline-flex; align-items: center; padding: 6px 2px; border: 0; background: none; color: var(--on-mute); font-size: 14px; font-weight: 500; cursor: pointer; }
.on .on-quiet:hover { color: var(--on-ink); }
.on .on-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 1px solid var(--on-line); border-radius: 10px; background: var(--on-card); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.on .on-card { background: var(--on-card); border: 1px solid var(--on-line); border-radius: 16px; overflow: hidden; margin: 0 0 18px; }
.on .on-ch { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; }
.on .on-ch h2 { font-size: 17px; font-weight: 650; }
.on .on-ch > span { color: var(--on-mute); font-size: 14px; white-space: nowrap; }
.on .on-card.is-folded .on-ch { padding-bottom: 14px; }
.on .on-cf { padding: 10px 20px 12px; border-top: 1px solid var(--on-line2); }
.on .on-more { padding: 4px 0; border: 0; background: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.on .on-empty { margin: 0; padding: 12px 20px 16px; color: var(--on-mute); font-size: 14.5px; }
.on .on-foot { margin: 4px 2px 0; color: var(--on-mute); font-size: 13px; line-height: 1.45; }
.on .on-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 20px; border: 0; border-top: 1px solid var(--on-line2); background: none; text-align: left; cursor: pointer; }
.on .on-ch + .on-row, .on .on-miss + .on-row { border-top: 0; }
.on .on-row:hover { background: #FAFAF7; }
.on .on-row > svg { flex: none; color: #B0B0A8; }
.on .on-rm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.on .on-rm b { font-size: 15.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.on .on-rm b em { margin-left: 8px; font-style: normal; font-weight: 400; color: var(--on-mute); font-size: 13.5px; }
.on .on-rm > span { color: var(--on-mute); font-size: 13.5px; line-height: 1.4; }
.on .on-rm .on-wl { color: #3A3A36; font-size: 14.5px; }
.on .on-rm .on-ws { color: var(--on-red); font-size: 14px; }
.on .on-rside { flex: none; color: var(--on-mute); font-size: 14px; white-space: nowrap; }
.on .on-rside.is-red { color: var(--on-red); font-weight: 600; }
.on .on-miss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 20px 12px; font-size: 14px; color: var(--on-mute); }
.on .on-miss > span:first-child { margin-right: 4px; }
.on .on-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: #FBE9E7; color: var(--on-red); font-weight: 600; }
.on .on-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 13.5px; font-weight: 700; background: #5E6A78; }
.on .on-av-1 { background: #7A6450; } .on .on-av-2 { background: #586E5A; } .on .on-av-3 { background: #7A5C6E; } .on .on-av-4 { background: #4F6A86; } .on .on-av-5 { background: #6E6A5A; }
.on.on-backbar { padding: 0 0 10px; }
.on.on-backbar.is-phone { padding: 6px 0 0; }
.on .on-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -6px; padding: 0 4px; border: 0; background: none; font-size: 17px; font-weight: 600; color: var(--on-ink); cursor: pointer; }

/* the iPhone: 16px gutters, the app's title */
.on-page.is-phone { padding: 4px 16px 28px; max-width: 100%; overflow-x: hidden; }
.on-page.is-phone .on-phead { margin: 4px 0 4px; }
.on-page.is-phone .on-title { font-size: 34px; line-height: 1.15; }
.on-page.is-phone .on-sub { font-size: 15px; margin-bottom: 14px; }
.on-page.is-phone .on-pacts { margin: 0 0 14px; }
.on-page.is-phone .on-btn { min-height: 44px; width: 100%; justify-content: center; }
.on-page.is-phone .on-card { border-radius: 18px; margin-bottom: 14px; }
.on-page.is-phone .on-ch { padding: 14px 16px 6px; }
.on-page.is-phone .on-row { padding: 12px 16px; min-height: 60px; align-items: flex-start; }
.on-page.is-phone .on-row > svg { margin-top: 8px; }
.on-page.is-phone .on-rm b { font-size: 16px; }
.on-page.is-phone .on-rm .on-rside { white-space: normal; }
.on-page.is-phone .on-miss { padding: 2px 16px 12px; }
.on-page.is-phone .on-cf { padding: 4px 16px; }
.on-page.is-phone .on-more { min-height: 44px; }
.on-page.is-phone .on-pfoot { display: flex; justify-content: center; margin: 4px 0 8px; }
.on-page.is-phone .on-pfoot .on-quiet { min-height: 44px; font-size: 15px; }
/* desk2's Requests page is full-bleed (three panes); the list keeps the page gutter the other pages have */
html #view-requests > #on-requests > .on-page.is-desk { padding: 28px 40px; }

/* Compliance (screens only) */
html #view-compliance.view.on-takes.on-takes > #on-compliance:not([hidden]), html.tp-ios-app #view-compliance.view.on-takes > #on-compliance#on-compliance:not([hidden]) { display: block !important; }
html #view-compliance > #on-back-compliance#on-back-compliance.on-backbar:not([hidden]) { display: block !important; }
.on .on-big { margin: 10px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.on .on-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.on .on-cols.is-phone { display: block; }
.on .on-glance { cursor: default; }
.on .on-glance:hover { background: none; }
.on .on-btn.is-sm { height: 36px; padding: 0 14px; font-size: 14.5px; }
.on .on-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 6px 20px 18px; }
.on .on-shot { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; min-width: 0; }
.on .on-shotimg { display: block; aspect-ratio: 16 / 10; border-radius: 10px; background: #ECECE5; overflow: hidden; }
.on .on-shotimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.on .on-shotf { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.on .on-shotf b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on .on-shotf span { color: var(--on-mute); white-space: nowrap; }
.on .on-kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--on-line2); font-size: 15px; }
.on .on-ch + .on-kv { border-top: 0; }
.on .on-kv span { color: var(--on-mute); }
.on .on-side { padding-bottom: 6px; }
.on .on-note { padding: 0 20px 14px; color: var(--on-mute); font-size: 14px; line-height: 1.5; }
.on-page.is-phone .on-big { font-size: 22px; line-height: 1.25; }
.on-page.is-phone .on-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 16px 16px; gap: 12px; }
.on-page.is-phone .on-kv { padding: 12px 16px; }
.on-page.is-phone .on-note { padding: 0 16px 14px; }
.on-page.is-phone .on-glance .on-btn { min-height: 44px; }
@media (max-width: 1100px) { .on .on-cols { grid-template-columns: minmax(0, 1fr) 280px; } }
.on-page.is-phone .on-glance .on-btn { width: auto; flex: none; padding: 0 16px; }
.on-page.is-phone .on-glance { align-items: center; }
.on-page.is-phone .on-ch { flex-wrap: wrap; row-gap: 2px; }
.on-page.is-phone .on-ch h2 { white-space: nowrap; }

/* Agents and Insights */
html #view-aiassist.view.on-takes.on-takes > #on-aiassist:not([hidden]), html.tp-ios-app #view-aiassist.view.on-takes > #on-aiassist#on-aiassist:not([hidden]),
html #view-blog_insights.view.on-takes.on-takes > #on-blog_insights:not([hidden]), html.tp-ios-app #view-blog_insights.view.on-takes > #on-blog_insights#on-blog_insights:not([hidden]) { display: block !important; }
html #view-aiassist > #on-back-aiassist#on-back-aiassist.on-backbar:not([hidden]), html #view-blog_insights > #on-back-blog_insights#on-back-blog_insights.on-backbar:not([hidden]) { display: block !important; }
.on .on-mute { color: var(--on-mute); }
.on .on-attn { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; padding: 16px 20px; background: #fff; border: 1px solid var(--on-line); border-left: 4px solid var(--on-red); border-radius: 14px; }
.on .on-attn-m { flex: 1; min-width: 0; }
.on .on-attn h2 { font-size: 17px; font-weight: 650; }
.on .on-attn p { margin-top: 3px; color: var(--on-mute); font-size: 14.5px; line-height: 1.4; }
.on .on-btn.is-k { background: var(--on-ink); border-color: var(--on-ink); color: #fff; }
.on .on-ag { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: center; font-size: 15px; }
.on .on-ag b { font-weight: 600; }
.on .on-ag.is-h { padding-top: 4px; padding-bottom: 6px; color: var(--on-mute); font-size: 13.5px; font-weight: 600; cursor: default; border-top: 0; }
.on .on-ag.is-h:hover { background: none; }
.on .on-ag.is-h + .on-row { border-top: 0; }
.on .on-agst { display: inline-flex; align-items: center; gap: 7px; }
.on .on-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #C9C9C0; flex: none; }
.on .on-dot.is-ok { background: #1E9E52; } .on .on-dot.is-busy { background: #E0A100; } .on .on-dot.is-bad { background: var(--on-red); }
.on .on-carer { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.on .on-carer .on-av { width: 26px; height: 26px; font-size: 11.5px; }
.on .on-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--on-col); margin: 0 0 16px; }
.on .on-seg-o { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--on-mute); font-size: 14px; font-weight: 500; cursor: pointer; }
.on .on-seg-o.is-on { background: #fff; color: var(--on-ink); font-weight: 600; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08); }
.on .on-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.on .on-tile { margin: 0; padding: 16px 18px; }
.on .on-tl { color: var(--on-mute); font-size: 13.5px; }
.on .on-tv { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.on .on-tc { margin-top: 4px; color: var(--on-mute); font-size: 13px; }
@media (max-width: 1100px) { .on .on-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.on-page.is-phone .on-attn { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
.on-page.is-phone .on-attn .on-btn { min-height: 44px; justify-content: center; }
.on-page.is-phone .on-ag { display: flex; }
.on-page.is-phone .on-agst { margin-top: 2px; font-size: 14px; }
.on-page.is-phone .on-seg { display: flex; width: 100%; }
.on-page.is-phone .on-seg-o { flex: 1; height: 38px; }
.on-page.is-phone .on-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.on-page.is-phone .on-tile { padding: 14px; border-radius: 16px; }
.on-page.is-phone .on-tv { font-size: 22px; }

/* Rethink 20: Knowledge, Settings and Profile */
html #view-knowledge.view.on-takes.on-takes > #on-knowledge:not([hidden]), html.tp-ios-app #view-knowledge.view.on-takes > #on-knowledge#on-knowledge:not([hidden]),
html #view-settings.view.on-takes.on-takes > #on-settings:not([hidden]), html.tp-ios-app #view-settings.view.on-takes > #on-settings#on-settings:not([hidden]),
html #view-profile.view.on-takes.on-takes > #on-profile:not([hidden]), html.tp-ios-app #view-profile.view.on-takes > #on-profile#on-profile:not([hidden]) { display: block !important; }
html #view-knowledge > #on-back-knowledge#on-back-knowledge.on-backbar:not([hidden]), html #view-settings > #on-back-settings#on-back-settings.on-backbar:not([hidden]),
html #view-profile > #on-back-profile#on-back-profile.on-backbar:not([hidden]) { display: block !important; }
.on .on-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; margin: 0 0 14px; background: var(--on-card); border: 1px solid var(--on-line); border-radius: 14px; color: var(--on-mute); }
.on .on-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--on-ink); }
.on .on-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.on .on-chipb { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--on-line); border-radius: 17px; background: var(--on-card); font-size: 14px; font-weight: 500; cursor: pointer; }
.on .on-chipb span { color: var(--on-mute); font-weight: 500; }
.on .on-chipb.is-on { background: var(--on-ink); border-color: var(--on-ink); color: #fff; }
.on .on-chipb.is-on span { color: #C9C9C0; }
.on .on-kr { padding: 0 12px 0 0; gap: 4px; cursor: default; }
.on .on-kr:hover { background: none; }
.on .on-kopen { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 20px; border: 0; background: none; text-align: left; cursor: pointer; }
.on .on-kopen:hover b { text-decoration: underline; text-underline-offset: 3px; }
.on .on-kedit { padding: 6px 10px; }
.on .on-kchev { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 40px; border: 0; background: none; color: #B0B0A8; cursor: pointer; }
.on .on-kr.is-hid b { color: var(--on-mute); }
.on .on-cardish { background: var(--on-card); border: 1px solid var(--on-line); border-radius: 16px; padding: 18px 20px; }
.on .on-gh { margin: 18px 2px 8px; color: var(--on-mute); font-size: 13.5px; font-weight: 600; }
.on .on-gh:first-child { margin-top: 4px; }
.on .on-narrow { max-width: 760px; }
.on .on-set.is-static { cursor: default; }
.on .on-set.is-static:hover { background: none; }
.on .on-t2 { margin-top: 2px; }
.on .on-cfa { display: inline-flex; gap: 4px; flex: none; }
.on .on-cfa .on-quiet { padding: 6px 8px; }
.on .on-cfa .on-quiet:disabled { opacity: .35; cursor: default; }
.on .on-quiet.is-red { color: var(--on-red); }
.on .on-cfadd { padding: 16px 20px 18px; border-top: 1px solid var(--on-line2); }
.on .on-cfadd h3 { margin: 0 0 10px; font-size: 15px; font-weight: 650; }
.on .on-cfgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; margin: 0 0 12px; }
.on .on-cfgrid label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--on-mute); min-width: 0; }
.on .on-cfgrid label.is-wide { grid-column: 1 / -1; }
.on .on-cfgrid .on-cfreq { flex-direction: row; align-items: center; gap: 8px; height: 42px; color: var(--on-ink); font-size: 15px; }
.on .on-in { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--on-line); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--on-ink); }
.on textarea.on-in { height: auto; padding: 10px 12px; resize: vertical; }
.on .on-in.is-need { border-color: #E9A39D; }
.on .on-in:focus { outline: 2px solid #111; outline-offset: -1px; }
.on .on-err { margin: 0 0 10px; color: var(--on-red); font-size: 14px; }
.on .on-frow { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; padding: 10px 20px; }
.on .on-flab { padding-top: 11px; font-size: 15px; font-weight: 600; }
.on .on-fctl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.on .on-need { font-size: 13.5px; font-weight: 600; }
.on .on-pair { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.on .on-trio { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.on .on-fsub { margin: 10px 20px 0; padding-top: 14px; border-top: 1px solid var(--on-line2); font-size: 15px; font-weight: 650; }
.on .on-pfsave { display: flex; align-items: center; gap: 14px; padding: 14px 20px 18px; }
.on .on-pfsave .on-mute { font-size: 13.5px; }
.on .on-dev { cursor: default; align-items: center; }
.on .on-dev:hover { background: none; }
.on .on-dev .on-btn { flex: none; }
.on .on-btn:disabled { opacity: .5; cursor: default; }
.on .on-back:disabled { opacity: .5; }
.on-page.is-phone .on-search { height: 46px; }
.on-page.is-phone .on-kopen { padding: 12px 8px 12px 16px; min-height: 60px; }
.on-page.is-phone .on-row.on-kr { padding: 0 8px 0 0; min-height: 0; align-items: center; }
.on-page.is-phone .on-big { margin-bottom: 14px; }
.on-page.is-phone .on-kr .on-kopen > svg { flex: none; color: #B0B0A8; }
.on-page.is-phone .on-chipb { height: 36px; }
.on-page.is-phone .on-frow { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 16px; }
.on-page.is-phone .on-flab { padding-top: 0; font-size: 14px; color: var(--on-mute); font-weight: 600; }
.on-page.is-phone .on-in { height: 46px; font-size: 16px; }
.on-page.is-phone .on-trio { grid-template-columns: minmax(0, 1fr); }
.on-page.is-phone .on-pfsave { flex-direction: column; align-items: stretch; padding: 12px 16px 16px; }
.on-page.is-phone .on-pfsave .on-mute { text-align: center; }
.on-page.is-phone .on-btn.is-wide { width: 100%; justify-content: center; height: 50px; }
.on-page.is-phone .on-dev .on-btn { width: auto; min-height: 40px; height: 40px; padding: 0 14px; }
.on-page.is-phone .on-dev { align-items: center; }
.on-page.is-phone .on-cfgrid { grid-template-columns: minmax(0, 1fr); }
.on-page.is-phone .on-cfadd { padding: 14px 16px 16px; }
.on-page.is-phone .on-cfr { flex-wrap: wrap; }
.on-page.is-phone .on-cfa { width: 100%; justify-content: flex-start; margin-left: -8px; }
.on-page.is-phone .on-cfa .on-quiet { min-height: 40px; }
.on-page.is-phone .on-gh { margin-left: 4px; }
/* Rethink 20: the classic iPhone Requests page. Its filter strip reached 16px past a 12px gutter, so the page
   scrolled 4px sideways. The strip now bleeds exactly to the screen edge there (classic page only). */
html.tp-ios-app #view-requests .ios2-chips:not(.is-wrap) { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }

/* Rethink 20: on the iPhone, with the raised centre tab (the owner's Holly, or the member's +), the last thing
   on a page sits clear of it at rest: room for the safe area, the tab bar and the button that rises above it.
   Without the raised tab nothing changes. --tp-safe-b only lets a test stand in for a notched phone. */
html.tp-ios-app:not(.tp-desk2):has(#mobile-bottom-nav a.is-holly-mid, #mobile-bottom-nav a.md-plus) .app-main { padding-bottom: calc(var(--tp-safe-b, env(safe-area-inset-bottom, 0px)) + 100px); }
