/* Presto — Phase L1 §5: the finishing check's underline and its short list under the letter.
   Uses the app's own amber tokens (the drug-safety footer and the prescription card's amber). */
::highlight(presto-flag) { text-decoration: underline wavy var(--tg-amber-dot, #C98A1E); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
#finishBar { margin: 8px 0 0; padding: 8px 10px; background: var(--tg-amber-bg, #FDF6E9); border: 1px solid var(--tg-amber-border, #E9C583); border-radius: var(--tg-r-md, 8px); color: var(--tg-amber-text, #8A5A12); font-size: 12px; line-height: 1.45; }
#finishBar.hidden, #finishBar:empty { display: none; }
#finishBar .fbhead { font-weight: 700; font-size: 11px; letter-spacing: .03em; margin: 0 0 4px; }
#finishBar .fbrow { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; border-top: 1px dashed var(--tg-amber-border, #E9C583); }
#finishBar .fbrow:first-of-type { border-top: 0; }
#finishBar .fblabel { flex: 0 0 auto; font-weight: 600; }
#finishBar .fbmatch { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
#finishBar .fbfix { flex: 0 0 auto; font: inherit; font-weight: 700; font-size: 11px; color: var(--tg-amber-text, #8A5A12); background: #fff; border: 1px solid var(--tg-amber-border, #E9C583); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
#finishBar .fbfix:hover { background: var(--tg-amber-chip, #FCEFD6); }
#finishBar .fbfix:disabled { opacity: .6; cursor: default; }
/* Phase L1 §4.3: a side conflict never reads "All filled" */
.brpill.checkside, .brpill.check { background: var(--tg-amber-bg, #FDF6E9) !important; border-color: var(--tg-amber-border, #E9C583) !important; color: var(--tg-amber-text, #8A5A12) !important; }
#finishBar .fbfix + .fbfix { margin-left: 4px; }
/* Phase L1 §8 — the signature's three parts reuse the Settings field styles */
.sigparts label { display: block; margin-top: 8px; }
.sigparts input, .sigparts textarea { width: 100%; box-sizing: border-box; }
.sigparts textarea { min-height: 64px; }

/* Hotfix H1 R5 — "Check" points at the first thing to check */
.brpill.check { cursor: pointer; }
#finishBar .fbrow.flash { background: var(--tg-amber-chip, #FCEFD6); transition: background .3s; }
