/* Bravelyn Digital Academy - Tutor management (Super Admin) and Facilitator Portal (tutors)
   Self-contained: every class starts with "tp-", so it never clashes with the compiled Tailwind file (styles.css). */

.tp-root, .tp-root * { box-sizing: border-box; }
.tp-root {
  --tp-bg: #0f172a; --tp-panel: rgba(255,255,255,.045); --tp-panel-2: rgba(255,255,255,.08); --tp-line: rgba(255,255,255,.11);
  --tp-text: #e2e8f0; --tp-strong: #fff; --tp-muted: #94a3b8; --tp-primary: #167d9a; --tp-primary-2: #1d9bbf; --tp-accent: #e7a64b;
  --tp-ok: #34d399; --tp-warn: #fbbf24; --tp-bad: #f87171; --tp-info: #38bdf8;
  color: var(--tp-text); font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.45;
}
.tp-root button, .tp-root input, .tp-root select, .tp-root textarea { font: inherit; }
.tp-root [hidden] { display: none !important; }

/* ---------- generic building blocks ---------- */
.tp-card { background: var(--tp-panel); border: 1px solid var(--tp-line); border-radius: 18px; padding: 18px; }
.tp-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tp-h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--tp-strong); }
.tp-h3 { margin: 0; font-size: 14px; font-weight: 800; color: var(--tp-strong); }
.tp-sub { color: var(--tp-muted); font-size: 12.5px; margin: 4px 0 0; }
.tp-muted { color: var(--tp-muted); }
.tp-small { font-size: 12px; }
.tp-grid { display: grid; gap: 14px; }
.tp-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.tp-stat { background: var(--tp-panel); border: 1px solid var(--tp-line); border-radius: 16px; padding: 14px 16px; }
.tp-stat b { display: block; font-size: 26px; font-weight: 800; color: var(--tp-strong); line-height: 1.1; }
.tp-stat span { font-size: 11.5px; color: var(--tp-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.tp-stat.ok b { color: var(--tp-ok); } .tp-stat.warn b { color: var(--tp-warn); } .tp-stat.bad b { color: var(--tp-bad); }
.tp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp-spacer { flex: 1; }

.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--tp-line);
  background: var(--tp-panel-2); color: var(--tp-strong); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .05s, opacity .15s;
}
.tp-btn:hover { background: rgba(255,255,255,.14); }
.tp-btn:active { transform: translateY(1px); }
.tp-btn:focus-visible, .tp-input:focus-visible, .tp-tab:focus-visible, .tp-seg button:focus-visible { outline: 2px solid var(--tp-info); outline-offset: 2px; }
.tp-btn[disabled] { opacity: .5; cursor: not-allowed; }
.tp-btn-primary { background: var(--tp-primary); border-color: transparent; }
.tp-btn-primary:hover { background: var(--tp-primary-2); }
.tp-btn-warn { background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.4); color: #fde68a; }
.tp-btn-warn:hover { background: rgba(251,191,36,.24); }
.tp-btn-danger { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.4); color: #fecaca; }
.tp-btn-danger:hover { background: rgba(248,113,113,.26); }
.tp-btn-ok { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.4); color: #a7f3d0; }
.tp-btn-ok:hover { background: rgba(52,211,153,.26); }
.tp-btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.tp-btn-ghost { background: transparent; }

