/* PREMED Critical Care: Trust dashboard. Colours come from tokens.css (copied from the app by tools/build.rb);
   --accent is the Trust's own colour (set on .dash). Desktop first, works down to phone width. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-700); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 6px; }
.loading { padding: 40px; color: var(--muted); }

/* layout */
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 20px 16px; color: var(--white);
  background: linear-gradient(180deg, var(--navy-950) 0%, color-mix(in srgb, var(--accent) 35%, var(--navy-950)) 100%); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img, .brand .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--white); object-fit: contain; padding: 4px; flex-shrink: 0; }
.brand .mark { display: grid; place-items: center; color: var(--navy-950); font-weight: 900; font-size: 20px; }
.brand b { display: block; letter-spacing: .12em; font-size: 15px; }
.brand small { display: block; font-size: 12px; opacity: .8; line-height: 1.3; }
.brand.big b { color: var(--navy-950); } .brand.big small { color: var(--muted); opacity: 1; } .brand.big .mark { background: var(--navy-950); color: var(--white); }
.switch select { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: var(--white); }
.switch option { color: var(--text); }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: rgba(255,255,255,.85); text-decoration: none; font-weight: 650; }
.side nav a span { width: 18px; text-align: center; opacity: .8; }
.side nav a:hover { background: rgba(255,255,255,.08); }
.side nav a.on { background: var(--white); color: var(--navy-950); }
.nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--white); font-style: normal; font-size: 11px; font-weight: 800; text-align: center; line-height: 20px; }
.msg.k-approval { background: #e3f4ea; } .msg.k-changes { background: #fff1d1; } .msg.k-assignment { background: #eef1f6; }
.me { border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; }
.me b { display: block; } .me small { display: block; opacity: .75; font-size: 12px; }
.me .linkish { color: var(--white); padding: 0; margin-top: 6px; }
.main { min-width: 0; }
.demo-bar, .pilot-bar { padding: 8px 28px; font-size: 13px; font-weight: 700; }
.demo-bar { background: #fff4d6; color: #7a5300; }
.pilot-bar { background: var(--ent-bg, #e7f3fb); color: #0b4a7f; }
.page { padding: 26px 28px 60px; max-width: 1200px; outline: none; }

/* type and blocks */
.ph { margin-bottom: 18px; }
.ph h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.01em; color: var(--navy-950); }
.ph p { margin: 0 0 10px; color: var(--text-2); max-width: 75ch; }
.ph .btn { margin-top: 4px; }
.back { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-1); padding: 18px 20px; margin-bottom: 16px; }
.card h2 { margin: 0 0 12px; font-size: 16px; color: var(--navy-950); }
.card.warn { border-left: 4px solid #e0a100; } .card.bad { border-left: 4px solid var(--red); }
.card.inner { box-shadow: none; border: 1px solid var(--border); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-1); padding: 16px; text-decoration: none; color: var(--text); border-top: 4px solid var(--accent); }
.stat b { display: block; font-size: 30px; line-height: 1.1; color: var(--navy-950); }
.stat span { font-size: 13px; color: var(--text-2); }
.stat.warn { border-top-color: #e0a100; }
.empty, .fine { color: var(--muted); font-size: 13px; }
.ok-line { color: var(--green); font-weight: 700; }
.bad-text, .danger-text { color: var(--red) !important; }

/* tables */
.table { display: grid; }
.thead, .trow { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 1fr 1fr; gap: 12px; align-items: center; padding: 10px 6px; }
.thead.five, .trow.five { grid-template-columns: minmax(0, 2.4fr) 1fr 1fr 1fr 1fr; }   /* All Trusts: with Add-ons */
.thead { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); }
.trow { border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
a.trow:hover { background: var(--blue-50); }
.trow small, td small, .kv small { display: block; color: var(--muted); font-size: 12px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: capitalize; }
.pill.green { background: #e3f4ea; color: #19703f; } .pill.amber { background: #fff1d1; color: #8a5a00; } .pill.blue { background: var(--blue-50); color: var(--blue-700); }
.pill.muted { background: #eef1f6; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--blue-200); background: var(--surface); font-size: 13px; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--navy-950); color: var(--white); border-color: var(--navy-950); }
.scroll-x { overflow-x: auto; }
.matrix { border-collapse: collapse; width: 100%; font-size: 13px; }
.matrix th, .matrix td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.matrix thead th { font-size: 12px; color: var(--navy-950); }
.matrix thead th small { display: block; font-weight: 600; color: var(--muted); }
.remind { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--blue-700); text-decoration: none; white-space: nowrap; }
.remind:hover { text-decoration: underline; }
.remind.all { display: block; margin-top: 6px; }
.thead.certs, .trow.certs { grid-template-columns: minmax(0, 2fr) 1fr 1fr minmax(210px, 1.4fr); }   /* certificates to review */
.m-pending { color: #0b4a7f; background: #eef5fc; font-weight: 700; }   /* a certificate is waiting for review (T-114) */
.m-ok { color: #19703f; } .m-due { color: #8a5a00; background: #fff8e6; } .m-expired, .m-missing { color: var(--red); background: #fdf2f2; font-weight: 700; }

/* forms */
.form .field, .field { display: grid; gap: 5px; margin-bottom: 12px; }
.field span { font-size: 13px; font-weight: 750; color: var(--navy-950); }
.field input, .field select, .field textarea, .users select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--white); }
.field textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }
.form h2 { margin-top: 18px; } .form h2:first-child { margin-top: 0; }
.check { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: -4px 0 12px; }
.check.ok { background: #e3f4ea; color: #19703f; font-weight: 700; } .check.bad { background: #fdf2f2; color: var(--red); }
.check ul { margin: 4px 0 0; padding-left: 18px; }
.check-row { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 14px; }
.check-row input { margin-top: 4px; } .check-row.locked { color: var(--muted); }
.toggles { columns: 2; margin-bottom: 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.swatches input[type=color] { width: 44px; height: 32px; padding: 0; border: 0; background: none; }
.logo-row { display: flex; gap: 14px; align-items: center; }
.logo-now { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); padding: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--navy-950); color: var(--white);
  font-weight: 800; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--navy-950); border: 1.5px solid var(--blue-200); }
.btn.danger { background: var(--red); }
.btn.block { display: flex; width: 100%; margin-bottom: 8px; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue-700); font-weight: 700; cursor: pointer; text-decoration: underline; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* content */
.prose { font-size: 14.5px; } .prose h3 { margin: 14px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-700); }
.prose li { margin-left: 18px; } .prose li.n { list-style: decimal; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { padding: 8px 0 8px 14px; border-left: 2px solid var(--blue-200); }
.timeline b { text-transform: capitalize; font-size: 13.5px; } .timeline small { display: block; color: var(--muted); font-size: 12px; } .timeline p { margin: 4px 0 0; font-size: 13px; }
.msg { padding: 10px 12px; border-radius: 12px; background: var(--page); margin-bottom: 10px; } .msg.premed { background: var(--blue-50); }
.msg small { color: var(--muted); margin-left: 6px; font-size: 12px; } .msg p { margin: 4px 0 0; }

/* phone preview (branding) */
.phone { width: 260px; margin: 0 auto 10px; border-radius: 34px; border: 8px solid #111; overflow: hidden; background: var(--page); }

/* sign-in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--grad-hero); }
.signin-card { width: min(460px, 100%); padding: 28px; }
.signin h1 { margin: 18px 0 6px; font-size: 22px; color: var(--navy-950); } .signin p { color: var(--text-2); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.person { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--blue-200); background: var(--white); cursor: pointer; }
.person:hover { border-color: var(--navy-950); } .person b { display: block; } .person small { color: var(--muted); font-size: 12px; }

/* toast and modal */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy-950); color: var(--white); padding: 10px 18px; border-radius: 12px; font-weight: 700; z-index: 99; transition: opacity .3s; }
.toast.bad { background: var(--red); } .toast.out { opacity: 0; }
.modal-wrap { position: fixed; inset: 0; background: rgba(0, 20, 49, .45); display: grid; place-items: center; z-index: 90; padding: 20px; }
.modal { background: var(--white); border-radius: 18px; padding: 22px; width: min(460px, 100%); } .modal h2 { margin: 0 0 6px; color: var(--navy-950); }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; } .side { position: static; height: auto; }
  .grid2, .two { grid-template-columns: 1fr; } .page { padding: 18px 16px 50px; } .toggles { columns: 1; }
  .thead { display: none; } .trow, .trow.five, .trow.certs { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================================================================
   Glass style (v2.37), matching the app: light tinted backdrop, a floating frosted sidebar, headers as colour cards,
   frosted white cards with hairline edges, quiet labels, rounded controls.
   ===================================================================================================================== */
:root { --g-navy: radial-gradient(140% 120% at 0% 0%, #2a7fd0 0%, #0b4a7f 55%, #062b52 100%); --hs-sep: rgba(0,20,49,.09); --hs-sub: #6b7a93; }
html, body { background: #f4f7fb; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(160deg, #ffffff 0%, #eef4fb 30%, #dbe8f5 70%, #edf2f8 100%); }
.dash { grid-template-columns: 276px 1fr; }
.side { margin: 12px; height: calc(100vh - 24px); top: 12px; border-radius: 24px; color: var(--navy-950);
  overflow-y: auto; overscroll-behavior: contain;   /* a long menu (Trust section open) scrolls inside the card instead of spilling below it */
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: .5px solid rgba(255,255,255,.8); box-shadow: 0 12px 34px rgba(0,20,49,.1), inset 0 1px 0 rgba(255,255,255,.8); }
.brand img, .brand .mark { box-shadow: 0 0 0 1px rgba(0,20,49,.08); }
.brand b { color: var(--navy-950); } .brand small { color: var(--hs-sub); opacity: 1; }
.switch select { background: rgba(0,20,49,.05); border: 0; color: var(--navy-950); border-radius: 12px; }
.side nav a { color: var(--navy-950); border-radius: 12px; font-weight: 500; transition: background .2s ease; }
.side nav a:hover { background: rgba(0,20,49,.05); }
.side nav a.on { background: var(--navy-950); color: #fff; box-shadow: 0 6px 16px rgba(0,20,49,.18); }
.me { border-top: .5px solid var(--hs-sep); } .me small { color: var(--hs-sub); opacity: 1; } .me .linkish { color: var(--blue-600); }
.demo-bar, .pilot-bar { margin: 12px 28px 0; border-radius: 12px; }
.page { padding: 22px 28px 60px; }
/* Page header: a rounded colour card, like the app's section headers */
.ph { position: relative; overflow: hidden; padding: 20px 22px; border-radius: 24px; background: var(--g-navy); color: #fff; box-shadow: 0 12px 30px rgba(0,20,49,.16); }
.ph::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 45%); }
.ph > * { position: relative; }
.ph h1 { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -.02em; } .ph p { color: rgba(255,255,255,.82); }
.ph .back { color: rgba(255,255,255,.85); }
.ph .btn { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; } .ph .btn:hover { background: rgba(255,255,255,.28); }
.card, .stat { border-radius: 20px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--hs-sep), 0 8px 22px rgba(0,20,49,.05); border: .5px solid rgba(255,255,255,.7); }
.card h2 { font-size: 13px; font-weight: 500; color: var(--hs-sub); }
.card.warn, .card.bad { border-left: 0; } .card.bad { background: #fff3f2; } .card.warn { background: #fff8e8; }
/* Stats: Monzo-style colour tiles */
.stat { color: #fff; border: 0; overflow: hidden; position: relative; }
.stat::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 50%); }
.stat > * { position: relative; }
.stat:nth-child(5n+1) { background: radial-gradient(140% 120% at 0% 0%, #2a7fd0 0%, #0b4a7f 60%, #062b52 100%); }
.stat:nth-child(5n+2) { background: radial-gradient(140% 120% at 0% 0%, #3cc6b0 0%, #0e7c86 60%, #0a4f5c 100%); }
.stat:nth-child(5n+3) { background: radial-gradient(140% 120% at 0% 0%, #7a8cff 0%, #3949ab 60%, #1f2a72 100%); }
.stat:nth-child(5n+4) { background: radial-gradient(140% 120% at 0% 0%, #d67cf0 0%, #8e3fb8 60%, #57207a 100%); }
.stat:nth-child(5n+5) { background: radial-gradient(140% 120% at 0% 0%, #ffb35c 0%, #e8643c 60%, #a83a2a 100%); }
.stat b { color: #fff; } .stat span { color: rgba(255,255,255,.85); }
/* Tables, pills, chips, buttons, forms: quiet and rounded */
.thead { font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--hs-sub); }
.trow { border-bottom: .5px solid var(--hs-sep); } a.trow:hover { background: rgba(0,20,49,.03); }
.pill { border-radius: 8px; font-weight: 600; }
.filters { background: rgba(118,128,150,.14); padding: 3px; border-radius: 12px; display: inline-flex; gap: 2px; }
.chip { border: 0; background: transparent; border-radius: 9px; font-weight: 600; color: var(--navy-950); }
.chip.on { background: #fff; color: var(--navy-950); box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.btn { border-radius: 12px; font-weight: 600; }
.field span { font-weight: 500; color: var(--hs-sub); }
.field input, .field select, .field textarea, .users select { border: 0; background: #eef2f7; border-radius: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #e6ecf4; box-shadow: 0 0 0 3px rgba(42,127,208,.2); }
.field small.hint { display: block; font-size: 12px; color: var(--hs-sub); margin-top: 2px; }
/* Super-admin menu: the selected Trust's pages in a drop-down named after it; PREMED-wide pages below */
.nav-trust { border-radius: 16px; background: rgba(0,20,49,.04); padding: 4px; margin-bottom: 8px; }
.nav-trust summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.nav-trust summary::-webkit-details-marker { display: none; }
.nav-trust summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border: solid #9aa5b8; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease; }
.nav-trust[open] summary::after { transform: rotate(-135deg); }
.nav-trust summary img, .nt-mark { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; object-fit: contain; background: #fff; }
.nt-mark { display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--accent, var(--navy-950)); }
.nav-trust summary b { display: block; font-size: 14px; } .nav-trust summary small { display: block; font-size: 11.5px; color: var(--hs-sub); line-height: 1.25; }
.nav-trust .switch { margin: 2px 6px 6px; display: block; }
.nav-trust a { margin-left: 4px; }
.nav-label { margin: 6px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--hs-sub); text-transform: uppercase; }

/* Branding preview (v2.40): the app's Clinical screen in the Trust view. --pv = the accent colour */
.pv { position: relative; padding: 10px 10px 54px; min-height: 470px; background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--pv) 10%, #fff) 40%, #f4f7fb 100%); font-size: 11px; color: #0b1a33; }
.pv-top { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.pv-top img { width: 26px; height: 26px; border-radius: 7px; background: #fff; object-fit: contain; padding: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.pv-top span { flex: 1; line-height: 1.05; } .pv-top b { font-size: 12px; letter-spacing: .1em; } .pv-top small { display: block; font-size: 8px; letter-spacing: .12em; color: color-mix(in srgb, var(--pv) 60%, #001431); }
.pv-arrest { width: 28px; height: 28px; border-radius: 50%; background: #d61f1f; color: #fff; display: grid; place-items: center; font-style: normal; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.25); }
.pv-card { position: relative; padding: 11px 11px 9px; border-radius: 16px; color: #fff; margin-bottom: 9px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pv) 50%, #001431) 0%, color-mix(in srgb, var(--pv) 85%, #001431) 45%, var(--pv) 80%, color-mix(in srgb, var(--pv) 55%, #fff) 100%); box-shadow: 0 6px 16px rgba(0,20,49,.15); }
.pv-card small { font-size: 9px; opacity: .85; } .pv-card h3 { margin: 2px 0 3px; font-size: 17px; line-height: 1.12; } .pv-card p { margin: 0 34px 0 0; font-size: 10px; opacity: .88; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-logo { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 8px; background: #fff; object-fit: contain; padding: 3px; }
.pv-resus { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 7px; border-radius: 9px; background: rgba(255,255,255,.16); font-weight: 600; }
.pv-resus i { width: 16px; height: 16px; border-radius: 5px; background: #b71010; display: grid; place-items: center; font-style: normal; font-size: 9px; }
.pv-resus span { margin-left: auto; width: 24px; height: 14px; border-radius: 9px; background: rgba(255,255,255,.4); }
.pv-switch { display: flex; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.7); margin-bottom: 9px; }
.pv-switch span { flex: 1; text-align: center; padding: 5px; border-radius: 7px; font-weight: 600; } .pv-switch .on { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
.pv-stack { display: flex; flex-direction: column; }
.pv-sc { height: 62px; padding: 9px 11px; border-radius: 15px; color: #fff; font-size: 12px; box-shadow: 0 -3px 10px rgba(0,20,49,.12); }
.pv-sc + .pv-sc { margin-top: -26px; }
.pv-red { background: radial-gradient(140% 120% at 0% 0%, #ff6b5e 0%, #b71010 55%, #6e0606 100%); }
.pv-a1 { background: radial-gradient(140% 120% at 0% 0%, var(--pv) 0%, color-mix(in srgb, var(--pv) 50%, #001431) 70%, #062b52 100%); }
.pv-a2 { background: radial-gradient(140% 120% at 0% 0%, color-mix(in srgb, var(--pv) 55%, #fff) 0%, color-mix(in srgb, var(--pv) 75%, #000) 60%, color-mix(in srgb, var(--pv) 50%, #001431) 100%); }
.pv-a3 { background: radial-gradient(140% 120% at 0% 0%, color-mix(in srgb, var(--pv) 60%, #fff) 0%, var(--pv) 60%, color-mix(in srgb, var(--pv) 50%, #001431) 100%); height: 74px; }
.pv-tabs { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.85); box-shadow: 0 4px 14px rgba(0,20,49,.15); }
.pv-tabs span { flex: 1; text-align: center; padding: 5px 0; border-radius: 12px; font-size: 8.5px; font-weight: 700; color: #6b7a90; } .pv-tabs .on { background: #eef1f6; color: #0b1a33; }

/* Contacts and Learning (v2.41) */
.btn.small { padding: 6px 12px; font-size: 13px; min-height: 0; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.row-between h2 { margin: 0; }
.field textarea.prose { font-family: inherit; font-size: 15px; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

/* CRM (PREMED only) */
.crm-tabs { margin-bottom: 14px; } .crm-tabs a { text-decoration: none; display: inline-block; }
.crm-board { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; margin-bottom: 16px; }
.crm-board section { background: rgba(118,128,150,.10); border-radius: 14px; padding: 10px; min-height: 120px; }
.crm-board h3 { margin: 0 0 8px; font-size: 13px; display: flex; justify-content: space-between; } .crm-board h3 i { font-style: normal; color: var(--muted); }
.crm-deal { display: grid; gap: 2px; background: var(--white); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; text-decoration: none; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); font-size: 13px; }
.crm-deal small { color: var(--muted); font-size: 12px; } .crm-deal span { font-weight: 700; font-size: 12.5px; }
.crm-feed { list-style: none; margin: 8px 0 0; padding: 0; } .crm-feed li { display: flex; gap: 10px; padding: 9px 0; border-bottom: .5px solid var(--border); }
.crm-feed li.done p { text-decoration: line-through; color: var(--muted); } .crm-feed p { margin: 0 0 2px; white-space: pre-wrap; } .crm-feed small { color: var(--muted); font-size: 12px; }
.crm-feed input[type=checkbox] { margin-top: 3px; width: 18px; height: 18px; } .crm-k { font-size: 11px; font-weight: 700; color: var(--blue-700); min-width: 54px; padding-top: 2px; }
.crm-consent { background: #f3f7fb; border-radius: 12px; padding: 10px 12px 2px; margin-bottom: 12px; }
.crm-search { max-width: 420px; } .trow.two-col { grid-template-columns: 1fr auto; }
@media (max-width: 900px) { .crm-board { grid-template-columns: repeat(5, 200px); } }

/* Teams (v2.42) */
.grade-list { list-style: none; margin: 8px 0 12px; padding: 0; } .grade-list li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: .5px solid var(--border); }
.grade-list li span { flex: 1; } .team-people select { width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--white); }
