:root {
  --bg: #f2f5f8; --card: #ffffff; --ink: #14202b; --muted: #5d6b78; --line: #e2e7ec;
  --brand: #1f5f8b; --on-brand: #ffffff;
  --ok: #1d7a4f; --ok-bg: #e5f4ec; --warn: #a15c00; --warn-bg: #fdf1e0; --bad: #b3261e; --bad-bg: #fbe9e7;
  --info: #2a5db0; --info-bg: #e8effb;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 14px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151b; --card: #18222c; --ink: #e6edf3; --muted: #93a1ad; --line: #26323d;
    --ok: #5cc98f; --ok-bg: #16301f; --warn: #f0b45a; --warn-bg: #33270f; --bad: #f07f76; --bad-bg: #3a1a18;
    --info: #8fb4f0; --info-bg: #182a44; --shadow: none;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom); }
button { font: inherit; border: 0; border-radius: 12px; padding: 13px 14px; font-weight: 600; cursor: pointer; }
button:active { transform: scale(.98); }
button[disabled] { opacity: .5; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  background: var(--brand); color: var(--on-brand); padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; }
.brand { font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.logo { font-size: 16px; }
.logo-img { width: 28px; height: 28px; border-radius: 7px; }
.icon-btn { background: transparent; color: var(--on-brand); font-size: 22px; line-height: 1; padding: 4px 10px; }

main { max-width: 560px; margin: 0 auto; padding: 14px 16px 40px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 22px 2px 8px; }
.card { background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.card p { margin: 6px 0; }

.shield { background: var(--brand); color: var(--on-brand); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.shield b { font-size: 16px; display: block; }
.shield small { opacity: .88; font-size: 13px; }

.alert { border-left: 5px solid var(--warn); }
.alert.hi { border-left-color: var(--bad); }
.alert .t { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.alert .t .tag { white-space: nowrap; }
.alert .item { font-weight: 700; font-size: 16px; margin: 6px 0 4px; }
.alert .meta { font-size: 15px; }
.alert .patient { font-size: 15px; margin: 2px 0 4px; }
.alert .why { font-size: 13px; color: var(--muted); margin-top: 6px; }
.alert .q { font-weight: 700; margin: 12px 0 8px; font-size: 16px; }
.alert ul.pts { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yes { background: var(--ok); color: #fff; }
.no { background: var(--bad); color: #fff; }
.tag { font-size: 11.5px; background: var(--info-bg); color: var(--info); border-radius: 99px; padding: 2px 8px; font-weight: 600; white-space: nowrap; }
.tag.urgent { background: var(--bad-bg); color: var(--bad); }

.empty { text-align: center; padding: 26px 12px; }
.empty .big { font-size: 34px; color: var(--ok); }

.hist { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.hist:first-child { border-top: 0; }
.hist .s-confirmed { color: var(--ok); } .hist .s-denied { color: var(--bad); } .hist .s-expired { color: var(--warn); }

.doc { width: 100%; text-align: left; background: var(--card); color: var(--ink); box-shadow: var(--shadow); margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 400; }
.doc b { display: block; }
.primary { background: var(--brand); color: var(--on-brand); width: 100%; }
.secondary { background: var(--card); color: var(--brand); border: 1px solid var(--line); width: 100%; }
.danger-link { background: transparent; color: var(--bad); width: 100%; }
.stack > * + * { margin-top: 10px; }
.notice { background: var(--info-bg); color: var(--ink); }
.notice b { color: var(--info); }
.steps { margin: 6px 0 0; padding-left: 20px; } .steps li { margin: 4px 0; }

.banner { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 8px); z-index: 20;
  background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transform: translateY(-140%); transition: transform .25s ease; max-width: 540px; margin: 0 auto; }
.banner.show { transform: none; }

.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet-card { background: var(--card); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 20px 16px calc(env(safe-area-inset-bottom) + 20px); }
.sheet-card h3 { margin: 0 0 8px; }
.sheet-x { position: sticky; top: 0; display: block; margin: -8px -4px -32px auto; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--muted); font-size: 24px; line-height: 34px; padding: 0; cursor: pointer; z-index: 3;
  box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.sheet-x + h3, .sheet-x + .sheet-h, .sheet-x + * > h3:first-child { padding-right: 44px; }
.foot { text-align: center; margin-top: 20px; }

/* ---- signed-in screens ---- */
.bar-title { font-size: 15px; opacity: .85; text-align: right; }
.bname { display: flex; flex-direction: column; line-height: 1.1; }
.tagline { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; opacity: .85; margin-top: 2px; }
main { padding-bottom: calc(env(safe-area-inset-bottom) + 84px); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar[hidden] { display: none; }
.tabbar button { flex: 1; background: transparent; color: var(--muted); border-radius: 0; padding: 8px 4px 10px; font-size: 13px;
  font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.tabbar button.active { color: var(--brand); }
.tabbar .ti { font-size: 19px; line-height: 1.1; }
.tbadge { position: absolute; top: 4px; left: calc(50% + 8px); background: var(--bad); color: #fff; font-size: 11.5px; border-radius: 99px; padding: 0 6px; }
.tbadge[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .tabbar button.active { color: #8fc3ea; } }

input, select { font: inherit; width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
select { padding: 13px 8px; }
.lbl { font-weight: 600; font-size: 15px; }
.demo-code { background: var(--warn-bg); border-radius: 10px; padding: 10px 12px; }
.demo-code code { font-weight: 700; }
.card.warn { background: var(--warn-bg); }
.cta { width: 100%; display: flex; justify-content: space-between; align-items: center; background: var(--bad-bg); color: var(--bad);
  text-align: left; font-weight: 400; }
.card-h { font-weight: 700; margin-bottom: 8px; }
/* create an account */
.steps { display: flex; gap: 6px; margin-bottom: 4px; } .steps span { flex: 1; text-align: center; padding: 6px 2px; border-radius: 8px; background: var(--card); color: var(--muted); }
.steps span.on { background: var(--brand); color: var(--on-brand); } .steps span.done { color: var(--ok); }
.who { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.row2 { display: grid; grid-template-columns: 1fr 92px; gap: 8px; } .row3 { display: grid; grid-template-columns: 1fr 80px 84px; gap: 8px; }
.row2 > *, .row3 > * { min-width: 0; }
.card.verify { border-left: 5px solid var(--warn); }
.card.verify button.secondary { text-align: left; line-height: 1.35; }
.cta.calm { background: var(--card); color: var(--ink, inherit); }
/* "Review active claims": green at baseline, yellow or red from what is waiting (the server sends the level only) */
.cta.lvl-green { background: var(--ok-bg); color: var(--ok); }
.cta.lvl-yellow { background: var(--warn-bg); color: var(--warn); }
.cta.lvl-red { background: var(--bad-bg); color: var(--bad); }
.cta .small { font-weight: 400; }
/* fraud risk score (number and level only) */
.risk { display: flex; gap: 14px; align-items: flex-start; border-left: 6px solid var(--line); }
.risk p { margin: 0 0 6px; }
.rbadge { min-width: 66px; border-radius: 12px; padding: 8px 4px; text-align: center; color: #fff; display: flex; flex-direction: column; }
.rbadge b { font-size: 28px; line-height: 1.1; } .rbadge small { font-size: 11.5px; opacity: .85; }
.risk.low { border-left-color: var(--ok); } .risk.low .rbadge { background: var(--ok); }
.risk.medium { border-left-color: #b38600; } .risk.medium .rbadge { background: #b38600; color: #1f1700; }
.risk.high { border-left-color: var(--bad); } .risk.high .rbadge { background: var(--bad); }
.seg.seg3 { grid-template-columns: 1fr 1fr 1.4fr; }
.seg.seg3 button { font-size: 13px; }
.seg.kinds { grid-template-columns: 1fr 1.6fr 1fr; }
.seg.kinds button { font-size: 13px; }
.chart .col { position: relative; }
.chart .cv { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.chart.chart-years { margin-top: 16px; gap: 10px; }
.axis { display: flex; justify-content: space-between; margin-top: 4px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.tile { background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.tile .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .l { font-size: 13px; color: var(--muted); }
.tile .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tile.good .v { color: var(--ok); } .tile.bad .v { color: var(--bad); }

.chart { display: flex; align-items: flex-end; gap: 3px; height: 110px; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; }
.chart i, .legend i { display: block; }
.chart i.ok, .legend i.ok { background: #7aa7c7; } .chart i.wait, .legend i.wait { background: var(--warn); } .chart i.bad, .legend i.bad { background: var(--bad); } .legend i.md { background: #4fa58f; }
.legend { display: flex; gap: 14px; margin-top: 8px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 5px; } .legend i { width: 10px; height: 10px; border-radius: 2px; }
.hbar { display: grid; grid-template-columns: 1fr 70px 28px; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; }
.meter { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--brand); }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }

.link { background: none; color: var(--brand); padding: 6px 0; font-weight: 600; text-align: left; }
.link.danger { color: var(--bad); }
.link.fill { display: block; width: 100%; padding: 6px 0; font-weight: 600; }
.face { display: flex; align-items: center; justify-content: center; gap: 8px; }
pre.mail { white-space: pre-wrap; font: 12px/1.45 ui-monospace, Menlo, monospace; background: var(--card); border-radius: 8px; padding: 10px; }
.btnlink { display: block; text-align: center; text-decoration: none; border-radius: 12px; padding: 12px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .link { color: #8fc3ea; } }
pre.mail { overflow-wrap: anywhere; }

/* ---- History screen (past Medicare orders) ---- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; margin: 4px 0 2px; scrollbar-width: none; }
.chip { flex: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.card.list { padding: 4px 12px; }
.hrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.hrow:first-child { border-top: 0; }
.hrow.sel { background: var(--bad-bg); }
.hrow input[type=checkbox] { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--bad); }
.hrow .flag { width: 22px; flex: none; color: var(--bad); font-size: 19px; text-align: center; }
.hrow.reported { cursor: default; }
.hmain { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 15px; }
.hdesc { font-size: 13px; }
.reported-note { color: var(--bad); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reported-note .link { padding: 0; font-size: 13px; }
.hist .link.undo { padding: 2px 0 0; font-size: 13px; font-weight: 500; text-decoration: underline; }
.reportbar { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 58px); z-index: 11; display: grid;
  grid-template-columns: 1fr 2fr; gap: 10px; padding: 10px 16px; background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(0,0,0,.08); max-width: 560px; margin: 0 auto; }
.sheet-list { max-height: 30vh; overflow-y: auto; background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.sheet-list div { padding: 2px 0; }
.sheet-card { max-height: 90vh; overflow-y: auto; }
.radio { display: flex; gap: 10px; align-items: center; font-size: 15px; padding: 4px 0; }
.radio input { width: 20px; height: 20px; accent-color: var(--bad); }
textarea { font: inherit; width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; }
.hmain .tag { align-self: flex-start; }
body.has-reportbar main { padding-bottom: calc(env(safe-area-inset-bottom) + 150px); }

/* History: search box and code filter */
.searchrow { display: flex; gap: 8px; margin: 4px 0 8px; }
.search { flex: 1; position: relative; }
.search .sicon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 19px; pointer-events: none; }
.search input { padding-left: 36px; background: var(--card); }
.filterbtn { background: var(--card); color: var(--brand); border: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.filterbtn.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.fcount { background: var(--bad); color: #fff; border-radius: 99px; font-size: 11.5px; padding: 0 7px; line-height: 18px; }
.fcount[hidden] { display: none; }
.chip .cn { opacity: .7; font-weight: 500; }
.filtersum { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); margin: 6px 2px 0; }
.filtersum .link { padding: 0; flex: none; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; }
.sheet-h .link { padding: 0; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.fsec { margin-top: 12px; }
.fq { margin: 6px 0; }
.codelist { max-height: 40vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; }
.codelist .fam { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 10px 0 2px; }
.coderow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.fam + .coderow { border-top: 0; }
.coderow[hidden], .codelist .fam[hidden] { display: none; }
.coderow input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.cmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cdesc { color: var(--ink); }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }

/* History: Medicare history / Checked by Argus switch */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button { background: transparent; color: var(--muted); padding: 9px 6px; border-radius: 9px; font-size: 15px; }
.seg button.on { background: var(--brand); color: var(--on-brand); }
.hrow.argus { cursor: default; }
.hrow .s-confirmed { color: var(--ok); } .hrow .s-denied { color: var(--bad); } .hrow .s-expired { color: var(--warn); }

/* orders over time */
.seg.seg5 { grid-template-columns: repeat(5, 1fr); } .seg.seg5 button { font-size: 13px; padding: 8px 2px; }
.otot { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 2px 0 10px; }
.otot b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; } .otot b.good { color: var(--ok); }
.otot small { color: var(--muted); font-size: 13px; }
.ochart { width: 100%; height: auto; display: block; }
.ochart .gl { stroke: var(--line); } .ochart .gl.d { stroke-dasharray: 3 3; }
.ochart .tl { font-size: 11.5px; fill: var(--muted); }
.ochart .b { fill: #7aa7c7; } .ochart .bm { fill: #4fa58f; } .ochart .bw { fill: var(--warn); } .ochart .bs { fill: var(--bad); }

/* dashboard numbers open the orders behind them */
button.tile { text-align: left; color: inherit; font: inherit; border: 0; cursor: pointer; width: 100%; }
button.tile:active { transform: scale(.98); }
.otot button { background: transparent; border: 0; color: inherit; font: inherit; padding: 4px 2px; border-radius: 10px; cursor: pointer; }
.otot button:active { background: var(--bg); }
.link.back { padding: 4px 0 10px; font-weight: 600; }

/* show password, remember me */
.pwwrap { position: relative; }
.pwwrap input { padding-right: 72px; }
.pwtoggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; color: var(--brand);
  font-weight: 700; font-size: 15px; padding: 8px 10px; border-radius: 8px; width: auto; }
@media (prefers-color-scheme: dark) { .pwtoggle { color: #8fc3ea; } }
.remember { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 4px 0; }
.remember input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand); }

/* fraud reports */
.tabbar button { font-size: 11.5px; }
.dest { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dest:last-of-type { border-bottom: 0; }
.dest input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
textarea { font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.repcard { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; color: inherit; font: inherit; border: 0; }
.upd { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; } .upd:last-child { border-bottom: 0; }
.upd .small { flex: none; width: 74px; }
pre.mail { white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
.btnlink { display: block; text-align: center; text-decoration: none; padding: 13px; border-radius: 12px; }

/* score history (shared /history.js): arrow next to the score and the history sheet */
/* the arrow: a white pill inside the coloured score box */
.trend { display: inline-flex; align-items: center; justify-content: center; gap: 3px; align-self: center; margin-top: 6px;
  background: #fff; border-radius: 999px; padding: 2px 9px 2px 7px; line-height: 1; font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.trend .tri { font-size: 19px; } .trend .delta { font-size: 15px; }
.trend.up { color: #c62828; } .trend.down { color: #1b7f3b; } 
.sheet-in h3 { margin: 0 0 6px; }
.hband.high { fill: #fde4e1; } .hband.medium { fill: #fff3c4; } .hband.low { fill: #e3f3ea; }
.hgrid { stroke: #ddd; } .hlabel { font-size: 11.5px; fill: #777; } .hline { fill: none; stroke: #222; stroke-width: 2; }
.hdot { stroke: #fff; stroke-width: 2; } .hdot.high { fill: #c0392b; } .hdot.medium { fill: #b38600; } .hdot.low { fill: #1d7a4f; }
.sheet-in table { width: 100%; font-size: 13px; margin-top: 8px; } .sheet-in td, .sheet-in th { padding: 4px 6px; text-align: left; }

.histchart { max-height: 240px; display: block; }

/* the History button right under the score box */
.rcol { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
/* the overall risk banner: the whole card colored by level; tap for the scores behind it */
.ovrisk { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; border: 0; border-left: 6px solid; font: inherit; color: inherit; cursor: pointer; }
.ovrisk .ovtop { display: flex; gap: 12px; align-items: flex-start; }
.ovrisk .ovlvl { min-width: 66px; border-radius: 12px; padding: 10px 4px; text-align: center; color: #fff; font-weight: 800; text-transform: uppercase; font-size: 15px; }
.ovrisk .ovmore { font-weight: 600; align-self: flex-end; }
.ovrisk.low { background: var(--ok-bg); border-color: var(--ok); } .ovrisk.low .ovlvl { background: var(--ok); } .ovrisk.low b, .ovrisk.low .ovmore { color: var(--ok); }
.ovrisk.medium { background: var(--warn-bg); border-color: #b38600; } .ovrisk.medium .ovlvl { background: #b38600; color: #1f1700; } .ovrisk.medium b, .ovrisk.medium .ovmore { color: var(--warn); }
.ovrisk.high { background: var(--bad-bg); border-color: var(--bad); } .ovrisk.high .ovlvl { background: var(--bad); } .ovrisk.high b, .ovrisk.high .ovmore { color: var(--bad); }
.ovscore { display: inline-block; min-width: 34px; text-align: center; font-weight: 700; border-radius: 8px; padding: 3px 6px; color: #fff; }
.ovscore.low { background: var(--ok); } .ovscore.medium { background: #b38600; color: #1f1700; } .ovscore.high { background: var(--bad); }
[data-part] .riskHistory { margin-top: 4px; padding: 4px 6px; font-size: 13px; white-space: nowrap; }
.rcol .riskHistory { padding: 4px 6px; font-size: 13px; white-space: nowrap; }

/* on a computer screen: "Get Horkos on your phone" QR code */
.getphone { position: fixed; right: 24px; bottom: 24px; width: 200px; background: #fff; color: #14202b; border-radius: 14px;
  padding: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); text-align: center; font-size: 13px; z-index: 5; }
.getphone img { width: 172px; height: 172px; display: block; margin: 0 auto 8px; }
.getphone p { margin: 6px 0 0; font-size: 13px; color: #4b5866; text-align: left; }
@media (max-width: 899px) { .getphone { display: none !important; } }

/* Order history: lines Argus doubts the physician ordered, quick sorting by kind of item code */
.card.attn { border-left: 5px solid var(--bad); background: var(--bad-bg); }
.card.attn b { color: var(--bad); }
.card.attn p { margin: 6px 0 10px; }
.card.attn button { width: 100%; }
.card.okline { border-left: 5px solid var(--ok); }
.card.okline b { color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.hrow.doubt { box-shadow: inset 4px 0 0 var(--warn); padding-left: 10px; }
.hrow.doubt.high { box-shadow: inset 4px 0 0 var(--bad); }
.hrow .why { color: var(--ink); }
.sortrow { display: flex; align-items: center; gap: 8px; margin: 2px 2px 4px; }
.chip.sm { padding: 4px 11px; font-size: 13px; }
h2.codeh .small { font-weight: 500; }
#hlist { scroll-margin-top: 70px; }
h2.grouph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.selall { padding: 0; flex: none; text-transform: none; letter-spacing: 0; font-weight: 600; }
.sortrow .selall { margin-left: auto; }
.card.notice p + p { margin-top: 8px; }

/* the beta terms and privacy links (web/m/terms.html, privacy.html) */
.legal { text-align: center; margin: 14px 0 24px; }
.legal a { color: inherit; }
.legaldoc { max-width: 40em; margin: 0 auto; padding: 16px; line-height: 1.5; }
.legaldoc h1 { font-size: 1.4em; margin: 8px 0 4px; }
.legaldoc h2 { font-size: 1.05em; margin: 18px 0 6px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.legaldoc ul { padding-left: 1.2em; }
.legaldoc li { margin: 4px 0; }

/* overview: Medicare years, each opening to its codes and their risk */
.yrs-h { margin-top: 14px; }
.yr { border-top: 1px solid var(--line); }
.yr summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 0; cursor: pointer; list-style: none; }
.yr summary::-webkit-details-marker { display: none; }
.yr summary::after { content: '▾'; color: var(--muted); margin-left: 6px; }
.yr[open] summary::after { content: '▴'; }
.yrow { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.yrow .d { flex: 1; min-width: 0; }
.yrow .right { text-align: right; white-space: nowrap; }
.yr .link { margin: 6px 0 10px; }
.yrow .d .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* each year coloured by its riskiest line: red high, orange medium, green low */
.yr { border-left: 4px solid var(--ok); padding-left: 10px; margin-left: -2px; }
.yr.medium { border-left-color: var(--warn); }
.yr.high { border-left-color: var(--bad); }
.yr summary .tag { white-space: nowrap; }
.yr.plain { border-left: none; padding-left: 0; margin-left: 0; }   /* company payments: no risk colour */
/* a link that looks like the app's secondary button (the steps for ending a Medicare billing group) */
a.linkbtn { display: block; text-align: center; text-decoration: none; box-sizing: border-box; border-radius: 12px; padding: 13px 14px; font-weight: 600; }
/* numbered how-to lists: the sign-up progress bar is also called .steps (a row); a list stays a list */
ol.steps { display: block; margin: 8px 0; padding-left: 22px; } ol.steps li { margin: 8px 0; }
/* the paper form's questions (typed on the phone; nothing is sent) */
.formfill label { display: block; margin: 8px 0 -4px; color: var(--muted); }
.formfill input { width: 100%; box-sizing: border-box; }
.small.bad { color: var(--bad); font-weight: 600; }
.small.due { color: var(--warn); font-weight: 600; }
/* the first-week checklist on the Dashboard */
button.setup { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; color: var(--ink); font-weight: 500; padding: 11px 0; border-top: 1px solid var(--line); border-radius: 0; }
button.setup .tick { flex: 0 0 22px; height: 22px; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--on-brand); }
button.setup.done .tick { background: var(--ok); border-color: var(--ok); }
button.setup.done .what { color: var(--muted); text-decoration: line-through; }
button.setup .what { flex: 1; }
button.setup .what .more { color: var(--brand); text-decoration: none; display: inline-block; font-weight: 600; }
button.setup.done.keep .what { color: var(--ink); text-decoration: none; }

/* History: a tile tap scrolls here; keep the heading clear of the sticky top bar */
#medicaidPart, #medicarePart, #hlist { scroll-margin-top: 70px; }
/* NPI record history: the answer stays on one line */
.hist b.st { white-space: nowrap; padding-left: 8px; }

/* "Not mine" on a look-back line, and the report bar (engine/lookback_marks.py) */
.mk { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--ink); cursor: pointer; }
.mk input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--bad); }
.mkbar { border-left: 4px solid var(--bad); }
.mkhint { margin: 4px 0 8px; }

/* a row that opens a page (Records, Protect) */
.recrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0;
  border-top: 1px solid var(--line); padding: 13px 0; font: inherit; font-size: 15px; color: inherit; cursor: pointer; border-radius: 0; }
.recrow:first-child { border-top: 0; }
.recrow[disabled] { opacity: .55; cursor: default; }
.recrow .right { white-space: nowrap; text-align: right; }

/* the ticked lines, listed under Protect; and the line a tap lands on */
.mklist { margin: 8px 0 4px; border-top: 1px solid var(--line); }
.flash { background: var(--warn-bg); border-radius: 8px; box-shadow: 0 0 0 6px var(--warn-bg); }

/* the tour: a panel above the tab bar on the real screens; the tab it is about lights up */
.tourbar { position: fixed; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 66px); z-index: 12; background: var(--card); color: var(--ink);
  border: 2px solid var(--brand); border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); max-width: 560px; margin: 0 auto; }
.tourbar b { display: block; font-size: 16px; margin-top: 2px; }
.tourbar p { margin: 4px 0 10px; }
.tourbar #tourCk { margin-bottom: 8px; }
.tourbtns { display: flex; gap: 8px; }
.tourbtns button { flex: 1; }
.tourbar .link { display: block; margin: 8px auto 0; }
body.touring main { padding-bottom: 270px; }
.tabbar button.tourhot { color: var(--brand); background: var(--warn-bg); border-radius: 12px; }

/* "?" beside a list's title: a general note about that kind of record, in a pop-up above everything */
.qm { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; margin: -3px 0 0 6px; border-radius: 50%;
  border: 1.5px solid var(--brand); background: transparent; color: var(--brand); font-size: 15px; font-weight: 700; line-height: 1; vertical-align: middle; flex: none; }
.helppop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.helpcard { background: var(--card); color: var(--ink); border-radius: 16px; padding: 18px 16px 16px; width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.helpcard h3 { margin: 0 0 8px; }
.helpcard h4 { margin: 12px 0 4px; font-size: 15px; }
.helpcard ul { margin: 0 0 6px; padding-left: 20px; }
.helpcard li { margin: 4px 0; font-size: 15px; line-height: 1.4; }
.helpcard .primary { margin-top: 8px; }
/* the provider's own comment on a ticked line and on the whole report */
.mknote { padding: 0 0 8px; }
.mknote p { margin: 0 0 2px; font-style: italic; overflow-wrap: anywhere; }
.mknote .link { padding: 2px 0; }
.mkwhole { border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 6px; }
.mkwhole p { margin: 2px 0 4px; }

/* Home: a "Latest" entry opened, and the way to Help; Account: the Help card is where that link lands */
.latest { padding: 0 0 10px; }
.latest p { margin: 0 0 6px; }
.homehelp { text-align: center; margin: 14px 0 0; }
#helpCard, #contactCard { scroll-margin-top: 76px; }
.faq p { margin: 0 0 10px; }

/* a group that opens on a tap: the four groups on Records, and "Answered" on Review (owner, 29 November 2026) */
.grp { margin: 10px 0; }
.grp > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; background: var(--card); border-radius: 14px; cursor: pointer; list-style: none; font-size: 16px; }
.grp > summary::-webkit-details-marker { display: none; }
.grp > summary::after { content: '\25BE'; color: var(--muted); }
.grp[open] > summary::after { content: '\25B4'; }
.grp[open] > summary { border-radius: 14px 14px 0 0; }
.grp > .card { margin-top: 0; border-radius: 0 0 14px 14px; border-top: 1px solid var(--line); }

/* colour by how things stand (owner, 29 November 2026): the bars on Records and the tiles on Home */
.grp.lvl-green > summary { border-left: 6px solid var(--ok); }
.grp.lvl-yellow > summary { border-left: 6px solid var(--warn); background: var(--warn-bg); }
.grp.lvl-red > summary { border-left: 6px solid var(--bad); background: var(--bad-bg); }
.tile.dash { border-top: 5px solid var(--line); }
.tile.dash .v { font-size: 19px; }
.tile.dash.lvl-green { border-top-color: var(--ok); } .tile.dash.lvl-green .v { color: var(--ok); }
.tile.dash.lvl-yellow { border-top-color: var(--warn); background: var(--warn-bg); } .tile.dash.lvl-yellow .v { color: var(--warn); }
.tile.dash.lvl-red { border-top-color: var(--bad); background: var(--bad-bg); } .tile.dash.lvl-red .v { color: var(--bad); }

/* Home tiles: larger, bolder text (owner, 29 November 2026), and a full-width bar that is a button */
.tile.dash { padding: 14px 16px; }
.tile.dash .v { font-size: 30px; font-weight: 800; line-height: 1.15; }
.tile.dash .l { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.tile.dash .s { font-size: 13px; font-weight: 600; }
button.grpbtn { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; background: var(--card);
  border: 0; border-radius: 14px; font: inherit; font-size: 16px; color: inherit; text-align: left; cursor: pointer; }

/* the terms of use, shown before anything else until the user agrees (owner, 30 November 2026) */
.termsgate { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.termscard { background: var(--card); color: var(--ink); border-radius: 16px; padding: 18px 16px; width: 100%; max-width: 480px; box-shadow: var(--shadow); margin: auto 0; }
.termscard ul { padding-left: 20px; margin: 6px 0 12px; } .termscard li { margin: 6px 0; line-height: 1.4; }
.termscard .remember { margin: 12px 0; }

/* terms and privacy pages: one large Back button that stays at the bottom of the screen (owner, 30 November 2026) */
.legalback { position: sticky; bottom: 0; margin-top: 20px; padding: 12px 0 calc(env(safe-area-inset-bottom) + 12px); background: var(--bg); }
.legalback a.linkbtn { font-size: 16px; padding: 16px 14px; }

/* Review: the questions waiting for an answer, in a red box (owner, 30 November 2026) */
.card.qcard { background: var(--bad-bg); border-left: 6px solid var(--bad); }
.card.qcard .recrow { border-top-color: rgba(0,0,0,.10); }
.card.qcard .recrow b { color: var(--bad); }

/* a raised, slightly 3D look for buttons, bars and tiles (owner, 30 November 2026) */
.primary, .yes, .no, a.primary.linkbtn {
  background-image: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0) 45%, rgba(0,0,0,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 3px 0 rgba(0,0,0,.28), 0 6px 10px rgba(0,0,0,.14); }
.secondary, a.secondary.linkbtn {
  background-image: linear-gradient(180deg, rgba(255,255,255,.55), rgba(0,0,0,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.70), 0 3px 0 var(--line), 0 5px 8px rgba(0,0,0,.07); }
.primary:active, .yes:active, .no:active, .secondary:active, a.linkbtn:active {
  transform: translateY(3px); box-shadow: inset 0 2px 5px rgba(0,0,0,.22); }
.tile.dash, .grp > summary, button.grpbtn, .card.cta {
  background-image: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 3px 0 rgba(0,0,0,.10), 0 8px 14px rgba(0,0,0,.08); }
button.tile.dash:active, button.grpbtn:active { transform: translateY(3px); box-shadow: inset 0 2px 5px rgba(0,0,0,.14); }
.tabbar { box-shadow: 0 -3px 12px rgba(0,0,0,.10); }
.tabbar button.active { background-image: linear-gradient(180deg, var(--info-bg), rgba(255,255,255,0)); border-radius: 12px 12px 0 0;
  box-shadow: inset 0 3px 0 var(--brand); }
@media (prefers-color-scheme: dark) {
  .secondary, a.secondary.linkbtn, .tile.dash, .grp > summary, button.grpbtn, .card.cta {
    background-image: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 60%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 3px 0 rgba(0,0,0,.45); }
}

/* drawn icons, one colour rule and tidy Home tiles (owner, 30 November 2026) */
.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -5px; flex: 0 0 auto; }
.tabbar .ti { display: block; height: 26px; } .tabbar .ti .ic { width: 25px; height: 25px; vertical-align: 0; }
.grp > summary .ic { margin-right: 4px; color: var(--muted); }
.grp.lvl-green > summary .ic { color: var(--ok); } .grp.lvl-yellow > summary .ic { color: var(--warn); } .grp.lvl-red > summary .ic { color: var(--bad); }
.tiles { grid-auto-rows: 1fr; }
.tile.dash { display: flex; flex-direction: column; justify-content: space-between; min-height: 104px; }
.tile.dash .tt { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile.dash .tt .ic { width: 30px; height: 30px; opacity: .85; color: var(--muted); }
.tile.dash.lvl-green .tt .ic { color: var(--ok); } .tile.dash.lvl-yellow .tt .ic { color: var(--warn); } .tile.dash.lvl-red .tt .ic { color: var(--bad); }
.tile.dash .v { font-size: 34px; }
.tile.dash .l { font-size: 16px; white-space: nowrap; }

/* type scale (owner, 30 November 2026): 11.5 labels, 13 notes, 15 lists, 16 body, 19 titles; larger only for numbers */

/* Home: a greeting and one shield in the colour of how things stand */
.hero { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 18px; padding: 16px; margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 3px 0 rgba(0,0,0,.10), 0 8px 14px rgba(0,0,0,.08); border-left: 6px solid var(--line); }
.hero .badge { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--info-bg); color: var(--brand); }
.hero .badge .ic { width: 32px; height: 32px; vertical-align: 0; }
.hero .hi { font-size: 13px; color: var(--muted); }
.hero .nm { font-size: 19px; font-weight: 700; line-height: 1.2; }
.hero .st { font-size: 16px; font-weight: 700; margin-top: 4px; }
.hero .id { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hero.lvl-green { border-left-color: var(--ok); } .hero.lvl-green .badge { background: var(--ok-bg); color: var(--ok); } .hero.lvl-green .st { color: var(--ok); }
.hero.lvl-yellow { border-left-color: var(--warn); } .hero.lvl-yellow .badge { background: var(--warn-bg); color: var(--warn); } .hero.lvl-yellow .st { color: var(--warn); }
.hero.lvl-red { border-left-color: var(--bad); } .hero.lvl-red .badge { background: var(--bad-bg); color: var(--bad); } .hero.lvl-red .st { color: var(--bad); }

/* lists on the Records pages: the name stands out, the detail sits in grey beneath, the figure lines up on the right */
.hist > span:first-child.small { font-size: 15px; font-weight: 600; line-height: 1.35; }
.hist > span:first-child.small .muted { font-size: 13px; font-weight: 400; }
.hist > span:first-child.small .mk { font-weight: 400; }
.hist > .right { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hist { padding: 12px 0; }

/* empty lists and screens: a small picture and one line (owner, 30 November 2026) */
.emptyline { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--muted); font-size: 15px; }
.emptyline .ic { width: 26px; height: 26px; color: var(--ok); vertical-align: 0; }
.bigic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; background: var(--info-bg); color: var(--brand); }
.bigic.ok { background: var(--ok-bg); color: var(--ok); }
.bigic .ic { width: 36px; height: 36px; vertical-align: 0; }

/* gentle motion: bars slide open, screens fade in, a tick pops when an answer is recorded */
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes tickpop { 0% { opacity: 0; transform: scale(.5); } 35% { opacity: 1; transform: scale(1.1); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.grp[open] > .card, details.yr[open] > *:not(summary) { animation: slidein .2s ease-out; }
.hero, .tiles, .termscard, .helpcard { animation: fadein .25s ease-out; }
.tickpop { position: fixed; left: 50%; top: 40%; z-index: 70; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: tickpop .9s ease-out forwards; pointer-events: none; }
.tickpop .ic { width: 56px; height: 56px; stroke-width: 2.500; vertical-align: 0; }
@media (prefers-reduced-motion: reduce) {
  .grp[open] > .card, details.yr[open] > *:not(summary), .hero, .tiles, .termscard, .helpcard, .tickpop { animation: none; }
}

/* "Your next step" on Home (owner, 30 November 2026) */
.nextstep { background: var(--card); border-radius: 18px; padding: 16px; margin-bottom: 12px; border: 2px solid var(--brand);
  box-shadow: 0 3px 0 rgba(0,0,0,.10), 0 10px 18px rgba(0,0,0,.10); animation: fadein .25s ease-out; }
.nextstep .ns-h { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.nextstep .ns-h span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.nextstep .ns-b { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.nextstep .ns-ic { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--info-bg); color: var(--brand); }
.nextstep .ns-ic .ic { width: 28px; height: 28px; vertical-align: 0; }
.nextstep b { font-size: 19px; line-height: 1.25; display: block; }
.nextstep p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.nextstep .primary { font-size: 16px; padding: 15px 14px; }
.nextstep.done { border-color: var(--ok); } .nextstep.done .ns-b { margin-bottom: 0; }
.nextstep.done .ns-ic { background: var(--ok-bg); color: var(--ok); }

/* Review, one question at a time */
.qdots { display: flex; gap: 6px; justify-content: center; margin: 0 0 10px; }
.qdots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .qdots span.on { background: var(--brand); width: 22px; border-radius: 99px; }
.qstack .card { animation: slidein .22s ease-out; box-shadow: 0 3px 0 rgba(0,0,0,.10), 0 10px 18px rgba(0,0,0,.10); }
.qstack .card .item { font-size: 19px; line-height: 1.3; }
.qstack .card .btns button, .qstack .card .stack button { padding: 16px 14px; font-size: 16px; }
.qnav { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 14px; }
.qnav .link[disabled] { visibility: hidden; }

/* the map of states */
.usmap { width: 100%; height: auto; display: block; margin: 8px 0; }
.usmap .st rect { fill: var(--line); stroke: transparent; stroke-width: 2; }
.usmap .st text { font-size: 9.500px; font-weight: 600; fill: var(--muted); pointer-events: none; }
.usmap .st.home rect { fill: var(--brand); } .usmap .st.home text { fill: #fff; }
.usmap .st.other rect { fill: var(--warn); } .usmap .st.other text { fill: #fff; }
.usmap .st.sel rect { stroke: var(--ink); }
.usmap .st circle { fill: var(--bad); stroke: var(--card); stroke-width: 1.500; } .usmap .st text.n { fill: #fff; font-size: 7px; font-weight: 700; }
.usmap .st { cursor: pointer; }
.maplegend .k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 10px; }
.maplegend .k:first-child { margin-left: 0; } .maplegend .k.home { background: var(--brand); } .maplegend .k.other { background: var(--warn); }
@media (prefers-reduced-motion: reduce) { .nextstep, .qstack .card { animation: none; } }

/* Home redraws itself every few seconds: only the first draw fades in */
.noanim .hero, .noanim .tiles, .noanim .nextstep { animation: none; }
.qstack.still .card { animation: none; }

/* batch 2 (owner, 30 November 2026): summaries, the set-up ring, the timeline, search and text size */
.sumline { font-size: 16px; font-weight: 600; margin: 2px 0 10px; line-height: 1.35; }
.ring { width: 44px; height: 44px; flex: 0 0 auto; } .ring .bg { fill: none; stroke: var(--line); stroke-width: 4; }
.ring .fg { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; } .ring text { font-size: 10px; font-weight: 700; fill: var(--ink); }
.ringrow { display: flex; align-items: center; gap: 12px; text-align: left; }
.setuptop { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; } .setuptop .ring { width: 72px; height: 72px; }
.todo-dot { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; vertical-align: -4px; margin-right: 2px; }
.hist .s-confirmed .ic { width: 22px; height: 22px; vertical-align: -5px; }
.timeline { border-left: 2px solid var(--line); margin: 6px 0 12px 8px; padding-left: 14px; }
.tl-day { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.tl-day:first-child { margin-top: 0; }
.tl { position: relative; background: var(--card); border-radius: 12px; padding: 0 12px; margin: 8px 0; box-shadow: var(--shadow); }
.tl summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.tl summary::-webkit-details-marker { display: none; } .tl summary b { white-space: nowrap; font-size: 13px; }
.tl .tl-dot { position: absolute; left: -22px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.tl.open-q .tl-dot { background: var(--bad); }
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 14px; padding: 4px 14px; margin-bottom: 12px; box-shadow: var(--shadow); color: var(--muted); }
.searchbox input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 10px 0; color: var(--ink); outline: none; min-width: 0; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg3 button { background: var(--card); color: var(--brand); border: 1px solid var(--line); padding: 12px 6px; }
.seg3 button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* three tabs and the way back (owner, 30 November 2026) */
.barback { background: rgba(255,255,255,.18); color: var(--on-brand); border-radius: 99px; padding: 7px 14px; font-size: 15px; font-weight: 600; margin-left: auto; margin-right: 10px; white-space: nowrap; }
.barback[hidden] { display: none; }
.barback:not([hidden]) ~ .bar-title { display: none; }
.tabbar button { font-size: 13px; }
#recProtect .tag { vertical-align: 1px; }

/* the welcome pictures */
.welcome { text-align: center; padding: 22px 18px; }
.welcome h3 { font-size: 22px; margin: 6px 0 6px; } .welcome p { font-size: 16px; color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.wart { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto 6px; }
.wart .w1 { fill: var(--line); } .wart .w2 { fill: var(--info-bg); } .wart .w3 { fill: var(--brand); } .wart .w5 { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.wart .w4 { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.wart .wy { fill: var(--ok); } .wart .wn { fill: var(--bad); } .wart .wo { fill: var(--warn); }

/* "See all steps" under the next step on Home */
.ns-all { margin-top: 10px; } .ns-all summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 15px; padding: 6px 0; list-style: none; text-align: center; }
.ns-all summary::-webkit-details-marker { display: none; } .ns-all .recrow b { font-size: 15px; }

/* answer several at once: a tick and the question on one line */
.bulkrow { align-items: flex-start; } .bulkrow .mk { margin-top: 0; align-items: flex-start; font-size: 15px; flex: 1; }
.bulkrow .mk input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--ok); }

/* the "end a group" path, the colour legend, larger tap areas and loading placeholders (owner, 30 November 2026) */
.gprog { display: flex; gap: 4px; margin: 8px 0 6px; }
.gprog span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; padding: 5px 2px; border-radius: 8px; background: var(--line); color: var(--muted); }
.gprog span.on { background: var(--brand); color: var(--on-brand); }
.gstate { margin: 2px 0 4px; line-height: 1.4; }
.glinks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; }
.hist .link.undo { padding: 9px 0; font-size: 13px; min-height: 36px; }
.link.small { padding: 9px 0; }
.nsundo { display: block; text-align: left; padding: 4px 0 10px; }
.legend { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 2px 0 12px; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.legend .dot.r { background: var(--bad); } .legend .dot.y { background: var(--warn); } .legend .dot.g { background: var(--ok); }
#wrongRow { text-align: center; margin: 4px 0 90px; } #wrongRow[hidden] { display: none; }
@keyframes skel { 0% { opacity: .55; } 50% { opacity: 1; } 100% { opacity: .55; } }
.skel i { display: block; height: 74px; border-radius: 16px; background: var(--card); margin-bottom: 12px; animation: skel 1.2s ease-in-out infinite; }
.skel i:first-child { height: 96px; }
@media (prefers-reduced-motion: reduce) { .skel i { animation: none; } }
.gprog span { white-space: nowrap; font-size: 11px; padding: 6px 1px; }

/* a group being ended, drawn like a parcel's tracking line (owner, 30 November 2026) */
.track { display: flex; margin: 12px 0 8px; }
.track .tk { flex: 1; position: relative; text-align: center; min-width: 0; }
.track .tk::before { content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 4px; background: var(--line); border-radius: 2px; }
.track .tk:first-child::before { display: none; }
.track .tk i { position: relative; z-index: 1; display: block; width: 20px; height: 20px; margin: 0 auto 6px; border-radius: 50%; background: var(--card); border: 4px solid var(--line); box-sizing: border-box; }
.track .tk b { display: block; font-size: 11.500px; line-height: 1.2; color: var(--muted); }
.track .tk small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.track .tk.done::before, .track .tk.now::before { background: var(--brand); }
.track .tk.done i { background: var(--brand); border-color: var(--brand); }
.track .tk.done b, .track .tk.now b { color: var(--ink); }
.track .tk.now i { border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 4px var(--info-bg); }
.track.late .tk.now i { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.track.late .tk.now small { color: var(--bad); font-weight: 700; }
/* Home tiles: a line under each label saying what the number counts */
.tile.dash { min-height: 132px; }
.tile.dash .l { white-space: normal; }
.tile.dash .s { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.legend { display: block; text-align: center; } .legend .dot { margin-left: 14px; } .legend .dot:first-child { margin-left: 0; }

/* lines and lists waiting to be confirmed (owner, 30 November 2026) */
.cfbar { border-left: 6px solid var(--warn); background: var(--warn-bg); }
.tocf { margin-left: 6px; }

/* "Confirm all" at the top of a list */
#cfTop { margin: 0 0 12px; } #cfTop .cfbar { margin-bottom: 0; }

/* "I used to work here" beside "Not mine" (owner, 30 November 2026) */
.mk input[data-left] { accent-color: var(--brand, #1d5a85); } .mk + .mk { margin-left: 14px; }

/* "When did you leave?" under "I used to work here" */
.leftwhen { margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px; background: var(--soft, rgba(0,0,0,.04)); font-weight: 400; }
.leftwhen input { font: inherit; padding: 4px 8px; border: 1px solid var(--line, #cdd5df); border-radius: 8px; margin-left: 6px; background: var(--card, #fff); color: inherit; }
.leftwhen .muted { margin-top: 6px; }

/* the fraud risk level on Home: words, never numbers (owner, 30 November 2026) */
.rbadge b.lvlword { font-size: 15px; text-transform: uppercase; padding: 8px 2px; }
.ovscore { min-width: 64px; font-size: 13px; }
#homeStatus .ovrisk { margin-top: 12px; }
.ovrisk .ovlvl { font-size: 12.5px; min-width: 78px; }

/* the fraud risk level under the name on Home (owner, 30 November 2026) */
.rkpill { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 12px; border-radius: 999px; border: 0; background: #fff; color: #17212b; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.rkpill i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.rkpill.low i { background: var(--ok); } .rkpill.medium i { background: #b38600; } .rkpill.high i { background: var(--bad); }
.rkpill.low b { color: var(--ok); } .rkpill.medium b { color: #8a6500; } .rkpill.high b { color: var(--bad); }
.rkpill .car { opacity: .6; font-size: 12px; }
.rkbody { border-left: 6px solid var(--ok); } .rkbody.medium { border-left-color: #b38600; } .rkbody.high { border-left-color: var(--bad); }

/* "Your overall risk" under the name on Home, named as in Argus: a tinted bar with a three-bar meter that opens to
   each area (owner, 30 November 2026). Words and bars only, never a number. */
.hero { flex-wrap: wrap; }
.hero > div:nth-child(2) { flex: 1 1 0; min-width: 0; }
.rkbar { flex: 1 1 100%; display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 11px 14px; border: 0; border-radius: 14px; font: inherit; text-align: left; cursor: pointer; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 2px 0 rgba(0,0,0,.06); }
.rkbar.low { background: linear-gradient(180deg, var(--ok-bg), #fff 160%); } .rkbar.medium { background: linear-gradient(180deg, var(--warn-bg), #fff 160%); } .rkbar.high { background: linear-gradient(180deg, var(--bad-bg), #fff 160%); }
.rk-l { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.rk-t { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rk-v { font-size: 22px; font-weight: 800; }
.rkbar.low .rk-v, .rkrow.low b { color: var(--ok); } .rkbar.medium .rk-v, .rkrow.medium b { color: #8a6500; } .rkbar.high .rk-v, .rkrow.high b { color: var(--bad); }
.rkbar .car { color: var(--muted); font-size: 13px; }
.rkmeter { display: inline-flex; align-items: flex-end; gap: 4px; height: 26px; flex: none; }
.rkmeter i { width: 8px; border-radius: 3px; background: rgba(0,0,0,.13); }
.rkmeter i:nth-child(1) { height: 40%; } .rkmeter i:nth-child(2) { height: 70%; } .rkmeter i:nth-child(3) { height: 100%; }
.rkmeter.low i.on { background: var(--ok); } .rkmeter.medium i.on { background: #b38600; } .rkmeter.high i.on { background: var(--bad); }
.rkrows { flex: 1 1 100%; padding: 2px 4px 0; }
.rkrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); font-size: 15px; }
.rkrow .rk-r { display: inline-flex; align-items: center; gap: 10px; } .rkrow .rkmeter { height: 18px; } .rkrow .rkmeter i { width: 6px; }
.rkrow b { min-width: 62px; text-align: right; }
.rkrows p { margin: 8px 2px 0; }
.rkmeter i { display: block; flex: none; width: 8px; margin: 0; border-radius: 3px; }
.rkmeter i:nth-child(1) { height: 10px; } .rkmeter i:nth-child(2) { height: 18px; } .rkmeter i:nth-child(3) { height: 26px; }
.rkrow .rkmeter i { width: 6px; } .rkrow .rkmeter i:nth-child(1) { height: 7px; } .rkrow .rkmeter i:nth-child(2) { height: 12px; } .rkrow .rkmeter i:nth-child(3) { height: 18px; }
