:root {
  font:
    15px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #17243a;
  background: #f5f7fb;
  --line: #cbd3df;
  --brand: #4358a8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--brand);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select,
input,
textarea {
  border: 1px solid #a9b6cb;
  border-radius: 5px;
  padding: 9px 11px;
  background: white;
  color: inherit;
}
button {
  cursor: pointer;
}
button:hover {
  background: #e8edf8;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid #547bce;
  outline-offset: 3px;
}
/* Keyboard-placed focus only — see focus-source.js. Chrome switches
   :focus-visible on for a clicked control the moment any key is pressed. */
html[data-focus-source="pointer"] :focus-visible:not(input, textarea, select, [contenteditable]) {
  outline: none;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
select {
  max-width: 100%;
}
.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.primary:hover {
  background: #334589;
}
.workspace-header {
  min-height: 66px;
  background: #1d2947;
  color: #dce4f7;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 15px 34px;
}
.workspace-header a {
  color: inherit;
  text-decoration: none;
}
.workspace-header .brand {
  font-size: 23px;
  font-weight: 750;
  color: white;
}
.workspace-header nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
}
/* The breadcrumb is the one place a page says where it sits in the designer:
   Pipeline designer › Archetype library › <archetype>. Every page carries it so
   the visitor never needs the nav to know how they got here. */
.workspace-header .crumbs {
  font-size: 15px;
  color: #b7c3e2;
}
.workspace-header .crumbs a {
  color: #dce4f7;
}
.workspace-header .crumbs a:hover {
  text-decoration: underline;
}
.workspace {
  max-width: 1600px;
  margin: auto;
  padding: 32px;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.intro h1 {
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}
.intro p {
  max-width: 65ch;
  color: #526078;
}
.bank-pair {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
}
.bank-pair > div,
.bank-pair > a {
  padding: 25px 0;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.bank-pair small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 9px;
}
.bank-source {
  color: #762b43;
  border-top: 5px solid #762b43;
}
.bank-target {
  color: #12685d;
  border-top: 5px solid #12685d;
}
.scope-note {
  padding: 12px 16px;
  border-left: 3px solid #4358a8;
  background: #e8edf8;
  font-size: 13px;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  padding: 20px 0 26px;
  flex-wrap: wrap;
}
.toolbar label {
  flex: 1;
  min-width: 180px;
}
.toolbar button {
  min-height: 44px;
}
.workbench {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  border-top: 1px solid var(--line);
  background: white;
}
.designer {
  padding: 24px;
  border-right: 1px solid var(--line);
}
h2 {
  font-size: 21px;
  margin: 0 0 15px;
}
h3 {
  font-size: 17px;
}
.designer > label input {
  width: 100%;
}
#tasks {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
#tasks li {
  display: flex;
  gap: 4px;
  margin: 8px 0;
  align-items: center;
}
#tasks .task-select {
  flex: 1;
  text-align: left;
  font-size: 13px;
  min-height: 46px;
  background: #f5f7fb;
  border-color: transparent;
}
.task-select[aria-current="true"] {
  border-color: var(--brand) !important;
  background: #e9edf9 !important;
  font-weight: 650;
}
.task-order {
  display: flex;
  flex-direction: column;
}
.task-order button {
  padding: 1px 5px;
  font-size: 12px;
  border: 0;
}
details summary {
  cursor: pointer;
  font-weight: 650;
  padding: 12px 0;
}
details p {
  font-size: 13px;
  color: #526078;
}
.button-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.button-row button,
.import-label {
  font-size: 12px;
}
.import-label input {
  max-width: 230px;
  font-size: 11px;
}
.approval {
  flex-direction: row;
  align-items: start;
  font-weight: 400;
  margin: 22px 0;
  line-height: 1.6;
}
.ai-designer {
  border-top: 1px solid var(--line);
}
.ai-designer label {
  margin: 12px 0;
}
.evidence {
  padding: 26px 30px;
  min-width: 0;
}
.evidence-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.evidence-heading p {
  max-width: 70ch;
  color: #526078;
  font-size: 14px;
}
.badge {
  white-space: nowrap;
  align-self: flex-start;
  background: #e8edf8;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
}
.artifact-toolbar {
  display: flex;
  gap: 25px;
  align-items: end;
  margin: 20px 0 10px;
}
.artifact-toolbar label {
  flex: 1;
}
.artifact-toolbar a {
  padding-bottom: 10px;
  white-space: nowrap;
  font-size: 13px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #18273d;
  color: #e3eafa;
  border-radius: 6px;
  padding: 22px;
  font:
    13px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  max-height: 490px;
  overflow: auto;
  min-height: 200px;
}
#message:not(:empty) {
  padding: 12px 16px;
  border: 1px solid #a9b6cb;
  margin: 0 0 16px;
  background: white;
}
#task-catalog label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  margin: 9px 0;
}
.table-scroll {
  overflow: auto;
  margin: 18px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
td,
th {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
th {
  background: #edf1f7;
  font-weight: 650;
}
td button {
  border: none;
  background: none;
  text-align: left;
  color: var(--brand);
  padding: 0;
}
.failed {
  color: #a02b3d;
}
.passed,
.approved-difference {
  color: #12685d;
}
.audit {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.audit ol {
  padding-left: 23px;
  font-size: 13px;
}
.audit li {
  padding: 7px 0;
}
.audit small {
  display: block;
  color: #657185;
}
.bank-page .workspace-header {
  background: #762b43;
}
.bank-page .intro h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: -1px;
}
.bank-page .bank-ledger {
  padding: 24px;
  background: white;
  margin-top: 25px;
}
.bank-page .intro {
  grid-template-columns: 1fr 440px;
}
.bank-page .statement {
  border-left: 5px solid #762b43;
  padding: 20px 30px;
  background: #f0e6eb;
}
.bank-page .bank-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bank-page pre {
  margin-top: 8px;
}
#check-detail:empty {
  display: none;
}
#check-detail {
  padding: 16px;
  background: #f5f7fb;
}
#check-detail pre {
  max-height: 330px;
}
#rationale {
  white-space: pre-wrap;
}
@media (max-width: 1000px) {
  .intro,
  .bank-page .intro {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bank-pair {
    justify-content: flex-start;
    gap: 45px;
  }
  .workbench {
    grid-template-columns: 285px minmax(0, 1fr);
  }
  .workspace {
    padding: 20px;
  }
  .evidence {
    padding: 24px 18px;
  }
  .workspace-header {
    padding: 14px 20px;
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  .workspace-header nav {
    width: 100%;
    margin: 0;
    font-size: 13px;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .designer {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .bank-pair {
    gap: 18px;
  }
  .bank-pair > div,
  .bank-pair > a {
    font-size: 19px;
  }
  .bank-page .bank-preview {
    grid-template-columns: 1fr;
  }
  .artifact-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
  .artifact-toolbar label {
    width: 100%;
  }
  .evidence-heading {
    flex-wrap: wrap;
  }
  .toolbar label {
    min-width: 100%;
  }
}
