/* Overrides on top of Pico: full-contrast text, one button colour family (Pass/Fail green/red). */
html[data-theme=light]:root:not([data-theme=dark]) {
  --pico-color: #000;
  --pico-muted-color: #000;
  --pico-h1-color: #000; --pico-h2-color: #000; --pico-h3-color: #000;
  --pico-h4-color: #000; --pico-h5-color: #000; --pico-h6-color: #000;
  --pico-font-size: 112.5%;
}
.brand { font-size: 1.15rem; display: inline-flex; align-items: center; gap: .75rem; color: #000; text-decoration: none; }
.brand-logo { height: 2.4rem; width: auto; }
.badge { background: #b00020; color: #fff; border-radius: 1rem; padding: 0 .5rem; font-size: .85rem; }
.flash { background: #e8f5e9; border-left: 6px solid #1b7f3b; }
.jkey { font-weight: 700; letter-spacing: .02em; }
.crumb { font-size: 1rem; margin-bottom: .25rem; }
table.instr th:first-child { width: 60%; }
table.instr-edit th:first-child, table.instr-edit th:nth-child(2) { width: 45%; }
table.instr-edit textarea { margin: 0; }
table.instr-edit td:last-child { white-space: nowrap; }
.big-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.big-choice a, .big-choice button { font-size: 1.3rem; padding: 1.1rem; text-align: center; width: 100%; }
.btn-pass, .btn-pass:hover { background: #1b7f3b; border-color: #1b7f3b; color: #fff; }
.btn-fail, .btn-fail:hover { background: #b00020; border-color: #b00020; color: #fff; }
a[role=button].btn-pass, a[role=button].btn-fail { display: block; }
.task-list a[role=button] { display: block; text-align: left; margin-bottom: .75rem; }
.task-list .retest { background: #fff3cd; color: #000; padding: 0 .4rem; border-radius: .3rem; margin-left: .5rem; font-size: .9rem; }
.outcome-pass { color: #1b7f3b; font-weight: 700; }
.outcome-fail { color: #b00020; font-weight: 700; }
.thumb { max-width: 160px; max-height: 110px; border: 1px solid #000; margin: .25rem .25rem 0 0; }
.people button { width: 100%; margin-bottom: .6rem; text-align: left; }
table td, table th { vertical-align: top; }
table.compact td, table.compact th { padding: .4rem .5rem; font-size: .95rem; }
.inline-form { display: flex; gap: .5rem; align-items: center; margin: 0; }
.inline-form select, .inline-form input, .inline-form button { margin: 0; width: auto; }
.nowrap { white-space: nowrap; }
textarea.copy { font-family: monospace; font-size: .85rem; }
progress { margin: 0; }

.cov-cards article { margin: 0 0 1rem; padding: .75rem 1rem; }
.cov-cards h2 { margin: 0; }
.cov-bar { display: flex; width: 160px; height: 14px; border: 1px solid #000; background: #fff; }
.cov-pass { background: #1b7f3b; }
.cov-fail { background: #b00020; }
.cov-key { display: inline-block; width: 14px; height: 14px; border: 1px solid #000; background: #fff; vertical-align: middle; }
.cov-key.cov-pass { background: #1b7f3b; } .cov-key.cov-fail { background: #b00020; }
.cov-row-none td { background: #fff3cd; }
mark.cov-none { background: #b00020; color: #fff; padding: 0 .4rem; border-radius: .3rem; font-size: .85rem; }

mark.retired { background: #000; color: #fff; padding: 0 .4rem; border-radius: .3rem; font-size: .85rem; }
.retired-note { background: #fff3cd; border-left: 6px solid #000; }

/* BUAT-44: optional screenshot of the window on an instruction row */
.instr-shot { display: flex; width: fit-content; flex-direction: column; gap: .2rem; margin-top: .5rem; color: #000; font-size: .9rem; text-decoration: underline; }
.instr-shot img { max-width: 260px; max-height: 170px; border: 1px solid #000; }
.instr-edit .instr-shot-cell { min-width: 14rem; }
.instr-edit .instr-shot-cell label { font-size: .9rem; margin: .25rem 0 0; }
.instr-edit .instr-shot-cell input[type=file] { margin: .25rem 0 0; font-size: .85rem; }
.instr-edit .instr-shot-current button { margin-top: .25rem; padding: .2rem .5rem; font-size: .85rem; width: auto; }
.instr-edit .instr-shot img { max-width: 180px; max-height: 120px; }

/* BUAT-46: journey chevron above an open test case. Done = green (red when the latest result is a fail), this step = black, to come = light. */
nav.chevron ol, nav.chevron ol:first-of-type { display: flex; flex-wrap: wrap; gap: .35rem 0; list-style: none; margin: 0 0 1rem; padding: 0; }
.chevron li { list-style: none; margin: 0 -.2rem 0 0; padding: .35rem 1.2rem .35rem 1.3rem; display: flex; flex-direction: column; justify-content: center;
  line-height: 1.2; font-size: .85rem; color: #000; background: #e3e6ea;
  clip-path: polygon(0 0, calc(100% - .8rem) 0, 100% 50%, calc(100% - .8rem) 100%, 0 100%, .8rem 50%); }
.chevron li:first-child { padding-left: .8rem; clip-path: polygon(0 0, calc(100% - .8rem) 0, 100% 50%, calc(100% - .8rem) 100%, 0 100%); }
.chevron .chev-no { font-weight: 700; white-space: nowrap; }
.chevron .chev-role { white-space: nowrap; }
.chevron .chev-done { background: #1b7f3b; color: #fff; }
.chevron .chev-failed { background: #b00020; }
.chevron .chev-current { background: #000; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* BUAT-45 */
.all-done { text-align: center; padding: 2rem 1rem; }

/* BUAT-20: a reopened result stays in the history, marked */
mark.reopened { background: #000; color: #fff; padding: 0 .4rem; border-radius: .3rem; font-size: .85rem; }
tr.row-reopened td { background: #eef0f2; }
tr.row-reopened td:nth-child(3) { text-decoration: line-through; }
.reopen-form { display: flex; gap: .4rem; align-items: center; margin: 0; }
.reopen-form input { margin: 0; min-width: 12rem; }
.reopen-form button { margin: 0; width: auto; white-space: nowrap; }

/* BUAT-18: paste a screenshot from the clipboard; preview with remove */
.paste-zone { width: auto; margin: .35rem 0 0; padding: .3rem .7rem; font-size: .9rem; }
.paste-zone:focus { outline: 3px solid #000; outline-offset: 2px; }
.paste-previews { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.paste-previews figure { margin: 0; display: flex; flex-direction: column; gap: .25rem; width: fit-content; font-size: .85rem; }
.paste-previews img { max-width: 260px; max-height: 170px; border: 1px solid #000; }
.instr-edit .paste-previews img { max-width: 180px; max-height: 120px; }
.paste-previews button { width: auto; margin: 0; padding: .2rem .5rem; font-size: .85rem; }

/* BUAT-24: development Jira */
.jira-line { flex-wrap: wrap; margin-bottom: 1rem; }
.jira-error { background: #fff3cd; border-left: 6px solid #b00020; }
.jira-bug { margin-bottom: .5rem; }
.jira-status { background: #e7eefc; padding: 0 .4rem; border-radius: .3rem; }
.jira-note { font-weight: 400; }
.raise-form { flex-wrap: wrap; margin-bottom: .75rem; }
.raise-form small { flex-basis: 100%; }

/* BUAT-33/34: login, invite link, users */
.login-box { max-width: 32rem; margin: 2rem auto; }
.invite-box { border-left: 6px solid #1b7f3b; }
.invite-box #invite-link { flex: 1; font-family: monospace; font-size: .9rem; }
table.users .inline-form input[type=email] { min-width: 15rem; }
table.users form { margin: 0; }

/* BUAT-32: audit filters and pages */
.audit-filter { flex-wrap: wrap; margin-bottom: 1rem; }
.pager { display: flex; gap: 1rem; align-items: center; }
