/* ZeroRiskk COMTRADE Viewer module: React shell, ribbon, analysis dock, toolbar and workbench visibility layer. */

.gcw-react-root[data-gcw-react-pending="1"] {
  min-height: min(820px, calc(100vh - var(--gcw-theme-header-height, 40px)));
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.11), transparent 34%), #f8fafc;
}
.gcw-react-loading {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.13);
  color: #0f172a;
}
.gcw-react-loading strong {
  font-size: 15px;
  font-weight: 900;
}
.gcw-react-loading span {
  font-size: 12px;
  color: #475569;
}
.gcw-react-root[data-gcw-react-rendered="1"] .gcw-ribbon,
.gcw-react-root[data-gcw-react-rendered="1"] .gcw-grid,
.gcw-react-root[data-gcw-react-rendered="1"] .gcw-results,
.gcw-react-root[data-gcw-react-rendered="1"] .gcw-lock {
  contain: layout style;
}
.gcw-react-root .gcw-panel-head h3,
.gcw-react-root .gcw-pane-head h4,
.gcw-react-root .gcw-wave-section-head h4 {
  letter-spacing: -0.01em;
}
.gcw-react-root .gcw-upload-help {
  max-width: 100%;
}
.gcw-react-root .gcw-tool-rail-inner {
  overscroll-behavior: contain;
}

.gcw-root.gcw-analysis-mode .gcw-results-head {
  display: grid !important;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96)) !important;
  color: #f8fafc !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16) !important;
}
.gcw-root.gcw-analysis-mode .gcw-results-head h3 {
  color: #fff !important;
  font-weight: 950 !important;
}
.gcw-root.gcw-analysis-mode .gcw-results-head p {
  color: #cbd5e1 !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-toolbar {
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 6px !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-toolbar .gcw-btn,
.gcw-root.gcw-analysis-mode .gcw-analysis-toolbar .gcw-toggle,
.gcw-root.gcw-analysis-mode .gcw-analysis-toolbar .gcw-toolbar-select {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  border-color: rgba(226, 232, 240, 0.16) !important;
  box-shadow: none !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-toolbar .gcw-btn-primary.gcw-analysis-reset {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  border-color: rgba(96, 165, 250, 0.32) !important;
}
.gcw-root.gcw-analysis-mode .gcw-reference-control span,
.gcw-root.gcw-analysis-mode .gcw-toolbar-select span {
  color: #bfdbfe !important;
}
.gcw-root.gcw-analysis-mode .gcw-reference-control select,
.gcw-root.gcw-analysis-mode .gcw-toolbar-select select {
  background: rgba(15, 23, 42, 0.72) !important;
  color: #f8fafc !important;
  border-color: rgba(226, 232, 240, 0.18) !important;
}
.gcw-analysis-ux-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 8px;
  min-height: 34px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.gcw-analysis-ux-title {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gcw-analysis-ux-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #334155;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
}
.gcw-analysis-ux-chip b {
  color: #2563eb;
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.gcw-analysis-ux-chip em {
  color: #0f172a;
  font-style: normal;
  font-weight: 850;
}
.gcw-analysis-ux-chip[data-active-tool]:not([data-active-tool="channels"]) {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.06);
}
.gcw-root.gcw-analysis-mode .gcw-workspace {
  border-radius: 14px;
  padding: 0;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-pane,
.gcw-root.gcw-analysis-mode .gcw-wave-pane {
  border-color: rgba(71, 85, 105, 0.18) !important;
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055) !important;
}
.gcw-root.gcw-analysis-mode .gcw-module-dock {
  background: linear-gradient(180deg, #0f172a, #1e293b) !important;
  border-right: 1px solid rgba(226, 232, 240, 0.14) !important;
}
.gcw-root.gcw-analysis-mode .gcw-tool-rail-kicker {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 22px;
  padding: 4px 2px 2px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.98);
  font-size: 8.5px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gcw-root.gcw-analysis-mode .gcw-tool-rail-inner {
  padding: 5px 4px 8px !important;
  gap: 5px !important;
}
.gcw-root.gcw-analysis-mode .gcw-tool-btn {
  border-color: rgba(226, 232, 240, 0.11) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #dbeafe !important;
  box-shadow: none !important;
}
.gcw-root.gcw-analysis-mode .gcw-tool-btn:hover,
.gcw-root.gcw-analysis-mode .gcw-tool-btn.is-active {
  background: rgba(37, 99, 235, 0.26) !important;
  border-color: rgba(96, 165, 250, 0.42) !important;
  color: #fff !important;
}
.gcw-root.gcw-analysis-mode .gcw-tool-icon {
  background: rgba(255,255,255,.10) !important;
  color: #fff !important;
}
.gcw-root.gcw-analysis-mode .gcw-pane-head,
.gcw-root.gcw-analysis-mode .gcw-wave-section-head,
.gcw-root.gcw-analysis-mode .gcw-tool-drawer-head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}
.gcw-root.gcw-analysis-mode .gcw-wave-section,
.gcw-root.gcw-analysis-mode .gcw-engineering-tool-drawer {
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74) !important;
}
.gcw-root.gcw-analysis-mode .gcw-splitter,
.gcw-root.gcw-analysis-mode .gcw-workbench-wave-splitter,
.gcw-root.gcw-analysis-mode .gcw-event-resize-grip,
.gcw-root.gcw-analysis-mode .gcw-computed-table-resizer {
  background: linear-gradient(180deg, #eef2ff, #dbeafe) !important;
  border-color: rgba(37, 99, 235, 0.20) !important;
}
.gcw-root.gcw-analysis-mode .gcw-splitter::after {
  background: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .08) !important;
}
.gcw-root.gcw-analysis-mode .gcw-workbench-wave-splitter span,
.gcw-root.gcw-analysis-mode .gcw-event-resize-grip span {
  background: #2563eb !important;
  box-shadow: 0 -4px 0 rgba(37, 99, 235, .12), 0 4px 0 rgba(37, 99, 235, .12) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measure-table thead th,
.gcw-root.gcw-analysis-mode .gcw-event-table th,
.gcw-root.gcw-tool-open .gcw-phasor-info-table thead th,
.gcw-root.gcw-tool-open .gcw-readout-result-table thead th,
.gcw-root.gcw-tool-open .gcw-computed-result-table thead th,
.gcw-root.gcw-tool-open .gcw-frequency-info-table thead th,
.gcw-root.gcw-tool-open .gcw-generic-result-table thead th {
  background: #eaf1ff !important;
  color: #1e293b !important;
}
.gcw-root.gcw-tool-open .gcw-engineering-tool-drawer {
  border-radius: 13px !important;
  overflow: hidden !important;
}
.gcw-root.gcw-tool-open .gcw-tool-drawer-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 12 !important;
  background: linear-gradient(135deg, rgba(248, 250, 252, .98), rgba(239, 246, 255, .98)) !important;
  backdrop-filter: blur(10px);
}
.gcw-root.gcw-tool-open .gcw-query-page.gcw-workbench-shell {
  background: #f8fafc !important;
}
.gcw-root.gcw-tool-open .gcw-workbench-floating-toolbar {
  border-color: rgba(37, 99, 235, 0.16) !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055) !important;
}
.gcw-root.gcw-tool-open .gcw-query-chart-wrap {
  border-radius: 13px !important;
}
.gcw-root.gcw-tool-open.gcw-workbench-maximized .gcw-analysis-ux-bar {
  display: none !important;
}
@media (max-width: 1180px) {
  .gcw-root.gcw-analysis-mode .gcw-results-head { grid-template-columns: 1fr !important; }
  .gcw-root.gcw-analysis-mode .gcw-analysis-toolbar { justify-content: flex-start !important; }
}
@media (max-width: 760px) {
  .gcw-analysis-ux-title { display: none; }
  .gcw-analysis-ux-chip { font-size: 9.5px; padding-inline: 6px; }
}

