/* Shared visual tokens for the checklist, editor, records, review and reports. */
:root {
 --bg:#f6f7f9; --card:#fff; --text:#182331; --muted:#566476;
 --line:#e0e5ec; --brand:#344ec4; --brand-soft:#eef2ff; --radius:8px;
 --shadow:none; --up:#166642; --up-soft:#edf7f1; --down:#a42d36; --down-soft:#fff1f2;
 --control-line:#cfd7e3; --focus-line:#8da5cd; --focus-halo:#e8effa; --subtle:#f7f8fa;
}
.card,.login-card,.dash-card,.detail-progress,.modal-body,.user-item,.rec-item,
.editor-preview-pane,.srow,.nc-report-filter,.wf-log,.nc-kpi,.nc-overview-item {
 box-shadow:none; border-radius:var(--radius);
}
.topbar,.detail-header,.toolbar,.ed-head,.preview-head { box-shadow:none; }
.btn,.chip,.pill-btn,.icon-btn { border-radius:6px; box-shadow:none; }
.btn.primary,.btn.primary:hover,.btn.primary:active { background:var(--brand); border-color:var(--brand); color:white; box-shadow:none; }
.btn.primary:hover { background:#283ea8; }
.btn.danger { color:var(--down); }
.badge-item,.wf-status,.rec-pill { border-radius:4px; box-shadow:none; }
:is(input:not([type=checkbox],[type=radio],[type=file]),textarea,select):focus,
.modal-body .field :is(input,textarea,select):focus,
.nc-report-dialog .nc-report-filters :is(input,select):focus {
 outline:0; border-color:var(--focus-line); box-shadow:0 0 0 2px var(--focus-halo);
}
:is(button,input[type=checkbox],input[type=radio]):focus-visible { outline:2px solid var(--focus-line); outline-offset:2px; }
:is(input[type=checkbox],input[type=radio]) { accent-color:var(--brand); }
@media (forced-colors:active) {
 :is(input,textarea,select):focus { outline:1px solid Highlight; outline-offset:1px; }
}
#detailSteps .tree-node-body,#detailSteps .tree-node.focused>.tree-node-body {
 border-radius:var(--radius); box-shadow:none;
}
#detailSteps .tree-node.focused>.tree-node-body { border-color:var(--focus-line); }
#detailSteps .cmd,.wf-dialog .cmd { background:#0f172a; border:1px solid #334155; border-radius:6px; }
#detailSteps .cmd code,.wf-dialog .cmd code { color:#f1f5f9; font-size:14px; line-height:1.5; }
#detailSteps .cmd .copy { background:#fff; color:#304156; border:1px solid var(--control-line); }
#detailSteps .nc-panel,.ease-check-guide { background:var(--card); border-color:var(--line); box-shadow:none; border-radius:var(--radius); }
#detailSteps .nc-sub-row>.check-panel { grid-column:1/-1; }
.check-panel[hidden],.check-field-error[hidden] { display:none!important; }
.check-row-tools { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.check-row-tools button {
 min-height:34px; padding:6px 9px; border:1px solid var(--control-line); border-radius:6px;
 background:var(--subtle); color:#304156; cursor:pointer; white-space:nowrap;
}
.check-row-tools .check-details { background:var(--card); }
.check-row-tools .check-pass[aria-pressed=true] { color:var(--up); background:var(--up-soft); border-color:#a8d5bb; font-weight:650; }
.check-row-tools .check-fail[aria-pressed=true] { color:var(--down); background:var(--down-soft); border-color:#e9b5ba; font-weight:650; }
.check-row-tools button:disabled,.check-dialog button:disabled { opacity:.55; cursor:not-allowed; }
.check-inline-form { margin-top:6px; padding-top:14px; border-top:1px solid var(--line); }
.check-inline-form h3 { margin:0 0 10px; color:var(--down); font-size:15px; }
.check-standard { padding:8px 10px; color:var(--text); background:var(--subtle); border:1px solid var(--line); border-radius:6px; white-space:pre-wrap; overflow-wrap:anywhere; }
.check-issue { margin:10px 0; padding:12px; border:1px solid var(--line); border-radius:var(--radius); }
.check-issue-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.check-issue-head h3 { margin:0; overflow-wrap:anywhere; }
.check-issue .field { display:grid; gap:5px; margin:8px 0; }
.check-issue textarea,.check-issue select { width:100%; border:1px solid var(--control-line); border-radius:6px; padding:7px 10px; font:inherit; background:white; color:var(--text); }
.check-issue textarea { resize:vertical; min-height:64px; }
.check-required { margin-left:6px; padding:2px 6px; border-radius:4px; font-size:12px; color:var(--down); background:var(--down-soft); }
.check-field-error { font-size:13px; color:var(--down); }
.check-issue textarea[aria-invalid=true] { border-color:var(--down); }
.check-images { display:grid; grid-template-columns:repeat(auto-fill,minmax(135px,1fr)); gap:8px; }
.check-images figure { margin:0; padding:6px; border:1px solid var(--line); border-radius:6px; min-width:0; }
.check-images figcaption,.check-upload-list span { overflow-wrap:anywhere; font-size:12px; color:var(--muted); }
.check-thumbnail { display:block; padding:0; border:0; border-radius:4px; background:var(--subtle); cursor:zoom-in; }
.check-thumbnail img { display:block; width:100%; height:68px; object-fit:contain; }
.check-images .check-thumbnail { width:100%; }
.check-dialog { width:min(480px,calc(100% - 32px)); border:1px solid var(--line); border-radius:var(--radius); background:white; color:var(--text); padding:18px; }
.check-dialog::backdrop { background:rgba(19,31,48,.48); }
.check-note { font-size:13px; color:var(--muted); margin:8px 0; }
.check-drop.btn { width:100%; padding:18px 8px; background:var(--subtle); border:1px dashed #8597c7; color:var(--brand); }
.check-upload-list { padding:0; list-style:none; max-height:26vh; overflow:auto; }
.check-upload-list li { display:flex; gap:6px; flex-wrap:wrap; align-items:center; padding:6px; background:var(--subtle); border:1px solid var(--line); margin-bottom:6px; border-radius:6px; }
.check-upload-list span { flex:1; min-width:70px; }
.check-upload-list img { width:48px; height:36px; }
.check-image-dialog { width:max-content; max-width:calc(100% - 32px); }
.check-image-dialog>img { display:block; margin:10px auto 0; max-width:100%; max-height:72vh; object-fit:contain; }
@media (max-width:600px) {
 #detailSteps .tree-node-body>.nc-item-actions { grid-column:1/-1; grid-row:auto; }
 #detailSteps .nc-sub-row { grid-template-columns:minmax(0,1fr); }
 .check-issue .nc-form-row { grid-template-columns:minmax(0,1fr); }
}
.check-draft-note { display:flex; gap:8px; flex-wrap:wrap; justify-content:space-between; align-items:center; margin-top:10px; padding-top:10px; border-top:1px solid var(--line); color:var(--muted); }
.lightbox>img { cursor:default; border-radius:var(--radius); }
.lightbox .lightbox-close { position:absolute; top:12px; right:12px; }
.wf-dialog,.modal-body.nc-report-dialog { background:var(--bg); border-radius:var(--radius); box-shadow:none; }
.wf-header,.wf-tabs,.wf-side,.wf-description,.wf-log,.nc-filter-card,.nc-results-card,.nc-analysis-card,.nc-kpis>* {
 background:var(--card); border-color:var(--line); border-radius:var(--radius); box-shadow:none;
}
.wf-tabs button[aria-selected=true] { color:var(--brand); border-bottom-color:var(--brand); }
.wf-standard,.wf-compare>section,.nc-editor-banner,.nc-standard-preview,.nc-table thead th { background:var(--subtle); border-color:var(--line); }
.wf-step,.wf-option,.wf-static-step,.nc-issue-card,.nc-overview-row { border-radius:var(--radius); box-shadow:none!important; }
.wf-result.pass,.wf-status.approved,.nc-pass { background:var(--up-soft); color:var(--up); }
.wf-result.fail,.wf-status.rejected,.nc-fail { background:var(--down-soft); color:var(--down); }
.login-logo,.brand .logo { background:var(--brand); box-shadow:none; border-radius:6px; }
.card:hover { transform:none; box-shadow:none; border-color:var(--control-line); }
.card.pinned { background:var(--card); border-color:#eadcac; }
.bar i { background:var(--brand); }
.badge-item { border-radius:4px!important; }
.badge-item.badge-green { background:var(--up-soft)!important; color:var(--up)!important; }
.badge-item.badge-blue { background:var(--brand-soft)!important; color:var(--brand)!important; }
.badge-item.badge-gray { background:var(--subtle)!important; color:var(--muted)!important; }
#activeStepsPanel { background:var(--card); border:1px solid var(--line); color:var(--text); border-radius:var(--radius); box-shadow:none; }
.search input:focus,.row-input:focus,.field input:focus,.field select:focus {
 border-color:var(--focus-line); box-shadow:0 0 0 2px var(--focus-halo);
}
@media (forced-colors:active) {
 .search input:focus,.row-input:focus,.field input:focus,.field select:focus,.modal-body .field :is(input,textarea,select):focus {
  outline:1px solid Highlight; outline-offset:1px;
 }
}
#activeStepsPanel h4 { color:var(--muted); }
#activeStepsList li { color:var(--up); }
