/* KAIVANT Workbench: plain, readable, one task per screen. */
:root { color-scheme: light; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fff;
}
main { max-width: 64rem; margin: 0 auto; padding: 2rem 1rem; }
h1 { font-size: 1.6rem; margin: 0 0 0.5rem; }
.mode { font-weight: 600; }
.explain { color: #555; font-size: 0.95rem; }
footer { max-width: 64rem; margin: 0 auto; padding: 1rem; color: #666; font-size: 0.85rem; }
header { max-width: 64rem; margin: 0 auto; padding: 1rem 1rem 0; display: flex; gap: 1rem; align-items: baseline; }
header .brand { font-weight: 700; color: #1a1a1a; text-decoration: none; margin-right: auto; }
header .who { color: #555; }
.inline { display: inline; }
button.link { background: none; border: none; color: #0b5cad; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.list { padding-left: 1.2rem; }
.muted { color: #666; }
.error { color: #a1130b; font-weight: 600; }
.form label { display: block; margin: 0.6rem 0; }
.form input[type="text"], .form input:not([type]), .form input[type="password"] { display: block; width: 100%; max-width: 24rem; padding: 0.4rem; font: inherit; margin-top: 0.2rem; }
.form fieldset { border: 1px solid #ddd; padding: 0.5rem 0.8rem; margin: 0.8rem 0; }
.form button, a.button { display: inline-block; background: #0b5cad; color: #fff; border: none; padding: 0.5rem 1rem; font: inherit; border-radius: 4px; text-decoration: none; cursor: pointer; }

/* Project screens: the data foundation status sits at the top of every one (DF-01). */
.crumbs { margin: 0 0 0.6rem; color: #555; }
.crumbs a { color: #0b5cad; }
.status-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.6rem 0.8rem; border: 1px solid #ddd; border-radius: 6px; background: #f6f7f8; font-size: 0.95rem; margin-bottom: 1.2rem; }
.status-bar.open { border-color: #e0b84a; background: #fff8e6; }
.status-bar .label { font-weight: 600; }
.chip { display: inline-block; font-size: 0.8rem; font-weight: 500; padding: 0.1rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.chip.ready { background: #e6f4ea; color: #1e4d2b; }
.chip.rough { background: #fff4db; color: #5a3700; }
.chip.missing { background: #fdecec; color: #7a1a1a; }
.notice { padding: 0.6rem 0.8rem; background: #fff8e6; border: 1px solid #e0b84a; border-radius: 6px; }

/* The data foundation check: the three questions on the left, the answers on the right. */
.check { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.questions { flex: 1 1 14rem; max-width: 18rem; }
.answers { flex: 999 1 28rem; min-width: 0; }
.qstep { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.6rem; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 0.4rem; background: #fff; }
.qstep.current { border: 2px solid #0b5cad; background: #eaf2fb; }
.num { flex: 0 0 1.6rem; height: 1.6rem; border-radius: 999px; background: #888; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; }
.qstep.done .num { background: #1e4d2b; }
.qstep.current .num { background: #0b5cad; }
.hint { font-size: 0.85rem; color: #555; }
.why { font-size: 0.9rem; color: #555; border: 1px dashed #bbb; border-radius: 6px; padding: 0.6rem; }
.example { color: #555; font-size: 0.95rem; font-style: italic; }
table.items { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.95rem; }
table.items th { text-align: left; font-size: 0.8rem; color: #555; padding: 0.5rem 0.6rem; border-bottom: 1px solid #ccc; }
table.items td { padding: 0.6rem; border-bottom: 1px solid #e6e9ec; vertical-align: top; }
tr.rough { background: #fffbf2; }
tr.missing { background: #fff7f7; }
form.answer { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
form.answer input { flex: 1 1 8rem; padding: 0.3rem; font: inherit; }
button.small { font-size: 0.85rem; padding: 0.3rem 0.6rem; background: #0b5cad; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
button.small.secondary { background: #f4f5f6; color: #1a1a1a; border: 1px solid #c9ced3; }
button.link.small { font-size: 0.8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gate { margin-top: 1.5rem; padding: 0.8rem 1rem; border: 1px solid #ddd; border-radius: 6px; }
.add-item { margin-top: 1rem; }

/* Project navigation and the intake screens. */
.project-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin: -0.6rem 0 1.2rem; font-size: 0.95rem; }
.project-nav a { color: #0b5cad; }
.project-nav a.current { font-weight: 600; color: #1a1a1a; text-decoration: none; }
.steps-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.5rem 0 1rem; counter-reset: step; }
.steps-strip li { counter-increment: step; padding: 0.3rem 0.7rem; border: 1px solid #ddd; border-radius: 999px; font-size: 0.9rem; color: #555; }
.steps-strip li::before { content: counter(step) ". "; }
.steps-strip li.done { background: #e6f4ea; color: #1e4d2b; border-color: #b7dcc1; }
.steps-strip li.current { border: 2px solid #0b5cad; color: #1a1a1a; font-weight: 600; }
table.profile td { font-size: 0.9rem; }
.form select { display: block; width: 100%; max-width: 24rem; padding: 0.4rem; font: inherit; margin-top: 0.2rem; }
.form input[type="file"] { display: block; margin-top: 0.2rem; }
.form label .hint { display: block; font-weight: 400; }
.form label.check { font-weight: 400; }
.form.mapping label { font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin-bottom: 0.6rem; }
.inline-form select { padding: 0.3rem; font: inherit; }
.findings { list-style: none; padding: 0; }
.findings li { padding: 0.6rem 0.8rem; border: 1px solid #e6e9ec; border-radius: 6px; margin-bottom: 0.5rem; }
.findings li.problem { background: #fff7f7; }
.findings li.note { background: #fffbf2; }
.findings li .chip { margin-right: 0.4rem; }

/* The strip of steps (SVG drawn by the server), the lane, the workspace and the guided flow. */
.strip-box { overflow-x: auto; background: #fbfbfc; border: 1px solid #ddd; border-radius: 8px; padding: 0.5rem; }
.strip { display: block; max-width: 100%; height: auto; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.strip .card { fill: #fff; stroke: #c9ced3; stroke-width: 1; }
.strip .card.data { stroke: #0b5cad; }
.strip .card.start, .strip .card.end { fill: #f4f5f6; stroke-dasharray: 4 3; }
.strip .card.selected { stroke: #0b5cad; stroke-width: 2.5; }
.strip a:hover .card { fill: #eaf2fb; }
.strip .label { font-size: 11px; font-weight: 600; fill: #555; letter-spacing: 0.06em; text-transform: uppercase; }
.strip .name { font-size: 13px; font-weight: 600; fill: #1a1a1a; }
.strip .sub { font-size: 11px; fill: #555; }
.strip .sub.open { fill: #5a3700; }
.lane { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.8rem 0; }
.lane-head { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #555; }
.lane-item { font-size: 0.85rem; padding: 0.3rem 0.6rem; border-radius: 6px; border: 1px dashed #c9ced3; background: #fff; color: #555; }
.lane-item.ready { background: #e6f4ea; color: #1e4d2b; border-style: solid; border-color: #b7dcc1; }
.lane-item.rough { background: #fff4db; color: #5a3700; border-style: solid; border-color: #ead29a; }
.lane-item.missing { background: #fdecec; color: #7a1a1a; border-style: solid; border-color: #f0c4c4; }
.workspace { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.workspace .side { flex: 1 1 11rem; max-width: 14rem; }
.workspace .centre { flex: 999 1 26rem; min-width: 0; }
.workspace .detail { flex: 1 1 16rem; max-width: 22rem; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 0.8rem 1rem; }
.workspace .detail h2 { margin-top: 0; }
.workspace .detail h3 { font-size: 1rem; margin: 1.2rem 0 0.4rem; }
.navhead { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #555; margin: 0.8rem 0 0.3rem; font-weight: 600; }
.navitem { display: block; padding: 0.35rem 0.6rem; border-radius: 6px; color: #0b5cad; text-decoration: none; }
.navitem.current { background: #eaf2fb; color: #1a1a1a; font-weight: 600; }
.navitem.muted { color: #888; }
.panel { background: #fff; border: 2px solid #0b5cad; border-radius: 8px; padding: 0.8rem 1rem; }
.questions a.qstep { color: inherit; text-decoration: none; }
.step-list { padding-left: 1.2rem; }
.step-list li { margin: 0.3rem 0; }
.buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
a.button.secondary, button.secondary { background: #f4f5f6; color: #1a1a1a; border: 1px solid #c9ced3; }
.form.detail input { max-width: 100%; }

/* The KAIVANT tag: the same look everywhere (KL-03). */
.strip .tag { font-size: 10px; font-weight: 600; }
.strip .tag.ai_does { fill: #1a1a1a; }
.strip .tag.ai_helps { fill: #555; }
.strip .tag.stays_human { fill: #0b5cad; }
.strip .tag.none { fill: #999; font-weight: 400; }
.strip .not-ready { font-size: 10px; font-weight: 600; fill: #8a3a0c; }
.lbl { display: block; font-size: 0.8rem; font-weight: 600; color: #555; margin-bottom: 0.3rem; }
.tag-buttons { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tb { font: inherit; font-size: 0.9rem; padding: 0.5rem 0.7rem; border-radius: 6px; cursor: pointer; flex: 1 1 0; min-height: 2.6rem; }
.tb.ai_does { border: 2px solid #1a1a1a; background: #fff; color: #1a1a1a; }
.tb.ai_does.pressed { background: #1a1a1a; color: #fff; font-weight: 600; }
.tb.ai_helps { border: 1px solid #555; background: #fff; color: #1a1a1a; }
.tb.ai_helps.pressed { background: #e3e7ea; font-weight: 600; }
.tb.stays_human { border: 1px dashed #555; background: #fff; color: #1a1a1a; }
.tb.stays_human.pressed { border-style: solid; border-width: 2px; border-color: #0b5cad; font-weight: 600; }
.alert { border: 2px solid #b4541a; background: #fff6f0; border-radius: 8px; padding: 0.8rem 1rem; margin: 0.8rem 0; }
.alert strong { color: #7a2e08; }
.alert ul { margin: 0.4rem 0; padding-left: 1.2rem; }
.ready-line { margin: 0.8rem 0; }
.form.tagging label { font-weight: 400; }
.small.muted, p.small { font-size: 0.85rem; margin-bottom: 0; }

/* Discovery through the slot: routes, loops and waits in plain words. */
table.items th.count, table.items td.count { text-align: right; white-space: nowrap; }
table.items td.route { font-size: 0.85rem; }
table.items td.when { white-space: nowrap; }
.levels { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: baseline; font-size: 0.9rem; margin: 0.4rem 0 0.8rem; }
.levels a { color: #0b5cad; }
.levels a.current { font-weight: 600; color: #1a1a1a; text-decoration: none; }
details.why { margin: 1rem 0 0.5rem; }
details.why ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.wait { color: #444; font-style: italic; }
ul.plain { list-style: none; padding-left: 0; margin: 0.3rem 0 0.6rem; }
form.names fieldset { margin: 0.8rem 0; }

/* Trainer pages of a licensed institute (LA-07 to LA-09). */
.form input[type="date"], .form textarea { display: block; width: 100%; max-width: 24rem; padding: 0.4rem; font: inherit; margin-top: 0.2rem; box-sizing: border-box; }
.form textarea { max-width: 32rem; }
.form button[disabled] { background: #9aa5b1; cursor: not-allowed; }
.licence { border: 1px solid #c9ced3; border-radius: 8px; padding: 0.8rem 1rem; margin: 0.8rem 0; background: #f8fafb; }
.licence .figure { font-size: 1.3rem; font-weight: 600; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.15rem; letter-spacing: 0.08em; font-weight: 600; }
table.codes td.code { padding: 0.5rem 0.6rem; }
form.inline-row { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0 0.4rem 0 0; }
form.inline-row input { padding: 0.25rem 0.4rem; font: inherit; max-width: 12rem; }
.danger { border: 1px solid #b4541a; border-radius: 8px; padding: 0.4rem 1rem 0.8rem; margin-top: 1.5rem; }
button.danger-button { background: #b4541a; color: #fff; border: none; padding: 0.5rem 1rem; font: inherit; border-radius: 4px; cursor: pointer; }
@media print {
  header, footer, .no-print { display: none; }
  main { padding: 0; }
}