.tp-input, .tp-select, .tp-textarea {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: var(--tp-strong); font-size: 14px;
}
.tp-select { background: #1e293b; }
.tp-input::placeholder, .tp-textarea::placeholder { color: #64748b; }
.tp-input[readonly] { opacity: .65; }
.tp-textarea { resize: vertical; min-height: 84px; }
.tp-label { display: block; font-size: 12px; font-weight: 700; color: #cbd5e1; margin: 0 0 5px; }
.tp-field { margin-bottom: 12px; }
.tp-hint { font-size: 11.5px; color: var(--tp-muted); margin-top: 4px; }
.tp-err { font-size: 12px; color: #fecaca; margin-top: 4px; }
.tp-two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .tp-two { grid-template-columns: 1fr; } }

.tp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; border: 1px solid transparent; white-space: nowrap; }
.tp-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tp-b-active { color: #6ee7b7; background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.35); }
.tp-b-suspended { color: #fcd34d; background: rgba(251,191,36,.13); border-color: rgba(251,191,36,.35); }
.tp-b-revoked { color: #fca5a5; background: rgba(248,113,113,.13); border-color: rgba(248,113,113,.35); }
.tp-b-neutral { color: #cbd5e1; background: rgba(148,163,184,.13); border-color: rgba(148,163,184,.3); }
.tp-b-info { color: #7dd3fc; background: rgba(56,189,248,.13); border-color: rgba(56,189,248,.35); }

.tp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: rgba(22,125,154,.2); border: 1px solid rgba(22,125,154,.5); color: #bae6fd; font-size: 12px; font-weight: 700; max-width: 100%; }
.tp-chip a { color: inherit; text-decoration: none; }
.tp-chip a:hover { text-decoration: underline; }
.tp-chip button { border: 0; background: rgba(255,255,255,.12); color: inherit; width: 18px; height: 18px; border-radius: 50%; line-height: 1; cursor: pointer; font-size: 12px; padding: 0; }
.tp-chip button:hover { background: rgba(248,113,113,.5); color: #fff; }
.tp-chip-static { padding-right: 10px; }
.tp-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.tp-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--tp-primary), var(--tp-accent)); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: 0 0 auto; font-size: 14px; }
.tp-avatar-lg { width: 56px; height: 56px; font-size: 20px; }

.tp-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tp-toolbar .tp-input, .tp-toolbar .tp-select { width: auto; min-width: 150px; padding: 8px 11px; }
.tp-search { flex: 1 1 220px; min-width: 200px; }
.tp-seg { display: inline-flex; background: rgba(255,255,255,.07); border: 1px solid var(--tp-line); border-radius: 11px; padding: 3px; }
.tp-seg button { border: 0; background: transparent; color: var(--tp-muted); font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.tp-seg button.on { background: var(--tp-primary); color: #fff; }

.tp-table-wrap { overflow-x: auto; border: 1px solid var(--tp-line); border-radius: 14px; }
.tp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.tp-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #cbd5e1; background: rgba(255,255,255,.07); padding: 10px 12px; white-space: nowrap; }
.tp-table td { padding: 11px 12px; border-top: 1px solid var(--tp-line); vertical-align: middle; }
.tp-table tr:hover td { background: rgba(255,255,255,.025); }
.tp-table tr.tp-dim td { opacity: .62; }
.tp-table .tp-actions { text-align: right; white-space: nowrap; }
.tp-table .tp-actions .tp-btn { margin-left: 4px; }
.tp-person { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.tp-person b { color: var(--tp-strong); display: block; }
.tp-person small { color: var(--tp-muted); display: block; word-break: break-all; }
.tp-empty { text-align: center; padding: 34px 14px; color: var(--tp-muted); }
.tp-empty b { display: block; color: var(--tp-strong); font-size: 15px; margin-bottom: 4px; }

.tp-bar { height: 7px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; min-width: 70px; }
.tp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--tp-primary), var(--tp-ok)); border-radius: 99px; }

.tp-notice { border-radius: 12px; padding: 11px 14px; font-size: 13px; border: 1px solid; margin-bottom: 14px; }
.tp-notice.warn { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.35); color: #fde68a; }
.tp-notice.bad { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.35); color: #fecaca; }
.tp-notice.info { background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.35); color: #bae6fd; }
.tp-notice.ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.35); color: #a7f3d0; }

/* ---------- programme picker (inside the tutor form) ---------- */
.tp-picker { border: 1px solid var(--tp-line); border-radius: 13px; max-height: 330px; overflow-y: auto; background: rgba(0,0,0,.18); }
.tp-pick { padding: 10px 12px; border-bottom: 1px solid var(--tp-line); }
.tp-pick:last-child { border-bottom: 0; }
.tp-pick label.tp-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 700; color: var(--tp-strong); }
.tp-pick input[type=checkbox] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--tp-primary); flex: 0 0 auto; }
.tp-pick .tp-pick-link { margin: 8px 0 0 27px; }
.tp-pick .tp-pick-link .tp-input { padding: 7px 10px; font-size: 13px; }

/* ---------- by-programme view ---------- */
.tp-progs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.tp-prog { background: var(--tp-panel); border: 1px solid var(--tp-line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.tp-prog.tp-none { border-color: rgba(251,191,36,.45); }
.tp-prog h4 { margin: 0; color: var(--tp-strong); font-size: 14.5px; font-weight: 800; }

/* ---------- modal / dialog ---------- */
.tp-overlay { position: fixed; inset: 0; z-index: 2147483000; background: rgba(2,6,23,.78); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 14px; }
.tp-dialog { background: #0f172a; color: var(--tp-text); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border: 1px solid var(--tp-line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.tp-dialog.tp-wide { max-width: 860px; }
.tp-dialog-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tp-x { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; flex: 0 0 auto; }
.tp-x:hover { background: rgba(255,255,255,.2); }
.tp-dialog-f { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- toast ---------- */
.tp-toasts { position: fixed; right: 14px; bottom: 14px; z-index: 2147483600; display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 380px); }
.tp-toast { background: #0b1220; color: #fff; border: 1px solid var(--tp-line); border-left: 4px solid var(--tp-info); padding: 11px 14px; border-radius: 12px; font-size: 13px; box-shadow: 0 14px 40px rgba(0,0,0,.5); animation: tp-in .18s ease-out; }
.tp-toast.ok { border-left-color: var(--tp-ok); } .tp-toast.bad { border-left-color: var(--tp-bad); } .tp-toast.warn { border-left-color: var(--tp-warn); }
@keyframes tp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Facilitator Portal (full-screen) ---------- */
.tp-portal { position: fixed; inset: 0; z-index: 60; background: #0b1220; display: none; flex-direction: column; }
.tp-portal.open { display: flex; }
.tp-p-head { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--tp-line); background: #0f172a; flex-wrap: wrap; }
.tp-p-head img { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; background: #fff; padding: 3px; }
.tp-p-head h1 { margin: 0; font-size: 17px; font-weight: 800; color: var(--tp-strong); }
.tp-p-head p { margin: 2px 0 0; color: var(--tp-accent); font-size: 12px; }
.tp-p-body { flex: 1; display: flex; min-height: 0; }
.tp-p-nav { width: 224px; flex: 0 0 auto; border-right: 1px solid var(--tp-line); background: #0f172a; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.tp-tab { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; color: #cbd5e1; padding: 10px 12px; border-radius: 11px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.tp-tab:hover { background: rgba(255,255,255,.07); }
.tp-tab.on { background: var(--tp-primary); color: #fff; }
.tp-tab .tp-ico { width: 20px; text-align: center; }
.tp-p-main { flex: 1; min-width: 0; overflow-y: auto; padding: 22px; padding-bottom: 80px; }
.tp-p-main > section { max-width: 1180px; margin: 0 auto; }
.tp-page-h { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--tp-strong); }
.tp-page-sub { margin: 0 0 18px; color: var(--tp-muted); }
@media (max-width: 820px) {
  .tp-p-body { flex-direction: column; }
  .tp-p-nav { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--tp-line); padding: 8px; }
  .tp-tab { width: auto; white-space: nowrap; padding: 8px 12px; }
  .tp-p-main { padding: 14px; padding-bottom: 80px; }
}

.tp-sess { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--tp-line); border-radius: 13px; background: rgba(255,255,255,.035); }
.tp-sess + .tp-sess { margin-top: 8px; }
.tp-date { width: 52px; text-align: center; flex: 0 0 auto; border-radius: 11px; background: rgba(22,125,154,.25); border: 1px solid rgba(22,125,154,.5); padding: 5px 0; }
.tp-date b { display: block; font-size: 18px; line-height: 1.1; color: #fff; }
.tp-date span { font-size: 10.5px; text-transform: uppercase; color: #bae6fd; font-weight: 800; }
.tp-sess .tp-grow { flex: 1; min-width: 0; }
.tp-sess .tp-grow b { color: var(--tp-strong); display: block; }

.tp-att { display: inline-flex; gap: 4px; }
.tp-att button { border: 1px solid var(--tp-line); background: rgba(255,255,255,.05); color: #cbd5e1; border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.tp-att button.on[data-v="present"] { background: rgba(52,211,153,.25); border-color: rgba(52,211,153,.7); color: #a7f3d0; }
.tp-att button.on[data-v="late"] { background: rgba(251,191,36,.22); border-color: rgba(251,191,36,.7); color: #fde68a; }
.tp-att button.on[data-v="absent"] { background: rgba(248,113,113,.22); border-color: rgba(248,113,113,.7); color: #fecaca; }
.tp-att button.on[data-v="excused"] { background: rgba(56,189,248,.22); border-color: rgba(56,189,248,.7); color: #bae6fd; }

.tp-drawer-back { position: fixed; inset: 0; z-index: 2147483000; background: rgba(2,6,23,.6); display: flex; justify-content: flex-end; }
.tp-drawer { width: min(520px, 100%); height: 100%; background: #0f172a; border-left: 1px solid var(--tp-line); padding: 20px; overflow-y: auto; }

.tp-nav-btn-extra { display: none; }

@media print { .tp-portal, .tp-overlay, .tp-toasts { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .tp-toast { animation: none; } .tp-btn { transition: none; } }

/* facilitator pictures */
.tp-avatar-img { object-fit: cover; background: #e2e8f0; }

/* ---- rich text editor for programme notes (Word / Google Docs style) ---- */
.rt-wrap { border: 1px solid #c7c7c7; border-radius: 12px; overflow: hidden; background: #f9fbfd; color: #1f1f1f; font-family: "Google Sans", "Plus Jakarta Sans", Roboto, Arial, sans-serif; }
/* toolbar colours follow Google Docs: pale blue-grey pill, grey icons, soft grey hover, light blue "on" state */
.rt-bar { position: sticky; top: -22px; z-index: 3; background: #edf2fa; margin: 8px 8px 0; padding: 4px 10px; border-radius: 24px; display: flex; flex-direction: column; gap: 2px; }
.rt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 34px; }
.rt-sep { width: 1px; height: 20px; background: #c7c7c7; margin: 0 6px; }
.rt-b { min-width: 30px; height: 30px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: #444746; cursor: pointer; font-size: 14px; position: relative; }
.rt-b:hover { background: rgba(31, 31, 31, .08); } .rt-b.on { background: #d3e3fd; color: #041e49; }
.rt-b small { font-size: 9px; }
.rt-s { height: 30px; border-radius: 6px; border: 0; background-color: transparent; color: #1f1f1f; font-size: 13px; padding: 0 22px 0 8px; max-width: 132px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23444746' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; font-family: inherit; }
.rt-s:hover { background-color: rgba(31, 31, 31, .08); } .rt-s:focus-visible, .rt-b:focus-visible { outline: 2px solid #0b57d0; outline-offset: -2px; }
.rt-s option { background: #fff; color: #1f1f1f; }
.rt-s-sm { max-width: 86px; }
.rt-color { overflow: hidden; flex-direction: column; gap: 0; padding: 0; width: 30px; }
.rt-color .rt-a { font-weight: 700; font-size: 14px; line-height: 1; margin-top: 4px; color: #444746; } .rt-color .rt-hl { font-weight: 700; font-size: 11px; line-height: 1; margin-top: 5px; background: #fff200; color: #1f1f1f; padding: 1px 3px; border-radius: 2px; }
.rt-color i { display: block; width: 16px; height: 3px; margin-top: 2px; border-radius: 1px; }
.rt-color input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
/* the page sits on a pale canvas, like a Docs page */
.rt-page { background: #fff; color: #1f1f1f; margin: 12px; border: 1px solid #dadce0; border-radius: 4px; box-shadow: 0 1px 3px rgba(60, 64, 67, .15); min-height: 320px; max-height: 52vh; overflow: auto; padding: 24px 28px; font-size: 15px; line-height: 1.6; outline: 0; word-break: break-word; font-family: Arial, Helvetica, sans-serif; }
.rt-page:empty::before { content: attr(data-ph); color: #80868b; }
.rt-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 4px 16px 10px; font-size: 11px; color: #5f6368; }
.rt-page p, .rt-content p { margin: 0 0 .6em; } .rt-page div, .rt-content div { margin: 0; }
.rt-page h1, .rt-content h1 { font-size: 1.7em; margin: .6em 0 .3em; line-height: 1.25; } .rt-page h2, .rt-content h2 { font-size: 1.4em; margin: .6em 0 .3em; line-height: 1.25; } .rt-page h3, .rt-content h3 { font-size: 1.15em; margin: .6em 0 .3em; line-height: 1.3; } .rt-page h4, .rt-content h4 { font-size: 1em; margin: .6em 0 .3em; }
.rt-page ul, .rt-page ol, .rt-content ul, .rt-content ol { margin: 0 0 .6em; padding-left: 1.6em; } .rt-page ul, .rt-content ul { list-style: disc; } .rt-page ol, .rt-content ol { list-style: decimal; }
.rt-page blockquote, .rt-content blockquote { margin: .6em 0; padding: 4px 14px; border-left: 4px solid #cbd5e1; color: #475569; }
.rt-page table, .rt-content table { border-collapse: collapse; margin: .6em 0; max-width: 100%; } .rt-page td, .rt-page th, .rt-content td, .rt-content th { border: 1px solid #94a3b8; padding: 5px 8px; min-width: 40px; vertical-align: top; }
.rt-page a, .rt-content a { color: #0e7490; text-decoration: underline; } .rt-page hr, .rt-content hr { border: 0; border-top: 1px solid #cbd5e1; margin: 1em 0; }
@media (max-width: 640px) { .rt-page { padding: 14px; max-height: 44vh; margin: 8px; } .rt-s { max-width: 100px; } .rt-bar { margin: 6px 6px 0; border-radius: 18px; } }

.rt-page img, .rt-content img { max-width: 100%; height: auto; border-radius: 6px; display: inline-block; vertical-align: middle; }

/* make sure every toolbar control is clearly visible whatever the page theme does: solid light bar, dark icons and text */
.rt-wrap .rt-bar { background: #e3eaf6 !important; border: 1px solid #c9d4e8; }
.rt-wrap .rt-b, .rt-wrap .rt-b * { color: #1f2937 !important; -webkit-text-fill-color: #1f2937 !important; opacity: 1 !important; }
.rt-wrap .rt-b svg path { stroke: #1f2937 !important; }
.rt-wrap .rt-b.on, .rt-wrap .rt-b.on * { color: #041e49 !important; -webkit-text-fill-color: #041e49 !important; background-color: transparent; }
.rt-wrap .rt-b.on { background: #bfd4fb !important; }
.rt-wrap .rt-b:hover { background: rgba(31, 41, 55, .12) !important; }
.rt-wrap .rt-s { color: #1f2937 !important; -webkit-text-fill-color: #1f2937 !important; background-color: #fff !important; border: 1px solid #c3cde0 !important; opacity: 1 !important; }
.rt-wrap .rt-s:hover { background-color: #f1f5fb !important; }
.rt-wrap .rt-s option { color: #1f2937 !important; background: #fff !important; }
.rt-wrap .rt-sep { background: #9fb0cc; }
.rt-wrap .rt-color .rt-hl { color: #1f2937 !important; -webkit-text-fill-color: #1f2937 !important; background: #fff200; }
.rt-wrap .rt-color .rt-a { color: #1f2937 !important; -webkit-text-fill-color: #1f2937 !important; }
.rt-wrap .rt-color input { opacity: 0 !important; }   /* the colour picker stays invisible on top of the A / ab button */
.rt-wrap .rt-page { color: #1f1f1f !important; background: #fff !important; }
.rt-wrap .rt-foot, .rt-wrap .rt-foot span { color: #5f6368 !important; }

/* Phone: scrolling up inside the Facilitator Portal must never trigger the browser's pull-to-refresh reload */
html:has(.tp-portal.open), html:has(.tp-portal.open) body { overscroll-behavior-y: contain; }
.tp-portal, .tp-portal.open, .tp-p-main, .tp-p-nav, .tp-drawer, .tp-dialog, .tp-picker, .tp-overlay { overscroll-behavior: contain; }
.tp-p-main { -webkit-overflow-scrolling: touch; }