.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail {
  background: linear-gradient(180deg, #0f172a, #1e293b) !important;
  border-right: 1px solid rgba(226, 232, 240, 0.14) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(226,232,240,.11) !important;
  color: #dbeafe !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:hover,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:focus-visible,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn.is-active,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:hover,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:focus-visible,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn.is-active,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:hover,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:focus-visible,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn.is-active {
  background: rgba(37,99,235,.28) !important;
  border-color: rgba(96,165,250,.44) !important;
  color: #fff !important;
}

.gcw-root.gcw-analysis-mode .gcw-analysis-ux-bar {
  border-color: rgba(37, 99, 235, 0.22) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-ux-title {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .18) !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-ux-chip {
  border-color: rgba(148, 163, 184, .25) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .035) !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-ux-chip[data-active-tool]:not([data-active-tool="channels"]) {
  border-color: rgba(37, 99, 235, .46) !important;
  background: linear-gradient(180deg, #eff6ff, #ffffff) !important;
  box-shadow: inset 3px 0 0 #2563eb, 0 5px 14px rgba(37,99,235,.08) !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-ux-chip b { color: #1d4ed8 !important; }
.gcw-root.gcw-analysis-mode .gcw-analysis-ux-chip em { color: #0f172a !important; }

.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail {
  background: linear-gradient(180deg, #0b1220 0%, #111827 52%, #0f172a 100%) !important;
  box-shadow: inset -1px 0 0 rgba(147,197,253,.16), 2px 0 12px rgba(15,23,42,.10) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-kicker,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-kicker,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-kicker {
  color: #93c5fd !important;
  background: rgba(15,23,42,.94) !important;
  border-bottom: 1px solid rgba(147,197,253,.14) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn {
  position: relative !important;
  background: rgba(255,255,255,.075) !important;
  border-color: rgba(191,219,254,.16) !important;
  color: #dbeafe !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:hover,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:focus-visible,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:hover,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:focus-visible,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:hover,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn:focus-visible {
  background: rgba(37,99,235,.36) !important;
  border-color: rgba(147,197,253,.64) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(59,130,246,.14), inset 0 0 0 1px rgba(255,255,255,.08) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn.is-active,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn.is-active,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn.is-active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: rgba(191,219,254,.82) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(37,99,235,.26), 0 8px 16px rgba(37,99,235,.22) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn.is-active::before,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn.is-active::before,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn.is-active::before {
  content: "" !important;
  position: absolute !important;
  left: -5px !important;
  top: 7px !important;
  bottom: 7px !important;
  width: 3px !important;
  border-radius: 999px !important;
  background: #93c5fd !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-icon,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-icon,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-icon {
  color: currentColor !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.22) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tip]::after,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tip]::after,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tip]::after {
  background: #020617 !important;
  border: 1px solid rgba(147,197,253,.28) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(2,6,23,.28) !important;
}

.gcw-root.gcw-tool-open .gcw-workbench-shell::before {
  content: "Workbench · " attr(data-tool) !important;
  position: absolute !important;
  left: 10px !important;
  top: 7px !important;
  z-index: 47 !important;
  max-width: min(34vw, 280px) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(37,99,235,.20) !important;
  background: rgba(255,255,255,.94) !important;
  color: #1e3a8a !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 20px rgba(15,23,42,.08) !important;
}
.gcw-root.gcw-tool-open .gcw-workbench-shell[data-tool="phasor"]::before { content: "Workbench · phasor" !important; }
.gcw-root.gcw-tool-open .gcw-workbench-shell[data-tool="frequency"]::before { content: "Workbench · frequency / df-dt" !important; }
.gcw-root.gcw-tool-open .gcw-workbench-shell[data-tool="computed"]::before { content: "Workbench · computed" !important; }
.gcw-root.gcw-tool-open .gcw-workbench-floating-toolbar {
  border-color: rgba(37,99,235,.24) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 12px 24px rgba(15,23,42,.10) !important;
}
.gcw-root.gcw-tool-open .gcw-workbench-tool-btn {
  border-color: rgba(148,163,184,.36) !important;
  background: #ffffff !important;
  color: #334155 !important;
}
.gcw-root.gcw-tool-open .gcw-workbench-tool-btn:hover,
.gcw-root.gcw-tool-open .gcw-workbench-tool-btn:focus-visible {
  background: #eff6ff !important;
  border-color: rgba(37,99,235,.44) !important;
  color: #1d4ed8 !important;
}
.gcw-root.gcw-workbench-maximized.gcw-tool-open .gcw-workbench-max-btn {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

.gcw-root.gcw-tool-open .gcw-phasor-info-pane,
.gcw-root.gcw-tool-open .gcw-frequency-info-pane,
.gcw-root.gcw-tool-open .gcw-readout-info-pane,
.gcw-root.gcw-tool-open .gcw-computed-info-pane,
.gcw-root.gcw-tool-open .gcw-generic-info-pane {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: rgba(37,99,235,.18) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.86), 4px 0 18px rgba(15,23,42,.045) !important;
}
.gcw-root.gcw-tool-open .gcw-phasor-info-head,
.gcw-root.gcw-tool-open .gcw-frequency-info-head,
.gcw-root.gcw-tool-open .gcw-readout-info-head,
.gcw-root.gcw-tool-open .gcw-computed-info-head,
.gcw-root.gcw-tool-open .gcw-generic-info-head {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border-bottom: 1px solid rgba(147,197,253,.18) !important;
  color: #f8fafc !important;
}
.gcw-root.gcw-tool-open .gcw-phasor-info-head strong,
.gcw-root.gcw-tool-open .gcw-frequency-info-head strong,
.gcw-root.gcw-tool-open .gcw-readout-info-head strong,
.gcw-root.gcw-tool-open .gcw-computed-info-head strong,
.gcw-root.gcw-tool-open .gcw-generic-info-head strong {
  color: #ffffff !important;
  letter-spacing: .02em !important;
}
.gcw-root.gcw-tool-open .gcw-phasor-info-head span,
.gcw-root.gcw-tool-open .gcw-frequency-info-head span,
.gcw-root.gcw-tool-open .gcw-readout-info-head span,
.gcw-root.gcw-tool-open .gcw-computed-info-head span,
.gcw-root.gcw-tool-open .gcw-generic-info-head span,
.gcw-root.gcw-tool-open .gcw-phasor-info-head small,
.gcw-root.gcw-tool-open .gcw-frequency-info-head small,
.gcw-root.gcw-tool-open .gcw-readout-info-head small,
.gcw-root.gcw-tool-open .gcw-computed-info-head small,
.gcw-root.gcw-tool-open .gcw-generic-info-head small {
  color: #bfdbfe !important;
}
.gcw-root.gcw-tool-open .gcw-phasor-freeze-pane,
.gcw-root.gcw-tool-open .gcw-frequency-freeze-pane,
.gcw-root.gcw-tool-open .gcw-readout-freeze-pane,
.gcw-root.gcw-tool-open .gcw-computed-freeze-pane,
.gcw-root.gcw-tool-open .gcw-generic-freeze-pane {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%) !important;
  border-bottom-color: rgba(37,99,235,.16) !important;
}
.gcw-root.gcw-tool-open .gcw-phasor-live-zone,
.gcw-root.gcw-tool-open .gcw-frequency-live-zone,
.gcw-root.gcw-tool-open .gcw-readout-live-zone,
.gcw-root.gcw-tool-open .gcw-computed-live-zone,
.gcw-root.gcw-tool-open .gcw-generic-live-zone {
  background: #ffffff !important;
}
.gcw-root.gcw-tool-open .gcw-readout-control-card,
.gcw-root.gcw-tool-open .gcw-readout-focus-list,
.gcw-root.gcw-tool-open .gcw-computed-focus-list,
.gcw-root.gcw-tool-open .gcw-generic-control-card,
.gcw-root.gcw-tool-open .gcw-generic-focus-list,
.gcw-root.gcw-tool-open .gcw-generic-note-card,
.gcw-root.gcw-tool-open .gcw-generic-visual-card,
.gcw-root.gcw-tool-open .gcw-frequency-pointer-card,
.gcw-root.gcw-tool-open .gcw-frequency-compare-card,
.gcw-root.gcw-tool-open .gcw-phasor-help-card,
.gcw-root.gcw-tool-open .gcw-phasor-summary-strip > div,
.gcw-root.gcw-tool-open .gcw-tool-input-label,
.gcw-root.gcw-tool-open .gcw-assumption-panel {
  border-color: rgba(148,163,184,.24) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.035) !important;
}
.gcw-root.gcw-tool-open .gcw-readout-focus-list header,
.gcw-root.gcw-tool-open .gcw-computed-focus-list header,
.gcw-root.gcw-tool-open .gcw-generic-focus-list header,
.gcw-root.gcw-tool-open .gcw-frequency-compare-head,
.gcw-root.gcw-tool-open .gcw-frequency-live-head,
.gcw-root.gcw-tool-open .gcw-phasor-live-head,
.gcw-root.gcw-tool-open .gcw-readout-result-head,
.gcw-root.gcw-tool-open .gcw-computed-result-head,
.gcw-root.gcw-tool-open .gcw-generic-result-head {
  background: linear-gradient(180deg, #f8fafc, #eef6ff) !important;
  color: #0f172a !important;
  border-bottom-color: rgba(148,163,184,.22) !important;
}
.gcw-root.gcw-tool-open .gcw-tool-input-label span,
.gcw-root.gcw-tool-open .gcw-phasor-label-title,
.gcw-root.gcw-tool-open .gcw-readout-control-card label span,
.gcw-root.gcw-tool-open .gcw-computed-info-pane label span,
.gcw-root.gcw-tool-open .gcw-frequency-info-pane label span,
.gcw-root.gcw-tool-open .gcw-generic-info-pane label span {
  color: #475569 !important;
  font-weight: 950 !important;
}
.gcw-root.gcw-tool-open input.gcw-tool-input,
.gcw-root.gcw-tool-open select.gcw-tool-input,
.gcw-root.gcw-tool-open .gcw-tool-input-label input,
.gcw-root.gcw-tool-open .gcw-tool-input-label select,
.gcw-root.gcw-tool-open .gcw-phasor-controls select,
.gcw-root.gcw-tool-open .gcw-frequency-info-pane select,
.gcw-root.gcw-tool-open .gcw-readout-info-pane select,
.gcw-root.gcw-tool-open .gcw-computed-info-pane select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(100,116,139,.38) !important;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.035) !important;
}
.gcw-root.gcw-tool-open input.gcw-tool-input:focus,
.gcw-root.gcw-tool-open select.gcw-tool-input:focus,
.gcw-root.gcw-tool-open .gcw-tool-input-label input:focus,
.gcw-root.gcw-tool-open .gcw-tool-input-label select:focus {
  outline: 2px solid rgba(37,99,235,.20) !important;
  border-color: rgba(37,99,235,.55) !important;
}

.gcw-root.gcw-tool-open .gcw-query-chart-wrap,
.gcw-root.gcw-tool-open .gcw-tool-uplot-shell,
.gcw-root.gcw-tool-open .gcw-readout-bars-card,
.gcw-root.gcw-tool-open .gcw-computed-bars-card,
.gcw-root.gcw-tool-open .gcw-generic-plot-card,
.gcw-root.gcw-tool-open .gcw-generic-table-card {
  border-color: rgba(37,99,235,.16) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15,23,42,.045) !important;
}
.gcw-root.gcw-tool-open .gcw-tool-uplot-head,
.gcw-root.gcw-tool-open .gcw-tool-plotly-head {
  background: linear-gradient(180deg, #ffffff, #f1f5ff) !important;
  border-bottom-color: rgba(37,99,235,.14) !important;
}
.gcw-root.gcw-tool-open .gcw-tool-uplot-head span,
.gcw-root.gcw-tool-open .gcw-tool-plotly-head span {
  color: #0f172a !important;
  font-weight: 950 !important;
}
.gcw-root.gcw-tool-open .gcw-tool-uplot-readout,
.gcw-root.gcw-tool-open .gcw-tool-plotly-readout {
  background: #f8fafc !important;
  color: #334155 !important;
  border-top-color: rgba(148,163,184,.20) !important;
}
.gcw-root.gcw-tool-open .gcw-tool-plot-resize-grip,
.gcw-root.gcw-tool-open .gcw-tool-table-resize-grip,
.gcw-root.gcw-tool-open .gcw-phasor-side-resizer,
.gcw-root.gcw-tool-open .gcw-frequency-side-resizer,
.gcw-root.gcw-tool-open .gcw-readout-side-resizer,
.gcw-root.gcw-tool-open .gcw-computed-side-resizer,
.gcw-root.gcw-tool-open .gcw-generic-side-resizer {
  filter: saturate(1.15) contrast(1.06) !important;
}

.gcw-root.gcw-analysis-mode .gcw-measure-table,
.gcw-root.gcw-analysis-mode .gcw-event-table,
.gcw-root.gcw-tool-open .gcw-phasor-live-table,
.gcw-root.gcw-tool-open .gcw-frequency-table,
.gcw-root.gcw-tool-open .gcw-readout-result-table,
.gcw-root.gcw-tool-open .gcw-computed-result-table,
.gcw-root.gcw-tool-open .gcw-generic-result-table,
.gcw-root.gcw-tool-open .gcw-tool-table,
.gcw-root.gcw-tool-open table.gcw-professional-table {
  font-variant-numeric: tabular-nums !important;
}
.gcw-root.gcw-analysis-mode .gcw-measure-table th,
.gcw-root.gcw-analysis-mode .gcw-event-table th,
.gcw-root.gcw-tool-open .gcw-phasor-live-table th,
.gcw-root.gcw-tool-open .gcw-frequency-table th,
.gcw-root.gcw-tool-open .gcw-readout-result-table th,
.gcw-root.gcw-tool-open .gcw-computed-result-table th,
.gcw-root.gcw-tool-open .gcw-generic-result-table th,
.gcw-root.gcw-tool-open .gcw-tool-table th,
.gcw-root.gcw-tool-open table.gcw-professional-table th {
  background: linear-gradient(180deg, #eff6ff, #eaf1ff) !important;
  color: #1e293b !important;
  border-bottom: 1px solid rgba(37,99,235,.18) !important;
  font-weight: 950 !important;
}
.gcw-root.gcw-analysis-mode .gcw-measure-table tbody tr:nth-child(even) td,
.gcw-root.gcw-analysis-mode .gcw-event-table tbody tr:nth-child(even) td,
.gcw-root.gcw-tool-open .gcw-phasor-live-table tbody tr:nth-child(even) td,
.gcw-root.gcw-tool-open .gcw-frequency-table tbody tr:nth-child(even) td,
.gcw-root.gcw-tool-open .gcw-readout-result-table tbody tr:nth-child(even) td,
.gcw-root.gcw-tool-open .gcw-computed-result-table tbody tr:nth-child(even) td,
.gcw-root.gcw-tool-open .gcw-generic-result-table tbody tr:nth-child(even) td,
.gcw-root.gcw-tool-open .gcw-tool-table tbody tr:nth-child(even) td,
.gcw-root.gcw-tool-open table.gcw-professional-table tbody tr:nth-child(even) td {
  background: rgba(248,250,252,.78) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measure-table tbody tr:hover td,
.gcw-root.gcw-analysis-mode .gcw-event-table tbody tr:hover td,
.gcw-root.gcw-tool-open .gcw-phasor-live-table tbody tr:hover td,
.gcw-root.gcw-tool-open .gcw-frequency-table tbody tr:hover td,
.gcw-root.gcw-tool-open .gcw-readout-result-table tbody tr:hover td,
.gcw-root.gcw-tool-open .gcw-computed-result-table tbody tr:hover td,
.gcw-root.gcw-tool-open .gcw-generic-result-table tbody tr:hover td,
.gcw-root.gcw-tool-open .gcw-tool-table tbody tr:hover td,
.gcw-root.gcw-tool-open table.gcw-professional-table tbody tr:hover td {
  background: rgba(219,234,254,.64) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measure-table td:not(:first-child),
.gcw-root.gcw-analysis-mode .gcw-event-table td:not(:first-child),
.gcw-root.gcw-tool-open .gcw-phasor-live-table td:not(:first-child),
.gcw-root.gcw-tool-open .gcw-frequency-table td:not(:first-child),
.gcw-root.gcw-tool-open .gcw-readout-result-table td:not(:first-child),
.gcw-root.gcw-tool-open .gcw-computed-result-table td:not(:first-child),
.gcw-root.gcw-tool-open .gcw-generic-result-table td:not(:first-child),
.gcw-root.gcw-tool-open .gcw-tool-table td:not(:first-child) {
  color: #1f2937 !important;
}

@media (max-width: 760px) {
  .gcw-root.gcw-tool-open .gcw-workbench-shell::before {
    display: none !important;
  }
}


/* account/profile compatibility layer retained from the subscriber foundation. */
/* user account/profile management: compact React account badge plus self-service profile drawer. */
.gcw-ribbon-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}
.gcw-results-head-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.gcw-results-head-right .gcw-analysis-toolbar {
  flex: 1 1 auto;
  min-width: 0;
}
.gcw-account-pill,
.gcw-ribbon-account .gcw-account-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 260px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: #f8fafc;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.gcw-account-pill:hover,
.gcw-ribbon-account .gcw-account-login:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.gcw-account-pill img,
.gcw-account-initial {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  flex: 0 0 auto;
  object-fit: cover;
  background: linear-gradient(135deg, #bfdbfe, #2563eb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 950;
}
.gcw-account-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}
.gcw-account-copy strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  line-height: 1.05;
  color: #fff;
}
.gcw-account-copy small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 9.5px;
  line-height: 1.05;
}
.gcw-account-copy small b {
  font-weight: 900;
  color: #bfdbfe;
}
.gcw-account-copy small em {
  font-style: normal;
  color: #a7f3d0;
  white-space: nowrap;
}
.gcw-root.gcw-analysis-mode .gcw-account-pill {
  min-height: 32px;
  padding: 3px 7px;
}
.gcw-root.gcw-analysis-mode .gcw-account-pill img,
.gcw-root.gcw-analysis-mode .gcw-account-initial {
  width: 24px;
  height: 24px;
}
.gcw-root.gcw-analysis-mode .gcw-account-copy strong { font-size: 10.5px; max-width: 110px; }
.gcw-root.gcw-analysis-mode .gcw-account-copy small { font-size: 8.8px; gap: 4px; }
.gcw-profile-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647;
  display: grid;
  place-items: stretch end;
  color: #0f172a;
  isolation: isolate;
}
body.gcw-profile-modal-open {
  overflow: hidden !important;
  overscroll-behavior: contain;
}
body.gcw-profile-modal-open [data-zrk-open-saved-records],
body.gcw-profile-modal-open [data-zrk-open-my-report],
body.gcw-profile-modal-open [data-zrk-open-profile] {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.gcw-profile-modal-open .gcw-profile-overlay [data-zrk-open-saved-records],
body.gcw-profile-modal-open .gcw-profile-overlay [data-zrk-open-my-report],
body.gcw-profile-modal-open .gcw-profile-overlay [data-zrk-open-profile] {
  visibility: visible !important;
  pointer-events: auto !important;
}
.gcw-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
}
.gcw-profile-drawer {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 18px));
  height: calc(100vh - 18px);
  height: calc(100dvh - 18px);
  max-height: calc(100dvh - 18px);
  margin: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: #f8fafc;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.35);
}
.gcw-profile-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 23px 23px 0 0;
}
.gcw-profile-title { min-width: 0; }
.gcw-profile-avatar-wrap img,
.gcw-profile-avatar-wrap span {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20), 0 10px 22px rgba(37,99,235,.24);
}
.gcw-profile-head strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gcw-profile-head small {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gcw-profile-head em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #bfdbfe;
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.gcw-profile-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.gcw-profile-head-action {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #eff6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.gcw-profile-head-action:hover,
.gcw-profile-head-action:focus-visible {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.32);
  outline: none;
}
.gcw-profile-head-action:active { transform: scale(.98); }
.gcw-profile-close {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.gcw-profile-close span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}
.gcw-profile-close:hover,
.gcw-profile-close:focus-visible {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.30);
  outline: none;
}
.gcw-profile-close:active { transform: scale(.98); }
.gcw-profile-body {
  min-height: 0;
  overflow: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100,116,139,.45) transparent;
}
.gcw-profile-loading,
.gcw-profile-alert {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}
.gcw-profile-loading { background: #eff6ff; color: #1d4ed8; border: 1px solid rgba(37,99,235,.16); }
.gcw-profile-alert.is-error { background: #fef2f2; color: #991b1b; border: 1px solid rgba(220,38,38,.18); }
.gcw-profile-alert.is-ok { background: #ecfdf5; color: #047857; border: 1px solid rgba(5,150,105,.18); }
.gcw-profile-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 4px;
}
.gcw-profile-kpi,
.gcw-profile-card,
.gcw-profile-library,
.gcw-profile-danger,
.gcw-storage-meter {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
}
.gcw-profile-kpi { padding: 12px; }
.gcw-profile-kpi span,
.gcw-storage-meter-head span,
.gcw-profile-card label span,
.gcw-profile-mini-library span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.gcw-profile-kpi strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.15;
}
.gcw-profile-kpi small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}
.gcw-storage-meter {
  grid-column: 1 / -1;
  padding: 13px;
}
.gcw-storage-meter.is-compact {
  margin-top: 12px;
  box-shadow: none;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.gcw-storage-meter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.gcw-storage-meter-head strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.2;
}
.gcw-storage-meter-head em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}
.gcw-storage-meter-track {
  position: relative;
  height: 12px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.10);
}
.gcw-storage-meter-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width .25s ease;
}
.gcw-storage-meter.is-warn .gcw-storage-meter-fill { background: linear-gradient(90deg, #fbbf24, #d97706); }
.gcw-storage-meter.is-danger .gcw-storage-meter-fill { background: linear-gradient(90deg, #ef4444, #b91c1c); }
.gcw-storage-meter.is-warn .gcw-storage-meter-head em { background: #fef3c7; color: #92400e; }
.gcw-storage-meter.is-danger .gcw-storage-meter-head em { background: #fee2e2; color: #991b1b; }
.gcw-storage-meter.is-unlimited .gcw-storage-meter-head em { background: #e0e7ff; color: #3730a3; }
.gcw-storage-meter-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}
.gcw-storage-meter-foot span:last-child { text-align: right; }
.gcw-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: 12px;
  padding: 12px 16px;
}
.gcw-profile-card,
.gcw-profile-library,
.gcw-profile-danger { padding: 14px; }
.gcw-profile-card-head { margin: 0 0 12px; }
.gcw-profile-card h4,
.gcw-profile-library h4,
.gcw-profile-danger h4 { margin: 0; font-size: 14px; color: #0f172a; }
.gcw-profile-card-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; line-height: 1.4; }
.gcw-profile-card label { display: grid; gap: 5px; margin-bottom: 10px; }
.gcw-profile-card input,
.gcw-profile-delete-row input {
  width: 100%;
  min-height: 39px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .40);
  background: #fff;
  color: #0f172a;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}
.gcw-profile-card input:focus,
.gcw-profile-delete-row input:focus,
.gcw-profile-library-toolbar input:focus,
.gcw-profile-library-toolbar select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.gcw-profile-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gcw-profile-form-actions { margin-top: 2px; display: flex; justify-content: flex-end; }
.gcw-profile-facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 10px; margin: 0; font-size: 12px; }
.gcw-profile-facts dt { color: #64748b; font-weight: 950; }
.gcw-profile-facts dd { margin: 0; color: #0f172a; font-weight: 850; overflow-wrap: anywhere; }
.gcw-profile-mini-library {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}
.gcw-profile-mini-library strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.2;
}
.gcw-profile-mini-library small {
  display: block;
  margin-top: 4px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}
.gcw-profile-actions-row { margin-top: 12px; display: flex; justify-content: flex-end; }
.gcw-profile-library { margin: 14px 16px 16px; }
.gcw-profile-library-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.gcw-profile-library-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; line-height: 1.45; max-width: 520px; }
.gcw-profile-library-count { text-align: right; color: #334155; font-size: 11px; font-weight: 900; }
.gcw-profile-library-count strong { display: block; color: #0f172a; font-size: 16px; line-height: 1.1; }
.gcw-profile-library-list { display: grid; gap: 10px; margin-top: 12px; max-height: 300px; overflow: auto; padding-right: 4px; }
.gcw-profile-library-record { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(148,163,184,.22); border-radius: 16px; background: linear-gradient(180deg, #fff, #f8fafc); }
.gcw-profile-library-main strong { display: block; color: #0f172a; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcw-profile-library-main small { display: block; margin-top: 4px; color: #64748b; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.gcw-profile-library-main span { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: #334155; font-size: 11px; font-weight: 850; }
.gcw-profile-library-state { display: grid; justify-items: end; gap: 5px; min-width: 104px; color: #64748b; font-size: 11px; font-weight: 850; }
.gcw-profile-library-state em { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 999px; font-style: normal; font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; }
.gcw-profile-library-state em.is-ready { background: #dcfce7; color: #166534; }
.gcw-profile-library-state em.is-waiting { background: #fef3c7; color: #92400e; }
.gcw-profile-library-state em.is-problem { background: #fee2e2; color: #991b1b; }
.gcw-profile-library-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.gcw-profile-library-actions .gcw-btn { min-height: 32px; padding: 7px 10px; font-size: 11px; }
.gcw-profile-library-empty { margin: 12px 0 0; padding: 12px; border-radius: 14px; background: #f8fafc; color: #64748b; font-size: 12px; text-align: center; }

.gcw-profile-library-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(128px, auto) minmax(150px, auto) auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  background: #f8fafc;
}
.gcw-profile-library-toolbar label { display: grid; gap: 5px; min-width: 0; }
.gcw-profile-library-toolbar label span,
.gcw-profile-library-search span {
  color: #64748b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.gcw-profile-library-toolbar input,
.gcw-profile-library-toolbar select {
  width: 100%;
  min-height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(148,163,184,.36);
  background: #fff;
  color: #0f172a;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}
.gcw-profile-library-toolbar-actions { display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.gcw-profile-library-toolbar-actions .gcw-btn { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.gcw-profile-library-managerbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}
.gcw-profile-library-managerbar .gcw-btn { min-height: 30px; padding: 6px 9px; font-size: 10px; }
.gcw-profile-library-list.is-compact { max-height: none; overflow: visible; gap: 7px; margin-top: 10px; padding-right: 0; }
.gcw-profile-library-list.is-compact .gcw-profile-library-record {
  grid-template-columns: minmax(0, 1fr) 90px 118px;
  padding: 8px 9px;
  border-radius: 13px;
  min-height: 58px;
}
.gcw-profile-library-record.is-expired { background: linear-gradient(180deg, #fff, #fff7ed); }
.gcw-profile-library-record.is-not-ready .gcw-profile-library-actions .gcw-btn-primary { opacity: .45; cursor: not-allowed; }
.gcw-profile-library-list.is-compact .gcw-profile-library-main strong { font-size: 12px; }
.gcw-profile-library-list.is-compact .gcw-profile-library-main small { margin-top: 2px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcw-profile-library-list.is-compact .gcw-profile-library-main span { margin-top: 3px; gap: 5px; font-size: 10px; }
.gcw-profile-library-list.is-compact .gcw-profile-library-state { min-width: 84px; gap: 3px; }
.gcw-profile-library-state em.is-expired { background: #ffedd5; color: #9a3412; }
.gcw-profile-library-list.is-compact .gcw-profile-library-state em { padding: 3px 7px; font-size: 9px; }
.gcw-profile-library-list.is-compact .gcw-profile-library-state span { font-size: 10px; }
.gcw-profile-library-list.is-compact .gcw-profile-library-actions { flex-wrap: nowrap; gap: 5px; }
.gcw-profile-library-list.is-compact .gcw-profile-library-actions .gcw-btn { min-height: 28px; padding: 5px 8px; font-size: 10px; }
.gcw-profile-library-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148,163,184,.35);
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}
.gcw-profile-library-pager .gcw-btn { min-height: 30px; padding: 6px 9px; font-size: 10px; }
.gcw-profile-danger {
  margin: 0 16px 16px;
  background: linear-gradient(180deg, #fff, #fff7ed);
  border-color: rgba(249,115,22,.20);
}
.gcw-profile-danger summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.gcw-profile-danger summary::-webkit-details-marker { display: none; }
.gcw-profile-danger summary span {
  color: #9a3412;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.gcw-profile-danger summary strong { color: #7c2d12; font-size: 13px; }
.gcw-profile-danger p { margin: 12px 0 10px; color: #64748b; font-size: 12px; line-height: 1.45; }
.gcw-profile-delete-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.gcw-btn.gcw-btn-danger {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #b91c1c !important;
}
.gcw-btn.gcw-btn-danger:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 980px) {
  .gcw-ribbon-right { flex-wrap: wrap; }
  .gcw-results-head-right { flex-direction: column; align-items: stretch; }
  .gcw-results-head-right .gcw-account-pill { align-self: flex-end; }
  .gcw-profile-grid,
  .gcw-profile-overview { grid-template-columns: 1fr; }
  .gcw-profile-library-record,
  .gcw-profile-library-list.is-compact .gcw-profile-library-record { grid-template-columns: 1fr; align-items: stretch; }
  .gcw-profile-library-state { justify-items: start; }
  .gcw-profile-library-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .gcw-account-copy small em { display: none; }
  .gcw-profile-two,
  .gcw-profile-delete-row { grid-template-columns: 1fr; }
  .gcw-profile-library-head { flex-direction: column; }
  .gcw-profile-library-count { text-align: left; }
  .gcw-profile-library-toolbar { grid-template-columns: 1fr; }
  .gcw-profile-library-managerbar { align-items: stretch; flex-direction: column; }
  .gcw-profile-drawer { width: calc(100vw - 10px); height: calc(100vh - 10px); height: calc(100dvh - 10px); margin: 5px; border-radius: 16px; }
  .gcw-profile-head { min-height: 76px; padding: 12px; border-radius: 15px 15px 0 0; }
  .gcw-profile-avatar-wrap img,
  .gcw-profile-avatar-wrap span { width: 44px; height: 44px; border-radius: 15px; }
  .gcw-profile-close { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
  .gcw-profile-head-actions { gap: 6px; }
  .gcw-profile-head-action { min-height: 38px; padding: 0 10px; font-size: 11px; }
  .gcw-storage-meter-foot,
  .gcw-profile-mini-library { grid-template-columns: 1fr; }
  .gcw-storage-meter-foot { flex-direction: column; gap: 4px; }
  .gcw-storage-meter-foot span:last-child { text-align: left; }
}
.gcw-upload-account-inline { display: none !important; }

/* retained subscriber server-analysis status card */
.gcw-server-job-card{
  border-color:rgba(37,99,235,.22)!important;
  background:linear-gradient(135deg,rgba(239,246,255,.96),rgba(255,255,255,.98))!important;
  display:grid!important;
  gap:8px!important;
}
.gcw-server-job-card[hidden]{display:none!important}
.gcw-server-job-card strong{font-size:12px!important;color:#0f3a6b!important;font-weight:900!important}
.gcw-server-job-card span{font-size:12px!important;color:#334155!important;line-height:1.45!important}
.gcw-server-job-progress{height:8px!important;border-radius:999px!important;background:rgba(148,163,184,.22)!important;overflow:hidden!important;border:1px solid rgba(148,163,184,.24)!important}
.gcw-server-job-progress-bar{display:block!important;width:0%;height:100%!important;border-radius:999px!important;background:linear-gradient(90deg,#2563eb,#14b8a6)!important;transition:width .25s ease!important}

/* v3.5.5 account drawer baseline: body-level portal, no top truncation, avatar-only profile entry and records-only saved-record drawer. */
.gcw-account-pill.is-avatar-only {
  width: 36px;
  height: 36px;
  min-height: 36px;
  max-width: 36px;
  padding: 3px;
  justify-content: center;
  border-radius: 999px;
}
.gcw-root.gcw-analysis-mode .gcw-account-pill.is-avatar-only {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 3px;
}
.gcw-account-pill.is-avatar-only .gcw-account-copy { display: none !important; }
.gcw-profile-drawer.is-library-only {
  width: min(860px, calc(100vw - 18px));
}
.gcw-profile-drawer.is-library-only .gcw-profile-library {
  margin: 12px 16px 16px;
}
.gcw-profile-drawer.is-library-only .gcw-profile-library-list.is-compact .gcw-profile-library-record {
  grid-template-columns: minmax(0, 1fr) 92px 124px;
}
.gcw-profile-avatar-wrap.is-records span {
  background: linear-gradient(135deg, #0f172a, #2563eb);
}
@media (max-width: 980px) {
  .gcw-profile-drawer.is-library-only .gcw-profile-library-list.is-compact .gcw-profile-library-record {
    grid-template-columns: 1fr;
  }
}


/* v3.4.10: the viewport template owns Profile/Sign out. Keep the workbench toolbar for analysis actions only. */
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-results-head-right {
  width: 100% !important;
  flex: 1 1 auto !important;
  justify-content: flex-end !important;
  gap: 0 !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-results-head-right .gcw-analysis-toolbar {
  width: 100% !important;
  max-width: none !important;
  justify-content: flex-end !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-results-head-right .gcw-account-pill,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-results-head-right .gcw-ribbon-account {
  display: none !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-toolbar .gcw-btn,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-toolbar .gcw-toggle,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-toolbar .gcw-toolbar-select {
  flex: 0 0 auto !important;
}


/* v3.5.5 profile/library modal isolation: no floating external account chips above open drawers. */
body.gcw-profile-modal-open .zrk-comtrade-profile-entry,
body.gcw-profile-modal-open .zrk-comtrade-saved-records-entry,
body.gcw-profile-modal-open .zrk-comtrade-account-actions {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.gcw-profile-modal-open .gcw-profile-overlay .zrk-comtrade-profile-entry,
body.gcw-profile-modal-open .gcw-profile-overlay .zrk-comtrade-saved-records-entry,
body.gcw-profile-modal-open .gcw-profile-overlay .zrk-comtrade-account-actions {
  visibility: visible !important;
  pointer-events: auto !important;
}
@media (max-width: 560px) {
  .gcw-profile-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .gcw-profile-head-action {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.gcw-external-profile-trigger-hidden {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* v3.5.5 focused, compact account drawers: no cross-navigation inside drawers. */
.gcw-profile-drawer {
  width: min(720px, calc(100vw - 18px));
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.gcw-profile-drawer.is-library-only {
  width: min(820px, calc(100vw - 18px));
}
.gcw-profile-head {
  min-height: 72px;
  padding: 12px 14px;
  gap: 11px;
  border-radius: 19px 19px 0 0;
  background: linear-gradient(135deg, #0b1220 0%, #172033 62%, #1e293b 100%);
}
.gcw-profile-avatar-wrap img,
.gcw-profile-avatar-wrap span {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}
.gcw-profile-head strong {
  font-size: 17px;
  letter-spacing: -.015em;
}
.gcw-profile-head small {
  margin-top: 3px;
  font-size: 11.5px;
  color: #dbeafe;
}
.gcw-profile-head em {
  margin-top: 6px;
  padding: 3px 8px;
  font-size: 9px;
  letter-spacing: .06em;
  color: #dbeafe;
  background: rgba(148, 163, 184, .22);
}
.gcw-profile-head-actions {
  gap: 0;
}
.gcw-profile-head-action {
  display: none !important;
}
.gcw-profile-close {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 13px;
  font-size: 24px;
  background: rgba(255, 255, 255, .11);
}
.gcw-profile-body {
  padding: 0 12px 12px;
}
.gcw-profile-loading,
.gcw-profile-alert {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}
.gcw-profile-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0 6px;
}
.gcw-profile-kpi,
.gcw-profile-card,
.gcw-profile-library,
.gcw-profile-danger,
.gcw-storage-meter {
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .045);
}
.gcw-profile-kpi {
  padding: 10px 11px;
}
.gcw-profile-kpi span,
.gcw-storage-meter-head span,
.gcw-profile-card label span {
  font-size: 9px;
  letter-spacing: .075em;
}
.gcw-profile-kpi strong {
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: -.015em;
}
.gcw-profile-kpi small {
  margin-top: 4px;
  font-size: 10.5px;
}
.gcw-storage-meter {
  padding: 11px;
}
.gcw-storage-meter-head strong {
  margin-top: 4px;
  font-size: 14px;
}
.gcw-storage-meter-head em {
  min-width: 44px;
  min-height: 25px;
  padding: 4px 8px;
  font-size: 11px;
}
.gcw-storage-meter-track {
  height: 9px;
  margin-top: 9px;
}
.gcw-storage-meter-foot {
  margin-top: 7px;
  font-size: 10.5px;
}
.gcw-profile-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(245px, .95fr);
  gap: 10px;
  padding: 8px 0 10px;
}
.gcw-profile-card,
.gcw-profile-danger {
  padding: 12px;
}
.gcw-profile-card-head {
  margin-bottom: 9px;
}
.gcw-profile-card h4,
.gcw-profile-library h4,
.gcw-profile-danger h4 {
  font-size: 13.5px;
  letter-spacing: -.01em;
}
.gcw-profile-card-head p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
}
.gcw-profile-card label {
  gap: 4px;
  margin-bottom: 8px;
}
.gcw-profile-card input,
.gcw-profile-delete-row input {
  min-height: 35px;
  border-radius: 11px;
  padding: 7px 9px;
  font-size: 12px;
}
.gcw-profile-two {
  gap: 7px;
}
.gcw-profile-form-actions {
  margin-top: 0;
}
.gcw-profile-form-actions .gcw-btn,
.gcw-profile-actions-row .gcw-btn {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.gcw-profile-facts {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 6px 9px;
  font-size: 11.5px;
}
.gcw-profile-mini-library {
  display: none !important;
}
.gcw-profile-actions-row {
  margin-top: 10px;
}
.gcw-profile-danger {
  margin: 0 0 0;
}
.gcw-profile-danger p {
  margin: 9px 0 8px;
  font-size: 11.5px;
}
.gcw-profile-library {
  margin: 10px 0 0 !important;
  padding: 12px;
}
.gcw-profile-library-head {
  align-items: center;
  gap: 10px;
}
.gcw-profile-library-head p {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.35;
  max-width: 560px;
}
.gcw-profile-library-count strong {
  font-size: 15px;
}
.gcw-profile-library-count span {
  font-size: 10.5px;
}
.gcw-storage-meter.is-compact {
  margin-top: 10px;
  padding: 10px 11px;
}
.gcw-profile-library-toolbar {
  grid-template-columns: minmax(210px, 1fr) minmax(150px, .42fr) minmax(135px, .34fr) auto;
  gap: 7px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 13px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}
.gcw-profile-library-toolbar label {
  gap: 4px;
}
.gcw-profile-library-toolbar label span,
.gcw-profile-library-search span {
  font-size: 8.5px;
}
.gcw-profile-library-toolbar input,
.gcw-profile-library-toolbar select {
  min-height: 32px;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 11.5px;
}
.gcw-profile-library-toolbar-actions .gcw-btn,
.gcw-profile-library-managerbar .gcw-btn,
.gcw-profile-library-pager .gcw-btn {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 11px;
  font-size: 10.5px;
}
.gcw-profile-library-managerbar {
  margin-top: 9px;
  font-size: 10.5px;
}
.gcw-profile-library-list.is-compact {
  gap: 6px;
  margin-top: 9px;
}
.gcw-profile-library-list.is-compact .gcw-profile-library-record {
  grid-template-columns: minmax(0, 1fr) 88px 108px;
  gap: 8px;
  min-height: 50px;
  padding: 7px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.gcw-profile-library-list.is-compact .gcw-profile-library-main strong {
  font-size: 11.5px;
  letter-spacing: -.005em;
}
.gcw-profile-library-list.is-compact .gcw-profile-library-main small {
  font-size: 9.5px;
}
.gcw-profile-library-list.is-compact .gcw-profile-library-main span {
  font-size: 9.5px;
}
.gcw-profile-library-list.is-compact .gcw-profile-library-state {
  min-width: 76px;
}
.gcw-profile-library-list.is-compact .gcw-profile-library-state em {
  padding: 3px 6px;
  font-size: 8.5px;
  letter-spacing: .055em;
  white-space: normal;
  text-align: center;
}
.gcw-profile-library-list.is-compact .gcw-profile-library-state span {
  font-size: 9.5px;
}
.gcw-profile-library-list.is-compact .gcw-profile-library-actions {
  gap: 4px;
}
.gcw-profile-library-list.is-compact .gcw-profile-library-actions .gcw-btn {
  min-height: 27px;
  padding: 5px 7px;
  border-radius: 10px;
  font-size: 9.5px;
}
.gcw-profile-library-pager {
  margin-top: 8px;
  padding-top: 8px;
  font-size: 10.5px;
}
@media (max-width: 980px) {
  .gcw-profile-grid,
  .gcw-profile-overview {
    grid-template-columns: 1fr;
  }
  .gcw-profile-library-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .gcw-profile-library-toolbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .gcw-profile-drawer,
  .gcw-profile-drawer.is-library-only {
    width: calc(100vw - 10px);
    height: calc(100dvh - 10px);
    margin: 5px;
    border-radius: 16px;
  }
  .gcw-profile-head {
    min-height: 66px;
    padding: 10px 11px;
    border-radius: 15px 15px 0 0;
  }
  .gcw-profile-avatar-wrap img,
  .gcw-profile-avatar-wrap span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
  .gcw-profile-head strong { font-size: 15.5px; }
  .gcw-profile-head small { font-size: 10.5px; }
  .gcw-profile-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .gcw-profile-body { padding: 0 9px 10px; }
  .gcw-profile-library-toolbar { grid-template-columns: 1fr; }
  .gcw-profile-library-toolbar-actions { justify-content: stretch; }
  .gcw-profile-library-toolbar-actions .gcw-btn { flex: 1 1 auto; }
}

/* v3.6.0 saved-record action contrast and direct workspace-ready handoff UX polish. */
.gcw-profile-overlay .gcw-btn:disabled {
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}
.gcw-profile-overlay .gcw-btn-primary:disabled,
.gcw-profile-overlay .gcw-btn-primary[disabled] {
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1) !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  text-shadow: none !important;
}
.gcw-profile-overlay .gcw-btn-soft:disabled,
.gcw-profile-overlay .gcw-btn-soft[disabled] {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
  text-shadow: none !important;
}
.gcw-profile-library-record.is-not-ready .gcw-profile-library-actions .gcw-btn-primary {
  opacity: 1 !important;
}
.gcw-profile-library-actions .gcw-library-open-btn {
  min-width: 54px;
  border: 1px solid rgba(37, 99, 235, .30) !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18) !important;
  white-space: nowrap;
}
.gcw-profile-bundle-list .gcw-profile-library-actions .gcw-library-open-btn {
  min-width: 66px;
}
.gcw-profile-library-actions .gcw-library-secondary-btn {
  min-width: 56px;
  color: #0f172a !important;
  background: #eef4ff !important;
  border-color: rgba(37, 99, 235, .20) !important;
  white-space: nowrap;
}
.gcw-profile-library-actions .gcw-library-open-btn:not(:disabled):hover,
.gcw-profile-library-actions .gcw-library-open-btn:not([disabled]):hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .24) !important;
}
.gcw-profile-library-actions .gcw-library-open-btn:disabled,
.gcw-profile-library-actions .gcw-library-open-btn[disabled] {
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1) !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}
.gcw-profile-library-actions .gcw-library-secondary-btn:disabled,
.gcw-profile-library-actions .gcw-library-secondary-btn[disabled] {
  background: #f8fafc !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}
.gcw-profile-library-list.is-compact .gcw-profile-library-actions .gcw-btn {
  line-height: 1.05;
  font-weight: 950;
}
@media (max-width: 980px) {
  .gcw-profile-library-actions .gcw-library-open-btn,
  .gcw-profile-bundle-list .gcw-profile-library-actions .gcw-library-open-btn,
  .gcw-profile-library-actions .gcw-library-secondary-btn {
    min-width: 0;
  }
}

/* v3.6.0 saved-record action lock: only the selected row looks busy while the viewer opens it. */
.gcw-profile-library-record.is-opening {
  border-color: rgba(37, 99, 235, .38) !important;
  box-shadow: 0 14px 32px rgba(37, 99, 235, .10) !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}
.gcw-profile-library-actions .gcw-library-open-btn.is-opening,
.gcw-profile-library-actions .gcw-library-open-btn.is-opening:disabled,
.gcw-profile-library-actions .gcw-library-open-btn.is-opening[disabled] {
  background: linear-gradient(135deg, #0f172a, #334155) !important;
  color: #ffffff !important;
  border-color: rgba(15, 23, 42, .35) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .18) !important;
  cursor: wait !important;
}
.gcw-profile-library-actions .gcw-library-open-btn.is-open-paused:not(:disabled),
.gcw-profile-library-actions .gcw-library-secondary-btn.is-open-paused:not(:disabled),
.gcw-profile-library-delete-all.is-open-paused:not(:disabled) {
  opacity: 1 !important;
  cursor: wait !important;
  filter: none !important;
}
.gcw-profile-library-actions .gcw-library-open-btn.is-open-paused:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-color: rgba(37, 99, 235, .30) !important;
}
.gcw-profile-library-actions .gcw-library-secondary-btn.is-open-paused:not(:disabled) {
  color: #0f172a !important;
  background: #eef4ff !important;
  border-color: rgba(37, 99, 235, .20) !important;
}

/* v3.6.0 Profile Save button contrast fix: explicit active/saving states independent of global drawer-disabled rules. */
.gcw-profile-overlay .gcw-profile-form-actions .gcw-profile-save-btn,
.gcw-profile-overlay .gcw-profile-form-actions .gcw-profile-save-btn:not(:disabled),
.gcw-profile-overlay .gcw-profile-form-actions .gcw-profile-save-btn:not([disabled]) {
  min-width: 128px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: 1px solid rgba(37, 99, 235, .42) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .22) !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}
.gcw-profile-overlay .gcw-profile-form-actions .gcw-profile-save-btn:not(:disabled):hover,
.gcw-profile-overlay .gcw-profile-form-actions .gcw-profile-save-btn:not([disabled]):hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .28) !important;
}
.gcw-profile-overlay .gcw-profile-form-actions .gcw-profile-save-btn:disabled,
.gcw-profile-overlay .gcw-profile-form-actions .gcw-profile-save-btn[disabled] {
  background: linear-gradient(135deg, #0f172a, #334155) !important;
  color: #ffffff !important;
  border-color: rgba(15, 23, 42, .42) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .18) !important;
  opacity: 1 !important;
  cursor: wait !important;
}
.gcw-profile-overlay .gcw-profile-form-actions .gcw-profile-save-btn:focus-visible {
  outline: 3px solid rgba(147, 197, 253, .85) !important;
  outline-offset: 3px !important;
}
@media (max-width: 640px) {
  .gcw-profile-overlay .gcw-profile-form-actions .gcw-profile-save-btn {
    width: 100%;
    min-width: 0;
  }
}

/* v3.6.0 Saved records stitch-from-originals UX: metadata-only workspace creation, no recursive stitching. */
.gcw-profile-library-managerbar.is-stitch-mode {
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 14px;
  background: linear-gradient(180deg, #eff6ff, #f8fbff);
}
.gcw-profile-library-manager-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.gcw-profile-library-summary {
  min-width: 0;
  line-height: 1.35;
}
.gcw-profile-library-manager-actions .gcw-library-stitch-mode-btn {
  color: #0f172a !important;
  background: linear-gradient(180deg, #eef4ff, #dbeafe) !important;
  border-color: rgba(37, 99, 235, .28) !important;
}
.gcw-profile-library-manager-actions .gcw-library-stitch-create-btn,
.gcw-profile-library-manager-actions .gcw-library-stitch-create-btn:not(:disabled) {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: rgba(37, 99, 235, .35) !important;
  box-shadow: 0 9px 20px rgba(37, 99, 235, .18) !important;
  min-width: 154px;
}
.gcw-profile-library-manager-actions .gcw-library-stitch-create-btn:disabled,
.gcw-profile-library-manager-actions .gcw-library-stitch-create-btn[disabled] {
  color: #334155 !important;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1) !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}
.gcw-profile-library-record.is-stitch-mode {
  grid-template-columns: 34px minmax(0, 1fr) 88px 88px !important;
}
.gcw-profile-library-record.is-stitch-selected {
  border-color: rgba(37, 99, 235, .45) !important;
  background: linear-gradient(180deg, #ffffff, #eff6ff) !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .12) !important;
}
.gcw-library-stitch-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  align-self: center;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, .28);
  background: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.gcw-library-stitch-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gcw-library-stitch-check span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}
.gcw-library-stitch-check input:checked + span {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}
.gcw-library-stitch-check.is-disabled {
  cursor: not-allowed;
  border-color: #cbd5e1;
  background: #f8fafc;
}
.gcw-library-stitch-check.is-disabled span {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.gcw-profile-library-actions.is-selection-hint {
  justify-content: flex-end;
}
.gcw-library-selection-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 74px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .22);
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .055em;
  line-height: 1.1;
  text-align: center;
}
.gcw-library-selection-badge.is-selected {
  color: #065f46;
  background: #dcfce7;
  border-color: rgba(16, 185, 129, .25);
}
.gcw-library-selection-badge.is-blocked {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}
@media (max-width: 760px) {
  .gcw-profile-library-managerbar,
  .gcw-profile-library-managerbar.is-stitch-mode {
    align-items: stretch;
    flex-direction: column;
  }
  .gcw-profile-library-manager-actions {
    justify-content: flex-start;
  }
  .gcw-profile-library-record.is-stitch-mode {
    grid-template-columns: 32px minmax(0, 1fr) !important;
  }
  .gcw-profile-library-record.is-stitch-mode .gcw-profile-library-state,
  .gcw-profile-library-record.is-stitch-mode .gcw-profile-library-actions {
    grid-column: 2;
  }
}

/* My Report drawer: compact report library with aligned actions and PDF download. */
.gcw-profile-overlay.is-report-only .gcw-profile-drawer,
.gcw-profile-drawer.is-report-only {
  width: min(920px, calc(100vw - 24px));
}
.gcw-profile-avatar-wrap.is-reports {
  background: linear-gradient(135deg, #0f172a, #7c3aed);
  color: #fff;
}
.gcw-profile-drawer.is-report-only .gcw-profile-body {
  overflow: auto;
}
.gcw-my-report-panel {
  display: grid;
  gap: 12px;
}
.gcw-my-report-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  color: #64748b;
  font-size: 13px;
}
.gcw-my-report-summary strong {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}
.gcw-my-report-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 18px;
  background: #f8fafc;
}
.gcw-my-report-toolbar .gcw-profile-library-search {
  gap: 8px;
}
.gcw-my-report-toolbar .gcw-profile-library-search span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gcw-my-report-list {
  max-height: none !important;
  overflow: visible !important;
}
.gcw-my-report-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}
.gcw-my-report-main {
  min-width: 0;
}
.gcw-my-report-main strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  color: #0f172a;
}
.gcw-my-report-main small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}
.gcw-my-report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}
.gcw-my-report-actions .gcw-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 12px;
  white-space: nowrap;
}
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-open-btn,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-back-btn,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-download-btn {
  background: #eef4ff !important;
  color: #1e293b !important;
  border: 1px solid rgba(37, 99, 235, .16) !important;
  box-shadow: none !important;
}
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-open-btn:hover,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-back-btn:hover,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-download-btn:hover,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-open-btn:focus-visible,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-back-btn:focus-visible,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-download-btn:focus-visible {
  background: #e0ecff !important;
  color: #0f172a !important;
  border-color: rgba(37, 99, 235, .24) !important;
}
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-edit-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: 1px solid rgba(37, 99, 235, .32) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18) !important;
}
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-edit-btn:hover,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-edit-btn:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  color: #ffffff !important;
}
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-delete-btn {
  white-space: nowrap;
}
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-download-btn:disabled,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-edit-btn:disabled,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-open-btn:disabled,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-back-btn:disabled,
.gcw-profile-overlay .gcw-my-report-actions .gcw-my-report-delete-btn:disabled {
  box-shadow: none !important;
}
.gcw-my-report-viewer {
  display: grid;
  gap: 12px;
}
.gcw-my-report-viewer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.gcw-my-report-viewer-copy h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}
.gcw-my-report-viewer-copy p {
  margin: 6px 0 0;
  color: #64748b;
}
.gcw-my-report-html {
  max-height: min(68vh, 760px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.26);
  border-radius: 16px;
  background: #fff;
}
.gcw-my-report-html .gcw-report-shell,
.gcw-my-report-html .gcw-ai-report,
.gcw-my-report-html .zeroriskk-ai-report {
  max-width: 100% !important;
}
@media (max-width: 760px) {
  .gcw-my-report-toolbar,
  .gcw-my-report-card,
  .gcw-my-report-viewer-head {
    grid-template-columns: 1fr !important;
  }
  .gcw-my-report-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  .gcw-my-report-actions .gcw-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}
