.fv-web-ficha {
  --fv-ink: #172033;
  --fv-muted: #667085;
  --fv-line: #d8e0ec;
  --fv-soft: #f5f8fc;
  --fv-blue: #175cd3;
  --fv-sa: #e53966;
  --fv-c1: #087ea4;
  --fv-c2: #7f56d9;
  --fv-c3: #dc6803;
  color: var(--fv-ink);
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 4px 2px 24px;
}

.fv-web-head,
.fv-web-summary,
.fv-web-table-card,
.fv-web-viewer-card,
.fv-web-advanced {
  background: #fff;
  border: 1px solid var(--fv-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.fv-web-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.fv-web-kicker {
  color: var(--fv-blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.fv-web-head h2 { font-size: 24px; line-height: 1; margin: 0 0 6px; }
.fv-web-head span { color: var(--fv-muted); font-size: 12px; }
.fv-rename { background:#fff; border:1px solid #b8c7dd; border-radius:6px; color:var(--fv-blue); cursor:pointer; font-size:10px; margin-left:10px; padding:5px 8px; }
.fv-web-nav { align-items: center; display: flex; gap: 9px; }
.fv-web-nav b { color: var(--fv-muted); font-size: 12px; min-width: 42px; text-align: center; }

.fv-web-nav button,
.fv-web-canvas-actions button {
  background: #fff;
  border: 1px solid #b8c7dd;
  border-radius: 7px;
  color: var(--fv-blue);
  cursor: pointer;
  font-weight: 750;
  min-height: 32px;
  padding: 5px 11px;
}

.fv-web-nav button:disabled { cursor: default; opacity: .35; }

.fv-web-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px;
}

.fv-web-summary > div {
  background: var(--fv-soft);
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 9px 11px;
}

.fv-web-summary span { color: var(--fv-muted); font-size: 10px; }
.fv-web-summary b { font-size: 14px; }
.fv-web-integrity { align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; color: #9a3412; display: flex; gap: 10px; margin: 12px 0; padding: 10px 12px; }
.fv-web-integrity strong { flex: 0 0 auto; font-size: 12px; }
.fv-web-integrity span { font-size: 12px; line-height: 1.4; }

.fv-web-table-card { overflow: hidden; }
.fv-web-section-title { align-items: flex-start; display: flex; justify-content: space-between; padding: 14px 16px 10px; }
.fv-web-section-title h3 { font-size: 14px; margin: 0 0 2px; }
.fv-web-section-title p, .fv-web-section-title > span { color: var(--fv-muted); font-size: 10px; margin: 0; }
.fv-web-table-scroll { max-height: 430px; overflow: auto; }
.fv-web-table { border-collapse: separate; border-spacing: 0; font-size: 11px; width: 100%; }
.fv-web-table th { background: #edf3fb; color: #475467; font-size: 9px; letter-spacing: .02em; padding: 8px 7px; position: sticky; text-align: left; text-transform: uppercase; top: 0; white-space: nowrap; z-index: 2; }
.fv-web-table td { border-top: 1px solid #edf0f5; padding: 8px 7px; white-space: nowrap; }
.fv-web-seg-row { cursor: pointer; outline: none; }
.fv-web-seg-row:hover td, .fv-web-seg-row:focus td { background: #f7faff; }
.fv-web-seg-row.selected td { background: #eef5ff; }
.fv-web-seg-row.expanded .fv-web-chev { transform: rotate(90deg); }
.fv-web-chev { color: var(--fv-blue); font-size: 17px; text-align: center; transition: transform .16s ease; width: 18px; }
.fv-web-count { background: #eaf7ef; border-radius: 999px; color: #067647; display: inline-block; font-weight: 750; min-width: 22px; padding: 2px 7px; text-align: center; }
.fv-web-count.empty { background: #f2f4f7; color: #98a2b3; }
.fv-web-count.mismatch { background: #ffedd5; color: #9a3412; }
.fv-web-seg-detail > td { background: #f8faff; padding: 10px 14px 14px; }
.fv-web-detail-grid { display: grid; gap: 8px; grid-template-columns: 1.25fr 1fr 1fr; }
.fv-web-mini { background: #fff; border: 1px solid #dce5f1; border-radius: 8px; min-width: 0; padding: 10px; }
.fv-web-mini h5 { font-size: 10px; margin: 0 0 7px; text-transform: uppercase; }
.fv-web-mini h5 small { color: var(--fv-muted); font-size: 9px; font-weight: 500; text-transform: none; }
.fv-web-mini table { border-collapse: collapse; font-size: 10px; width: 100%; }
.fv-web-mini th, .fv-web-mini td { border-bottom: 1px solid #edf0f5; padding: 5px; text-align: left; }
.fv-web-mini input,.fv-web-mini select { border:1px solid #cfd9e8; border-radius:5px; box-sizing:border-box; font-size:10px; min-width:0; padding:5px; width:100%; }
.fv-mini-add,.fv-segment-detail-actions button { background:#fff; border:1px solid #175cd3; border-radius:6px; color:#175cd3; cursor:pointer; font-size:10px; margin-top:7px; min-height:29px; padding:5px 8px; }
.fv-n3-feature-row { display:grid; gap:5px; grid-template-columns:1fr 70px 25px; margin-bottom:5px; }
.fv-n3-feature-row.openings { grid-template-columns:repeat(3,minmax(0,1fr)) 25px; }
.fv-n3-feature-row button { border:1px solid #fecaca; border-radius:5px; color:#b42318; }
.fv-segment-detail-actions { display:flex; flex-wrap:wrap; gap:6px; }
.fv-segment-detail-actions button.success { border-color:#16a34a; color:#166534; }
.fv-validation-seal { border-radius:999px; display:inline-block; font-size:9px; font-weight:800; padding:3px 6px; }
.fv-validation-seal.valid { background:#dcfce7; color:#166534; }
.fv-validation-seal.pending { background:#f2f4f7; color:#667085; }
.fv-web-table th button { background:#fff; border:1px solid #16a34a; border-radius:4px; color:#166534; cursor:pointer; font-size:8px; margin-top:3px; }
.fv-web-mini-grid { display: grid; gap: 5px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fv-web-mini-grid > div { background: var(--fv-soft); border-radius: 5px; display: grid; gap: 2px; padding: 6px; }
.fv-web-mini-grid span { color: var(--fv-muted); font-size: 9px; }
.fv-web-mini-grid b { font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.fv-web-empty { color: #98a2b3; font-size: 10px; margin: 5px 0; }

.fv-web-viewer-card { overflow: hidden; padding: 10px; }
.fv-web-details { margin-bottom: 10px; }
.fv-web-details > summary { background: var(--fv-soft); border: 1px solid var(--fv-line); border-radius: 7px; color: var(--fv-blue); cursor: pointer; font-size: 11px; font-weight: 750; padding: 9px 10px; }
.fv-web-details > summary:focus-visible { outline: 2px solid var(--fv-blue); outline-offset: 2px; }
.fv-web-details[open] > summary { margin-bottom: 8px; }
.fv-web-layerbar { align-items: stretch; display: flex; gap: 6px; margin-bottom: 8px; overflow-x: auto; }
.fv-web-layer {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  color: #344054;
  cursor: pointer;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  grid-template-columns: auto auto;
  justify-content: start;
  min-width: 92px;
  padding: 7px 9px;
}

.fv-web-layer i { font-size: 10px; font-style: normal; margin-right: 5px; }
.fv-web-layer small { color: var(--fv-muted); font-size: 8px; font-weight: 500; grid-column: 2; }
.fv-web-layer.sa i { color: var(--fv-sa); }
.fv-web-layer.c1 i { color: var(--fv-c1); }
.fv-web-layer.c2 i { color: var(--fv-c2); }
.fv-web-layer.c3 i { color: var(--fv-c3); }
.fv-web-layer.n3 i { color: #2563eb; }
.fv-web-layer.active { background: #10213b; border-color: #10213b; color: #fff; }
.fv-web-layer.active small { color: #cbd8eb; }
.fv-web-layer:disabled { cursor: default; opacity: .45; }

.fv-web-segtabs { display: flex; gap: 4px; margin-bottom: 8px; overflow-x: auto; padding-bottom: 2px; }
.fv-web-segtabs button { background: #fff; border: 1px solid #cfd9e8; border-radius: 6px; color: #475467; cursor: pointer; font-size: 10px; min-width: 32px; padding: 5px 7px; }
.fv-web-segtabs button.active { background: #175cd3; border-color: #175cd3; color: #fff; }
.lv-web-ficha [aria-label="Montagem N3"] button.has-result { background: #ecfdf3; border-color: #12b76a; color: #027a48; }
.lv-web-ficha [aria-label="Montagem N3"] button.has-result.active { background: #027a48; border-color: #027a48; color: #fff; }
.fv-web-layer-actions { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }
.fv-web-layer-actions button { background:#fff; border:1px solid #b8c7dd; border-radius:6px; color:#344054; cursor:pointer; font-size:10px; font-weight:750; min-height:32px; padding:6px 10px; }
.fv-web-layer-actions button.primary { background:#175cd3; border-color:#175cd3; color:#fff; }
.fv-web-layer-actions button.success { border-color:#16a34a; color:#166534; }
.fv-web-layer-actions button.danger { border-color:#dc2626; color:#b42318; }
.fv-web-layer-actions button:disabled { cursor:default; opacity:.42; }
.fv-web-layer-actions button.fv-ortho.active { background:#175cd3; border-color:#175cd3; color:#fff; }
.fv-web-layer-actions kbd { background:rgba(15,23,42,.08); border-radius:3px; font:inherit; padding:1px 3px; }
.fv-osnap-state { align-items:center; background:#ecfdf3; border:1px solid #86efac; border-radius:6px; color:#166534; display:inline-flex; font-size:10px; font-weight:750; min-height:30px; padding:0 9px; }
.fv-osnap-state:not(.ready) { background:#f8fafc; border-color:#cfd9e8; color:#667085; }
.fv-web-canvas { background: #090d12; border: 1px solid #1e293b; border-radius: 9px; cursor: grab; height: clamp(430px, 58vh, 680px); overflow: hidden; position: relative; touch-action: none; user-select: none; }
.fv-web-canvas.dragging { cursor: grabbing; }
.fv-web-canvas.fv-editing { cursor:crosshair; outline:2px solid #4ea1ff; outline-offset:-2px; }
.fv-web-canvas.fv-editing.dragging { cursor:grabbing; }
.fv-web-canvas.fv-pointing { cursor:crosshair; outline:2px solid #f97316; outline-offset:-2px; }
.fv-web-canvas-inner, .fv-web-svg { display: block; height: 100%; width: 100%; }
.fv-web-canvas-actions { align-items: center; display: flex; gap: 8px; justify-content: space-between; left: 8px; pointer-events: none; position: absolute; right: 8px; top: 8px; }
.fv-web-canvas-actions span { backdrop-filter: blur(5px); background: rgba(9, 13, 18, .8); border: 1px solid #344054; border-radius: 6px; color: #e5edf8; font-size: 10px; padding: 5px 8px; }
.fv-web-canvas-buttons { display:flex; gap:6px; pointer-events:auto; }
.fv-web-canvas-actions button { background: rgba(255, 255, 255, .92); min-height: 28px; padding: 4px 8px; pointer-events: auto; }
.fv-web-canvas-actions button.active { background:#172b4d; border-color:#4ea1ff; color:#fff; }
.fv-web-view-help { color: var(--fv-muted); font-size: 9px; margin: 5px 2px 0; }
.fv-qa-below { background:#f8fafc; border:1px solid var(--fv-line); border-top:3px solid var(--fv-blue); border-radius:9px; padding:14px; }
.fv-qa-below > div:first-child { display:flex; flex-direction:column; gap:3px; }
.fv-qa-below > div:first-child span { color:var(--fv-muted); font-size:11px; }
.fv-qa-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:12px 0; }
.fv-qa-actions button { background:#fff; border:1px solid var(--fv-blue); border-radius:6px; color:var(--fv-blue); cursor:pointer; font-size:11px; font-weight:700; min-height:34px; padding:6px; }
.fv-qa-actions button:disabled { cursor:wait; opacity:.55; }
.fv-human-validate { background:#fff; border:1px solid #16a34a; border-radius:6px; color:#166534; cursor:pointer; font-size:11px; font-weight:800; margin:0 0 9px; min-height:32px; padding:6px 10px; }
.fv-human-validate.done { background:#166534; color:#fff; cursor:default; }
.fv-qa-status { background:#fff; border:1px solid #dbe5f2; border-radius:6px; font-size:11px; padding:9px; }
.fv-qa-status.error { border-color:#fecaca; color:#b91c1c; }
.fv-qa-status p { margin:7px 0 0; }
.fv-qa-badge { border-radius:999px; display:inline-block; font-size:10px; font-weight:800; margin:2px 5px 2px 0; padding:3px 7px; }
.fv-qa-badge.approved { background:#dcfce7; color:#166534; }
.fv-qa-badge.rejected { background:#fee2e2; color:#991b1b; }
.fv-qa-badge.pending { background:#fef3c7; color:#92400e; }
.fv-qa-empty { color:var(--fv-muted); }
.fv-qa-version-grid { display:grid; gap:8px; grid-template-columns:repeat(5,minmax(0,1fr)); margin:12px 0 8px; }
.fv-qa-version { background:#fff; border:1px solid #dbe5f2; border-radius:8px; display:grid; gap:7px; padding:8px; }
.fv-qa-version button,.fv-qa-below>[data-fv-save-notes] { background:#fff; border:1px solid var(--fv-blue); border-radius:6px; color:var(--fv-blue); font-size:10px; font-weight:750; min-height:32px; }
.fv-qa-version button:disabled { color:#344054; opacity:1; }
.fv-qa-version label { color:#475467; display:grid; font-size:9px; gap:4px; }
.fv-qa-version textarea { border:1px solid #cfd9e8; border-radius:5px; min-height:72px; padding:6px; resize:vertical; }
.fv-annotations { border-top:1px solid #dbe5f2; margin-top:10px; padding-top:10px; }
.fv-annotations h4 { font-size:12px; margin:0 0 7px; }
[data-fv-annotation-editor] { align-items:center; background:#fff7ed; border:1px solid #fdba74; border-radius:7px; display:grid; gap:6px; grid-template-columns:auto 1fr auto auto; margin-bottom:8px; padding:7px; }
[data-fv-annotation-editor][hidden] { display:none; }
[data-fv-annotation-editor] input { border:1px solid #cfd9e8; border-radius:5px; padding:7px; }
.fv-annotation { align-items:center; background:#fff; border:1px solid #dbe5f2; border-radius:6px; display:grid; gap:5px; grid-template-columns:auto auto 1fr auto; margin-top:5px; padding:7px; }
.fv-annotation b,.fv-annotation span,.fv-annotation p { font-size:10px; margin:0; }
.fv-web-advanced { overflow: hidden; }
.fv-web-advanced summary { cursor: pointer; font-size: 11px; font-weight: 750; padding: 11px 14px; }
.fv-web-advanced > div { border-top: 1px solid var(--fv-line); color: var(--fv-muted); font-size: 10px; padding: 10px 14px; }
.fv-web-advanced p { margin: 3px 0; }
.lv-name-line { align-items:center; display:flex; flex-wrap:wrap; gap:8px 12px; margin-bottom:6px; }
.lv-name-line h2 { margin:0; }
.lv-behavior-tag { align-items:center; background:#eef5ff; border:1px solid #bfdbfe; border-radius:999px; color:#174ea6!important; display:inline-flex; flex-wrap:wrap; gap:3px; font-size:12px!important; line-height:1.3; padding:5px 10px; }
.lv-behavior-tag b { color:#12396f; }
.lv-behavior-tag strong { color:#12396f; font-weight:850; }
.lv-side-tabs { padding:0; }
.lv-cut-card { max-height:260px; }
.lv-cut-scroll { max-height:180px; }
.lv-interpretation-card { margin-bottom:9px; }
.lv-web-ficha .fv-web-layerbar { gap:4px; margin-bottom:6px; }
.lv-web-ficha .fv-web-layer { border-radius:6px; font-size:10px; min-width:58px; padding:4px 6px; }
.lv-web-ficha .fv-web-layer i { font-size:9px; margin-right:3px; }
.lv-web-ficha .fv-web-layer small { font-size:7px; }
.lv-web-ficha .fv-web-viewer-card > .lv-n3-editor { margin-bottom:9px; }
.lv-cut-row { cursor:pointer; }
.lv-cut-row:hover td,.lv-cut-row.selected td { background:#eef5ff; }
.lv-empty-state { color:#667085; font-size:11px; padding:14px 16px; text-align:center; }
.lv-segment-detail { display:grid; gap:8px; grid-template-columns:1.5fr 1fr; }
.lv-web-ficha .fv-web-table { min-width:850px; }
.lv-list-cell { min-width:125px; white-space:normal; line-height:1.5; }
.lv-list-cell > div + div { margin-top:3px; }
.lv-list-cell small { display:block; font-size:10px; color:#52647f; }
.lv-level-warning { color:#b54708; cursor:help; font-size:12px; }
.fv-web-seg-detail .lv-n3-editor { margin-top:8px; }
.lv-opening-row { display:grid; gap:5px; grid-template-columns:1fr repeat(3,minmax(72px,.8fr)) 28px; margin-bottom:5px; }
.lv-opening-row input { border:1px solid #cfd9e8; border-radius:5px; box-sizing:border-box; font-size:10px; min-width:0; padding:5px; width:100%; }
.lv-opening-row button { background:#fff; border:1px solid #fecaca; border-radius:5px; color:#b42318; cursor:pointer; }
.lv-n3-editor{background:#fff;border:1px solid var(--fv-line);border-radius:10px;padding:12px;display:grid;gap:9px}
.lv-n3-editor h3{font-size:13px;margin:0 0 3px}.lv-n3-editor h4{font-size:11px;margin:0 0 6px}.lv-n3-editor p{color:#667085;font-size:10px;margin:0}
.lv-n3-side{display:grid;gap:6px}.lv-n3-numbers,.lv-n3-panel-row{display:grid;gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}
.lv-n3-panel-row{align-items:end;background:#f8fafc;border:1px solid #e1e7f0;border-radius:7px;padding:7px}
.lv-n3-panel-row strong{font-size:10px;grid-column:1/-1}.lv-n3-editor label{color:#475467;display:grid;font-size:9px;gap:4px}
.lv-n3-editor input{border:1px solid #b8c7dd;border-radius:5px;box-sizing:border-box;font-size:11px;padding:6px;width:100%}
.lv-n3-actions{display:flex;flex-wrap:wrap;gap:7px}.lv-n3-actions button{background:#fff;border:1px solid #175cd3;border-radius:6px;color:#175cd3;cursor:pointer;font-size:10px;padding:7px 9px}
.lv-n3-actions button.primary{background:#175cd3;color:#fff}.lv-n3-actions button.success{border-color:#079455;color:#067647}.lv-n3-actions button:disabled{cursor:not-allowed;opacity:.55}
.lv-n3-status{color:#475467;font-size:10px}.lv-n3-warning{background:#fffbeb;border:1px solid #fde68a;border-radius:6px;color:#854d0e!important;padding:7px}
.lv-n3-monitor{background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;font-size:10px;padding:7px}.lv-n3-monitor[hidden]{display:none}
.lv-n3-monitor i{background:#dbeafe;border-radius:4px;display:block;height:4px;margin-top:5px;overflow:hidden}.lv-n3-monitor em{background:#175cd3;display:block;height:100%}.lv-n3-monitor small{color:#b42318;display:block;margin-top:4px}
.lv-web-ficha .fv-web-layer.n3_cut,.lv-web-ficha .fv-web-layer.n3_panels { min-width:116px; }
.fv-web-layer.n3_cut i,.fv-web-layer.n3_panels i { color:#2563eb; }
.lv-canvas-empty { align-items:center; color:#94a3b8; display:flex; font-size:12px; height:100%; justify-content:center; }
.lj-fields-card { background:#fff; border:1px solid var(--fv-line); border-radius:10px; padding:12px; }
.lj-fields-grid { display:grid; gap:8px; grid-template-columns:repeat(3,minmax(0,1fr)); margin:10px 0; }
.lj-fields-grid>div,.lj-fields-grid>label { background:#f7f9fc; border:1px solid #e1e7f0; border-radius:8px; display:grid; gap:5px; min-width:0; padding:10px; }
.lj-fields-grid span,.lj-fields-grid label { color:#667085; font-size:9px; text-transform:uppercase; }
.lj-fields-grid b { font-size:12px; overflow:hidden; text-overflow:ellipsis; }
.lj-fields-grid input { background:#fff; border:1px solid #b8c7dd; border-radius:6px; box-sizing:border-box; font-size:12px; padding:7px; width:100%; }
.lj-n3-summary { display:grid; gap:7px; grid-template-columns:repeat(4,minmax(0,1fr)); margin:9px 0; }
.lj-n3-summary>div { background:#eef5ff; border-radius:7px; display:grid; gap:3px; padding:8px; }
.lj-n3-summary span { color:#667085; font-size:9px; }
.lj-n3-summary b { font-size:10px; overflow:hidden; text-overflow:ellipsis; }
.lj-n3-help { background:#fffbeb; border:1px solid #fde68a; border-radius:7px; color:#854d0e; font-size:10px; line-height:1.4; margin:0 0 9px; padding:7px 9px; }
.lj-n3-columns { display:grid; gap:9px; grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:9px; }
.lj-n3-columns section { border:1px solid #dbe5f2; border-radius:8px; padding:9px; }
.lj-n3-columns h4 { font-size:11px; margin:0 0 7px; }
.lj-n3-columns>section>button { background:#fff; border:1px solid #175cd3; border-radius:6px; color:#175cd3; cursor:pointer; font-size:10px; margin-top:6px; padding:6px 8px; }
.lj-n3-panel-list { display:grid; gap:5px; }
.lj-n3-panel-row { align-items:center; background:#f8fafc; border:1px solid transparent; border-radius:6px; display:grid; font-size:10px; gap:7px; grid-template-columns:minmax(68px,.7fr) minmax(82px,1fr) minmax(56px,.7fr) 28px; min-height:34px; padding:6px; }
.lj-n3-panel-row:not(:has(input)) { grid-template-columns:minmax(68px,.8fr) minmax(70px,.7fr) minmax(58px,.65fr); }
.lj-n3-panel-row>span { color:#344054; font-weight:700; }
.lj-n3-panel-row>b { color:#101828; font-size:11px; }
.lj-n3-panel-row>em { color:#667085; font-size:9px; font-style:normal; text-align:right; }
.lj-n3-panel-row.remainder { background:#ecfdf3; border-color:#86efac; }
.lj-n3-panel-list.invalid .lj-n3-panel-row.remainder { background:#fff1f2; border-color:#fda4af; color:#b42318; }
.lj-n3-panel-value { align-items:center; display:grid; gap:4px; grid-template-columns:minmax(0,1fr) auto; }
.lj-n3-panel-value input { border:1px solid #b8c7dd; border-radius:5px; box-sizing:border-box; min-width:0; padding:6px; width:100%; }
.lj-n3-panel-value small { color:#667085; font-size:9px; }
.lj-n3-union { align-items:center; color:#475467; display:flex; gap:4px; white-space:nowrap; }
.lj-n3-panel-row button { background:#fff; border:1px solid #fecaca; border-radius:5px; color:#b42318; cursor:pointer; height:28px; }
.lj-regen-monitor { background:#f8fafc; border:1px solid #dbe5f2; border-radius:8px; margin-top:8px; padding:9px 10px; }
.lj-regen-monitor[hidden] { display:none; }
.lj-regen-monitor.running,.lj-regen-monitor.queued,.lj-regen-monitor.paused { background:#eff6ff; border-color:#bfdbfe; }
.lj-regen-monitor.done { background:#f0fdf4; border-color:#bbf7d0; }
.lj-regen-monitor.error,.lj-regen-monitor.cancelled { background:#fff7ed; border-color:#fed7aa; }
.lj-regen-head,.lj-regen-meta { align-items:center; display:flex; gap:8px; justify-content:space-between; }
.lj-regen-head b { align-items:center; color:#1d4ed8; display:flex; font-size:11px; gap:6px; }
.lj-regen-monitor.done .lj-regen-head b { color:#15803d; }
.lj-regen-monitor.error .lj-regen-head b,.lj-regen-monitor.cancelled .lj-regen-head b { color:#b42318; }
.lj-regen-head span,.lj-regen-meta { color:#667085; font-size:9px; }
.lj-regen-meta { margin-top:6px; }
.lj-regen-progress { background:#dbeafe; border-radius:99px; height:4px; margin-top:7px; overflow:hidden; }
.lj-regen-progress i { background:#2563eb; display:block; height:100%; transition:width .25s ease; }
.lj-regen-error { color:#b42318; font-size:9px; margin:6px 0 0; white-space:pre-wrap; }
.lj-regen-spinner { animation:fv-web-spin .8s linear infinite; border:2px solid #bfdbfe; border-radius:50%; border-top-color:#2563eb; height:9px; width:9px; }
.lj-notes-grid { display:grid; gap:8px; grid-template-columns:repeat(5,minmax(0,1fr)); margin:12px 0; }
.lj-notes-grid label { color:#475467; display:grid; font-size:9px; gap:4px; }
.lj-notes-grid textarea { border:1px solid #cfd9e8; border-radius:6px; min-height:76px; padding:7px; resize:vertical; }
.lj-web-ficha .fv-qa-below>[data-lj-save-notes] { background:#fff; border:1px solid #175cd3; border-radius:6px; color:#175cd3; cursor:pointer; font-size:10px; font-weight:750; min-height:32px; padding:6px 10px; }
@media (max-width: 760px) {
  .lv-segment-detail { grid-template-columns:1fr; }
  .lv-opening-row { grid-template-columns:1fr 1fr; }
  .lv-n3-numbers,.lv-n3-panel-row{grid-template-columns:1fr 1fr}
  .lj-fields-grid,.lj-n3-summary,.lj-n3-columns,.lj-notes-grid { grid-template-columns:1fr; }
}
.fv-web-loading, .fv-web-error { align-items: center; background: #fff; border: 1px solid #d8e0ec; border-radius: 10px; color: #475467; display: flex; gap: 10px; justify-content: center; min-height: 220px; padding: 20px; }
.fv-web-loading i { animation: fv-web-spin .8s linear infinite; border: 2px solid #d8e0ec; border-radius: 50%; border-top-color: #175cd3; height: 20px; width: 20px; }
.fv-web-error { flex-direction: column; }
.fv-web-error button { background: #175cd3; border: 0; border-radius: 6px; color: #fff; cursor: pointer; padding: 7px 12px; }

@keyframes fv-web-spin { to { transform: rotate(360deg); } }

@media (max-width: 780px) {
  .fv-web-summary { grid-template-columns: 1fr; }
  .fv-web-detail-grid { grid-template-columns: 1fr; }
  .fv-web-canvas { height: 440px; }
  .fv-web-head { align-items: flex-start; }
  .fv-qa-actions { grid-template-columns: 1fr; }
  .fv-qa-version-grid { grid-template-columns:1fr 1fr; }
  [data-fv-annotation-editor] { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .fv-web-chev, .fv-web-loading i { animation: none; transition: none; }
}

/* O painel compartilhado também aparece fora do article das vigas. */
[data-human-qa] { --fv-blue:#175cd3; --fv-line:#d8e0ec; --fv-muted:#667085; margin-top:12px; }
.human-qa-save { background:#fff; border:1px solid #175cd3; border-radius:6px; color:#175cd3; font-size:10px; min-height:32px; padding:6px 10px; margin-bottom:8px; cursor:pointer; }
.human-qa-candidates { margin-top:10px; padding:10px; border:1px solid #d8e0ec; border-radius:8px; background:#fff; }
.human-qa-candidates summary { cursor:pointer; padding:6px 0; font-weight:600; }
.human-qa-candidates pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:300px; overflow:auto; font-size:11px; }
.human-qa-preview { background:#090e15; margin:8px 0; border-radius:6px; overflow:hidden; }
.human-qa-preview svg { display:block; width:100%; height:480px; touch-action:none; cursor:grab; }
[data-human-qa] .fv-qa-version button:disabled { cursor:default; }
[data-human-qa] textarea { width:100%; box-sizing:border-box; font-size:11px; }
@media(max-width:800px) { .fv-qa-version-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
