/* Scoped technical inspector shared by the five reviewed language pages. */
body.cx-model-inspector-view { overflow: hidden; background: #f4f6fa; color: #101b2d; }
.cx-model-inspector-view .wp-site-blocks { height: 100dvh; }
.cx-model-inspector-view .cx-site-shell { height: 100%; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); }
.cx-model-inspector-view .cx-site-shell > footer { display: none; }
.cx-model-inspector-view #configux-main-content,
.cx-model-inspector-view .wp-block-post-content { min-width: 0; min-height: 0; height: 100%; margin: 0; padding: 0; }
.cxi-page { height: 100%; padding: 0; background: #f4f6fa; }
.cxi-app { height: 100%; margin: 0; --cxi-muted: #60708a; --cxi-line: #cbd5e2; --cxi-blue: #2f65f5; font-size: 14px; line-height: 1.5; }
.cxi-page,.cxi-app,.cxi-workbench,.cxi-selectors { min-width: 0; width: 100%; max-width: 100%; }
.cxi-app * { box-sizing: border-box; }
.cxi-app [hidden] { display: none !important; }
.cxi-app :is(h1,h2,p) { margin: 0; }
.cxi-app :is(button,input,select) { font: inherit; }
.cxi-app button,.cxi-app label.cxi-button { cursor: pointer; }
.cxi-app :is(button,select):disabled { cursor: not-allowed; opacity: 1; }
.cxi-app select:disabled { color: #586a82; -webkit-text-fill-color: #586a82; background: #edf1f6; border-color: #a6b4c7; }
.cxi-app button:disabled { color: #66758a; background: #edf1f6; border-color: #b8c4d4; box-shadow: none; }
.cxi-app :is(button,input,select,summary,[role="tabpanel"]):focus-visible { outline: 3px solid #8cafff; outline-offset: 3px; }
.cxi-open-action:has(.cxi-file-input:focus-visible) .cxi-button-primary { outline: 3px solid #8cafff; outline-offset: 3px; }
.cxi-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cxi-workbench { height: 100%; display: flex; flex-direction: column; background: #fff; }
/* One inspector row below the site header. File metadata lives beside the model. */
.cxi-controls { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 20px; padding: 10px 20px 12px; border-bottom: 1px solid var(--cxi-line); flex-shrink: 0; min-width: 0; }
.cxi-selectors { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.cxi-selector { min-width: 0; }
.cxi-selector-label { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.cxi-selector-label label { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 0; color: #354763; font-size: 11px; font-weight: 650; }
.cxi-selector-label label > span { color: #596d89; font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cxi-selector-label .cxi-help { margin-left: auto; }
.cxi-selector-input { display: flex; align-items: center; gap: 6px; }
.cxi-selectors select { display: block; width: 100%; max-width: 100%; min-width: 0; height: 36px; border: 1px solid #8596ae; border-radius: 8px; background: #f9faff; color: #324867; padding: 7px 24px 7px 10px; font-size: 11px; text-overflow: ellipsis; }
.cxi-animation-actions { display: flex; gap: 2px; flex-shrink: 0; }
.cxi-animation-actions button { display: grid; place-items: center; width: 25px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: #f3f6fc; color: #526783; font-size: 11px; }
.cxi-animation-actions button[aria-pressed="true"] { background: #e8efff; color: var(--cxi-blue); }
.cxi-open-action { position: relative; display: flex; align-items: center; gap: 9px; height: 36px; padding-left: 16px; border-left: 1px solid #e7ebf2; }
.cxi-file-input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cxi-app .cxi-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: 24px; border: 1px solid transparent; min-height: 36px; padding: 8px 16px; line-height: 1.3; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cxi-app .cxi-button-primary { background: var(--cxi-blue); color: #fff; box-shadow: 0 5px 14px #2b62ea18; }
.cxi-app .cxi-button-primary:hover { background: #2359df; }
.cxi-app .cxi-button-secondary { color: #294265; background: #f4f7fc; border-color: #e0e6ef; }
.cxi-app .cxi-button-secondary:hover { background: #eaf0fa; }
.cxi-app .cxi-button-quiet { background: transparent; color: #5b6e8c; border-color: transparent; }
.cxi-app .cxi-button-quiet:hover { background: #f2f5fa; }
.cxi-progress { position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; pointer-events: none; opacity: 0; }
.cxi-progress > span { height: 100%; display: block; width: 0; background: var(--cxi-blue); transition: width .15s ease; }
.cxi-app:has([data-inspector-status][data-status="working"]) .cxi-progress { opacity: 1; }
.cxi-error { flex-shrink: 0; padding: 12px 20px; background: #fff1f2; color: #9c2332; border-bottom: 1px solid #f4d3d6; font-size: 12px; overflow-wrap: anywhere; }
/* Both columns are bounded. File metadata must never determine the viewer size. */
.cxi-workspace { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) 300px; min-height: 0; overflow: hidden; }
.cxi-viewport { position: relative; min-width: 0; min-height: 0; height: 100%; padding: 14px; background-color: #edf3f4; background-image: linear-gradient(#91a8b00a 1px,transparent 1px),linear-gradient(90deg,#91a8b00a 1px,transparent 1px); background-size: 32px 32px; overflow: hidden; }
.cxi-viewer { display: block; width: 100%; height: 100%; min-height: 0; border: 1px solid #cbd5e2; border-radius: 15px; --poster-color: transparent; --progress-bar-height: 0; background: #fafbfc; }
.cxi-view-label { display: flex; align-items: center; gap: 6px; position: absolute; top: 33px; left: 34px; right: 34px; z-index: 1; font-size: 8px; font-weight: 650; letter-spacing: .13em; color: #536780; pointer-events: none; }
.cxi-view-label > span { width: 5px; height: 5px; background: #7ab8aa; border-radius: 50%; }
.cxi-view-label small { margin-left: auto; font-size: 8px; font-weight: 400; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cxi-empty { height: 100%; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 50px 20px; border-radius: 15px; background: #fafbfc; }
.cxi-empty-mark { font-size: clamp(90px,10vw,142px); line-height: .88; letter-spacing: -.105em; padding-right: .1em; font-weight: 800; color: #c1cff0; margin-bottom: 18px; user-select: none; }
.cxi-empty h2 { color: #172131; font-size: 25px; letter-spacing: -.04em; line-height: 1.2; font-weight: 700; }
.cxi-empty p { color: #586d88; font-size: 11px; letter-spacing: .08em; margin: 11px 0 22px; }
.cxi-empty .cxi-button { min-height: 44px; padding: 11px 22px; font-size: 13px; }
.cxi-example-link { border: 0; background: none; color: #607495; font-size: 10px !important; padding: 11px; }
.cxi-example-link:hover { color: var(--cxi-blue); }
.cxi-empty > small { color: #536780; font-size: 10px; margin-top: 5px; }
.cxi-empty > small > span { color: #21765f; margin-right: 5px; }
.cxi-view-footer { position: absolute; bottom: 29px; left: 30px; right: 30px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.cxi-view-footer > * { pointer-events: auto; }
.cxi-view-footer > button { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #e2e7ef; border-radius: 8px; background: #fff; color: #526783; }
.cxi-view-footer svg { width: 14px; height: 14px; }
.cxi-sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; background: #fff; border-left: 1px solid var(--cxi-line); }
.cxi-sidebar-file { flex-shrink: 0; min-width: 0; padding: 13px 18px 10px; }
.cxi-file > div { min-width: 0; }
.cxi-file strong { display: block; max-width: 100%; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cxi-file .cx-inspector__status { display: block; background: none; padding: 0; margin: 2px 0 0; border: 0; color: var(--cxi-muted); font-size: 10px; line-height: 15px; font-weight: 400; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cxi-file-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cxi-file-tools .cxi-button { font-size: 10px; padding: 8px 11px; }
.cxi-tabs { display: flex; flex-shrink: 0; padding: 0 14px; border-bottom: 1px solid var(--cxi-line); gap: 3px; }
.cxi-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; padding: 8px 3px 12px; background: none; color: #53647d; font-size: 11px; font-weight: 600; }
.cxi-tabs button[aria-selected="true"] { color: var(--cxi-blue); border-bottom-color: var(--cxi-blue); background: #f0f4ff; }
.cxi-tool-panels { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.cxi-tool-panel { padding: 22px 20px; min-width: 0; }
.cxi-panel-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.cxi-panel-heading h2 { min-width: 0; flex: 1; color: #283b58; font-size: 14px; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cxi-panel-heading .cxi-help { flex-shrink: 0; }
.cxi-selection dl { margin: 0; }
.cxi-selection dl:empty::after { content: ''; display: block; width: 34px; height: 1px; background: #e4e9f1; }
.cxi-selection dl > div { padding: 11px 0; border-bottom: 1px solid #eef1f6; font-size: 11px; }
.cxi-selection dt { color: #536780; font-size: 10px; margin-bottom: 4px; }
.cxi-selection dd { margin: 0; color: #3d5271; overflow-wrap: anywhere; }
.cxi-camera label { display: block; color: #536780; font-size: 10px; margin: 14px 0 6px; }
.cxi-camera input { width: 100%; height: 36px; border: 1px solid #a6b4c7; border-radius: 7px; background: #fafbfe; padding: 8px; color: #405776; font: 10px ui-monospace,SFMono-Regular,monospace; }
.cxi-camera-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; }
.cxi-camera-actions .cxi-button { font-size: 11px; padding: 8px 12px; }
.cxi-link-button { display: block; padding: 10px 0; background: none; border: 0; color: var(--cxi-blue); font-size: 10px !important; }
.cxi-hotspots { margin-top: 12px; }
.cxi-hotspots .cx-inspector__hotspot-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--cxi-line); border-radius: 9px; }
.cxi-hotspots code { font-size: 9px; overflow-wrap: anywhere; width: 100%; color: #526984; }
.cxi-hotspots strong,.cxi-hotspots button { font-size: 10px; }
.cxi-app .cx-inspector__hotspot { border: 2px solid #fff; background: var(--cxi-blue); color: #fff; min-width: 24px; height: 24px; padding: 3px; border-radius: 50%; box-shadow: 0 2px 10px #13243b44; font-size: 10px; }
.cxi-help { display: inline-flex; align-items: center; vertical-align: middle; }
.cxi-help > button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 1px solid #8b9bb1; border-radius: 50%; background: #f7f9fd; color: #4c6383; font-size: 10px; line-height: 1; font-weight: 500; }
.cxi-help > button:hover,.cxi-help > button[aria-expanded="true"] { background: #edf2ff; color: var(--cxi-blue); border-color: #ccd9fc; }
.cxi-help [role="tooltip"] { position: fixed; z-index: 100; width: 260px; max-width: calc(100vw - 24px); padding: 13px 15px; border: 1px solid #293b54; border-radius: 10px; background: #17283f; box-shadow: 0 7px 24px #0a14252b; color: #edf3ff; font-size: 11px; font-weight: 400; line-height: 1.65; letter-spacing: normal; text-align: left; overflow-wrap: anywhere; }
.cxi-report-empty { font-size: 11px; color: var(--cxi-muted); }
.cxi-app.has-model .cxi-report-empty { display: none; }
.cxi-report-body .cx-inspector__report { margin: 0; border: 0; padding: 0; }
.cxi-report-body .cx-inspector__metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.cxi-report-body .cx-inspector__metrics > div { min-width: 0; padding: 10px; border: 1px solid #e8edf5; border-radius: 8px; }
.cxi-report-body .cx-inspector__metrics strong { font-size: 19px; }
.cxi-report-body .cx-inspector__metrics :is(span,small) { font-size: 9px; overflow-wrap: anywhere; }
.cxi-report-body .cx-inspector__raw { margin-top: 18px; padding-top: 0; }
.cxi-report-body .cx-inspector__raw dl > div { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; border-bottom: 1px solid #eef1f6; font-size: 10px; }
.cxi-report-body .cx-inspector__raw dt { color: #536780; font-size: 10px; }
.cxi-report-body .cx-inspector__raw dd { margin: 0; color: #3d5271; overflow-wrap: anywhere; }
.cxi-app.is-dragging .cxi-workbench { outline: 3px dashed var(--cxi-blue); outline-offset: -4px; }
@media(max-width:1100px) {
  .cxi-workspace { grid-template-columns: minmax(0,1fr) 260px; }
  .cxi-controls { gap: 14px; padding-left: 16px; padding-right: 16px; }
  .cxi-selectors { grid-template-columns: repeat(5,minmax(140px,1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
  .cxi-selector:last-child { min-width: 175px; }
  .cxi-open-action { padding-left: 12px; }
  .cxi-tool-panel { padding: 20px 16px; }
}
@media(max-width:760px) {
  .cxi-controls { gap: 9px; padding: 9px 12px 8px; align-items: end; }
  .cxi-selectors { padding-bottom: 5px; }
  .cxi-selectors select { font-size: 12px; height: 39px; }
  .cxi-open-action { height: 44px; padding-left: 8px; gap: 6px; }
  .cxi-open-action .cxi-button { min-width: 38px; height: 38px; padding: 8px; }
  .cxi-open-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cxi-animation-actions button { width: 29px; height: 36px; }
  .cxi-workspace { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) 200px; }
  .cxi-viewport { padding: 9px; }
  .cxi-view-label { left: 24px; right: 24px; top: 26px; font-size: 7px; }
  .cxi-view-label small { font-size: 7px; max-width: 155px; }
  .cxi-empty { padding: 35px 15px; }
  .cxi-empty-mark { font-size: 80px; margin-bottom: 12px; }
  .cxi-empty h2 { font-size: 21px; }
  .cxi-empty p { margin: 5px 0 13px; }
  .cxi-empty .cxi-button { min-height: 38px; font-size: 12px; padding: 8px 18px; }
  .cxi-empty > small { margin-top: 0; font-size: 9px; }
  .cxi-example-link { padding: 7px; }
  .cxi-view-footer { left: 23px; right: 23px; bottom: 23px; }
  .cxi-view-footer .cxi-help > button { width: 28px; height: 28px; }
  .cxi-sidebar { border-left: 0; border-top: 1px solid var(--cxi-line); }
  .cxi-sidebar-file { padding: 8px 18px 5px; }
  .cxi-file .cx-inspector__status { font-size: 9px; line-height: 13px; }
  .cxi-tabs button { padding: 6px 3px 8px; font-size: 11px; }
  .cxi-tool-panel { padding: 14px 18px; }
  .cxi-panel-heading { margin-bottom: 12px; }
  .cxi-selection dl > div { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 10px; }
  .cxi-selection dt { margin: 0; }
}
@media(max-width:760px) and (max-height:740px) {
  .cxi-empty { padding: 10px; }
  .cxi-empty-mark { font-size: 45px; margin-bottom: 8px; }
  .cxi-empty h2 { font-size: 18px; }
  .cxi-empty p,.cxi-empty > small { display: none; }
  .cxi-empty .cxi-button { margin-top: 12px; min-height: 34px; font-size: 11px; }
  .cxi-example-link { padding: 5px; }
}
@media(prefers-reduced-motion:reduce) { .cxi-progress > span { transition: none; } }
