:root {
  color-scheme: light dark;
  --paper: #f4f4f1;
  --surface: #fff;
  --ink: #15161a;
  --muted: #565b62;
  --line: #d2d4d4;
  --accent: #1d3f8a;
  --on-accent: #fff;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #17191d; --surface: #202329; --ink: #f1f1ed; --muted: #b4bbc5; --line: #4c515a; --accent: #b3c8fa; --on-accent: #16264a; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
.masthead { display: flex; justify-content: space-between; align-items: center; padding: 24px 5vw; border-bottom: 1px solid var(--line); }
.masthead a { font-size: 28px; letter-spacing: -1px; font-weight: 600; text-decoration: none; }
.masthead > span { color: var(--muted); font-size: 13px; }
.mark { color: var(--accent); }
main { max-width: 1000px; margin: 0 auto; padding: 64px 32px 48px; min-height: 76vh; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(38px, 5vw, 62px); letter-spacing: -1.5px; margin: 12px 0 24px; }
h2 { font-size: 28px; margin: 0 0 24px; overflow-wrap: anywhere; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.introduction { color: var(--muted); max-width: 620px; margin-bottom: 32px; font-size: 18px; }
.access-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 32px; max-width: 520px; margin-top: 24px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; font-size: 14px; margin-bottom: 8px; }
input { display: block; width: 100%; padding: 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; margin-bottom: 20px; }
button { cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 11px 18px; border: 1px solid var(--accent); border-radius: 3px; color: var(--on-accent); background: var(--accent); }
button.secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
button:disabled { cursor: default; opacity: .6; }
#logout { white-space: nowrap; }
form button { width: 100%; display: flex; justify-content: space-between; }
details { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; }
summary { cursor: pointer; min-height: 32px; }
details p { color: var(--muted); }
.footnote { max-width: 510px; color: var(--muted); font-size: 13px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#company-list { list-style: none; padding: 0; margin: 32px 0 24px; }
#company-list li { border-top: 1px solid var(--line); }
#company-list li:last-child { border-bottom: 1px solid var(--line); }
#company-list button { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 24px; border: 0; border-radius: 0; padding: 24px 8px; color: var(--ink); background: transparent; font-size: 19px; font-weight: 400; overflow-wrap: anywhere; }
#company-list button[aria-pressed='true'] { background: var(--surface); color: var(--accent); }
#company-list button span:last-child { font-size: 13px; color: var(--muted); white-space: nowrap; }
#status { min-height: 24px; max-width: 620px; color: var(--muted); }
footer { margin: 0 5vw; border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 12px; }
footer span { padding: 0 12px; }
.key-print { font-family: ui-monospace, monospace; overflow-wrap: anywhere; font-size: 13px; }
#selection { max-width: none; }
#selection > button { margin: 0 8px 12px 0; }
#workflow-result, #workflow-detail { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
#workflow-list, #detail-schedules { list-style: none; padding: 0; }
#workflow-list > li, #detail-schedules > li { border-top: 1px solid var(--line); padding: 20px 0; }
#workflow-list h4 { margin: 0; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.workflow-state { color: var(--muted); margin: 8px 0; }
#workflow-list details { margin-top: 12px; padding-top: 0; border: 0; }
dt { color: var(--muted); font-size: 13px; margin-top: 16px; }
dd { margin: 4px 0 16px; overflow-wrap: anywhere; }
textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 12px/1.5 ui-monospace, monospace; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--surface); z-index: 1; }
.skip:focus { top: 8px; }
@media (max-width: 600px) {
  main { padding: 40px 20px; }
  .access-card { padding: 24px 20px; }
  .section-heading { align-items: flex-start; }
  .section-heading h1 { font-size: 38px; }
  #company-list button { font-size: 17px; }
}

#workflow-detail p, #workflow-detail h3, #detail-schedules h4 { overflow-wrap: anywhere; }

#run-history, #run-detail { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
#run-list { list-style: none; padding: 0; }
#run-list > li { border-top: 1px solid var(--line); padding: 20px 0; }
#run-history p, #run-detail p, #run-detail h3, #run-list h4 { overflow-wrap: anywhere; }

.picture-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block: 16px; }
.picture-frame { overflow: auto; max-width: 100%; max-height: 70vh; background: #fff; }
.picture-frame img { display: block; max-width: 100%; height: auto; }
#run-picture pre { white-space: pre-wrap; overflow-wrap: anywhere; }

#overview { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
#overview-runs { list-style: none; padding: 0; }
#overview-runs > li { border-top: 1px solid var(--line); padding: 20px 0; }
#overview p, #overview h4 { overflow-wrap: anywhere; }
#library { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
#library-operations { list-style: none; padding: 0; }
#library-operations > li { border-top: 1px solid var(--line); padding: 20px 0; }
#library p, #library h4, #library pre { overflow-wrap: anywhere; }
#library pre { white-space: pre-wrap; }
