/* Tracing Care demo: shared styles for every page.
   Colors live at the top. Change a value here and it updates everywhere. */
:root {
  /* login page (dark) */
  --bg-1: #0b1530;
  --bg-2: #1b2a6b;
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.09);
  --border-d: rgba(255, 255, 255, 0.10);
  --text-d: #eef2ff;
  --muted-d: #9aa6c7;

  /* app pages (light) */
  --side: #0f1a33;
  --page: #f6f7fb;
  --line: #e6e9ef;
  --ink: #0f172a;
  --muted: #536072;
  --faint: #5d6a7c;
  --blue: #2f5fe0;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.5; }
a { color: inherit; }
button { font-family: inherit; }

.logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(150deg, #213E76, #172E58); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-sizing: border-box;
}
.logo-mark svg { display: block; }
/* Wordmark: Fredoka, with "Care" in the logo gradient (a darker gradient on light backgrounds) */
.wordmark { font-family: 'Fredoka', 'Inter', system-ui, sans-serif; font-weight: 500; letter-spacing: -0.01em; }
.wordmark .care { background: linear-gradient(90deg, #4F8BEA, #5CC9B5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-brand .wordmark .care { background-image: linear-gradient(90deg, #2F6FD6, #1E9E8A); }

/* =========================== LOGIN PAGE =========================== */
body.login {
  color: var(--text-d);
  background: linear-gradient(135deg, var(--bg-1) 0%, #121f4d 50%, var(--bg-2) 100%);
  background-attachment: fixed; min-height: 100vh;
}
.login-wrap { max-width: 760px; margin: 0 auto; padding: 56px 16px 40px; display: flex; flex-direction: column; align-items: center; }
.brand { text-align: center; margin-bottom: 28px; }
.brand .logo-mark { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; }
.brand h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.brand p { color: var(--muted-d); font-size: 14px; }
.demo-banner {
  width: 100%; background: rgba(45, 212, 191, 0.10); border: 1px solid rgba(45, 212, 191, 0.35);
  color: #c9fbf2; border-radius: 14px; padding: 12px 16px; font-size: 14px; text-align: center; margin-bottom: 24px;
}
.choose { font-size: 18px; font-weight: 600; margin-bottom: 14px; text-align: center; }
.role-grid { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.role-card {
  display: flex; gap: 14px; align-items: center; text-decoration: none;
  background: var(--card); border: 1px solid var(--border-d); border-radius: 14px; padding: 18px;
  transition: background .15s, border-color .15s, transform .15s;
}
.role-card:hover, .role-card:focus-visible { background: var(--card-hover); border-color: #5b8cff; transform: translateY(-2px); outline: none; }
.role-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(99, 102, 241, 0.2); }
.role-name { font-weight: 600; font-size: 16px; }
.role-person { color: var(--muted-d); font-size: 13px; }
.role-card .go { margin-left: auto; color: #7c9cff; font-size: 20px; }
.btn { display: inline-block; text-align: center; text-decoration: none; cursor: pointer; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 600; font-size: 14px; }
.btn:hover { filter: brightness(1.1); }
.badges { margin-top: 30px; color: var(--muted-d); font-size: 12px; text-align: center; }

/* =========================== APP SHELL =========================== */
body.app { background: var(--page); color: var(--ink); }
.shell { display: flex; min-height: 100vh; }

.sidebar { width: 248px; background: var(--side); color: #e2e8f0; position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; z-index: 20; }
.side-brand { display: flex; gap: 10px; align-items: center; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.07); text-decoration: none; }
.side-brand .logo-mark { width: 36px; height: 36px; border-radius: 10px; }
.side-brand b { display: block; font-size: 15px; color: #fff; }
.side-brand small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--faint); }
.side-sec { font-size: 10px; letter-spacing: .14em; color: #7c8aa5; padding: 20px 20px 8px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; margin: 2px 10px; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; color: #dbe3f0; }
.nav a:hover { background: rgba(255,255,255,.06); }
.nav a.active { background: var(--blue); color: #fff; }
.nav .count { margin-left: auto; background: #f59e0b; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #3b6cf6; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.side-user b { display: block; font-size: 14px; color: #fff; }
.side-user small { color: var(--faint); font-size: 12px; }
.side-user a { margin-left: auto; color: var(--faint); display: grid; place-items: center; padding: 4px; border-radius: 6px; }
.side-user a:hover { color: #fff; background: rgba(255,255,255,.08); }

.main { margin-left: 248px; flex: 1; min-width: 0; }
.header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 12px 24px; }
.header h1 { font-size: 17px; font-weight: 600; }
.header p { font-size: 12px; color: var(--muted); }
.header .spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 10px; width: 240px; color: var(--faint); }
.search input { border: 0; outline: 0; font: inherit; font-size: 13px; width: 100%; color: var(--ink); background: transparent; }
.clock { font-size: 12px; color: #15803d; background: #ecfdf3; border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.clock::before { content: "● "; font-size: 9px; vertical-align: 1px; }
.icon-btn { position: relative; background: none; border: 0; cursor: pointer; color: #475569; padding: 7px; border-radius: 8px; display: grid; place-items: center; text-decoration: none; }
.icon-btn:hover { background: #f1f5f9; }
.icon-btn .badge { position: absolute; top: 1px; right: 1px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; }

.page { padding: 24px; max-width: 1400px; }
.page-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.page-head p { color: var(--muted); font-size: 14px; }
.page-head .tag { margin-left: auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0; }
.tile { border-radius: var(--radius); padding: 16px 18px; border: 1px solid; position: relative; min-height: 112px; }
.tile .t-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.tile .t-value { font-size: 26px; font-weight: 700; margin: 2px 0; line-height: 1.25; }
.tile .t-sub { font-size: 12px; opacity: .85; }
.tile .t-icon { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; }
.tile .delta { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; margin-top: 8px; }
.tile.blue   { background: #eef4ff; border-color: #d8e4ff; color: #1d4ed8; } .tile.blue .t-icon   { background: #dbe7ff; }
.tile.red    { background: #fdf2f2; border-color: #f8d9d9; color: #b91c1c; } .tile.red .t-icon    { background: #fbe0e0; }
.tile.amber  { background: #fdf8ec; border-color: #f6e6bd; color: #b45309; } .tile.amber .t-icon  { background: #fbeccc; }
.tile.green  { background: #effaf3; border-color: #cfeedb; color: #15803d; } .tile.green .t-icon  { background: #d7f2e1; }
.tile.purple { background: #f7f2ff; border-color: #e6d9fb; color: #7c3aed; } .tile.purple .t-icon { background: #ece1fd; }
.tile.plain  { background: #fff;    border-color: var(--line); color: var(--ink); }
.tile.blue .delta { background: #dbe7ff; } .tile.red .delta { background: #fbe0e0; } .tile.amber .delta { background: #fbeccc; } .tile.green .delta { background: #d7f2e1; }
.tile.compact { min-height: 0; }
.tile.compact .t-value { font-size: 30px; }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3, .card h2.card-h { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cols { display: grid; grid-template-columns: 2fr 1.15fr; gap: 16px; margin-bottom: 16px; }
.cols-even { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols > *, .cols-even > *, .census > *, .cal-wrap > * { min-width: 0; }
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.money div { border-radius: 10px; padding: 14px; text-align: center; font-size: 12px; }
.money b { display: block; font-size: 20px; }
.bar-l { height: 8px; background: #eef0f4; border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.bar-l span { display: block; height: 100%; background: #3b6cf6; border-radius: 99px; }

.alert-row { border-radius: 8px; padding: 10px 12px; font-size: 13px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; border: 1px solid; }
.alert-row:last-child { margin-bottom: 0; }
.alert-row small { display: block; opacity: .75; font-size: 11px; font-weight: 400; }
.alert-row svg { flex-shrink: 0; margin-top: 2px; }
.alert-row.red   { background: #fdf2f2; border-color: #f8d9d9; color: #991b1b; }
.alert-row.amber { background: #fdf8ec; border-color: #f6e6bd; color: #92400e; }
.alert-row.blue  { background: #eef4ff; border-color: #d8e4ff; color: #1e40af; }
.alert-row .act { margin-left: auto; }

.integrations { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.integrations div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 500; }
.integrations small { display: block; font-size: 11px; font-weight: 400; }

/* ---------- pills, chips, buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.pill.good   { background: #e7f7ee; color: #15803d; }
.pill.warn   { background: #fef3c7; color: #b45309; }
.pill.bad    { background: #fde8e8; color: #b91c1c; }
.pill.info   { background: #e8efff; color: #1d4ed8; }
.pill.purple { background: #f1e9fe; color: #7c3aed; }
.pill.gray   { background: #f1f5f9; color: #475569; }
.pill.outline { background: #fff; border: 1px solid #e2e8f0; color: #475569; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.fchip { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--ink); }
.fchip:hover { border-color: #c7d2fe; }
.fchip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.fchip.dark.on { background: var(--ink); border-color: var(--ink); }
.fchip .n { font-size: 11px; margin-left: 6px; background: rgba(15,23,42,.08); padding: 1px 7px; border-radius: 999px; }
.fchip.on .n { background: rgba(255,255,255,.22); }

.btn-o { border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.btn-o:hover { background: #f8fafc; }
.btn-o.red { color: #b91c1c; border-color: #f3c9c9; }
.btn-o.done { color: #15803d; border-color: #bfe8cf; background: #f0fbf4; cursor: default; }
.btn-blue { background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.input { border: 1px solid #e2e8f0; border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 14px; width: 100%; background: #fff; }

.empty { border: 1.5px dashed #e2e8f0; border-radius: var(--radius); padding: 44px 20px; text-align: center; color: var(--faint); background: #fff; }
.empty svg { display: block; margin: 0 auto 10px; }

/* ---------- census ---------- */
.census { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prow { padding: 16px 20px; border-bottom: 1px solid #eef0f4; cursor: pointer; display: flex; gap: 12px; }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: #fafbfd; }
.prow.sel { background: #f3f6ff; box-shadow: inset 3px 0 0 var(--blue); }
.pname { font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meta { font-size: 13px; color: var(--muted); }
.dx { font-size: 14px; font-weight: 500; margin-top: 2px; }
.next { color: #1d4ed8; font-size: 13px; font-weight: 500; margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.detail { position: sticky; top: 84px; }
.detail dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; font-size: 13px; margin: 12px 0 16px; }
.detail dt { color: var(--muted); }

/* ---------- referrals ---------- */
.overdue-box { background: #fdf2f2; border: 1px solid #f8d9d9; border-radius: var(--radius); padding: 16px 20px; color: #991b1b; display: flex; gap: 12px; margin-bottom: 18px; font-size: 14px; }
.overdue-box b { font-size: 15px; }
.overdue-box ul { margin-top: 6px; list-style: none; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.rcard.flag { border-color: #f3c9c9; }
.banner { color: #fff; font-size: 13px; font-weight: 600; padding: 9px 20px; display: flex; gap: 8px; align-items: center; }
.banner.crit { background: #c53030; }
.banner.over { background: #e05252; }
.rbody { padding: 16px 20px; display: flex; gap: 14px; }
.ricon { width: 40px; height: 40px; border-radius: 10px; background: #f1f5f9; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.rmain { flex: 1; min-width: 0; }
.rmain .spec { font-weight: 600; font-size: 15px; margin-top: 4px; }
.rmain .row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 8px; }
.rmain .foot { font-size: 13px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.days-red { color: #c53030; font-weight: 600; }

/* ---------- calendar ---------- */
.cal-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head b { font-size: 15px; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.calgrid .dow { font-size: 11px; color: var(--faint); font-weight: 600; padding-bottom: 6px; }
.calgrid button { border: 0; background: none; padding: 7px 0 4px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink); }
.calgrid button:hover { background: #f1f5f9; }
.calgrid button.past { color: var(--faint); font-weight: 400; }
.calgrid button.sel { background: var(--blue); color: #fff; }
.dots { display: flex; gap: 3px; justify-content: center; height: 5px; margin-top: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.legend { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font-size: 13px; display: grid; gap: 6px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.slot { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.slot .time { font-weight: 600; width: 74px; font-size: 14px; }
.slot.open { border-style: dashed; background: #f6fdf9; }

/* ---------- portal ---------- */
.risk-box { background: #fdf6f5; border: 1px solid #f6dcd8; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.risk-box h3 { color: #991b1b; font-size: 15px; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.risk-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; gap: 12px; }
.risk-card .why { color: #b91c1c; font-style: italic; font-size: 13px; }
.risk-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 700; color: #b91c1c; font-size: 13px; }
.risk-bar .bar-l { flex: 1; margin: 0; }
.appt { padding: 14px 0; border-bottom: 1px solid #eef0f4; display: flex; gap: 12px; align-items: center; }
.appt:last-child { border-bottom: 0; }
.appt .status { font-size: 12px; margin-top: 4px; display: flex; gap: 10px; align-items: center; }
.msg { padding: 14px 18px; border-bottom: 1px solid #eef0f4; display: flex; gap: 12px; }
.msg:last-child { border-bottom: 0; }
.msg.unread { box-shadow: inset 3px 0 0 #3b6cf6; background: #fbfcff; }
.msg .mtitle { font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.msg .preview { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .reply-box { margin-top: 10px; display: none; gap: 8px; }
.msg.replying .reply-box { display: flex; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #3b6cf6; display: inline-block; }
.link-btn { background: none; border: 0; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink); align-self: flex-start; }

.ai-note { margin-top: 14px; font-size: 12px; color: var(--muted); border-left: 3px solid #2dd4bf; padding-left: 10px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; transition: .25s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eef0f4; font-size: 14px; }
.switch-row:last-child { border-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .integrations { grid-template-columns: repeat(3, 1fr); }
  .census { grid-template-columns: 1fr; }
  .detail { position: static; }
}
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cols, .cols-even, .cal-wrap, .risk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar { position: sticky; top: 0; width: 100%; flex-direction: row; align-items: center; overflow-x: auto; }
  .side-brand { border: 0; padding: 10px 12px; }
  .side-brand small, .side-sec, .side-user .who { display: none; }
  .nav { display: flex; }
  .nav a { white-space: nowrap; margin: 6px 2px; padding: 7px 10px; }
  .side-user { margin-top: 0; margin-left: auto; border: 0; padding: 8px 12px; }
  .side-user .avatar { display: none; }
  .main { margin-left: 0; }
  .header { position: static; padding: 12px 16px; flex-wrap: wrap; }
  .search { display: none; }
  .page { padding: 18px 16px; }
  .integrations { grid-template-columns: 1fr 1fr; }
  .money { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .role-grid { grid-template-columns: 1fr; }
  .login-wrap { padding-top: 36px; }
  .tiles { grid-template-columns: 1fr; }
  .prow, .rbody { flex-wrap: wrap; }
  .next { margin-left: 0; align-items: flex-start; text-align: left; }
  .header .clock { display: none; }
}

/* ---------- tables, chart rows, payer hub, analytics ---------- */
.charts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.charts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.charts3 > *, .charts2 > * { min-width: 0; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: #f8fafc; padding: 11px 20px; white-space: nowrap; }
.tbl td { padding: 13px 20px; border-top: 1px solid #eef0f4; vertical-align: middle; white-space: nowrap; }
.tbl .sub { font-size: 12px; color: var(--faint); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 600; }
.fchip.sm { padding: 4px 12px; font-size: 12px; background: #f1f5f9; border-color: #f1f5f9; }
.fchip.sm.on { background: var(--blue); border-color: var(--blue); }

.notice { border-radius: var(--radius); border: 1px solid; padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; }
.notice b { font-size: 15px; display: block; }
.notice .act { margin-left: auto; flex-shrink: 0; }
.notice.orange { background: #fff6ee; border-color: #f8dcc2; color: #9a3412; }
.notice.red { background: #fdf2f2; border-color: #f8d9d9; color: #991b1b; }
.btn-orange { background: #ea6a1c; color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; }
.payer-cols { display: grid; grid-template-columns: 1fr 1.7fr; gap: 16px; margin-bottom: 16px; }
.payer-cols > * { min-width: 0; }
.mix-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; }
.mix-row i { width: 10px; height: 10px; border-radius: 50%; }
.mix-row .pct { margin-left: auto; font-weight: 600; }
.mix-row .amt { color: var(--faint); width: 86px; text-align: right; }
.auth-list { max-height: 520px; overflow-y: auto; margin: 0 -20px; }
.auth { padding: 16px 20px; border-top: 1px solid #eef0f4; display: flex; gap: 12px; }
.auth .note { font-style: italic; color: var(--muted); font-size: 13px; }
.elig { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; }
.elig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 10px; }
.elig-grid div { background: #f8fafc; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: var(--muted); }
.elig-grid b { display: block; font-size: 15px; color: var(--ink); }
.goal-bar { height: 14px; background: #eef0f4; border-radius: 99px; overflow: hidden; margin: 10px 0 8px; }
.goal-bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.occ { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.occ .bar-l { width: 100px; margin: 0; }
.dot-c { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; }

@media (max-width: 1150px) {
  .charts3 { grid-template-columns: 1fr 1fr; }
  .payer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .charts3, .charts2 { grid-template-columns: 1fr; }
  .elig-grid { grid-template-columns: 1fr 1fr; }
  .notice { flex-wrap: wrap; }
  .notice .act { margin-left: 0; }
}

/* =========================== PATIENT PORTAL =========================== */
body.pp { background: #f6f8fb; color: var(--ink); }
.pp-shell { display: flex; min-height: 100vh; }
.pp-side { width: 268px; background: #fff; border-right: 1px solid var(--line); position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; overflow-y: auto; z-index: 20; }
.pp-brand { display: flex; gap: 10px; align-items: center; padding: 18px; }
.pp-brand .logo-mark { width: 40px; height: 40px; border-radius: 11px; }
.pp-brand b.wordmark, .pp-brand b .wordmark { font-size: 17px; }
.pp-brand b { display: block; font-size: 15px; }
.pp-brand small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--faint); }
.pp-me { display: flex; gap: 10px; align-items: center; padding: 12px 18px; background: #f0f9fb; border-top: 1px solid #e3f1f4; border-bottom: 1px solid #e3f1f4; }
.pp-me .avatar { background: linear-gradient(135deg, #3b82f6, #2dd4bf); }
.pp-me b { display: block; font-size: 14px; }
.pp-me small { font-size: 11px; color: var(--muted); }
.pp-sec-gap { height: 12px; }
.pp-sec { font-size: 12px; letter-spacing: .12em; color: var(--faint); padding: 18px 20px 6px; font-weight: 600; }
.pp-nav a { display: flex; align-items: center; gap: 10px; margin: 1px 10px; padding: 8px 12px; border-radius: 9px; text-decoration: none; font-size: 14px; color: #334155; }
.pp-nav a:hover { background: #f1f5f9; }
.pp-nav a.active { background: linear-gradient(90deg, #3b6cf6, #5ed3c0); color: #fff; }
.pp-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); }
.pp-foot .secure { background: #ecfdf3; color: #15803d; font-size: 12px; font-weight: 500; border-radius: 8px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; }
.pp-foot a { display: flex; gap: 8px; align-items: center; padding: 10px 8px 2px; font-size: 14px; color: var(--muted); text-decoration: none; }
.pp-main { margin-left: 268px; flex: 1; min-width: 0; padding: 28px 32px 48px; max-width: 1240px; }
.pp-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pp-head h1 { font-size: 26px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.pp-head p { color: var(--muted); }
.pp-doc { text-align: right; font-size: 13px; color: var(--muted); }
.pp-doc b { display: block; font-size: 15px; color: var(--ink); }
.care-box { background: #fffaee; border: 1px solid #f6e3b4; border-radius: var(--radius); padding: 16px 20px; display: flex; gap: 12px; margin-bottom: 18px; color: #7c2d12; font-size: 14px; }
.care-box b.t { display: block; font-size: 15px; color: #78350f; margin-bottom: 4px; }
.care-box .od { color: #b91c1c; font-weight: 600; }
.care-box .ds { color: #b45309; font-weight: 600; }
.btn-amber { background: #f0a830; color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; align-self: flex-start; margin-left: auto; }
.mini-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; text-decoration: none; }
.mini:hover { border-color: #c7d2fe; }
.mini .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.mini b { font-size: 24px; display: block; line-height: 1.1; }
.mini span { font-size: 13px; color: var(--muted); }
.pp-cols { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; align-items: start; }
.pp-cols > * { min-width: 0; }
.next-appt { background: linear-gradient(120deg, #3b6cf6, #4fc3b5); color: #fff; border-radius: 14px; padding: 22px 24px; position: relative; margin-bottom: 16px; }
.next-appt .lbl { font-size: 12px; letter-spacing: .1em; font-weight: 600; opacity: .9; }
.next-appt h2 { font-size: 22px; margin-top: 4px; }
.next-appt .when { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; margin: 12px 0 4px; }
.next-appt .when span { display: flex; gap: 6px; align-items: center; }
.next-appt .prep { background: rgba(255,255,255,.18); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.next-appt .ic { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.2); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.btn-white { background: #fff; color: #2f5fe0; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vitals div { background: #f8fafc; border-radius: 10px; padding: 12px 14px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vitals b { display: block; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); margin-top: 2px; }
.cond { background: #f8fafc; border-radius: 10px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cond b { display: block; font-size: 15px; }
.med { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #eef0f4; font-size: 14px; }
.med:last-child { border-bottom: 0; }
.med .r { text-align: right; font-size: 12px; color: var(--muted); }
.med .r b { color: var(--ink); font-weight: 500; }
.allergy { background: #fdf2f2; border: 1px solid #f8d9d9; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; color: #991b1b; }
.allergy b { display: block; }
.kv { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.kv span:first-child { color: var(--muted); }
.flag-h { color: #b91c1c; font-weight: 600; }
.ecard { max-width: 520px; border-radius: 16px; overflow: hidden; border: 1px solid #f3c9c9; background: #fff; }
.ecard .top { background: #c53030; color: #fff; padding: 16px 20px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.ecard .body { padding: 18px 20px; }
.thread { display: grid; gap: 10px; margin: 12px 0; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 14px; background: #f1f5f9; }
.bubble.me { margin-left: auto; background: #e8efff; }
.bubble small { display: block; color: var(--faint); font-size: 11px; margin-top: 4px; }

@media (max-width: 1100px) {
  .pp-cols { grid-template-columns: 1fr; }
  .mini-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .pp-shell { flex-direction: column; }
  .pp-side { position: sticky; top: 0; width: 100%; flex-direction: row; overflow-x: auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .pp-brand { padding: 10px 12px; }
  .pp-brand small, .pp-me, .pp-sec, .pp-foot .secure { display: none; }
  .pp-nav { display: flex; }
  .pp-nav a { white-space: nowrap; margin: 6px 2px; }
  .pp-foot { margin: 0; border: 0; padding: 0 12px; }
  .pp-foot a { padding: 8px; white-space: nowrap; }
  .pp-main { margin-left: 0; padding: 20px 16px 40px; }
  .vitals { grid-template-columns: 1fr 1fr; }
  .pp-doc { text-align: left; }
}
@media (max-width: 560px) {
  .mini-tiles { grid-template-columns: 1fr; }
  .care-box { flex-wrap: wrap; }
  .btn-amber { margin-left: 0; }
}

/* =========================== PRACTICE MODE =========================== */
.pr-panel { position: fixed; right: 18px; bottom: 18px; width: 340px; max-height: calc(100vh - 36px); overflow-y: auto; background: #fff; border: 2px solid #3b6cf6;
  border-radius: 16px; box-shadow: 0 18px 50px rgba(15,23,42,.22); padding: 16px 18px; z-index: 40; font-size: 15px; line-height: 1.55; color: var(--ink); }
.pr-panel.mini { width: auto; padding: 10px 14px; }
.pr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-top b { display: flex; gap: 6px; align-items: center; color: #2f5fe0; font-size: 14px; }
.pr-tools { display: flex; gap: 6px; }
.pr-tools button { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.pr-tools button[aria-pressed="true"] { background: #e8efff; border-color: #3b6cf6; }
.pr-dots { display: flex; gap: 6px; margin: 10px 0 12px; }
.pr-dots i { flex: 1; height: 6px; border-radius: 99px; background: #e2e8f0; }
.pr-dots i.ok { background: #22c55e; }
.pr-dots i.now { background: #3b6cf6; }
.pr-panel.mini .pr-dots { margin: 8px 0 0; width: 180px; }
.pr-count { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.pr-panel h4, .pr-panel .pr-h { font-size: 19px; margin: 2px 0 6px; line-height: 1.3; }
.pr-why { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.pr-panel ol { padding-left: 22px; margin-bottom: 14px; display: grid; gap: 6px; }
.pr-btn { display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; background: #2f5fe0; color: #fff; border: 0; border-radius: 10px;
  padding: 12px 16px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.pr-btn:hover { filter: brightness(1.08); }
.pr-btn.ghost { background: #fff; color: #2f5fe0; border: 1px solid #c7d2fe; }
.pr-link { background: none; border: 0; color: #2f5fe0; font-size: 14px; cursor: pointer; padding: 8px 0; text-decoration: underline; font-family: inherit; }
.pr-yay { text-align: center; padding: 6px 0 12px; }
.pr-yay svg { margin: 0 auto 4px; display: block; }
.pr-yay p { font-size: 15px; }
.pr-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef0f4; font-size: 12px; color: var(--muted); }
.pr-foot > div { margin-top: 4px; }
.pr-pulse { outline: 3px solid #f59e0b !important; outline-offset: 3px; border-radius: 8px; animation: prPulse 1s ease-in-out infinite; position: relative; z-index: 5; }
@keyframes prPulse { 50% { outline-color: rgba(245,158,11,.25); } }
@media (prefers-reduced-motion: reduce) { .pr-pulse { animation: none; } }
body.pr-on .pp-main { padding-right: 390px; }

/* bigger text for learners who want it */
body.big .pp-shell { zoom: 1.18; }
body.big .pr-panel { font-size: 17px; }
body.big .pr-panel h4, body.big .pr-panel .pr-h { font-size: 21px; }

/* "In your own portal" note after each task */
.pr-real { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #0c4a6e; text-align: left; }
.pr-real > b { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 3px; }
.pr-real p { margin: 0; }

/* "You did it!" screen */
.pr-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 200; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.pr-done { background: #fff; border-radius: 20px; max-width: 460px; width: 100%; padding: 30px 26px 24px; text-align: center; box-shadow: 0 24px 60px rgba(15,23,42,.3); animation: prPop .35s ease-out; }
@keyframes prPop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pr-done { animation: none; } }
.pr-done-badge { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 0 0 10px #dcfce7; }
.pr-done h2 { font-size: 30px; margin-bottom: 6px; }
.pr-done-lead { font-size: 17px; color: #334155; margin-bottom: 14px; }
.pr-done ul { list-style: none; display: inline-grid; gap: 8px; text-align: left; font-size: 16px; margin-bottom: 14px; }
.pr-done li { display: flex; gap: 10px; align-items: center; }
.pr-done-tip { font-size: 15px; color: var(--muted); background: #f8fafc; border-radius: 12px; padding: 10px 14px; }
.pr-done-btns { display: grid; gap: 10px; margin-top: 18px; }
body.big .pr-done { zoom: 1.12; }

@media (max-width: 1100px) {
  body.pr-on .pp-main { padding-right: 16px; padding-bottom: 54vh; }
  .pr-panel, body.has-back .pr-panel { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 50vh; }
}

/* =========================== PRACTICE WELCOME PAGE =========================== */

/* login page link to practice */
.practice-link { width: 100%; margin-top: 14px; display: flex; gap: 12px; align-items: center; text-decoration: none; background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.35); border-radius: 14px; padding: 14px 18px; color: #c9fbf2; font-size: 14px; }
.practice-link b { color: #fff; display: block; font-size: 15px; }
.practice-link:hover { background: rgba(45, 212, 191, 0.18); }


/* login: patients first, staff screens as a career-track preview */
.start-card { width: 100%; display: flex; align-items: center; gap: 18px; text-decoration: none; color: #fff; border-radius: 18px; padding: 22px 24px;
  background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(45,212,191,.28)); border: 1px solid rgba(94,234,212,.5); box-shadow: 0 14px 40px rgba(0,0,0,.25); transition: transform .15s; }
.start-card:hover, .start-card:focus-visible { transform: translateY(-2px); outline: none; border-color: #5eead4; }
.start-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 28px; }
.start-txt b { display: block; font-size: 20px; margin-bottom: 4px; }
.start-txt span { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); }
.start-go { margin-left: auto; flex-shrink: 0; background: #fff; color: #1e3a8a; font-weight: 700; font-size: 16px; border-radius: 12px; padding: 12px 18px; }
.role-card.wide { width: 100%; margin-top: 12px; }
.choose.later { margin-top: 34px; margin-bottom: 4px; font-size: 15px; color: rgba(255,255,255,.75); }
.later-note { font-size: 13px; color: rgba(255,255,255,.55); text-align: center; margin-bottom: 12px; max-width: 520px; }
.role-grid.three { grid-template-columns: repeat(3, 1fr); }
.role-card.small { padding: 12px 14px; opacity: .85; }
.role-card.small .role-icon { width: 36px; height: 36px; font-size: 18px; }
.role-card.small .role-name { font-size: 14px; }
@media (max-width: 640px) {
  .start-card { flex-direction: column; align-items: flex-start; }
  .start-go { margin-left: 0; }
  .role-grid.three { grid-template-columns: 1fr; }
}


/* patient portal: fewer menu items, so make each one bigger and easier to tap */
.pp-side .pp-nav a { font-size: 16px; padding: 12px 14px; }
@media (max-width: 900px) { .pp-side .pp-nav a { font-size: 15px; padding: 10px 12px; } }

/* patient portal home: shortcuts and a simple feed */
.shortcuts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 4px 0 22px; }
.shortcut { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; text-align: center; }
.shortcut:hover, .shortcut:focus-visible { border-color: #93b4ff; background: #f5f8ff; outline: none; }
.sc-ic { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #e8efff; display: grid; place-items: center; }
.sc-ic i { position: absolute; top: -4px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #dc2626; color: #fff;
  font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.feed-h { font-size: 18px; margin-bottom: 10px; }
.feed { display: grid; gap: 12px; max-width: 820px; }
.feed-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.feed-card .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.fc-body { flex: 1; min-width: 0; }
.fc-body h3 { font-size: 16px; margin-bottom: 4px; }
.fc-text { font-size: 15px; line-height: 1.55; color: #334155; }
.fc-text .od { color: #b91c1c; font-weight: 600; } .fc-text .ds { color: #b45309; font-weight: 600; }
.fc-text .prep { margin-top: 8px; background: #f1f5ff; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.fc-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.fc-actions .btn-o { text-decoration: none; }
@media (max-width: 860px) { .shortcuts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .shortcuts { grid-template-columns: repeat(2, 1fr); } .feed-card { padding: 14px; } }

/* guided practice: story, answer choices, comfort check-in, summary */
.pr-story { font-size: 16px; color: #1e293b; background: #f5f8ff; border-left: 4px solid #3b6cf6; border-radius: 8px; padding: 8px 12px; margin: 4px 0 10px; }
.pr-q { border: 1px solid #c7d2fe; border-radius: 12px; padding: 10px; margin: 0 0 12px; display: grid; gap: 8px; }
.pr-q > b { font-size: 15px; }
.pr-q button { text-align: left; font: inherit; font-size: 15px; background: #fff; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--ink); }
.pr-q button:hover, .pr-q button:focus-visible { border-color: #3b6cf6; background: #f5f8ff; outline: none; }
.pr-try { margin: 0; font-size: 14px; color: #92400e; background: #fffbeb; border-radius: 8px; padding: 8px 10px; }
.pr-scale { display: grid; gap: 8px; margin: 6px 0 4px; }
.pr-scale button { display: flex; align-items: center; gap: 12px; font: inherit; font-size: 16px; font-weight: 600; text-align: left; background: #fff; border: 1.5px solid #cbd5e1;
  border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--ink); }
.pr-scale button:hover, .pr-scale button:focus-visible { border-color: #3b6cf6; background: #f5f8ff; outline: none; }
.pr-scale span { width: 28px; height: 28px; border-radius: 50%; background: #e8efff; color: #2f5fe0; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.pr-sum { text-align: left; background: #f8fafc; border-radius: 12px; padding: 12px 14px; margin: 4px 0 12px; }
.pr-sum > b { display: block; font-size: 15px; margin-bottom: 6px; }
.pr-done .pr-sum ul { display: grid; gap: 6px; margin: 0; font-size: 15px; }
.pr-sum-row { align-items: flex-start !important; }
.pr-done .muted { color: var(--muted); font-size: 14px; }

/* explore mode banner in the patient portal */
.explore-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px;
  padding: 10px 14px; margin-bottom: 18px; font-size: 15px; }
.explore-bar a { color: #047857; font-weight: 700; }


/* login: wordmark size */
.brand h1.wordmark { font-size: 34px; }
.side-brand b .wordmark { font-size: 16px; }


/* ---------- practice welcome page (matches www.tracing-care.com) ---------- */
body.welcome { --wl-navy:#0D2B45; --wl-navy2:#0a2240; --wl-dteal:#0d3b3b; --wl-teal:#1D6B6B; --wl-teal4:#2DD4BF; --wl-blue:#3B82F6;
  --wl-btn-a:#2563EB; --wl-btn-b:#0F766E; --wl-gray:#4B5563; --wl-border:#E5E7EB; --wl-cream:#F8F5EF;
  background:#fff; color:var(--wl-navy); font-size:18px; line-height:1.65; -webkit-font-smoothing:antialiased; }
body.welcome :focus-visible { outline:3px solid var(--wl-teal4); outline-offset:3px; border-radius:6px; }
.wl-skip { position:absolute; left:16px; top:-60px; background:#fff; color:var(--wl-navy); padding:12px 18px; border-radius:10px; z-index:200; font-weight:700; text-decoration:none; }
.wl-skip:focus { top:12px; }
.wl-wrap { max-width:1040px; margin:0 auto; padding:0 28px; }

.wl-top { position:sticky; top:0; z-index:100; background:rgba(13,43,69,.97); border-bottom:1px solid rgba(255,255,255,.08); }
.wl-bar { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:70px; flex-wrap:wrap; padding-top:8px; padding-bottom:8px; }
.wl-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.wl-mark { width:40px; height:40px; border-radius:11px; box-sizing:border-box; flex-shrink:0; background:linear-gradient(150deg,#213E76,#172E58); border:1px solid rgba(255,255,255,.12); display:flex; align-items:center; justify-content:center; }
.wl-word { font-family:'Fredoka','Inter',system-ui,sans-serif; font-size:20px; font-weight:500; color:#fff; letter-spacing:-.2px; line-height:normal; }
.wl-word .care { background:linear-gradient(90deg,#4F8BEA,#5CC9B5); -webkit-background-clip:text; background-clip:text; color:transparent; }
.wl-top-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.wl-toplink { color:rgba(255,255,255,.82); text-decoration:none; font-size:16px; font-weight:500; padding:0 12px; min-height:44px; display:inline-flex; align-items:center; border-radius:10px; }
.wl-toplink:hover { color:#fff; background:rgba(255,255,255,.08); }
.wl-toggle { min-height:44px; border:1px solid rgba(45,212,191,.45); background:transparent; color:var(--wl-teal4); border-radius:10px; padding:8px 14px; font-size:16px; font-weight:600; cursor:pointer; }
.wl-toggle:hover, .wl-toggle[aria-pressed="true"] { background:rgba(45,212,191,.14); color:#fff; }

.wl-hero { position:relative; overflow:hidden; background:linear-gradient(160deg,var(--wl-navy) 0%,var(--wl-navy2) 40%,var(--wl-dteal) 100%); color:#fff; padding:72px 0 80px; }
.wl-hero::before { content:''; position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse 60% 50% at 50% 0%,rgba(59,130,246,.14) 0%,transparent 70%),radial-gradient(ellipse 40% 40% at 85% 85%,rgba(45,212,191,.10) 0%,transparent 60%); }
.wl-hero .wl-wrap { position:relative; }
.wl-eyebrow { color:var(--wl-teal4); font-size:14px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; margin-bottom:14px; }
.wl-hero h1 { font-size:clamp(36px,5.4vw,60px); font-weight:900; line-height:1.06; letter-spacing:-1.5px; color:#fff; margin-bottom:18px; max-width:820px; }
.wl-hero h1 em { font-style:normal; background:linear-gradient(135deg,#60A5FA,var(--wl-teal4)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.wl-hero .lead { font-size:20px; color:rgba(255,255,255,.82); max-width:700px; margin-bottom:36px; }
.wl-hero .lead b { color:#fff; }
.wl-modes-h { font-size:22px; font-weight:800; color:#fff; margin-bottom:14px; }
.wl-modes { display:grid; grid-template-columns:1.2fr 1fr; gap:18px; margin-bottom:24px; }
.wl-mode { display:flex; flex-direction:column; gap:8px; text-decoration:none; color:#fff; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); border-radius:18px; padding:24px; transition:transform .2s, background .2s, box-shadow .2s; }
.wl-mode:hover { transform:translateY(-3px); background:rgba(255,255,255,.10); }
.wl-mode b { font-size:22px; font-weight:800; }
.wl-mode span { font-size:17px; color:rgba(255,255,255,.82); line-height:1.55; }
.wl-mode em { font-style:normal; font-weight:700; color:var(--wl-teal4); margin-top:auto; font-size:18px; }
.wl-mode.wl-main { background:linear-gradient(135deg,var(--wl-btn-a),var(--wl-btn-b)); border-color:transparent; box-shadow:0 8px 30px rgba(37,99,235,.35); }
.wl-mode.wl-main:hover { box-shadow:0 12px 36px rgba(37,99,235,.45); }
.wl-mode.wl-main span { color:rgba(255,255,255,.92); }
.wl-mode.wl-main em { color:#fff; }
.wl-mode .wl-tag { align-self:flex-start; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; background:rgba(255,255,255,.2); color:#fff; border-radius:20px; padding:3px 10px; }
.wl-safe { background:rgba(45,212,191,.10); border:1px solid rgba(45,212,191,.35); border-radius:16px; padding:22px 24px; }
.wl-safe h2 { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:800; color:#fff; margin-bottom:10px; }
.wl-safe ul { padding-left:22px; display:grid; gap:8px; color:rgba(255,255,255,.88); }
.wl-safe b { color:#fff; }

.wl-body { padding-top:72px; padding-bottom:72px; }
.wl-why { margin-bottom:28px; }
.wl-why > h2 { font-size:clamp(28px,3.6vw,40px); font-weight:900; letter-spacing:-1px; line-height:1.12; margin-bottom:12px; }
.wl-why > p { color:var(--wl-gray); font-size:19px; margin-bottom:28px; max-width:760px; }
.wl-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.wl-box { position:relative; overflow:hidden; background:#fff; border:1px solid var(--wl-border); border-radius:20px; padding:28px; margin-bottom:20px; }
.wl-grid .wl-box { margin-bottom:0; }
.wl-box::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--wl-blue),var(--wl-teal4)); }
.wl-box h2 { font-size:24px; font-weight:800; margin-bottom:12px; }
.wl-box h3 { font-size:20px; font-weight:800; margin-bottom:10px; display:flex; align-items:center; gap:10px; }
.wl-box p, .wl-box li { color:var(--wl-gray); }
.wl-box b { color:var(--wl-navy); }
.wl-box ul, .wl-box ol { padding-left:22px; display:grid; gap:8px; }
.wl-num { width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg,var(--wl-blue),var(--wl-teal4)); color:#fff; font-size:16px; font-weight:800; display:grid; place-items:center; flex-shrink:0; }
.wl-note { background:var(--wl-cream); border:1px solid #EADFC9; border-radius:16px; padding:18px 22px; color:#5B4A2B; margin:8px 0 20px; }
.wl-note b { color:var(--wl-navy); }
.wl-privacy { font-size:16px; color:var(--wl-gray); background:#F9FAFB; border:1px dashed #CBD5E1; border-radius:14px; padding:14px 18px; margin:4px 0 6px; }
.wl-start { display:block; text-align:center; background:linear-gradient(135deg,var(--wl-btn-a),var(--wl-btn-b)); color:#fff; text-decoration:none; font-size:22px; font-weight:800; border-radius:14px; padding:20px; margin:28px 0 14px; box-shadow:0 6px 24px rgba(37,99,235,.35); transition:transform .2s, box-shadow .2s; }
.wl-start:hover { transform:translateY(-2px); box-shadow:0 10px 30px rgba(37,99,235,.45); }
.wl-alt { text-align:center; font-size:17px; color:var(--wl-gray); }
.wl-alt a { color:var(--wl-btn-a); font-weight:600; }
.wl-foot { background:var(--wl-navy); color:rgba(255,255,255,.72); padding:32px 0; font-size:15px; }
.wl-foot b, .wl-foot a { color:#fff; }
body.welcome.big { zoom:1.18; }
@media (prefers-reduced-motion: reduce) { .wl-mode, .wl-start { transition:none; } }
@media (max-width: 860px) { .wl-grid { grid-template-columns:1fr; } }
@media (max-width: 640px) {
  .wl-modes { grid-template-columns:1fr; }
  .wl-wrap { padding:0 20px; }
  .wl-hero { padding:48px 0 56px; }
  .wl-body { padding-top:48px; padding-bottom:48px; }
  .wl-toplink { display:none; }
}


/* ---------- back link strip (same on the learner, practice, and portal pages) ---------- */
.tc-back { background:#081C2E; border-bottom:1px solid rgba(255,255,255,.08); font-family:'Inter',system-ui,sans-serif; }
.tc-back a { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:#fff; font-size:16px; font-weight:600; text-decoration:none; padding:0 4px; border-radius:8px; }
.tc-back a:hover { color:#2DD4BF; }
.tc-back a:hover, .tc-back a:focus-visible { text-decoration:underline; text-underline-offset:4px; }
.tc-back a:focus-visible { outline:3px solid #2DD4BF; outline-offset:2px; }
.tc-back-in { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 20px; min-height:48px; }
.tc-back-note { color:rgba(255,255,255,.75); font-size:14px; font-weight:500; }
.tc-back-fixed { position:fixed; top:0; left:0; right:0; z-index:60; }
body.has-back .pp-shell { padding-top:48px; }
body.has-back .pp-side { top:48px; }
body.has-back { scroll-padding-top:64px; }
body.has-back .pr-panel { max-height:calc(100vh - 84px); }
@media (max-width: 560px) { .tc-back-note { display:none; } }


/* ---------- phone layout for the practice portal (860px and narrower) ---------- */
.pp-menu-btn { display:none; }
@media (max-width: 860px) {
  body.pp .pp-side { flex-direction:row; flex-wrap:wrap; align-items:center; overflow:visible; padding:8px 14px; gap:0; min-height:60px; }
  body.pp .pp-brand { flex:1; min-width:0; padding:0; border:0; display:flex; align-items:center; gap:10px; }
  body.pp .pp-brand .logo-mark { width:36px; height:36px; border-radius:10px; flex-shrink:0; }
  body.pp .pp-brand b { white-space:nowrap; font-size:18px; }
  body.pp .pp-sec-gap, body.pp .pp-sec, body.pp .pp-nav, body.pp .pp-foot, body.pp .pp-me { display:none; }
  .pp-menu-btn { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border:1.5px solid #cbd5e1; border-radius:10px;
    background:#fff; color:var(--ink); font:inherit; font-size:16px; font-weight:600; cursor:pointer; flex-shrink:0; }
  .pp-menu-btn:focus-visible { outline:3px solid #3b6cf6; outline-offset:2px; }
  .pp-menu-btn[aria-expanded="true"] { background:#eef3ff; border-color:#3b6cf6; }
  .pp-menu-icon { position:relative; width:18px; height:12px; display:block; }
  .pp-menu-icon i { position:absolute; left:0; width:18px; height:2px; border-radius:2px; background:currentColor; transition:transform .2s, opacity .2s, top .2s; }
  .pp-menu-icon i:nth-child(1){top:0} .pp-menu-icon i:nth-child(2){top:5px} .pp-menu-icon i:nth-child(3){top:10px}
  .pp-menu-btn[aria-expanded="true"] .pp-menu-icon i:nth-child(1){top:5px;transform:rotate(45deg)}
  .pp-menu-btn[aria-expanded="true"] .pp-menu-icon i:nth-child(2){opacity:0}
  .pp-menu-btn[aria-expanded="true"] .pp-menu-icon i:nth-child(3){top:5px;transform:rotate(-45deg)}
  /* open menu: a simple top-to-bottom list */
  body.pp .pp-side.menu-open { max-height:calc(100vh - 48px); overflow-y:auto; align-content:flex-start; box-shadow:0 14px 30px rgba(15,23,42,.18); }
  body.pp .pp-side.menu-open .pp-nav { display:flex; flex-direction:column; flex-basis:100%; }
  body.pp .pp-side.menu-open .pp-sec-gap { display:block; flex-basis:100%; height:8px; }
  body.pp .pp-side.menu-open .pp-nav a { white-space:normal; margin:2px 0; padding:13px 12px; font-size:17px; border-radius:10px; }
  body.pp .pp-side.menu-open .pp-foot { display:block; flex-basis:100%; margin:8px 0 4px; padding:10px 0 0; border-top:1px solid var(--line); }
  body.pp .pp-side.menu-open .pp-foot a { padding:12px; font-size:16px; }
  body.pp .pp-main { padding-top:20px; }

  /* Guided Practice: a smaller panel docked at the bottom */
  .pr-panel, body.has-back .pr-panel { left:0; right:0; bottom:0; width:auto; max-height:44vh; border-radius:18px 18px 0 0; border-width:2px 0 0;
    padding:14px 16px 16px; box-shadow:0 -10px 30px rgba(15,23,42,.18); }
  .pr-panel.mini { left:0; right:0; padding:10px 16px; border-radius:16px 16px 0 0; }
  .pr-panel.mini .pr-dots { width:auto; }
  body.pr-on .pp-main { padding-right:16px; padding-bottom:48vh; }
  .pr-panel h4, .pr-panel .pr-h { font-size:18px; }
  .pr-panel ol { margin-bottom:10px; gap:4px; }
  .pr-scale { gap:6px; }
  .pr-scale button { padding-top:9px; padding-bottom:9px; }
  .pr-foot { font-size:12px; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .pp-menu-icon i { transition:none; } }


/* ---------- sharing list ---------- */
.share-who { flex:1; min-width:0; }
.share-rel { color:var(--muted); font-size:14px; margin:1px 0 2px; }

/* ---------- phones: home shortcuts as a simple list, results as cards ---------- */
@media (max-width: 560px) {
  .shortcuts { grid-template-columns:1fr; gap:8px; }
  .shortcut { flex-direction:row; justify-content:flex-start; gap:14px; padding:10px 14px; min-height:60px; text-align:left; font-size:17px; }
  .shortcut::after { content:'›'; margin-left:auto; font-size:26px; line-height:1; color:#94a3b8; font-weight:400; }
  .sc-ic { width:40px; height:40px; flex-shrink:0; }
  .sc-ic svg { width:20px; height:20px; }

  .share-row { flex-wrap:wrap; }
  .share-row .share-who { flex:1 1 calc(100% - 60px); }
  .share-row .pill { margin-left:52px; margin-top:2px; }

  .tbl-results, .tbl-results tbody, .tbl-results tr, .tbl-results td { display:block; width:100%; }
  .tbl-results thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .tbl-results tr { padding:14px 16px; border-bottom:1px solid var(--line); }
  .tbl-results tr:last-child { border-bottom:0; }
  .tbl-results td { display:flex; justify-content:space-between; gap:12px; padding:3px 0; border:0; font-size:15px; text-align:right; }
  .tbl-results td::before { content:attr(data-label); color:var(--muted); font-weight:500; text-align:left; flex-shrink:0; }
  .tbl-results td:first-child { font-size:17px; padding-bottom:6px; text-align:left; }
  .tbl-results td:first-child::before { display:none; }
  .tbl-results .val { display:inline-flex; align-items:center; gap:4px; }
}



/* ---------- Robin's Home and Medications: dashboard style (matches the site's phone previews) ---------- */
.dash-hello { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:18px; }
.dash-hello h1 { font-size:30px; font-weight:800; letter-spacing:-0.5px; line-height:1.15; color:var(--ink); }
.dash-hello p { color:var(--muted); font-size:16px; margin-top:4px; }
.dash-avatar { width:48px; height:48px; border-radius:50%; flex-shrink:0; display:grid; place-items:center; color:#fff; font-weight:700; font-size:17px;
  background:linear-gradient(135deg,#3b82f6,#2dd4bf); }
.dash { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; max-width:980px; align-items:start; }
.dash-wide { grid-column:1 / -1; }
.dash-alert { background:#FFF8E6; border:1.5px solid #F3D58A; border-radius:16px; padding:16px 20px; display:flex; flex-direction:column; gap:4px; }
.dash-alert b { color:#92400E; font-size:18px; }
.dash-alert span { color:#92400E; font-size:16px; line-height:1.45; }
.dash-tiles { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.dash-tiles.dash-three { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.dash-tile { background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px 8px; text-align:center; text-decoration:none; color:var(--ink);
  display:flex; flex-direction:column; align-items:center; gap:4px; min-height:84px; justify-content:center; }
a.dash-tile:hover, a.dash-tile:focus-visible { border-color:#93b4ff; background:#f5f8ff; outline:none; }
.dash-tile b { font-size:28px; font-weight:800; line-height:1; }
.dash-tile span { font-size:13px; color:#475569; line-height:1.3; }
.dash-tile .c-blue { color:#2f5fe0; } .dash-tile .c-amber { color:#b45309; } .dash-tile .c-green { color:#15803d; }
.dash-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px 20px; }
.dash-k { font-size:13px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; color:#64748b; margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.dash-k-out { margin:6px 2px 10px; }
.dash-appt-doc { font-size:19px; font-weight:700; color:var(--ink); }
.dash-muted { color:#475569; font-size:15px; margin-top:2px; }
.dash-when { color:#2f5fe0; font-weight:700; font-size:17px; margin-top:6px; }
.dash-prep { margin-top:10px; background:#f1f5ff; border-radius:10px; padding:10px 12px; font-size:14px; line-height:1.5; color:#334155; }
.dash-foot { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:12px; }
.dash-foot a { color:#2f5fe0; font-weight:600; font-size:15px; text-decoration:none; min-height:32px; display:inline-flex; align-items:center; }
.dash-foot a:hover { text-decoration:underline; }
.dash-vitals { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.dash-vitals span { display:block; font-size:14px; color:#64748b; }
.dash-vitals b { font-size:20px; font-weight:700; color:var(--ink); }
.dash-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid #eef0f4; }
.dash-card > .dash-row:first-of-type, .dash-list > .dash-row:first-child { border-top:0; }
.dash-list { padding-top:6px; padding-bottom:6px; }
.dash-row > div:first-child { min-width:0; }
.dash-row b { display:block; font-size:17px; font-weight:700; color:var(--ink); }
.dash-row > div:first-child span { display:block; font-size:14px; color:#64748b; margin-top:2px; line-height:1.4; }
.dash-val { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex-shrink:0; text-align:right; }
.dash-val b { font-size:17px; }
.dash-row .pill { font-size:13px; font-weight:600; padding:3px 10px; flex-shrink:0; }
.dash-btn { min-height:40px; font-size:14px; font-weight:600; flex-shrink:0; }
.dash-link { display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid #eef0f4; text-decoration:none; color:var(--ink); }
.dash-k + .dash-link { border-top:0; padding-top:0; }
.dash-link > span { width:38px; height:38px; border-radius:50%; background:#e8efff; display:grid; place-items:center; flex-shrink:0; }
.dash-link div { flex:1; min-width:0; }
.dash-link b { display:block; font-size:16px; }
.dash-link div span { display:block; font-size:14px; color:#64748b; }
.dash-link i { font-style:normal; font-size:24px; color:#94a3b8; }
.dash-link:hover b { color:#2f5fe0; }
@media (max-width: 860px) {
  .dash { grid-template-columns:1fr; gap:12px; }
  .dash-hello h1 { font-size:28px; }
}
@media (max-width: 420px) {
  .dash-tiles { gap:8px; }
  .dash-tile { padding:12px 4px; min-height:78px; }
  .dash-tile b { font-size:24px; }
  .dash-tile span { font-size:12px; }
  .dash-card { padding:16px; }
  .dash-med { flex-direction:column; align-items:flex-start; gap:8px; }
  .dash-med .dash-btn, .dash-med .pill { margin-left:0; }
}
.dash-hello { max-width:980px; }
@media (min-width: 861px) { .dash-avatar { display:none; } }


/* ---------- portal brand: same logo and name as tracing-care.com ---------- */
a.pp-brand { text-decoration:none; color:var(--ink); border-radius:12px; }
a.pp-brand:focus-visible { outline:3px solid #3b6cf6; outline-offset:2px; }
.pp-brand .logo-mark, body.pp .pp-brand .logo-mark { width:40px; height:40px; border-radius:11px; flex-shrink:0; }
.pp-brand .wordmark, body.pp .pp-brand .wordmark { font-size:20px; font-weight:500; letter-spacing:-0.2px; line-height:normal; white-space:nowrap; color:var(--ink); }

/* ---------- back to the dashboard ---------- */
.pp-back { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px 0 10px; margin:0 0 14px -2px; border-radius:10px;
  border:1.5px solid #cbd5e1; background:#fff; color:var(--ink); font-size:16px; font-weight:600; text-decoration:none; }
.pp-back:hover { border-color:#3b6cf6; color:#2f5fe0; }
.pp-back:focus-visible { outline:3px solid #3b6cf6; outline-offset:2px; }
@media (max-width: 380px) { .pp-brand .wordmark, body.pp .pp-brand .wordmark { font-size:18px; } body.pp .pp-brand .logo-mark { width:36px; height:36px; } }

/* lesson end buttons */
a.pr-btn { text-decoration:none; }
.pr-gap { margin-top:8px; }
.pr-done-btns a.pr-btn { text-decoration:none; }


/* ---------- practice page: progress and short lessons ---------- */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.wl-progress { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); border-radius:18px; padding:22px 24px; max-width:640px; }
.wl-progress h2 { font-size:20px; font-weight:800; color:#fff; margin-bottom:6px; }
.wl-prog-text { color:rgba(255,255,255,.88); font-size:18px; margin-bottom:12px; }
.wl-prog-text b { color:#fff; }
.wl-meter { height:12px; border-radius:99px; background:rgba(255,255,255,.14); overflow:hidden; margin-bottom:18px; }
.wl-meter i { display:block; height:100%; width:0; border-radius:99px; background:linear-gradient(90deg,#60A5FA,#2DD4BF); transition:width .4s; }
.wl-start.wl-continue { margin:0 0 10px; font-size:20px; padding:16px 18px; }
.wl-prog-note { color:rgba(255,255,255,.72); font-size:15px; }

.wl-lessons { margin-bottom:44px; }
.wl-lessons > h2, .wl-ways > h2 { font-size:clamp(26px,3.4vw,36px); font-weight:900; letter-spacing:-1px; line-height:1.12; margin-bottom:10px; }
.wl-sub { color:var(--wl-gray); font-size:18px; max-width:760px; margin-bottom:22px; }
.wl-sub b { color:var(--wl-navy); }
.wl-lesson-grid { list-style:none; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; }
.wl-lesson { position:relative; overflow:hidden; background:#fff; border:1px solid var(--wl-border); border-radius:18px; padding:22px; display:flex; flex-direction:column; }
.wl-lesson::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--wl-blue),var(--wl-teal4)); }
.wl-lesson.is-done { border-color:#9EDFCF; background:#F5FCF9; }
.wl-lesson-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.wl-status { display:inline-flex; align-items:center; gap:5px; font-size:14px; font-weight:700; color:#0F5F55; background:#D7F5EE; border-radius:99px; padding:4px 10px; }
.wl-status.tried { color:#7A4E00; background:#FFF1D6; }
.wl-status[hidden] { display:none; }
.wl-lesson h3 { font-size:20px; font-weight:800; margin-bottom:4px; color:var(--wl-navy); }
.wl-lesson p { color:var(--wl-gray); font-size:16px; line-height:1.5; }
.wl-mins { font-size:14px !important; margin-top:auto; padding-top:6px; }   /* pushes time + button to the bottom so every card lines up */
.wl-lesson-btn { margin-top:16px; display:flex; align-items:center; justify-content:center; min-height:48px; border-radius:12px;
  background:var(--wl-navy); color:#fff; font-weight:700; font-size:17px; text-decoration:none; }
.wl-lesson-btn:hover { background:#0B1830; color:#fff; }
.wl-lesson.is-done .wl-lesson-btn { background:#fff; color:var(--wl-navy); border:1.5px solid #9EDFCF; }

.wl-ways { margin-bottom:28px; }
.wl-ways-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px; }
.wl-way { display:flex; flex-direction:column; gap:8px; background:#fff; border:1px solid var(--wl-border); border-radius:18px; padding:22px; text-decoration:none; color:var(--wl-navy); transition:transform .2s, box-shadow .2s; }
.wl-way:hover { transform:translateY(-2px); box-shadow:0 12px 30px rgba(13,43,69,.08); }
.wl-way b { font-size:20px; font-weight:800; }
.wl-way span { color:var(--wl-gray); font-size:16px; line-height:1.5; }
.wl-way em { font-style:normal; font-weight:700; color:#1D4ED8; margin-top:auto; font-size:17px; }

.wl-safe.wl-safe-light { background:#F0FBF7; border:1px solid #9EDFCF; margin-bottom:36px; }
.wl-safe.wl-safe-light h2 { color:var(--wl-navy); }
.wl-safe.wl-safe-light ul { color:#334155; }
.wl-safe.wl-safe-light b { color:var(--wl-navy); }
.wl-safe.wl-safe-light svg * { stroke:#137A6B; }

.wl-reset { margin:18px 0 6px; text-align:center; }
.wl-reset[hidden] { display:none; }
.wl-reset-btn { background:none; border:1.5px solid #CBD5E1; border-radius:10px; min-height:44px; padding:0 16px; font:inherit; font-size:16px; font-weight:600; color:#334155; cursor:pointer; }
.wl-reset-btn[hidden] { display:none; }
.wl-reset-ask { display:inline-flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; background:#FFF8E6; border:1px solid #F3D58A; border-radius:14px; padding:14px 16px; }
.wl-reset-ask[hidden] { display:none; }
.wl-reset-ask p { flex-basis:100%; color:#5B4A2B; font-size:16px; }
.wl-reset-yes { background:#B45309; color:#fff; border:0; border-radius:10px; min-height:44px; padding:0 16px; font:inherit; font-size:16px; font-weight:700; cursor:pointer; }

.wl-lesson-wide { grid-column:1 / -1; border-color:#F3D58A; background:linear-gradient(180deg,#FFFBEF,#fff 70%); }
.wl-lesson-wide p { max-width:62ch; }
@media (min-width: 641px) { .wl-lesson-wide .wl-lesson-btn { align-self:flex-start; min-width:240px; } }
@media (max-width: 860px) { .wl-lesson-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .wl-lesson-grid, .wl-ways-grid { grid-template-columns:1fr; } .wl-progress { padding:18px; } }

/* accessible form labels in Messages */
.field-label { font-size:14px; font-weight:600; color:var(--ink); margin-bottom:-4px; }
.dash-k, .dash-row > div:first-child span, .dash-link div span, .dash-vitals span, .dash-hello p { color:#536072; }

/* ---------- Add to home screen (practice page) ---------- */
.wl-install { background:#fff; border:1px solid var(--wl-border); border-radius:18px; padding:24px; margin-bottom:28px; }
.wl-install[hidden] { display:none; }
.wl-install-head { display:flex; gap:16px; align-items:flex-start; margin-bottom:18px; }
.wl-install-icon { flex:none; background:#EFF4FF; border-radius:14px; padding:8px; width:56px; height:56px; }
.wl-install h2 { font-size:clamp(22px,2.8vw,28px); font-weight:900; letter-spacing:-.5px; line-height:1.15; margin-bottom:6px; color:var(--wl-navy); }
.wl-install-head p { color:var(--wl-gray); font-size:17px; line-height:1.5; }
.wl-install-btn-wrap { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-bottom:18px; }
.wl-install-btn-wrap[hidden] { display:none; }
.wl-install-btn { background:#1D4ED8; color:#fff; border:0; border-radius:12px; padding:14px 22px; font:inherit; font-size:18px; font-weight:800; min-height:48px; cursor:pointer; }
.wl-install-btn:hover { background:#1E40AF; }
.wl-install-btn:focus-visible { outline:3px solid #93C5FD; outline-offset:2px; }
.wl-install-btn-wrap span { color:var(--wl-gray); font-size:16px; }
.wl-install-done { background:#F0FBF7; border:1px solid #9EDFCF; border-radius:12px; padding:14px 16px; color:#0F5E52; font-weight:700; font-size:17px; margin-bottom:12px; }
.wl-steps-card h3 { font-size:18px; font-weight:800; color:var(--wl-navy); margin-bottom:12px; }
.wl-steps-card ol { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.wl-steps-card li { display:flex; gap:12px; align-items:flex-start; font-size:17px; line-height:1.5; color:#334155; }
.wl-steps-card b { color:var(--wl-navy); }
.wl-step-n { flex:none; width:32px; height:32px; border-radius:50%; background:var(--wl-navy); color:#fff; font-weight:800; font-size:16px; display:flex; align-items:center; justify-content:center; margin-top:-2px; }
.wl-steps-card.is-mine { background:#F8FAFC; border:1px solid var(--wl-border); border-radius:14px; padding:18px; }
.wl-install-more { margin-top:16px; }
.wl-install-more[hidden] { display:none; }
.wl-install-more summary { cursor:pointer; font-weight:700; color:#1D4ED8; font-size:17px; min-height:44px; display:flex; align-items:center; }
.wl-install-more summary { list-style:none; gap:8px; }
.wl-install-more summary::-webkit-details-marker { display:none; }
.wl-install-more summary::before { content:''; width:9px; height:9px; border-right:2.5px solid currentColor; border-bottom:2.5px solid currentColor; transform:rotate(-45deg); transition:transform .2s; }
.wl-install-more[open] summary::before { transform:rotate(45deg); margin-top:-4px; }
.wl-install-more summary:focus-visible { outline:3px solid #93C5FD; outline-offset:2px; border-radius:6px; }
.wl-install-others { display:grid; gap:20px; padding-top:10px; }
.wl-install-others .wl-step-n { background:#64748B; }
.wl-install-tip { background:#FFF8E6; border:1px solid #F3D58A; border-radius:12px; padding:12px 16px; color:#5B4300; font-size:17px; line-height:1.5; margin-bottom:18px; }
.wl-steps-card .addr { white-space:nowrap; }
.wl-steps-card li > span:last-child { min-width:0; flex:1; overflow-wrap:break-word; }
.wl-install-which { margin-top:14px; color:#334155; font-size:16px; line-height:1.5; }
.wl-install-note { margin-top:16px; color:var(--wl-gray); font-size:15px; line-height:1.5; }
@media (max-width: 400px) { .wl-steps-card.is-mine { padding:14px 12px; } .wl-steps-card li { gap:10px; } .wl-install { padding:16px 14px; } }
@media (max-width: 640px) { .wl-install { padding:18px; } .wl-install-head { gap:12px; } .wl-install-icon { width:48px; height:48px; } }
@media (max-width: 400px) { .wl-install { padding:16px 14px; } .wl-install-icon { width:44px; height:44px; } }
@media (max-width: 340px) { .wl-steps-card .addr { white-space:normal; } }

/* ---------- practice: made-up email, text, and call shown in the panel ---------- */
.pr-mock { border:1.5px dashed #94a3b8; border-radius:12px; background:#fff; padding:10px 12px; margin:0 0 12px; font-size:15px; line-height:1.45; color:#1e293b; text-align:left; }
.pr-mock-tag { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; letter-spacing:.02em; text-transform:uppercase; color:#475569; margin-bottom:6px; }
.pr-mock-row { margin:0 0 4px; overflow-wrap:anywhere; }
.pr-mock-row > span:first-child { display:inline-block; min-width:58px; color:#475569; font-size:13px; }
.pr-mock-addr { color:#9a3412; font-weight:600; overflow-wrap:anywhere; }
.pr-mock-body { margin:6px 0 0; }
.pr-mock-fakebtn { display:inline-block; margin-top:8px; background:#b91c1c; color:#fff; font-weight:700; font-size:14px; border-radius:8px; padding:6px 12px; }
.pr-mock-bubble { margin:0; background:#eef2f7; border-radius:14px 14px 14px 4px; padding:8px 12px; overflow-wrap:anywhere; }
.pr-mock-call { background:#f8fafc; }
.pr-recap ul { margin:4px 0 0 18px; padding:0; display:grid; gap:3px; }
body.big .pr-mock { font-size:17px; }

/* Phone menu open: the practice panel shrinks to its top bar so every menu item can be tapped */
@media (max-width: 860px) {
  body.pp-menu-is-open.pr-on .pr-panel { max-height:58px; overflow:hidden; }
  body.pp-menu-is-open.pr-on .pp-side.menu-open { padding-bottom:72px; }
}

/* ---------- Stay safe page ---------- */
.ss-note { color:rgba(255,255,255,.78); font-size:16px; max-width:700px; margin:-18px 0 0; }
.wl-body .ss-note { color:var(--wl-gray); margin:12px 0 0; }
.ss-section, .ss-why, .ss-more { margin-bottom:40px; }
.ss-section > h2, .ss-why > h2, .ss-more > h2 { font-size:clamp(26px,3.4vw,36px); font-weight:900; letter-spacing:-1px; line-height:1.12; margin-bottom:16px; color:var(--wl-navy); }
.ss-story { background:#fff; border:1px solid var(--wl-border); border-radius:18px; padding:24px; margin-bottom:18px; }
.ss-story h3 { font-size:22px; font-weight:800; color:var(--wl-navy); line-height:1.25; margin-bottom:10px; }
.ss-story > p { font-size:17px; line-height:1.6; color:#334155; margin-bottom:10px; max-width:75ch; }
.ss-story b, .ss-why b, .ss-tips b { color:var(--wl-navy); }
.ss-tag { display:inline-block; font-size:13px !important; font-weight:700; letter-spacing:.02em; text-transform:uppercase; color:#8A4B00 !important; background:#FFF4DB; border-radius:999px; padding:4px 12px; margin-bottom:10px !important; }
.ss-lesson { background:#F0FBF7; border:1px solid #9EDFCF; border-radius:12px; padding:12px 16px; margin:6px 0 12px; }
.ss-lesson b { display:block; font-size:16px; margin-bottom:2px; }
.ss-lesson p { margin:0; font-size:16px; line-height:1.55; color:#0F4F45; }
.ss-src { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.ss-src li { display:flex; flex-direction:column; gap:2px; font-size:16px; }
.ss-src li::before { content:'Source'; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--wl-gray); }
.ss-more .ss-src li::before { content:'Read'; }
.ss-src a { color:#1D4ED8; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.ss-src li > span { color:var(--wl-gray); font-size:15px; }
.ss-why { background:#fff; border:1px solid var(--wl-border); border-radius:18px; padding:24px; }
.ss-why-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:16px; }
.ss-why-grid > div { background:#F8FAFC; border-radius:14px; padding:16px; }
.ss-why-grid h3 { font-size:18px; font-weight:800; color:var(--wl-navy); margin-bottom:6px; }
.ss-why-grid p { font-size:16px; line-height:1.55; color:#334155; margin:0; }
.ss-stat { font-size:17px; line-height:1.6; color:#334155; background:#EFF4FF; border-radius:12px; padding:12px 16px; margin-bottom:16px; }
.ss-tips { list-style:none; counter-reset:tip; padding:0; margin:0 0 20px; display:grid; gap:12px; }
.ss-tips li { counter-increment:tip; position:relative; background:#fff; border:1px solid var(--wl-border); border-radius:14px; padding:14px 16px 14px 60px; font-size:17px; line-height:1.55; color:#334155; }
.ss-tips li::before { content:counter(tip); position:absolute; left:16px; top:14px; width:32px; height:32px; border-radius:50%; background:var(--wl-navy); color:#fff; font-weight:800; display:grid; place-items:center; font-size:16px; }
.ss-practice .wl-lesson-btn { display:inline-flex; min-width:240px; justify-content:center; }
.wl-safe a { color:#1D4ED8; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
body.big .ss-story > p, body.big .ss-tips li, body.big .ss-why-grid p, body.big .ss-stat { font-size:20px; }
@media (max-width: 760px) { .ss-why-grid { grid-template-columns:1fr; } .ss-story, .ss-why { padding:18px; } .ss-tips li { padding-left:56px; } }

/* Practice page: link to the Stay safe stories */
.wl-stories { display:flex; gap:16px; align-items:center; background:#FFFBEF; border:1px solid #F3D58A; border-radius:18px; padding:20px 22px; margin-bottom:28px; text-decoration:none; color:var(--wl-navy); }
.wl-stories:hover { box-shadow:0 12px 30px rgba(13,43,69,.08); }
.wl-stories b { display:block; font-size:20px; font-weight:800; margin-bottom:4px; }
.wl-stories span { color:#4B5563; font-size:16px; line-height:1.5; }
.wl-stories em { font-style:normal; font-weight:700; color:#1D4ED8; white-space:nowrap; margin-left:auto; }
@media (max-width: 640px) { .wl-stories { flex-direction:column; align-items:flex-start; } .wl-stories em { margin-left:0; } }
.pr-more { margin:8px 0 0; } .pr-more a { color:#0c4a6e; font-weight:700; text-decoration:underline; }
.wl-foot a { display:inline-block; padding:12px 2px; }

/* ---------- Portal: pharmacy, bill details, and video visit (lessons 2, 6, 7) ---------- */
h2.dash-k { font-family:inherit; }
.rx-box { display:grid; gap:12px; }
.rx-h { font-size:18px; font-weight:700; color:var(--ink); margin:0; }
.rx-search { display:flex; gap:10px; }
.rx-search .input { flex:1; min-width:0; min-height:46px; font-size:16px; }
.rx-results { display:grid; }
.rx-results .dash-row:first-of-type { border-top:1px solid #eef0f4; }
.rx-btns { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.rx-btns .btn-blue, .rx-btns .btn-o, .bill-row .btn-o, .vv-toggles .btn-o { min-height:44px; font-size:15px; font-weight:600; padding:8px 16px; }
.rx-btns .btn-blue { display:inline-flex; align-items:center; gap:8px; }
.rx-btns .btn-o[disabled] { color:#94a3b8; background:#f8fafc; cursor:not-allowed; }
.dash-card :focus-visible, .card :focus-visible { outline:3px solid #3b6cf6; outline-offset:2px; }
.rx-h:focus, #rxH:focus, #rxResH:focus { outline:none; }
.bill-row { flex-wrap:wrap; }
.bill-detail { background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:14px 16px; margin:0 0 14px; }
.bill-math { width:100%; border-collapse:collapse; margin:8px 0; font-size:15px; }
.bill-math th { text-align:left; font-weight:500; padding:8px 0; color:var(--ink); }
.bill-math td { text-align:right; padding:8px 0; font-weight:600; white-space:nowrap; }
.bill-math tr + tr th, .bill-math tr + tr td { border-top:1px solid #e2e8f0; }
.bill-math .bill-total th, .bill-math .bill-total td { border-top:2px solid #94a3b8; font-weight:800; font-size:16px; }
.vv { display:grid; gap:14px; }
.vv-when { display:flex; flex-direction:column; gap:2px; }
.vv-when b { font-size:18px; }
.vv-when span { font-size:15px; }
.vv-step { display:grid; gap:12px; border-top:1px solid #eef0f4; padding-top:14px; }
.vv-check { display:flex; gap:12px; align-items:flex-start; padding:12px 14px; border:1px solid #e2e8f0; border-radius:12px; cursor:pointer; }
.vv-check input { width:22px; height:22px; margin-top:2px; flex-shrink:0; accent-color:#2f5fe0; }
.vv-check b { display:block; font-size:16px; }
.vv-check .meta { display:block; margin-top:2px; }
.vv-preview { height:180px; max-width:340px; border-radius:14px; background:#1e293b; color:#e2e8f0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; font-size:14px; }
.vv-preview.off { background:#0f172a; color:#94a3b8; }
.vv-preview .avatar { width:64px; height:64px; font-size:22px; }
.vv-toggles { display:flex; gap:10px; flex-wrap:wrap; }
.vv-toggles .btn-o[aria-pressed="false"] { background:#fef2f2; border-color:#f3c9c9; color:#b91c1c; }
.vv-ask { max-width:380px; background:#fff; border:1px solid #cbd5e1; border-radius:14px; box-shadow:0 12px 32px rgba(15,23,42,.16); padding:16px 18px; display:grid; gap:14px; }
.vv-ask p { margin:0; font-size:16px; line-height:1.45; color:#1f2937; }
.vv-ask-btns { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
.vv-ask-btns .btn-o, .vv-ask-btns .btn-blue { min-height:44px; min-width:96px; font-size:15px; font-weight:700; padding:8px 18px; }
.vv-blocked { background:#fef2f2; border:1px solid #f3c9c9; border-radius:12px; padding:16px; }
.vv-blocked p { margin:0; font-size:16px; }
.vv-wait { background:#eff6ff; border:1px solid #bfdbfe; border-radius:12px; padding:16px; }
.vv-wait p { margin:0; font-size:16px; }
.vv-home { flex-direction:row; align-items:flex-start; gap:12px; background:#eff6ff; border-color:#bfdbfe; }
.vv-home > svg { flex-shrink:0; margin-top:3px; }
.vv-home div { display:flex; flex-direction:column; gap:4px; }
.vv-home b, .vv-home span { color:#1e3a8a; }
.vv-home a { color:#1d4ed8; font-weight:700; }
body.big .bill-math, body.big .vv-check b, body.big .vv-wait p, body.big .vv-ask p, body.big .vv-blocked p { font-size:18px; }
@media (max-width: 560px) {
  .rx-search { flex-direction:column; }
  .rx-results .dash-row, .rx-pharm { flex-direction:column; align-items:flex-start; }
  .bill-row .btn-o { margin-left:auto; }
}


/* ---------- Simpler portal (Oct 2026): Home to-dos, care team, Book a visit, Insurance, Find a page ---------- */
body.pp .btn-blue, body.pp .btn-o { min-height:44px; font-size:15px; padding:0 16px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
body.pp .btn-blue.btn-lg { min-height:50px; font-size:17px; padding:0 22px; }
body.pp .btn-o { border:1.5px solid #cbd5e1; font-weight:600; }
body.pp .btn-o:hover { border-color:#3b6cf6; color:#2f5fe0; }
body.pp .btn-blue:focus-visible, body.pp .btn-o:focus-visible { outline:3px solid #3b6cf6; outline-offset:2px; }
body.pp .pp-head p { font-size:16px; line-height:1.5; max-width:680px; }
body.pp .pp-head h1 { font-size:28px; }

/* Find a page */
.pp-find { padding:14px 16px 4px; }
.pp-find label { display:block; font-size:14px; font-weight:600; color:#334155; margin-bottom:6px; }
.pp-find-box { display:flex; align-items:center; gap:8px; border:1.5px solid #cbd5e1; border-radius:10px; padding:0 10px; background:#fff; color:#64748b; min-height:44px; }
.pp-find-box:focus-within { border-color:#3b6cf6; box-shadow:0 0 0 3px rgba(59,108,246,.18); }
.pp-find-box input { border:0; outline:0; font:inherit; font-size:15px; width:100%; color:var(--ink); background:transparent; min-height:42px; }
.pp-find-none { font-size:14px; color:#475569; margin-top:8px; line-height:1.45; }
.pp-sec[hidden], .pp-nav[hidden], .pp-nav a[hidden] { display:none !important; }
@media (max-width: 860px) {
  body.pp .pp-find { display:none; }
  body.pp .pp-side.menu-open .pp-find { display:block; flex-basis:100%; padding:10px 0 6px; }
  body.pp .pp-side.menu-open .pp-find-box input { font-size:17px; }
}

/* Home */
.shortcuts.six { grid-template-columns:repeat(6, minmax(0, 1fr)); max-width:980px; }
@media (max-width: 1100px) { .shortcuts.six { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shortcuts.six { grid-template-columns:1fr; } }
.home-grid { display:grid; grid-template-columns:minmax(0, 1.55fr) minmax(0, 1fr); gap:20px; max-width:1100px; align-items:start; }
.home-side { display:grid; gap:16px; }
@media (max-width: 1100px) { .home-grid { grid-template-columns:1fr; } }
.home-h { font-size:20px; font-weight:700; margin:4px 0 12px; display:flex; align-items:center; gap:10px; }
.home-count { background:#2f5fe0; color:#fff; font-size:14px; min-width:28px; height:28px; padding:0 8px; border-radius:14px; display:inline-grid; place-items:center; }
.home-sub { font-size:14px; font-weight:500; color:#536072; }
.home-empty { display:flex; align-items:center; gap:8px; font-size:16px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; margin-bottom:22px; }
.todos { list-style:none; margin:0 0 24px; padding:0; display:grid; gap:12px; }
.todo, .news-card { display:flex; gap:14px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px 18px; }
.todo { border-left-width:1px; box-shadow:0 1px 2px rgba(15,23,42,.04); }
.todo-ic { width:44px; height:44px; border-radius:50%; background:#e8efff; display:grid; place-items:center; flex-shrink:0; }
.todo-body { flex:1; min-width:0; }
.todo-body h3 { font-size:18px; font-weight:700; margin-bottom:4px; color:var(--ink); }
.todo-body p { font-size:16px; line-height:1.5; color:#334155; }
.todo-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.news-card { background:#f8fafc; border-style:dashed; border-color:#cbd5e1; margin-bottom:12px; }
.news-ic { background:#e2e8f0; }
.team-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid #eef0f4; flex-wrap:wrap; }
.dash-k + .team-row, .team-card .team-row { border-top:0; padding-top:0; }
.team-row .avatar { width:44px; height:44px; font-size:14px; background:linear-gradient(135deg, #3b82f6, #2dd4bf); }
.team-who { flex:1; min-width:150px; }
.team-who b { display:block; font-size:16px; }
.team-who span { display:block; font-size:14px; color:#536072; margin-top:1px; }
.team-btns { display:flex; flex-wrap:wrap; gap:8px; }
.team-row .team-btns { flex-basis:100%; padding-left:56px; }
.team-card .team-btns { margin-top:12px; }
.team-card { display:block; }
body.pp .team-btns .btn-o { min-height:42px; font-size:14px; padding:0 12px; }
.extra { display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-top:1px solid #eef0f4; text-decoration:none; color:var(--ink); }
.dash-k + .extra { border-top:0; padding-top:2px; }
.extra svg { flex-shrink:0; margin-top:2px; }
.extra b { display:block; font-size:16px; }
.extra span { font-size:14px; color:#536072; line-height:1.4; }
.extra:hover b { color:#2f5fe0; text-decoration:underline; }

/* Visits and Book a visit */
.slot .time { width:120px; flex-shrink:0; font-weight:700; }
.slot-main { flex:1; min-width:0; }
.slot-prep { margin-top:8px; background:#f1f5ff; border-radius:10px; padding:8px 12px; font-size:14px; line-height:1.5; color:#334155; }
@media (max-width: 560px) { .slot { flex-wrap:wrap; } .slot .time { width:100%; } }
.sch-q { margin-bottom:16px; scroll-margin-top:70px; }
.sch-q .card-h { font-size:19px; display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.sch-n { width:32px; height:32px; border-radius:50%; background:#2f5fe0; color:#fff; font-size:16px; display:grid; place-items:center; flex-shrink:0; }
.sch-opts { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:10px; }
.sch-opt { text-align:left; background:#fff; border:2px solid #cbd5e1; border-radius:12px; padding:14px 16px; min-height:64px; cursor:pointer; font:inherit; color:var(--ink); display:flex; flex-direction:column; gap:3px; }
.sch-opt b { font-size:17px; }
.sch-opt span { font-size:14px; color:#536072; line-height:1.4; }
.sch-opt:hover { border-color:#3b6cf6; background:#f5f8ff; }
.sch-opt:focus-visible { outline:3px solid #3b6cf6; outline-offset:2px; }
.sch-opt.on { border-color:#2f5fe0; background:#eef3ff; box-shadow:inset 0 0 0 1px #2f5fe0; }
.sch-opt.on b::before { content:'✓ '; color:#2f5fe0; }
.sch-review { border:2px solid #86efac; background:#f6fef9; }
.sch-review .kv { font-size:16px; }

/* Messages */
.msg-form { display:grid; gap:8px; max-width:640px; }
.msg-form .field-label { font-size:15px; font-weight:600; margin-top:6px; }
body.pp .input { min-height:44px; font-size:16px; }
.note-911 { display:flex; gap:8px; align-items:flex-start; background:#fef2f2; border:1px solid #fecaca; color:#7f1d1d; border-radius:10px; padding:10px 12px; font-size:15px; line-height:1.45; margin-top:8px; }
.note-911 svg { flex-shrink:0; margin-top:1px; }
.reply-row { display:flex; gap:8px; flex-wrap:wrap; }
.reply-row .input { flex:1; min-width:200px; }

/* Test results key */
.res-key { display:flex; flex-wrap:wrap; gap:10px 22px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin-bottom:14px; font-size:15px; line-height:1.45; color:#334155; }
.res-key span { display:flex; align-items:flex-start; gap:8px; }
.res-key i { width:14px; height:14px; border-radius:4px; flex-shrink:0; margin-top:4px; }
.res-key .k-ok { background:#cbd5e1; } .res-key .k-flag { background:#dc2626; }
.res-ask { display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:16px; }

/* Insurance */
.ins-card { max-width:460px; border-radius:16px; overflow:hidden; border:1px solid #c7d7fe; background:#fff; box-shadow:0 6px 18px rgba(15,23,42,.08); margin-bottom:10px; }
.ins-top { background:linear-gradient(90deg, #2f5fe0, #1E9E8A); color:#fff; font-weight:700; font-size:17px; padding:12px 16px; display:flex; gap:8px; align-items:center; }
.ins-body { padding:14px 16px; display:grid; gap:8px; }
.ins-body div { display:flex; justify-content:space-between; gap:12px; font-size:15px; }
.ins-body span { color:#536072; }
.ins-ok { color:#15803d; }
.claim { padding:12px 0; border-top:1px solid #eef0f4; }
.claim:first-child { border-top:0; padding-top:0; }
.claim-top { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:baseline; }
.claim-top b { font-size:16px; }
.claim-nums { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; margin-top:8px; }
.claim-nums span { background:#f8fafc; border-radius:10px; padding:8px 10px; font-size:13px; color:#536072; }
.claim-nums b { display:block; font-size:16px; color:var(--ink); }
.claim-nums .c-you { color:#b45309; }
@media (max-width: 640px) { .claim-nums { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .claim-nums { grid-template-columns:1fr; } .claim-nums span { display:flex; justify-content:space-between; align-items:center; } }
body.pp .ai-note { font-size:15px; line-height:1.5; color:#475569; }
body.pp .sch-q h2.card-h { font-size:19px; font-weight:700; }
body.pp .pp-head > a, body.pp .pp-head > button { align-self:flex-start; }
body.pp .pp-side .pp-nav a { padding:9px 14px; }
body.pp .pp-sec { padding:12px 20px 4px; }
body.pp .pp-find { padding:12px 16px 2px; }

/* ---------- Bigger screens: use the full width, centered, with room for the practice panel ---------- */
.pp-wrap { width:100%; }
@media (min-width: 861px) {
  body.pp .pp-main { max-width:none; padding:28px 40px 56px; }
  .pp-wrap { max-width:1120px; margin:0 auto; }
  .pp-wrap.wide { max-width:1320px; }
  body.pp .dash, body.pp .dash-hello, body.pp .shortcuts.six, body.pp .home-grid { max-width:none; }
  body.pp .home-grid { grid-template-columns:minmax(0, 1.7fr) minmax(320px, 1fr); gap:24px; }
  body.pp .shortcuts.six { gap:14px; margin-bottom:26px; }
  body.pp .shortcut { padding:18px 8px; }
}
@media (min-width: 1101px) {
  body.pp.pr-on .pp-main { padding-right:480px; }                 /* the docked practice panel sits on the right */
  body.pp.pr-on.pr-mini .pp-main { padding-right:40px; }
}
@media (min-width: 1101px) and (max-width: 1760px) {
  body.pp.pr-on .home-grid { grid-template-columns:1fr; }          /* panel open on a mid-size screen: stack */
  body.pp.pr-on .home-side { grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); align-items:start; }
  body.pp.pr-on .shortcuts.six { grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1401px) {
  body.pp .todos { grid-template-columns:repeat(auto-fill, minmax(330px, 1fr)); }
  body.pp .todo { height:100%; }
  body.pp .todo-body { display:flex; flex-direction:column; }
  body.pp .todo-actions { margin-top:auto; padding-top:12px; }
}
@media (min-width: 1700px) {
  .pp-wrap.wide { max-width:1440px; }
  body.pp:not(.pr-on) .home-grid { grid-template-columns:minmax(0, 2fr) minmax(360px, 1fr); }
}


/* ---------- Learner comfort (Oct 2026): docked lesson panel, bigger text, simple Home ---------- */
/* Bigger default text in the portal */
body.pp { font-size:17px; }
body.pp .meta, body.pp .small { font-size:15px; }
body.pp .pp-sec { font-size:13px; color:#475569; }
body.pp .pp-me small { font-size:13px; }
body.pp .pp-side .pp-nav a { font-size:17px; }
body.pp .dash-k { font-size:14px; }
body.pp .card h2.card-h { font-size:17px; }
body.pp .tbl td { font-size:16px; }
body.pp .tbl th { font-size:13px; }
body.pp .shortcut { font-size:16px; }

/* Lesson panel: docked on the right on computers, so it never covers the portal */
.pr-panel { font-size:17px; }
.pr-panel .pr-h { font-size:21px; }
.pr-count { font-size:13px; }
.pr-top b { font-size:15px; }
.pr-tools button { font-size:14px; min-height:36px; padding:4px 12px; }
.pr-why, .pr-link { font-size:15px; }
.pr-foot { font-size:13px; }
.pr-btn { min-height:50px; font-size:17px; }
.pr-q button { font-size:16px; }
@media (min-width: 1101px) {
  body.pr-on .pr-panel:not(.mini), body.has-back.pr-on .pr-panel:not(.mini) { top:48px; right:0; bottom:0; width:440px; max-height:none; border-radius:0;
    border-width:0 0 0 1px; border-color:#cbd5e1; box-shadow:-10px 0 30px rgba(15,23,42,.07); padding:20px 24px 24px; }
  body.pr-on .pr-panel.mini { right:18px; bottom:18px; top:auto; }
}
.pr-gate { display:flex; gap:10px; align-items:flex-start; background:#eef3ff; border:1.5px dashed #93b4ff; border-radius:12px; padding:12px 14px; margin:0 0 12px; line-height:1.45; }
.pr-gate svg { flex-shrink:0; margin-top:2px; }
.pr-where { display:flex; gap:10px; align-items:flex-start; background:#fffbeb; border:1.5px solid #f59e0b; color:#78350f; border-radius:12px; padding:12px 14px; margin:0 0 12px; line-height:1.45; }
.pr-where svg { flex-shrink:0; margin-top:3px; }
.pr-tag { position:absolute; z-index:45; background:#f59e0b; color:#1f1300; font:700 14px/1 Inter, system-ui, sans-serif; padding:7px 10px; border-radius:8px; pointer-events:none;
  box-shadow:0 4px 12px rgba(0,0,0,.18); }
.pr-tag::after { content:''; position:absolute; right:14px; bottom:-6px; border:6px solid transparent; border-bottom:0; border-top-color:#f59e0b; }
.pr-pulse { outline-width:4px !important; }

/* Simple Home: one thing at a time */
.view-toggle { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border:1.5px solid #cbd5e1; border-radius:10px; background:#fff;
  color:#1e3a8a; font:inherit; font-size:15px; font-weight:600; cursor:pointer; flex-shrink:0; align-self:center; }
.view-toggle:hover { border-color:#3b6cf6; background:#f5f8ff; }
.view-toggle:focus-visible { outline:3px solid #3b6cf6; outline-offset:2px; }
.home-simple { max-width:820px; margin:0 auto; }
.home-simple .shortcuts.six { grid-template-columns:repeat(3, minmax(0, 1fr)) !important; }
.simple-note { display:flex; gap:8px; align-items:flex-start; font-size:15px; color:#334155; background:#f1f5ff; border-radius:12px; padding:10px 14px; margin:-4px 0 18px; line-height:1.45; }
.simple-note svg { flex-shrink:0; margin-top:2px; }
.todos-one .todo { border:2px solid #3b6cf6; box-shadow:0 6px 20px rgba(47,95,224,.10); padding:20px 22px; }
.todos-one .todo-body h3 { font-size:20px; }
.todos-one, .todos-list { grid-template-columns:1fr !important; margin-bottom:14px; }
.more-todos { margin:0 0 24px; }
.home-simple .home-next { margin-top:4px; }
@media (max-width: 560px) {
  .dash-hello { flex-wrap:wrap; }
  .view-toggle { width:100%; justify-content:center; order:3; }
  .home-simple .shortcuts.six { grid-template-columns:1fr !important; }
}

/* Compact care team on Home */
.team-mini { display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid #eef0f4; text-decoration:none; color:var(--ink); }
.dash-k + .team-mini { border-top:0; padding-top:2px; }
.team-mini .avatar { width:40px; height:40px; font-size:13px; background:linear-gradient(135deg, #3b82f6, #2dd4bf); }
.team-mini i { font-style:normal; font-size:24px; color:#94a3b8; margin-left:auto; }
.team-mini:hover b { color:#2f5fe0; text-decoration:underline; }
@media (min-width: 1101px) and (max-width: 1400px) {
  body.pr-on .pr-panel:not(.mini), body.has-back.pr-on .pr-panel:not(.mini) { width:380px; padding:18px 20px 22px; }
  body.pp.pr-on:not(.pr-mini) .pp-main { padding-right:416px; }
}

/* ---------- Visits list: one clear card per visit, stacks on phones ---------- */
.slot.visit { display:grid; grid-template-columns:150px minmax(0, 1fr) auto; gap:6px 18px; align-items:start; padding:16px 18px; }
.visit-when { display:flex; gap:8px; align-items:flex-start; }
.visit-when svg { flex-shrink:0; margin-top:3px; }
.visit-when b { display:block; font-size:16px; }
.visit-when span span { display:block; font-size:15px; color:#475569; margin-top:2px; }
.visit-name { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.visit-name b { font-size:18px; }
.visit-role { font-size:15px; color:#334155; margin-top:2px; }
.visit-where { font-size:15px; color:#536072; margin-top:1px; }
.visit-act { align-self:center; }
@media (max-width: 640px) {
  .slot.visit { grid-template-columns:1fr; gap:10px; padding:16px; }
  .visit-when { background:#eef3ff; border-radius:10px; padding:8px 12px; }
  .visit-when span { display:flex; flex-wrap:wrap; gap:0 8px; align-items:baseline; }
  .visit-when span span { margin-top:0; }
  .visit-when span span::before { content:'·'; margin-right:8px; color:#94a3b8; }
  .visit-act, .visit-act .btn-o { width:100%; }
  .visit-act .pill { font-size:15px; padding:6px 12px; }
}
@media (min-width: 641px) {
  .slot.visit { grid-template-columns:150px minmax(0, 1fr) 200px; }
  .visit-act { display:flex; justify-content:flex-end; }
  .visit-act .pill { font-size:15px; padding:6px 12px; }
}

/* ---------- Guided Practice on phones and tablets: temporary sheet + Lesson button ---------- */
.pr-backdrop { position:fixed; inset:0; background:rgba(15,23,42,.38); z-index:61; }
.pr-backdrop[hidden] { display:none; }
.pr-tip { background:#f8fafc; border:1.5px solid #cbd5e1; border-radius:14px; padding:14px 16px; margin:4px 0 14px; }
.pr-tip-n { display:block; font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#475569; margin-bottom:4px; }
.pr-tip p { font-size:18px; line-height:1.5; color:var(--ink); }
.pr-tip p:focus { outline:none; }
.pr-tip-nav { display:flex; justify-content:space-between; gap:10px; margin-top:10px; }
.pr-tip-nav button { min-height:44px; padding:0 16px; border-radius:10px; border:1.5px solid #c7d2fe; background:#fff; color:#2f5fe0; font:inherit; font-size:16px; font-weight:600; cursor:pointer; }
.pr-tip-nav button:focus-visible, .pr-fab:focus-visible, .pr-hint button:focus-visible { outline:3px solid #f59e0b; outline-offset:2px; }
.pr-btn.pr-start { font-size:18px; min-height:56px; }
.pr-panel ol li.now { font-weight:600; background:#eef3ff; border-radius:8px; padding:4px 8px; margin-left:-8px; }
.pr-panel ol li.past { color:#64748b; }
@media (max-width: 1100px) {
  body.pr-on.pr-m .pp-main { padding-right:16px; padding-bottom:130px; }
  body.pr-on.pr-m .pr-panel.pr-closed { left:auto; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); top:auto; width:auto; max-width:calc(100vw - 24px);
    max-height:none; overflow:visible; background:transparent; border:0; border-radius:0; box-shadow:none; padding:0; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
  .pr-fab { display:flex; gap:10px; align-items:center; min-height:58px; padding:8px 20px 8px 16px; border-radius:30px; background:#2f5fe0; color:#fff; border:0;
    box-shadow:0 8px 24px rgba(15,23,42,.3); font:inherit; cursor:pointer; text-align:left; }
  .pr-fab b { display:block; font-size:18px; line-height:1.15; }
  .pr-fab small { display:block; font-size:14px; opacity:.95; }
  .pr-fab.new { animation:prFab 1.1s ease-in-out 4; }
  @keyframes prFab { 50% { box-shadow:0 0 0 8px rgba(245,158,11,.45), 0 8px 24px rgba(15,23,42,.3); } }
  .pr-hint { display:flex; gap:10px; align-items:flex-start; background:#fffbeb; border:1.5px solid #f59e0b; color:#78350f; border-radius:14px; padding:12px 8px 12px 14px;
    font-size:16px; line-height:1.45; box-shadow:0 8px 24px rgba(15,23,42,.2); max-width:440px; }
  .pr-hint svg { flex-shrink:0; margin-top:2px; }
  .pr-hint button { background:none; border:0; color:#78350f; cursor:pointer; min-width:40px; min-height:40px; display:grid; place-items:center; flex-shrink:0; margin:-8px 0 -8px auto; }
  body.pr-on.pr-m .pr-panel.pr-sheet { left:0; right:0; bottom:0; top:auto; width:auto; max-height:min(82vh, 680px); overflow-y:auto; overscroll-behavior:contain;
    border-radius:20px 20px 0 0; border:0; border-top:4px solid #3b6cf6; box-shadow:0 -12px 40px rgba(15,23,42,.25); padding:16px 18px calc(20px + env(safe-area-inset-bottom)); z-index:62; }
  body.pr-on.pr-m .pr-sheet .pr-q button { font-size:17px; min-height:52px; }
  body.pp-menu-is-open.pr-on.pr-m .pr-panel.pr-closed { max-height:none; overflow:visible; }
  body.pp-menu-is-open.pr-on .pp-side.menu-open { padding-bottom:200px; }
  body.pr-on.pr-m .toast { bottom:96px; max-width:calc(100vw - 32px); text-align:center; }
  @media (prefers-reduced-motion: reduce) { .pr-fab.new { animation:none; box-shadow:0 0 0 4px #f59e0b; } }
}
@media (max-width: 560px) {
  body.pp .appt { flex-wrap:wrap; row-gap:10px; }
  body.pp .appt > div[style*="flex:1"] { flex-basis:100%; }
  body.pp .appt > .btn-o { margin-left:auto; }
}

/* Lesson footer: Start over on the left, Exit practice on the right */
.pr-foot-links { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:8px; }
.pr-foot-links .pr-link { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 2px; font-size:15px; font-weight:600; text-decoration:none; }
.pr-foot-links .pr-link:hover { text-decoration:underline; }
.pr-foot-links .pr-exit { color:#b91c1c; }
.pr-foot-links .pr-link:focus-visible { outline:3px solid #3b6cf6; outline-offset:2px; border-radius:6px; }
