/* ZeroRiskk COMTRADE Viewer module: Differential biased-slope workbench with guarded mapping/review interpretation. */

.gcw-root.gcw-tool-open .gcw-generic-tool-differential .gcw-generic-control-dock,
.gcw-root.gcw-tool-open .gcw-generic-tool-differential .gcw-generic-result-head {
  display: none !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-generic-result-table {
  min-width: 820px !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-side-layout {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-cockpit-layout {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: var(--gcw-generic-side-width, 390px) 10px minmax(0, 1fr) !important;
  gap: 0 !important;
  overflow: hidden !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-info-pane {
  min-height: 0 !important;
  overflow: hidden !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-info-head strong {
  font-size: 12px !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-pilot-scroll,
.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-side-scroll {
  gap: 8px !important;
  overflow-x: hidden !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-info-pane *,
.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-plot-panel * {
  box-sizing: border-box !important;
}

/* Left pilot: only live answers, trust notes, manual settings and optional evidence. */
.gcw-diff-truth-list {
  padding: 0 !important;
  overflow: hidden !important;
}

.gcw-diff-truth-list header {
  padding: 8px 10px !important;
}

.gcw-diff-truth-list header strong,
.gcw-diff-warning-card strong,
.gcw-diff-manual-settings summary strong,
.gcw-diff-evidence-drawer summary strong,
.gcw-diff-waterfall header strong,
.gcw-diff-bookmarks header strong {
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: -.01em !important;
}

.gcw-diff-truth-list header span,
.gcw-diff-manual-settings summary span,
.gcw-diff-evidence-drawer summary span,
.gcw-diff-waterfall header span,
.gcw-diff-bookmarks header span {
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.gcw-diff-truth-list ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px !important;
  display: grid !important;
  gap: 6px !important;
}

.gcw-diff-truth-list li {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
  padding: 7px 8px !important;
  border-radius: 11px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, .86) !important;
}

.gcw-diff-truth-list li strong {
  color: #64748b !important;
  font-size: 9.8px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

.gcw-diff-truth-list li span {
  color: #0f172a !important;
  font-size: 11.4px !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  overflow-wrap: anywhere !important;
}

.gcw-diff-truth-list.is-trip li:first-child {
  background: #fff1f2 !important;
  border-color: rgba(248, 113, 113, .40) !important;
}

.gcw-diff-truth-list.is-ok li:first-child {
  background: #f0fdf4 !important;
  border-color: rgba(34, 197, 94, .32) !important;
}

.gcw-diff-truth-list.is-review li:first-child,
.gcw-diff-truth-list.is-mismatch li:first-child {
  background: #fffbeb !important;
  border-color: rgba(245, 158, 11, .42) !important;
}

.gcw-diff-truth-list.is-review li:first-child span,
.gcw-diff-truth-list.is-mismatch li:first-child span {
  color: #92400e !important;
}

.gcw-diff-truth-list.is-mismatch header span::after {
  content: ' · mapping review';
  color: #b45309 !important;
}

.gcw-diff-warning-card,
.gcw-diff-evidence-drawer,
.gcw-diff-table-drawer {
  border: 1px solid rgba(148, 163, 184, .30) !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  padding: 8px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .045) !important;
}

.gcw-diff-warning-card.is-warning {
  background: #fffbeb !important;
  border-color: rgba(251, 191, 36, .36) !important;
}

.gcw-diff-warning-card.is-ok {
  background: #f0fdf4 !important;
  border-color: rgba(34, 197, 94, .26) !important;
}

.gcw-diff-warning-card summary,
.gcw-diff-evidence-drawer summary,
.gcw-diff-table-drawer summary {
  cursor: pointer !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.gcw-diff-warning-card summary::-webkit-details-marker,
.gcw-diff-evidence-drawer summary::-webkit-details-marker,
.gcw-diff-table-drawer summary::-webkit-details-marker {
  display: none !important;
}

.gcw-diff-warning-card p,
.gcw-diff-warning-card ul,
.gcw-diff-manual-settings p {
  margin: 7px 0 0 !important;
  color: #475569 !important;
  font-size: 10.8px !important;
  line-height: 1.35 !important;
}

.gcw-diff-warning-card ul {
  padding-left: 16px !important;
}

.gcw-diff-manual-settings {
  overflow: hidden !important;
  border-color: rgba(59, 130, 246, .18) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.gcw-diff-manual-settings > summary,
.gcw-diff-nested-settings > summary {
  cursor: pointer !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.gcw-diff-manual-settings > summary::-webkit-details-marker,
.gcw-diff-nested-settings > summary::-webkit-details-marker {
  display: none !important;
}

.gcw-diff-manual-settings > summary::before,
.gcw-diff-nested-settings > summary::before {
  content: '▸' !important;
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  margin-right: 1px !important;
}

.gcw-diff-manual-settings[open] > summary::before,
.gcw-diff-nested-settings[open] > summary::before {
  content: '▾' !important;
}

.gcw-diff-manual-settings > summary span,
.gcw-diff-nested-settings > summary span {
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  white-space: nowrap !important;
}

.gcw-diff-manual-body {
  display: grid !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.gcw-diff-nested-settings {
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, .78) !important;
  padding: 7px !important;
}

.gcw-diff-nested-settings > div {
  margin-top: 7px !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-manual-settings .gcw-tool-input-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-manual-settings .gcw-diff-source-grid {
  grid-template-columns: 1fr !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-manual-settings .gcw-tool-input-label {
  min-width: 0 !important;
  width: 100% !important;
  padding: 6px !important;
  gap: 5px !important;
  align-items: center !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-manual-settings .gcw-tool-input-label span {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-manual-settings .gcw-tool-input-label input {
  width: 72px !important;
  max-width: 72px !important;
  min-width: 0 !important;
  padding: 4px 5px !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-manual-settings .gcw-tool-input-label select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 5px 7px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(148, 163, 184, .42) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-source-grid .gcw-tool-input-label {
  display: grid !important;
  grid-template-columns: minmax(78px, .42fr) minmax(0, 1fr) !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-source-grid .gcw-tool-input-label em {
  display: none !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-manual-settings .gcw-tool-input-label em {
  flex: 0 0 auto !important;
  font-size: 9.5px !important;
}

/* Compact playback; keep the operating plane dominant. */
.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player.gcw-phasor-player {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 4px 6px !important;
  min-height: 38px !important;
  display: grid !important;
  grid-template-columns: minmax(300px, auto) minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
  border-radius: 11px !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  box-shadow: none !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player .gcw-phasor-player-left {
  gap: 4px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player .gcw-phasor-player-main {
  gap: 3px !important;
  min-width: 0 !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player .gcw-phasor-play-btn,
.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player .gcw-phasor-mini-btn,
.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player .gcw-phasor-speed-select {
  min-height: 25px !important;
  padding: 3px 8px !important;
  font-size: 10.3px !important;
  border-radius: 8px !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player .gcw-phasor-play-btn {
  min-width: 72px !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player .gcw-phasor-time-meta {
  gap: 4px !important;
  font-size: 9.4px !important;
  line-height: 1 !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player .gcw-phasor-time-meta span {
  padding: 1px 6px !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player .gcw-phasor-slider-shell {
  height: 17px !important;
}

.gcw-diff-slider-shell {
  position: relative !important;
}

.gcw-diff-marker {
  position: absolute !important;
  z-index: 3 !important;
  top: 50% !important;
  width: 9px !important;
  height: 9px !important;
  margin-left: -4.5px !important;
  margin-top: -4.5px !important;
  border-radius: 999px !important;
  background: #64748b !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .20), 0 3px 8px rgba(15, 23, 42, .18) !important;
  pointer-events: none !important;
}

.gcw-diff-marker.is-start { background: #0f766e !important; }
.gcw-diff-marker.is-pickup { background: #f59e0b !important; }
.gcw-diff-marker.is-trip { background: #dc2626 !important; }
.gcw-diff-marker.is-peak { background: #7c3aed !important; }
.gcw-diff-marker.is-restraint { background: #2563eb !important; }
.gcw-diff-marker.is-block { background: #ea580c !important; }
.gcw-diff-marker.is-warning { background: #b45309 !important; }
.gcw-diff-marker.is-final { background: #111827 !important; }

/* Plotly operating plane. */
.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-plot-panel {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  overflow: hidden !important;
  border-radius: 0 16px 16px 0 !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  background: #ffffff !important;
  padding: 5px !important;
}

.gcw-diff-plotly-panel {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.gcw-diff-plotly-header {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 8px !important;
  background: linear-gradient(135deg, #f8fafc, #ecfeff) !important;
  border-bottom: 1px solid rgba(226, 232, 240, .88) !important;
}

.gcw-diff-slope-title {
  min-width: 0 !important;
}

.gcw-diff-slope-title strong {
  color: #0f172a !important;
  display: block !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: -.01em !important;
}

.gcw-diff-slope-title span {
  color: #64748b !important;
  display: block !important;
  font-size: 9.6px !important;
  font-weight: 750 !important;
  margin-top: 1px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.gcw-diff-plotly-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  overflow: hidden !important;
}

.gcw-diff-plotly-body .gcw-tool-plotly-shell,
.gcw-diff-plotly-body .gcw-tool-uplot-shell {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

.gcw-diff-plotly-body .gcw-tool-plotly,
.gcw-diff-plotly-body .gcw-tool-uplot {
  height: 100% !important;
  min-height: 440px !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-plotly-body .modebar {
  opacity: .92 !important;
}

.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-plotly-body .modebar-btn svg path,
.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-plotly-body .modebar-btn svg rect,
.gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-plotly-body .modebar-btn svg line {
  fill: #334155 !important;
  stroke: #334155 !important;
}

/* Optional evidence drawer: not duplicated in the main plot area. */
.gcw-diff-evidence-body {
  display: grid !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.gcw-diff-waterfall,
.gcw-diff-bookmarks {
  border-radius: 13px !important;
  border: 1px solid rgba(148, 163, 184, .26) !important;
  background: rgba(255, 255, 255, .96) !important;
  overflow: hidden !important;
}

.gcw-diff-waterfall header,
.gcw-diff-bookmarks header {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
  align-items: flex-start !important;
  padding: 8px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(226, 232, 240, .88) !important;
}

.gcw-diff-waterfall ol,
.gcw-diff-bookmarks ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px !important;
  display: grid !important;
  gap: 6px !important;
}

.gcw-diff-waterfall li,
.gcw-diff-bookmarks li {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 24px minmax(82px, .82fr) minmax(0, 1.5fr) !important;
  gap: 7px !important;
  align-items: center !important;
  padding: 6px 7px !important;
  border-radius: 11px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, .82) !important;
}

.gcw-diff-waterfall li span {
  width: 20px !important;
  height: 20px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #e2e8f0 !important;
  color: #334155 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.gcw-diff-waterfall li strong,
.gcw-diff-bookmarks li b {
  color: #0f172a !important;
  font-size: 10.8px !important;
  line-height: 1.15 !important;
}

.gcw-diff-waterfall li em,
.gcw-diff-bookmarks li span,
.gcw-diff-bookmarks li em {
  color: #475569 !important;
  font-size: 10.4px !important;
  font-style: normal !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}

.gcw-diff-waterfall li.is-ok span { background: #dcfce7 !important; color: #166534 !important; }
.gcw-diff-waterfall li.is-info span { background: #dbeafe !important; color: #1d4ed8 !important; }
.gcw-diff-waterfall li.is-warn span { background: #ffedd5 !important; color: #9a3412 !important; }
.gcw-diff-waterfall li.is-trip span { background: #fee2e2 !important; color: #991b1b !important; }
.gcw-diff-waterfall li.is-trip { background: #fff1f2 !important; border-color: rgba(248, 113, 113, .36) !important; }
.gcw-diff-waterfall li.is-warn { background: #fffbeb !important; border-color: rgba(251, 191, 36, .34) !important; }

.gcw-diff-bookmarks li {
  grid-template-columns: minmax(90px, 1fr) minmax(70px, .75fr) minmax(0, 1fr) !important;
}

.gcw-diff-result-table td:nth-child(2),
.gcw-diff-result-table td:nth-child(3) {
  font-variant-numeric: tabular-nums !important;
}

.gcw-diff-table-drawer {
  padding: 0 !important;
  overflow: hidden !important;
}

.gcw-diff-table-drawer summary {
  padding: 8px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(226, 232, 240, .86) !important;
}

.gcw-diff-table-drawer .gcw-generic-table-wrap {
  height: var(--gcw-generic-table-height, 300px) !important;
  max-height: var(--gcw-generic-table-height, 300px) !important;
  overflow: auto !important;
}

@media (max-width: 1220px) {
  .gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-cockpit-layout {
    grid-template-columns: minmax(300px, 38%) 10px minmax(0, 1fr) !important;
  }
  .gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player.gcw-phasor-player {
    grid-template-columns: 1fr !important;
  }
  .gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-player .gcw-phasor-player-left {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 900px) {
  .gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-cockpit-layout {
    display: flex !important;
    flex-direction: column !important;
    overflow: auto !important;
  }
  .gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-info-pane {
    flex: 0 0 auto !important;
    max-height: 560px !important;
    border-radius: 14px !important;
    border-right: 1px solid rgba(148, 163, 184, .42) !important;
  }
  .gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-generic-side-resizer,
  .gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-generic-freeze-resizer {
    display: none !important;
  }
  .gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-plot-panel {
    flex: 1 1 680px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 720px) {
  .gcw-root.gcw-tool-open .gcw-query-page[data-tool="differential"] .gcw-diff-manual-settings .gcw-tool-input-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Differential manual settings accessibility and guarded interpretation */
.gcw-diff-settings-freeze { background: linear-gradient(180deg, #f8fbff 0%, #eef8ff 100%) !important; border-bottom: 1px solid #bfdbfe !important; }
.gcw-diff-settings-scroll { padding: 8px !important; overflow: auto !important; }
.gcw-diff-settings-prime { margin: 0 !important; border: 1px solid #93c5fd !important; border-radius: 14px !important; background: #ffffff !important; box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important; }
.gcw-diff-manual-head { position: sticky !important; top: 0 !important; z-index: 4 !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; padding: 10px 12px !important; border-bottom: 1px solid #dbeafe !important; background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important; border-radius: 14px 14px 0 0 !important; }
.gcw-diff-manual-head strong { display: block !important; color: #0f172a !important; font-size: 13px !important; font-weight: 950 !important; letter-spacing: -0.01em !important; }
.gcw-diff-manual-head span { display: block !important; margin-top: 2px !important; color: #475569 !important; font-size: 10.5px !important; line-height: 1.25 !important; font-weight: 700 !important; }
.gcw-diff-manual-head em { flex: 0 0 auto !important; max-width: 145px !important; padding: 4px 8px !important; border-radius: 999px !important; background: #e0f2fe !important; color: #075985 !important; font-size: 10px !important; font-style: normal !important; font-weight: 950 !important; text-align: right !important; }
.gcw-diff-settings-prime .gcw-diff-manual-body { padding: 10px !important; }
.gcw-diff-setting-section { margin: 0 0 10px !important; padding: 9px !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; background: #f8fafc !important; }
.gcw-diff-setting-section h4 { margin: 0 0 7px !important; color: #0f172a !important; font-size: 11.5px !important; line-height: 1.2 !important; font-weight: 950 !important; letter-spacing: -0.01em !important; }
.gcw-diff-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
.gcw-diff-wide-grid { grid-template-columns: 1fr !important; }
.gcw-diff-priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.gcw-diff-settings-prime .gcw-tool-input-label { min-width: 0 !important; padding: 7px 8px !important; border: 1px solid #dbeafe !important; border-radius: 10px !important; background: #ffffff !important; }
.gcw-diff-settings-prime .gcw-tool-input-label span { display: block !important; margin-bottom: 4px !important; color: #1e293b !important; font-size: 10.5px !important; line-height: 1.15 !important; font-weight: 900 !important; }
.gcw-diff-settings-prime .gcw-tool-input-label input, .gcw-diff-settings-prime .gcw-tool-input-label select { width: 100% !important; min-width: 0 !important; height: 30px !important; box-sizing: border-box !important; font-size: 12px !important; font-weight: 800 !important; }
.gcw-diff-settings-prime .gcw-tool-input-label em { display: block !important; margin-top: 3px !important; color: #64748b !important; font-size: 9.5px !important; font-style: normal !important; font-weight: 800 !important; min-height: 11px !important; }
.gcw-diff-settings-prime .gcw-diff-nested-settings { margin: 0 0 10px !important; border: 1px solid #dbeafe !important; border-radius: 12px !important; background: #f8fafc !important; overflow: hidden !important; }
.gcw-diff-settings-prime .gcw-diff-nested-settings > summary { padding: 9px 10px !important; background: #eef6ff !important; border-bottom: 1px solid #dbeafe !important; }
.gcw-diff-settings-prime .gcw-diff-nested-settings > .gcw-tool-input-grid { padding: 9px !important; }
.gcw-diff-setting-note { margin: 8px 0 0 !important; padding: 8px 9px !important; border-radius: 10px !important; background: #fff7ed !important; border: 1px solid #fed7aa !important; color: #7c2d12 !important; font-size: 10.5px !important; line-height: 1.35 !important; font-weight: 750 !important; }
.gcw-diff-side-scroll { padding-top: 8px !important; }
@media (max-width: 760px) { .gcw-diff-input-grid, .gcw-diff-priority-grid { grid-template-columns: 1fr !important; } .gcw-diff-manual-head { align-items: flex-start !important; flex-direction: column !important; } .gcw-diff-manual-head em { max-width: none !important; text-align: left !important; } }


/* Source sufficiency gate prevents ordinary IA/IB/IC phase currents from being shown as differential trip points. */
