:root {
  --lexxy-color-ink: #28352f;
  --lexxy-color-accent-dark: #235c83;
  --bg: #f7f6f2; --paper: #fff; --ink: #28352f; --muted: #67736c;
  --line: #e2e5dd; --accent: #235c83; --green: #316d4b; --red: #a53e37; --amber: #875d20;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; }
button, input[type=submit] { cursor: pointer; }
button { color: inherit; }
a, button, input, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #3d7caa; }
p, h1, h2, h3 { margin-top: 0; }
h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -1.2px; line-height: 1.22; margin-bottom: 12px; font-weight: 650; }
h2 { font-size: 17px; }
h3 { font-size: 16px; margin-bottom: 12px; }
p { margin-bottom: 16px; }
strong { font-weight: 600; }
.masthead { height: 78px; max-width: 1320px; margin: auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 23px; letter-spacing: -1px; font-weight: 750; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; background: var(--ink); color: white; border-radius: 11px; display: grid; place-items: center; font-size: 23px; transform: rotate(-6deg); }
.account { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; background: #ebe5d9; border-radius: 50%; font-weight: 650; color: #66573e; }
.project-bar, .project-nav, main, .footer { max-width: 1224px; margin: auto; }
.project-bar { padding: 19px 0 15px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.project-bar > div { display: flex; gap: 16px; align-items: center; }
.eyebrow { font-size: 11px; letter-spacing: 1.6px; color: var(--muted); font-weight: 700; margin-bottom: 13px; }
.demo-label { border: 1px solid #d8ded4; color: #67715f; font-size: 11px; letter-spacing: .4px; padding: 3px 9px; border-radius: 5px; }
.project-nav { display: flex; gap: 30px; border-bottom: 1px solid var(--line); }
.project-nav a { padding: 13px 0 15px; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.project-nav a.active { border-color: var(--accent); color: var(--accent); font-weight: 650; }
main { padding: 38px 0 64px; min-height: 70vh; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 33px; }
.page-heading .lede { margin: 0; color: var(--muted); font-size: 15px; }
.document-layout, .execution-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 30px; align-items: start; }
.paper { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 35px 40px; box-shadow: 0 3px 8px #26352c03; }
.paper-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 19px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--muted); letter-spacing: .15px; }
.document-title { font-size: 27px; line-height: 1.3; letter-spacing: -.6px; margin-bottom: 18px; }
.document-intro { font-size: 18px; color: #526157; max-width: 610px; }
.content-section { margin-top: 29px; }
.content-section p { max-width: 630px; }
.sidebar { padding: 13px 0; }
.sidebar h2 { font-size: 13px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; }
.count { font-size: 11px; color: var(--muted); background: #eaece5; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 5px; }
.tree-group { font-size: 14px; font-weight: 550; margin: 11px 0; }
.tree-group.indent { margin-left: 15px; }
.tree-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 35px; font-size: 13px; border-radius: 6px; color: var(--muted); margin: 3px 0; }
.tree-item.selected { background: #e8eee8; color: #32513e; font-weight: 650; }
.tiny-dot { width: 7px; height: 7px; border-radius: 50%; background: #d3d8ce; }
.tiny-dot.passed { background: var(--green); }
.sidebar-note { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 22px; font-size: 12px; }
.sidebar-note p { color: var(--muted); margin-top: 12px; line-height: 1.6; }
.sidebar-note strong { font-size: 12px; }
.progress-track { height: 5px; border-radius: 5px; background: #e6ebe2; overflow: hidden; margin-top: 12px; }
.progress-track > span { display: block; height: 100%; background: #6f9677; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 5px 0 5px 27px; position: relative; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: #5c8063; }
.callout { display: flex; gap: 14px; background: #f6f7f3; border-radius: 6px; padding: 14px 18px; margin: 25px 0; color: var(--muted); font-size: 13px; }
.callout p { margin: 0; }
.callout > span { font-size: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-heading h2, .section-heading h3 { margin: 0; }
.muted { color: var(--muted); font-size: 12px; }
.linked-row { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 7px; padding: 17px; color: var(--ink); }
.linked-row:hover { background: #f8faf7; text-decoration: none; border-color: #b5c8bd; }
.linked-row strong, .linked-row small { display: block; }
.linked-row strong { font-size: 15px; margin-top: 3px; }
.case-icon { background: #edf3ee; color: var(--green); display: grid; place-items: center; width: 33px; height: 36px; border-radius: 6px; flex-shrink: 0; }
.row-arrow { margin-left: auto; color: var(--accent); font-size: 22px; }
.paper-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 22px; font-size: 12px; color: var(--muted); }
.gap-note { border-left: 2px solid #d9c99e; padding-left: 16px; margin-top: 25px; font-size: 13px; color: var(--muted); }
.gap-note h3 { font-size: 13px; margin-bottom: 6px; color: var(--amber); }
.gap-note p { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; line-height: 1.3; padding: 5px 9px; border-radius: 5px; white-space: nowrap; }
.badge.passed { color: var(--green); background: #eaf4ed; }
.badge.failed { color: var(--red); background: #fbedeb; }
.badge.blocked { color: var(--amber); background: #fcf2dd; }
.badge.skipped, .badge.not_run, .badge.neutral { color: #69746b; background: #eff1ec; }
.button { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border: 1px solid transparent; border-radius: 6px; padding: 11px 18px; font-size: 13px; }
.button:hover { text-decoration: none; filter: brightness(.95); }
.primary { background: var(--accent); color: white; }
.breadcrumbs { font-size: 12px; color: var(--muted); display: flex; gap: 10px; margin-bottom: 24px; }
.version-pill { background: #eeefe9; padding: 3px 7px; font-size: 11px; border-radius: 4px; margin-left: 9px; font-family: inherit; }
.subtle-separator { margin: 0 10px; color: #b0b8af; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 255px; gap: 35px; align-items: start; }
.context-panel { padding: 20px 2px; }
.context-panel h2 { font-size: 13px; margin-bottom: 24px; }
.context-panel dt { font-size: 11px; color: var(--muted); margin: 21px 0 7px; }
.context-panel dd { font-size: 13px; margin: 0; }
.context-panel dd p { font-size: 12px; color: var(--muted); margin: 5px 0; }
.priority-dot { display: inline-block; background: #bb8650; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.tag { background: #eaece5; border-radius: 4px; padding: 4px 8px; font-size: 11px; }
.small-callout { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 32px; font-size: 12px; }
.small-callout p { margin-top: 7px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 18px 0 28px; }
.steps li { display: flex; gap: 17px; padding: 20px 0; border-bottom: 1px solid #edf0e8; }
.steps li:last-child { border-bottom: 0; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 27px; height: 27px; border-radius: 50%; background: #f0f2ec; font-size: 12px; font-weight: 650; color: #667661; }
.steps strong { font-size: 15px; }
.steps p { font-size: 13px; color: var(--muted); margin: 7px 0 0; }
.expected-label { font-size: 10px; letter-spacing: .4px; text-transform: uppercase; color: #677762; margin-right: 5px; }
.expected-outcome { background: #f4f7f1; border: 1px solid #e5ebdf; border-radius: 6px; padding: 20px; }
.expected-outcome h3 { font-size: 13px; margin-bottom: 8px; }
.expected-outcome p { font-size: 14px; margin: 0; }
.light { font-weight: 400; color: var(--muted); }
.run-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; border: 1px solid var(--line); background: #f0f2ec; border-radius: 7px; padding: 15px 20px; font-size: 13px; }
.run-summary .progress-track { flex: 1; max-width: 260px; margin: 0; }
.run-summary > .muted { margin-left: auto; }
.run-item { border: 1px solid #ccdace; border-left: 3px solid #527959; border-radius: 6px; background: #edf2eb; padding: 16px 13px; }
.run-item strong { display: block; font-size: 14px; margin: 8px 0 12px; }
.sidebar-hint { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 20px; }
.back-link { font-size: 12px; }
.precondition { padding: 16px 18px; background: #f7f7f3; border-radius: 6px; font-size: 13px; }
.precondition strong { font-size: 12px; }
.precondition p { margin: 5px 0 0; color: var(--muted); }
.result-panel { border-top: 1px solid var(--line); padding-top: 26px; }
.result-options { display: flex; gap: 10px; padding: 0; border: 0; margin: 18px 0 20px; }
.result-option { position: relative; flex: 1; cursor: pointer; }
.result-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.result-option span { display: block; border: 1px solid #dce2d7; border-radius: 6px; padding: 10px 6px; text-align: center; font-size: 13px; background: white; }
.result-option input:focus-visible + span { outline: 3px solid #3d7caa; outline-offset: 3px; }
.result-option input:checked + span { border: 2px solid currentColor; padding: 9px 5px; background: #f5f7f2; font-weight: 650; }
.result-option.passed { color: var(--green); }
.result-option.failed { color: var(--red); }
.result-option.blocked { color: var(--amber); }
.result-option.skipped { color: #647268; }
.result-panel label:not(.result-option) { font-size: 13px; font-weight: 600; }
.field-hint { font-size: 12px; color: var(--muted); margin: 5px 0 10px; }
textarea { display: block; width: 100%; border: 1px solid #d7dfd1; border-radius: 6px; background: #fff; padding: 12px; font-size: 13px; line-height: 1.6; resize: vertical; color: var(--ink); }
textarea::placeholder { color: #747e70; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; }
.form-bottom p { font-size: 11px; color: var(--muted); margin: 0; }
.history { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 29px; }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { border-top: 1px solid #edf0e8; padding: 16px 0; }
.history-heading { display: flex; gap: 10px; align-items: center; font-size: 12px; flex-wrap: wrap; }
.history-heading > .muted { margin-left: auto; }
.attempt-note { font-size: 13px; margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-state { display: flex; gap: 14px; color: var(--muted); font-size: 12px; background: #fafbf8; padding: 18px; border: 1px dashed #dce3d5; border-radius: 6px; }
.empty-state > span { font-size: 25px; line-height: 1.3; }
.empty-state strong { color: #697961; }
.empty-state p { margin: 3px 0 0; }
.notice { padding: 13px 18px; border: 1px solid #c4ddc8; background: #edf7ee; border-radius: 7px; font-size: 13px; margin-bottom: 22px; }
.error-box { background: #fcf0ed; border: 1px solid #e6b7ad; color: #913e35; padding: 16px; border-radius: 6px; font-size: 13px; margin-bottom: 18px; }
.error-box ul { margin: 8px 0 0; padding-left: 20px; }
.footer { border-top: 1px solid var(--line); padding: 23px 0 30px; color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }
.footer > div { display: flex; align-items: center; gap: 18px; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--accent); font-size: 11px; }
.text-button:hover { text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; left: 16px; background: white; z-index: 10; padding: 10px; }
.skip-link:focus { top: 10px; }
@media (max-width: 1320px) {
  .project-bar, .project-nav, main, .footer { margin-left: 40px; margin-right: 40px; }
  .masthead { padding: 0 40px; } .paper { padding: 30px; }
  .document-layout, .execution-layout { grid-template-columns: 215px minmax(0,1fr); gap: 25px; }
}
@media (max-width: 900px) {
  .document-layout, .execution-layout { grid-template-columns: 180px minmax(0,1fr); gap: 20px; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 190px; gap: 22px; }
  .project-bar, .project-nav, main, .footer { margin-left: 24px; margin-right: 24px; }
  .masthead { padding: 0 24px; } .paper { padding: 24px; }
  .result-options { display: grid; grid-template-columns: 1fr 1fr; }
  .form-bottom { align-items: flex-end; } .run-summary > .muted { display: none; }
  .footer { flex-direction: column; }
}
@media (max-width: 650px) {
  .document-layout, .execution-layout, .detail-layout { display: flex; flex-direction: column; gap: 18px; }
  .sidebar, .paper, .context-panel { width: 100%; } .sidebar { padding: 0; }
  .sidebar-note { display: none; } .sidebar .tree-group, .sidebar .tree-item { display: none; }
  .sidebar h2 { margin-bottom: 8px; } .sidebar-hint, .back-link { display: none; }
  .run-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; }
  .run-item strong { margin: 0; font-size: 13px; } .run-item .badge { margin-left: auto; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 25px; }
  .page-heading > .button { width: 100%; } .masthead { height: 65px; }
  .account > span:first-child { display: none; }
  .project-bar, .project-nav, main, .footer { margin-left: 16px; margin-right: 16px; }
  .masthead { padding: 0 16px; } .project-bar > div { gap: 10px; } .brand { font-size: 21px; }
  .project-nav { gap: 25px; } .paper { padding: 22px 19px; } .document-title { font-size: 23px; }
  .document-intro { font-size: 16px; } main { padding-top: 28px; padding-bottom: 35px; }
  .paper-bottom { flex-direction: column; gap: 10px; } .form-bottom { flex-direction: column; align-items: stretch; }
  .form-bottom .button { width: 100%; } .history-heading > .muted { margin-left: 0; width: 100%; }
  .run-summary { padding: 12px; gap: 10px; } .run-summary strong { font-size: 12px; }
  .footer > div { align-items: flex-start; flex-direction: column; gap: 9px; }
  .light { display: block; margin-top: 6px; } .context-panel { padding: 12px; }
  .sidebar .tree-item.selected { display: flex; } .sidebar .section-heading { margin-bottom: 8px; }
}
/* Phase 1: account and organization components. */
.auth-card { max-width: 510px; margin: 22px auto 40px; }
.auth-card h1 { font-size: 31px; }
.auth-card .lede { color: var(--muted); font-size: 15px; }
.stacked-form { display: flex; flex-direction: column; gap: 9px; margin-top: 26px; }
.stacked-form label { font-size: 13px; font-weight: 600; margin-top: 10px; }
.stacked-form input:not([type=submit]), select { min-height: 44px; border: 1px solid #cad4c6; border-radius: 6px; padding: 10px 12px; background: white; color: var(--ink); font: inherit; width: 100%; }
.stacked-form .button { margin-top: 17px; min-height: 45px; }
.stacked-form .field-hint { margin: 0; }
.auth-link { text-align: center; font-size: 13px; margin: 22px 0; }
.auth-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; font-size: 13px; text-align: center; color: var(--muted); }
.organization-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 24px; }
.organization-card { color: var(--ink); position: relative; }
.organization-card:hover { text-decoration: none; border-color: #a4bba9; }
.organization-card h2 { font-size: 23px; margin: 18px 0 4px; }
.organization-card p { color: var(--muted); font-size: 13px; }
.organization-card .row-arrow { position: absolute; right: 30px; bottom: 25px; }
.org-mark { display: grid; place-items: center; width: 45px; height: 45px; background: #e7eee3; color: #4f6e48; border-radius: 11px; font-size: 23px; font-weight: 650; }
.secondary { border-color: var(--line); background: white; color: var(--ink); }
.workspace-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 32px; align-items: start; }
.team-panel { padding: 28px; }
.member-row { display: flex; gap: 14px; align-items: center; padding: 19px 0; border-top: 1px solid var(--line); }
.member-row .avatar { flex-shrink: 0; }
.member-identity { flex: 1; min-width: 120px; }
.member-identity > strong, .member-identity > span { display: block; overflow-wrap: anywhere; }
.member-identity strong { font-size: 13px; }
.member-identity span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.role-form { display: flex; align-items: center; gap: 7px; }
.role-form select { font-size: 12px; min-height: 36px; padding: 7px; }
.small-button { border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 11px; padding: 9px; }
.danger { color: var(--red); }
.pending-section { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 10px; }
.context-panel > p { font-size: 14px; color: var(--muted); }
.empty-workspace { margin-top: 20px; text-align: center; padding: 55px 20px; }
.field_with_errors input { border-color: var(--red) !important; }
@media(max-width:1050px) { .workspace-layout { grid-template-columns: 1fr; } .workspace-layout .context-panel { max-width: 500px; } }
@media(max-width:650px) { .member-row { flex-wrap: wrap; gap: 10px; } .member-identity { min-width: 170px; } .role-form { margin-left: 42px; } .role-form select { width: 100px; } .team-panel .section-heading { align-items: flex-start; flex-direction: column; } .team-panel { padding: 20px; } .auth-card { margin-top: 0; } .account { gap: 12px; } .account a, .account button { font-size: 11px; } }
/* Project library: quiet navigation, readable documents and explicit actions. */
.workspace-tabs { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 30px; font-size: 13px; }
.editor-card { max-width: 740px; margin: auto; }
.project-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 30px; }
.project-summary .paper { padding: 22px; }
.project-summary strong { display: block; font-size: 30px; }
.project-summary span { font-size: 13px; color: var(--muted); }
.view-filters, .action-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; font-size: 13px; }
.action-links { margin-top: 25px; }
.record-row { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.record-row strong { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.record-row:hover { text-decoration: none; color: var(--accent); }
.tree-breadcrumbs { flex-wrap: wrap; }
.requirement-body { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.branch-heading, .activity-heading { margin-top: 40px; }
.activity-list { list-style: none; padding: 0; }
.activity-list li { border-top: 1px solid var(--line); padding: 17px 0; font-size: 13px; }
.activity-list small { display: block; color: var(--muted); margin: 7px 0; }
.activity-list summary { cursor: pointer; font-size: 12px; color: var(--accent); }
.audit-diff dt { font-weight: 600; margin-top: 12px; }
.audit-diff dd { margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 250px; overflow: auto; }
.audit-diff del, .audit-diff ins { display: block; padding: 6px; text-decoration: none; }
.audit-diff del { background: #fbedeb; } .audit-diff ins { background: #eaf4ed; }
.pagination { display: flex; justify-content: center; gap: 25px; font-size: 12px; margin-top: 25px; }
.token-value { display: block; overflow-wrap: anywhere; background: #f0f2ec; padding: 18px; margin: 24px 0; }
.token-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.organization-projects { margin-bottom: 35px; }
@media(max-width:650px) { .workspace-tabs { gap: 14px; } .project-summary { gap: 9px; } .project-summary .paper { padding: 12px; } .project-summary span { font-size: 11px; } .branch-heading { flex-wrap: wrap; } .breadcrumbs, h1, .lede { overflow-wrap: anywhere; } }
/* Versioned test library. */
[hidden] { display: none !important; }
.test-editor { max-width: 880px; margin: auto; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-columns label { display: block; margin-bottom: 9px; }
.step-editor { border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin: 18px 0; background: #fafbf8; }
.step-editor legend { font-size: 13px; font-weight: 600; padding: 0 8px; }
.step-editor label { display: block; }
.step-editor textarea { margin: 7px 0 17px; }
.step-controls { display: flex; gap: 16px; align-items: center; }
.step-controls button:disabled { opacity: .4; cursor: default; }
.check-label, .requirement-picker label { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.check-label input, .requirement-picker input { min-height: auto !important; width: auto !important; margin: 3px 0 0; }
.requirement-picker { border: 1px solid var(--line); padding: 20px; border-radius: 8px; margin-top: 20px; max-height: 320px; overflow: auto; }
.requirement-picker legend { font-size: 14px; font-weight: 600; }
.library-filters { display: grid; grid-template-columns: 2fr repeat(2,1fr); gap: 16px; align-items: end; margin-bottom: 25px; }
.library-filters label, .bulk-toolbar label { display: block; font-size: 12px; margin-bottom: 7px; font-weight: 600; }
.library-filters input:not([type=submit]), .bulk-toolbar input:not([type=submit]) { width: 100%; min-height: 44px; border: 1px solid #cad4c6; border-radius: 6px; padding: 10px; background: white; font: inherit; font-size: 13px; }
.library-filters select { font-size: 13px; }
.library-filters > a { font-size: 13px; padding-bottom: 12px; }
.test-row { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.test-row-title { flex: 1; min-width: 0; color: var(--ink); }
.test-row-title strong { display: block; font-size: 16px; margin: 6px 0; overflow-wrap: anywhere; }
.test-row-title small { color: var(--muted); font-size: 12px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; max-width: 240px; }
.priority-low { background: #eff1ec; color: #69746b; } .priority-medium { background: #eaf0f6; color: #356386; } .priority-high { background: #fcf2dd; color: var(--amber); } .priority-critical { background: #fbedeb; color: var(--red); }
.select-page { font-size: 12px; margin-bottom: 12px; }
.bulk-toolbar { background: #f1f5ee; border-radius: 8px; padding: 20px; margin-top: 22px; }
.bulk-toolbar form { display: flex; gap: 15px; align-items: end; flex-wrap: wrap; }
.bulk-toolbar form > select { width: auto; }
.bulk-toolbar form > label { align-self: center; }
.snapshot { border-top: 1px solid var(--line); padding: 20px 0; font-size: 14px; }
.snapshot .badge { margin: 8px; }
.snapshot summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 10px; }
.snapshot p, .step-action { white-space: pre-wrap; overflow-wrap: anywhere; }
.version-history { list-style: none; padding: 0; }
.version-history li { border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.version-history small { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.test-document h2 { font-size: 18px; }
@media(max-width:650px) { .library-filters, .form-columns { grid-template-columns: 1fr; } .test-row { flex-wrap: wrap; } .test-row-title { flex-basis: 70%; } .test-row .case-tags { margin-left: 28px; } .step-editor { padding: 14px; } .bulk-toolbar form { flex-direction: column; align-items: stretch; } }
/* Manual testing: a stable document beside an append-only attempt history. */
.run-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 28px; }
.run-summary strong { display: block; font-size: 30px; }
.run-summary span { font-size: 13px; }
.run-summary p { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.run-summary small { display: block; color: var(--muted); margin-top: 7px; }
.result-passed { color: #28613e; } .result-failed { color: #a83232; } .result-blocked { color: #80541a; } .result-skipped, .result-not_run { color: var(--muted); }
.run-item { flex-wrap: wrap; } .run-item strong { flex: 1; min-width: 150px; }
.execution-step { padding: 10px 0; } .execution-step p { font-size: 14px; }
.attempt-history, .rerun-form { margin-top: 24px; }
.attempt { border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; overflow-wrap: anywhere; }
.attempt h3 { font-size: 15px; } .attempt summary, .selection-expansion summary { cursor: pointer; color: var(--accent); padding: 12px 0; }
.evidence { border-left: 3px solid var(--line); padding: 2px 12px; margin: 15px 0; }
.evidence small { display: block; color: var(--muted); margin: 8px 0; }
.selection-expansion { margin: 18px 0; } .selection-expansion label { display: block; margin: 12px 0 7px; }
@media(max-width:650px) { .run-summary { gap: 8px; padding: 20px 14px; } .run-summary strong { font-size: 25px; } .run-summary span { font-size: 11px; } }
.testing-layout { display: grid; grid-template-columns: 175px minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.testing-layout > .paper, .testing-layout > aside > .paper { padding: 24px; min-width: 0; }
.testing-layout .run-test-navigation { padding: 18px; }
.run-test-navigation a { display: block; border-top: 1px solid var(--line); padding: 14px 0; font-size: 12px; overflow-wrap: anywhere; }
.run-test-navigation a[aria-current=page] { color: var(--ink); border-left: 3px solid var(--accent); padding-left: 10px; }
.run-test-navigation small, .run-test-navigation strong { display: block; }
.run-test-navigation small { color: var(--muted); margin-bottom: 5px; }
.result-picker { display: flex; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; padding: 15px; }
.result-picker label { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 13px; }
.result-picker input { width: auto !important; min-height: auto !important; }
@media(max-width:1100px) { .testing-layout { grid-template-columns: minmax(0, 1fr) 300px; } .run-test-navigation { grid-column: 1 / -1; } .run-test-navigation a { display: inline-block; margin-right: 18px; } }
@media(max-width:750px) { .testing-layout { grid-template-columns: minmax(0, 1fr); } .testing-layout > .paper, .testing-layout > aside > .paper { padding: 20px; } }

textarea[hidden] { display: none !important; }
lexxy-editor { display: block; width: 100%; min-width: 0; margin: 7px 0 18px; border-color: #d7dfd1; border-radius: 6px; background: #fff; font-size: 14px; }
lexxy-editor .lexxy-editor__content { min-height: var(--lexxy-editor-min-height, 7lh); padding: 12px; overflow-wrap: anywhere; }
lexxy-editor lexxy-toolbar { flex-wrap: wrap; }
lexxy-editor button, lexxy-editor input { width: auto; min-height: auto; margin: 0; }
.formatted-text { overflow-wrap: anywhere; min-width: 0; }
.formatted-text pre, .formatted-text table { max-width: 100%; overflow-x: auto; }
.formatted-text p:last-child { margin-bottom: 0; }
.formatted-text { margin-bottom: 16px; }
