/* ZeroRiskk COMTRADE Viewer v2.4.5 module: Base viewer layout, uploader, measurements, inspectors and synchronized waveform shell. */
.gcw-root [hidden] { display: none !important; }
.gcw-root { --gcw-bg: #f3f7fb; --gcw-card: #ffffff; --gcw-text: #0f172a; --gcw-muted: #64748b; --gcw-border: rgba(148, 163, 184, 0.32); --gcw-primary: #2563eb; --gcw-primary-dark: #1d4ed8; --gcw-success: #059669; --gcw-danger: #dc2626; --gcw-shadow: 0 18px 45px rgba(15, 23, 42, 0.08); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--gcw-text); background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 42%, #f5f7fb 100%); border: 1px solid var(--gcw-border); border-radius: 28px; padding: 24px; box-shadow: var(--gcw-shadow); max-width: 1240px; margin: 28px auto; box-sizing: border-box; }
.gcw-root * { box-sizing: border-box; }
.gcw-hero { display: grid; grid-template-columns: 1fr minmax(230px, 320px); gap: 24px; align-items: stretch; margin-bottom: 22px; }
.gcw-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; background: rgba(37, 99, 235, 0.10); color: #1d4ed8; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.gcw-hero h2 { margin: 14px 0 8px; font-size: clamp(28px, 4vw, 44px); line-height: 1.06; letter-spacing: -0.04em; color: var(--gcw-text); }
.gcw-hero p { margin: 0; color: var(--gcw-muted); font-size: 16px; line-height: 1.65; max-width: 760px; }
.gcw-access-card { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 136px; padding: 22px; border-radius: 24px; background: rgba(255, 255, 255, 0.80); border: 1px solid var(--gcw-border); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06); position: relative; overflow: hidden; }
.gcw-access-card::after { content: ""; position: absolute; inset: auto -30px -52px auto; width: 150px; height: 150px; background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 62%); pointer-events: none; }
.gcw-access-card.is-pro::after { background: radial-gradient(circle, rgba(5, 150, 105, 0.16), transparent 62%); }
.gcw-access-card strong { font-size: 18px; }
.gcw-access-card small { color: var(--gcw-muted); line-height: 1.45; }
.gcw-status-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--gcw-primary); box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12); }
.gcw-access-card.is-pro .gcw-status-dot { background: var(--gcw-success); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.12); }
.gcw-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr); gap: 18px; margin-bottom: 18px; }
.gcw-panel { background: rgba(255, 255, 255, 0.86); border: 1px solid var(--gcw-border); border-radius: 24px; padding: 20px; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.045); backdrop-filter: blur(12px); }
.gcw-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.gcw-panel-head h3 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; color: var(--gcw-text); }
.gcw-panel-head p { margin: 6px 0 0; color: var(--gcw-muted); font-size: 13px; line-height: 1.5; }
.gcw-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gcw-dropzone { min-height: 172px; border: 1.5px dashed rgba(37, 99, 235, 0.35); border-radius: 22px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 10px; padding: 18px; cursor: pointer; background: linear-gradient(180deg, rgba(37, 99, 235, 0.045), rgba(255, 255, 255, 0.75)); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.gcw-dropzone:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, 0.75); background: linear-gradient(180deg, rgba(37, 99, 235, 0.09), rgba(255, 255, 255, 0.86)); }
.gcw-dropzone input { display: none; }
.gcw-upload-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: #0f172a; color: #fff; font-weight: 900; letter-spacing: 0.06em; box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16); }
.gcw-dropzone strong { font-size: 15px; }
.gcw-dropzone small { color: var(--gcw-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcw-upload-help { display: block; max-width: 260px; font-size: 11px; line-height: 1.35; color: #475569; opacity: 0.92; }
.gcw-actions, .gcw-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.gcw-actions { margin-top: 16px; }
.gcw-analyze-btn, .gcw-reset-btn, .gcw-toolbar .gcw-btn, .gcw-export-csv { position: relative; z-index: 3; pointer-events: auto; }
.gcw-btn { appearance: none; border: 0; border-radius: 14px; padding: 11px 16px; font-weight: 800; font-size: 13px; line-height: 1; cursor: pointer; text-decoration: none !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.gcw-btn:hover { transform: translateY(-1px); }
.gcw-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.gcw-btn-primary { color: #fff !important; background: linear-gradient(135deg, var(--gcw-primary), var(--gcw-primary-dark)); box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24); }
.gcw-btn-soft { color: #1e293b !important; background: #eef4ff; border: 1px solid rgba(37, 99, 235, 0.14); }
.gcw-alert { margin-top: 14px; padding: 12px 14px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.gcw-alert-info { background: rgba(37, 99, 235, 0.08); color: #1e40af; border: 1px solid rgba(37, 99, 235, 0.14); }
.gcw-alert-error { background: rgba(220, 38, 38, 0.08); color: #991b1b; border: 1px solid rgba(220, 38, 38, 0.18); }
.gcw-alert-status { background: rgba(5, 150, 105, 0.08); color: #065f46; border: 1px solid rgba(5, 150, 105, 0.18); font-weight: 700; }
.gcw-meta-empty { min-height: 210px; display: flex; align-items: center; justify-content: center; color: var(--gcw-muted); border-radius: 20px; border: 1px dashed var(--gcw-border); background: rgba(248, 250, 252, 0.82); }
.gcw-meta-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gcw-chip { padding: 12px; border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 16px; background: #f8fafc; min-width: 0; }
.gcw-chip span { display: block; color: var(--gcw-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.gcw-chip strong { display: block; color: var(--gcw-text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcw-results, .gcw-stats, .gcw-lock { margin-top: 18px; }
.gcw-results-head { align-items: center; }
.gcw-channel-wrap { max-height: 205px; overflow: auto; margin-bottom: 14px; padding-right: 4px; }
.gcw-channel-list { display: flex; flex-wrap: wrap; gap: 10px; }
.gcw-channel-chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.26); background: #fff; cursor: pointer; transition: border 160ms ease, background 160ms ease, transform 160ms ease; }
.gcw-channel-chip:hover { transform: translateY(-1px); }
.gcw-channel-chip.is-selected { border-color: rgba(37, 99, 235, 0.54); background: rgba(37, 99, 235, 0.06); }
.gcw-channel-chip input { width: 16px; height: 16px; accent-color: var(--gcw-primary); }
.gcw-channel-chip strong { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.gcw-channel-chip small { display: block; color: var(--gcw-muted); font-size: 11px; margin-top: 2px; }
.gcw-channel-type { width: 28px; height: 28px; border-radius: 10px; background: #0f172a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.gcw-canvas-card, .gcw-range-card { width: 100%; overflow-x: auto; border-radius: 20px; border: 1px solid rgba(148, 163, 184, 0.28); background: #fff; }
.gcw-range-card { overflow-y: hidden; }
.gcw-wave-canvas, .gcw-range-canvas { display: block; width: 100%; min-width: 820px; }
.gcw-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 18px; }
.gcw-stats-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.gcw-stats-table th { text-align: left; color: #334155; background: #f1f5f9; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding: 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.28); }
.gcw-stats-table td { padding: 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.18); color: #334155; }
.gcw-stats-table small { color: #64748b; font-size: 11px; }
.gcw-stats-table tr:last-child td { border-bottom: 0; }
.gcw-lock-card { max-width: 520px; margin: 0 auto; text-align: center; padding: 34px 24px; border-radius: 24px; background: linear-gradient(180deg, #ffffff, #f8fbff); border: 1px solid rgba(148, 163, 184, 0.32); box-shadow: var(--gcw-shadow); }
.gcw-lock-icon { width: 68px; height: 68px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 22px; background: rgba(220, 38, 38, 0.08); font-size: 30px; }
.gcw-lock-card h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.02em; }
.gcw-lock-card p { margin: 0; color: var(--gcw-muted); line-height: 1.6; }
.gcw-lock-actions { justify-content: center; margin-top: 20px; }
@media (max-width: 920px) { .gcw-root { padding: 16px; border-radius: 22px; } .gcw-hero, .gcw-grid { grid-template-columns: 1fr; } .gcw-upload-grid { grid-template-columns: 1fr; } .gcw-meta-chips { grid-template-columns: 1fr; } .gcw-panel-head, .gcw-results-head { flex-direction: column; align-items: flex-start; } .gcw-toolbar { width: 100%; } .gcw-btn { width: auto; } }
@media (max-width: 560px) { .gcw-hero h2 { font-size: 29px; } .gcw-panel { padding: 15px; border-radius: 20px; } .gcw-actions .gcw-btn { flex: 1 1 100%; } .gcw-channel-chip { width: 100%; } .gcw-channel-chip strong { max-width: 220px; } }

.gcw-toolbar-divider { width: 1px; height: 30px; background: rgba(148, 163, 184, 0.34); margin: 0 2px; }
.gcw-analysis-summary { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 10px; margin: 0 0 14px; }
.gcw-analysis-summary .gcw-chip { background: linear-gradient(180deg, #ffffff, #f8fafc); border-color: rgba(148, 163, 184, 0.26); }
.gcw-root.gcw-analysis-mode { width: min(1600px, calc(100vw - 24px)); max-width: none; margin: 12px auto; padding: 18px; border-radius: 22px; position: relative; left: 50%; transform: translateX(-50%); min-height: calc(100vh - 24px); background: linear-gradient(135deg, #f8fbff 0%, #f8fafc 55%, #eef6ff 100%); }
.gcw-root.gcw-analysis-mode .gcw-hero, .gcw-root.gcw-analysis-mode .gcw-grid { display: none !important; }
.gcw-root.gcw-analysis-mode .gcw-results { margin-top: 0; min-height: calc(100vh - 60px); padding: 18px; border-radius: 24px; box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08); }
.gcw-root.gcw-analysis-mode .gcw-results-head { position: sticky; top: 8px; z-index: 20; align-items: center; margin-bottom: 14px; padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.26); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06); }
.gcw-root.gcw-analysis-mode .gcw-results-head h3 { font-size: 22px; }
.gcw-root.gcw-analysis-mode .gcw-analysis-toolbar { justify-content: flex-end; }
.gcw-root.gcw-analysis-mode .gcw-channel-wrap { max-height: 150px; margin-bottom: 12px; border: 1px solid rgba(148, 163, 184, 0.20); border-radius: 18px; padding: 10px; background: #f8fafc; }
.gcw-root.gcw-analysis-mode .gcw-channel-list { gap: 8px; }
.gcw-root.gcw-analysis-mode .gcw-channel-chip { padding: 8px 10px; border-radius: 14px; }
.gcw-root.gcw-analysis-mode .gcw-canvas-card { border-radius: 24px; min-height: 560px; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.10), 0 16px 34px rgba(15, 23, 42, 0.06); }
.gcw-root.gcw-analysis-mode .gcw-wave-canvas { min-width: 980px; }
.gcw-root.gcw-analysis-mode .gcw-stats { margin-top: 16px; }
.gcw-root.gcw-analysis-mode .gcw-btn-primary.gcw-analysis-reset { background: linear-gradient(135deg, #0f172a, #334155); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.20); }
.gcw-root:fullscreen { width: 100vw !important; max-width: none !important; height: 100vh; min-height: 100vh; margin: 0 !important; border-radius: 0; left: auto; transform: none; overflow: auto; padding: 18px; }
.gcw-root:fullscreen .gcw-results { min-height: calc(100vh - 36px); }
.gcw-root:fullscreen .gcw-results-head { top: 0; }
@media (max-width: 1100px) { .gcw-analysis-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gcw-root.gcw-analysis-mode .gcw-results-head { align-items: flex-start; } .gcw-root.gcw-analysis-mode .gcw-analysis-toolbar { justify-content: flex-start; } }
@media (max-width: 640px) { .gcw-root.gcw-analysis-mode { width: calc(100vw - 12px); padding: 10px; border-radius: 16px; } .gcw-analysis-summary { grid-template-columns: 1fr; } .gcw-toolbar-divider { display: none; } .gcw-root.gcw-analysis-mode .gcw-results { padding: 12px; border-radius: 18px; } .gcw-root.gcw-analysis-mode .gcw-results-head { position: static; } }

.gcw-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border-radius: 14px; background: #f8fafc; border: 1px solid rgba(148, 163, 184, 0.30); color: #334155; font-size: 13px; font-weight: 800; cursor: pointer; user-select: none; }
.gcw-toggle input { width: 16px; height: 16px; accent-color: var(--gcw-primary); }
.gcw-root.gcw-analysis-mode .gcw-results { padding: 16px; }
.gcw-root.gcw-analysis-mode .gcw-analysis-summary { grid-template-columns: repeat(7, minmax(110px, 1fr)); }
.gcw-workspace { display: grid; grid-template-columns: minmax(30px, var(--gcw-measure-width, 370px)) 10px minmax(0, 1fr); gap: 12px; align-items: stretch; min-height: calc(100vh - 210px); }
.gcw-measurements-pane, .gcw-wave-pane { min-width: 0; border: 1px solid rgba(148, 163, 184, 0.26); border-radius: 22px; background: rgba(255, 255, 255, 0.94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.gcw-measurements-pane { display: flex; flex-direction: column; overflow: hidden; }
.gcw-pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 14px 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.20); background: linear-gradient(180deg, #ffffff, #f8fafc); }
.gcw-pane-head h4, .gcw-wave-section-head h4 { margin: 0; font-size: 16px; letter-spacing: -0.02em; color: #0f172a; }
.gcw-pane-head p, .gcw-wave-section-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.gcw-channel-search { width: calc(100% - 28px); margin: 12px 14px; padding: 11px 12px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.34); background: #fff; font-size: 13px; outline: none; }
.gcw-channel-search:focus { border-color: rgba(37, 99, 235, 0.70); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10); }
.gcw-measure-scroll { overflow: auto; flex: 1 1 auto; max-height: calc(100vh - 310px); border-top: 1px solid rgba(148, 163, 184, 0.12); }
.gcw-measure-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; background: #fff; font-size: 12px; }
.gcw-measure-table th { position: sticky; top: 0; z-index: 4; padding: 10px 10px; text-align: left; color: #334155; background: #f1f5f9; border-bottom: 1px solid rgba(148, 163, 184, 0.28); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.gcw-measure-table td { padding: 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.16); color: #334155; vertical-align: top; white-space: nowrap; }
.gcw-measure-table td:first-child, .gcw-measure-table th:first-child { width: 52px; text-align: center; }
.gcw-measure-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gcw-primary); }
.gcw-measure-table strong { display: block; color: #0f172a; font-size: 12px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcw-measure-table small { display: block; color: #64748b; margin-top: 2px; font-size: 10.5px; }
.gcw-measure-row.is-changed td { background: rgba(37, 99, 235, 0.035); }
.gcw-measure-digital td:first-child::after { content: "D"; display: block; margin: 3px auto 0; width: 18px; height: 14px; border-radius: 99px; background: #eff6ff; color: #1d4ed8; font-size: 9px; font-weight: 900; line-height: 14px; }
.gcw-measure-analog td:first-child::after { content: "A"; display: block; margin: 3px auto 0; width: 18px; height: 14px; border-radius: 99px; background: #f8fafc; color: #334155; font-size: 9px; font-weight: 900; line-height: 14px; }
.gcw-splitter { width: 10px; border-radius: 999px; cursor: col-resize; background: linear-gradient(180deg, rgba(148, 163, 184, 0.20), rgba(37, 99, 235, 0.26), rgba(148, 163, 184, 0.20)); position: relative; }
.gcw-splitter::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 54px; border-radius: 999px; background: rgba(15, 23, 42, 0.24); transform: translate(-50%, -50%); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08); }
body.gcw-is-resizing { cursor: col-resize !important; user-select: none !important; }
.gcw-wave-pane { padding: 12px; overflow-y: auto; max-height: calc(100vh - 210px); background: linear-gradient(180deg, #ffffff, #f8fafc); }
.gcw-wave-section { border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 20px; padding: 12px; background: #ffffff; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045); }
.gcw-wave-section + .gcw-wave-section { margin-top: 14px; }
.gcw-wave-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.gcw-mini-badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; color: #1e40af; background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.16); }
.gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-plot-scroll { position: relative; overflow: auto; min-height: 280px; max-height: 48vh; border-radius: 18px; background: #fff; }
.gcw-root.gcw-analysis-mode .gcw-analog-card { max-height: 53vh; }
.gcw-root.gcw-analysis-mode .gcw-digital-card { max-height: 39vh; }
.gcw-analog-canvas, .gcw-digital-canvas { display: block; width: 100%; min-width: 980px; background: #fff; }
.gcw-hover-tooltip { position: absolute; z-index: 30; min-width: 176px; max-width: 260px; width: auto; padding: 7px 9px; border-radius: 10px; color: #e5eefc; background: rgba(15, 23, 42, 0.90); border: 1px solid rgba(226, 232, 240, 0.16); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.20); backdrop-filter: blur(8px); pointer-events: none; font-size: 11px; line-height: 1.28; }
.gcw-hover-tooltip .gcw-tip-main { display: flex; align-items: baseline; justify-content: flex-start; gap: 4px; min-width: 0; margin-bottom: 3px; white-space: nowrap; }
.gcw-hover-tooltip .gcw-tip-main b { color: #ffffff; font-weight: 800; overflow: hidden; text-overflow: ellipsis; max-width: 118px; flex: 0 1 auto; }
.gcw-hover-tooltip .gcw-tip-main strong { color: #e0f2fe; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.gcw-hover-tooltip .gcw-tip-row { display: flex; justify-content: flex-start; align-items: baseline; gap: 4px; color: #cbd5e1; white-space: nowrap; }
.gcw-hover-tooltip .gcw-tip-row span { color: #94a3b8; font-weight: 700; margin: 0; flex: 0 0 auto; }
.gcw-hover-tooltip .gcw-tip-row b { color: #f8fafc; font-weight: 700; flex: 0 1 auto; }
.gcw-hover-tooltip .gcw-tip-relay { margin-top: 2px; }
.gcw-hover-tooltip > strong, .gcw-hover-tooltip > span { display: none; }
.gcw-root:fullscreen .gcw-workspace { min-height: calc(100vh - 170px); }
.gcw-root:fullscreen .gcw-measure-scroll { max-height: calc(100vh - 270px); }
.gcw-root:fullscreen .gcw-wave-pane { max-height: calc(100vh - 170px); }
.gcw-root:fullscreen .gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-plot-scroll { max-height: 52vh; }
@media (max-width: 900px) { .gcw-workspace { display: block; min-height: auto; } .gcw-splitter { display: none; } .gcw-measurements-pane { margin-bottom: 14px; } .gcw-measure-scroll, .gcw-wave-pane { max-height: none; } .gcw-wave-pane { overflow: visible; } .gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-plot-scroll { max-height: 420px; } .gcw-measure-table { min-width: 620px; } }
@media (max-width: 640px) { .gcw-digital-toggle { width: 100%; justify-content: center; } .gcw-wave-section-head { flex-direction: column; } .gcw-mini-badge { width: fit-content; } .gcw-analog-canvas, .gcw-digital-canvas { min-width: 840px; } }

.gcw-workspace { grid-template-columns: minmax(30px, var(--gcw-measure-width, 500px)) 10px minmax(0, 1fr); }
.gcw-measure-scroll { overflow-y: auto; overflow-x: hidden; }
.gcw-measure-table { min-width: 0 !important; width: 100%; table-layout: fixed; font-size: var(--gcw-measure-font, 12px); }
.gcw-measure-table th { padding: 8px 6px; font-size: calc(var(--gcw-measure-font, 12px) - 1.7px); white-space: normal; line-height: 1.18; overflow-wrap: anywhere; }
.gcw-measure-table td { padding: 8px 6px; white-space: normal; line-height: 1.24; overflow-wrap: anywhere; word-break: break-word; }
.gcw-measure-table th:nth-child(1), .gcw-measure-table td:nth-child(1) { width: 7%; min-width: 34px; }
.gcw-measure-table th:nth-child(2), .gcw-measure-table td:nth-child(2) { width: 29%; }
.gcw-measure-table th:nth-child(3), .gcw-measure-table td:nth-child(3), .gcw-measure-table th:nth-child(4), .gcw-measure-table td:nth-child(4), .gcw-measure-table th:nth-child(5), .gcw-measure-table td:nth-child(5), .gcw-measure-table th:nth-child(6), .gcw-measure-table td:nth-child(6) { width: 16%; }
.gcw-measure-table strong { max-width: none; white-space: normal; font-size: calc(var(--gcw-measure-font, 12px) + 0.2px); line-height: 1.18; }
.gcw-measure-table small { white-space: normal; font-size: calc(var(--gcw-measure-font, 12px) - 1.5px); line-height: 1.18; }
.gcw-wave-pane { overflow: auto; }
.gcw-combined-section { min-height: 100%; }
.gcw-badge-stack { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card { position: relative; overflow: auto; min-height: 620px; max-height: calc(100vh - 285px); border-radius: 18px; background: #fff; }
.gcw-combined-canvas { display: block; width: 100%; min-width: 1100px; background: #fff; }
.gcw-hover-tooltip { max-width: 260px; }
.gcw-root:fullscreen .gcw-canvas-card.gcw-combined-card { max-height: calc(100vh - 225px); }
@media (max-width: 900px) { .gcw-workspace { display: block; } .gcw-measure-table { min-width: 0 !important; font-size: 11px; } .gcw-measure-table th, .gcw-measure-table td { padding: 7px 5px; } .gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card { max-height: 540px; min-height: 420px; } }
@media (max-width: 640px) { .gcw-combined-canvas { min-width: 920px; } .gcw-measure-table th:nth-child(2), .gcw-measure-table td:nth-child(2) { width: 27%; } .gcw-measure-table th:nth-child(3), .gcw-measure-table td:nth-child(3), .gcw-measure-table th:nth-child(4), .gcw-measure-table td:nth-child(4), .gcw-measure-table th:nth-child(5), .gcw-measure-table td:nth-child(5), .gcw-measure-table th:nth-child(6), .gcw-measure-table td:nth-child(6) { width: 16.5%; } }

.gcw-advanced-parser { margin-top: 14px; border: 1px solid rgba(148, 163, 184, 0.26); border-radius: 18px; background: rgba(248, 250, 252, 0.82); overflow: hidden; }
.gcw-advanced-parser summary { cursor: pointer; padding: 12px 14px; color: #1e40af; font-weight: 900; font-size: 13px; list-style: none; }
.gcw-advanced-parser summary::-webkit-details-marker { display: none; }
.gcw-advanced-parser summary::after { content: "▾"; float: right; color: #64748b; }
.gcw-advanced-parser[open] summary::after { content: "▴"; }
.gcw-parser-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 14px 12px; }
.gcw-parser-grid label { display: grid; gap: 6px; min-width: 0; }
.gcw-parser-grid span { color: #475569; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.gcw-parser-grid select { width: 100%; min-height: 40px; border-radius: 13px; border: 1px solid rgba(148, 163, 184, 0.36); background: #fff; color: #0f172a; font-size: 13px; padding: 8px 10px; outline: none; }
.gcw-parser-grid select:focus { border-color: rgba(37, 99, 235, 0.70); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10); }
.gcw-advanced-parser p { margin: 0; padding: 0 14px 14px; color: #64748b; font-size: 12px; line-height: 1.45; }
@media (max-width: 640px) { .gcw-parser-grid { grid-template-columns: 1fr; } }

.gcw-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; margin: 0 0 14px; padding: 9px 12px; border: 1px solid rgba(148, 163, 184, 0.26); border-radius: 18px; background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96)); color: #f8fafc; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12); }
.gcw-ribbon-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 230px; }
.gcw-ribbon-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff; font-size: 12px; font-weight: 950; letter-spacing: 0.04em; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28); }
.gcw-ribbon-brand strong { display: block; font-size: 15px; line-height: 1.1; letter-spacing: -0.01em; color: #fff; }
.gcw-ribbon-brand small { display: block; margin-top: 2px; color: #cbd5e1; font-size: 11px; line-height: 1.1; }
.gcw-ribbon-meta { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.gcw-ribbon-meta span { display: inline-flex; align-items: center; white-space: nowrap; min-height: 28px; padding: 6px 9px; border-radius: 999px; color: #dbeafe; background: rgba(255, 255, 255, 0.075); border: 1px solid rgba(226, 232, 240, 0.14); font-size: 11px; font-weight: 800; }
.gcw-ribbon-access { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; justify-content: flex-end; padding: 7px 9px; border-radius: 14px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(226, 232, 240, 0.14); }
.gcw-ribbon-access strong { display: block; color: #fff; font-size: 12px; line-height: 1.05; }
.gcw-ribbon-access small { display: block; color: #cbd5e1; font-size: 10.5px; line-height: 1.05; margin-top: 2px; }
.gcw-ribbon-access.is-pro .gcw-status-dot { background: var(--gcw-success); box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.16); }
.gcw-root { max-width: min(1500px, calc(100vw - 24px)); margin-top: 10px; }
.gcw-root.gcw-analysis-mode { width: min(1880px, calc(100vw - 10px)); padding: 10px; margin: 4px auto 8px; border-radius: 16px; min-height: calc(100vh - 8px); }
.gcw-root.gcw-analysis-mode .gcw-ribbon { min-height: 42px; margin-bottom: 8px; padding: 6px 8px; border-radius: 14px; }
.gcw-root.gcw-analysis-mode .gcw-ribbon-brand { min-width: 195px; }
.gcw-root.gcw-analysis-mode .gcw-ribbon-mark { width: 28px; height: 28px; border-radius: 10px; font-size: 10px; }
.gcw-root.gcw-analysis-mode .gcw-ribbon-brand strong { font-size: 13px; }
.gcw-root.gcw-analysis-mode .gcw-ribbon-brand small { font-size: 10px; }
.gcw-root.gcw-analysis-mode .gcw-ribbon-meta span { min-height: 24px; padding: 4px 7px; font-size: 10px; }
.gcw-root.gcw-analysis-mode .gcw-ribbon-access { min-width: 118px; padding: 5px 7px; }
.gcw-root.gcw-analysis-mode .gcw-grid { display: none !important; }
.gcw-root.gcw-analysis-mode .gcw-results { min-height: calc(100vh - 70px); padding: 10px; border-radius: 16px; }
.gcw-root.gcw-analysis-mode .gcw-results-head { top: 4px; margin-bottom: 8px; padding: 8px 10px; border-radius: 14px; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05); }
.gcw-root.gcw-analysis-mode .gcw-results-head h3 { font-size: 16px; line-height: 1.1; }
.gcw-root.gcw-analysis-mode .gcw-results-head p { margin-top: 2px; font-size: 11px; line-height: 1.2; }
.gcw-root.gcw-analysis-mode .gcw-analysis-toolbar { gap: 7px; }
.gcw-root.gcw-analysis-mode .gcw-toggle { min-height: 34px; padding: 7px 10px; border-radius: 12px; font-size: 12px; }
.gcw-root.gcw-analysis-mode .gcw-btn { min-height: 34px; padding: 8px 12px; border-radius: 12px; font-size: 12px; }
.gcw-root.gcw-analysis-mode .gcw-toolbar-divider { height: 26px; }
.gcw-analysis-summary { display: flex !important; gap: 8px; margin: 0 0 8px !important; overflow-x: auto; padding: 0 1px 2px; scrollbar-width: thin; }
.gcw-analysis-summary .gcw-chip { flex: 0 0 auto; min-width: 128px; max-width: 210px; padding: 8px 10px; border-radius: 12px; }
.gcw-analysis-summary .gcw-chip span { margin-bottom: 2px; font-size: 9.5px; }
.gcw-analysis-summary .gcw-chip strong { font-size: 12px; }
.gcw-root.gcw-analysis-mode .gcw-workspace { min-height: calc(100vh - 175px); grid-template-columns: minmax(30px, var(--gcw-measure-width, 500px)) 8px minmax(0, 1fr); gap: 8px; }
.gcw-root.gcw-analysis-mode .gcw-pane-head { padding: 9px 11px 7px; }
.gcw-root.gcw-analysis-mode .gcw-pane-head h4, .gcw-root.gcw-analysis-mode .gcw-wave-section-head h4 { font-size: 14px; }
.gcw-root.gcw-analysis-mode .gcw-pane-head p, .gcw-root.gcw-analysis-mode .gcw-wave-section-head p { font-size: 10.8px; line-height: 1.25; }
.gcw-root.gcw-analysis-mode .gcw-channel-search { margin: 8px 10px; width: calc(100% - 20px); padding: 8px 10px; border-radius: 11px; font-size: 12px; }
.gcw-root.gcw-analysis-mode .gcw-measure-scroll { max-height: calc(100vh - 245px); }
.gcw-root.gcw-analysis-mode .gcw-wave-pane { max-height: calc(100vh - 155px); padding: 8px; }
.gcw-root.gcw-analysis-mode .gcw-wave-section { padding: 8px; border-radius: 15px; }
.gcw-root.gcw-analysis-mode .gcw-wave-section-head { margin-bottom: 7px; }
.gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card { min-height: 660px; max-height: calc(100vh - 225px); border-radius: 14px; }
.gcw-root:fullscreen .gcw-ribbon { margin-bottom: 6px; }
.gcw-root:fullscreen .gcw-results { min-height: calc(100vh - 58px); }
.gcw-root:fullscreen .gcw-workspace { min-height: calc(100vh - 148px); }
.gcw-root:fullscreen .gcw-measure-scroll { max-height: calc(100vh - 220px); }
.gcw-root:fullscreen .gcw-wave-pane { max-height: calc(100vh - 136px); }
.gcw-root:fullscreen .gcw-canvas-card.gcw-combined-card { max-height: calc(100vh - 196px); }
body.gcw-comtrade-compact-host [data-gcw-hidden-page-title="true"] { display: none !important; }
@media (max-width: 1180px) { .gcw-ribbon-meta { display: none; } .gcw-ribbon { justify-content: space-between; } }
@media (max-width: 640px) { .gcw-ribbon { flex-wrap: wrap; } .gcw-ribbon-brand { min-width: 0; flex: 1 1 auto; } .gcw-ribbon-access { min-width: 0; } .gcw-root.gcw-analysis-mode .gcw-results-head { position: static; } .gcw-root.gcw-analysis-mode .gcw-workspace { min-height: auto; } .gcw-root.gcw-analysis-mode .gcw-measure-scroll, .gcw-root.gcw-analysis-mode .gcw-wave-pane { max-height: none; } }

.gcw-toolbar-select { display: inline-grid; grid-template-columns: auto minmax(165px, 210px); align-items: center; gap: 7px; min-height: 38px; padding: 6px 9px; border-radius: 14px; background: #f8fafc; border: 1px solid rgba(148, 163, 184, 0.30); color: #334155; font-size: 12px; font-weight: 800; }
.gcw-toolbar-select span { color: #475569; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.gcw-toolbar-select select { width: 100%; min-height: 28px; border: 1px solid rgba(148, 163, 184, 0.36); border-radius: 10px; background: #fff; color: #0f172a; font-size: 12px; font-weight: 750; padding: 4px 8px; outline: none; }
.gcw-toolbar-select select:focus { border-color: rgba(37, 99, 235, 0.72); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10); }
.gcw-engineering-strip { margin: -2px 0 8px; padding: 8px 10px; border-radius: 13px; background: rgba(37, 99, 235, 0.055); border: 1px solid rgba(37, 99, 235, 0.13); color: #334155; font-size: 12px; line-height: 1.35; }
.gcw-engineering-strip strong { color: #1e40af; }
.gcw-cursor-panel { display: grid; grid-template-columns: minmax(150px, 0.9fr) repeat(3, minmax(160px, 1fr)); gap: 8px; margin: 0 0 8px; }
.gcw-cursor-ref, .gcw-cursor-card { min-width: 0; padding: 9px 10px; border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 13px; background: linear-gradient(180deg, #ffffff, #f8fafc); }
.gcw-cursor-ref span, .gcw-cursor-card span { display: block; color: #64748b; font-size: 9.5px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.gcw-cursor-ref strong, .gcw-cursor-card strong { display: block; color: #0f172a; font-size: 13px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcw-cursor-card small { display: block; margin-top: 3px; color: #64748b; font-size: 10.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcw-cursor-card.is-empty { opacity: 0.72; border-style: dashed; }
.gcw-cursor-delta { background: linear-gradient(180deg, #f8fafc, #eef4ff); border-color: rgba(37, 99, 235, 0.20); }
.gcw-event-table-wrap { margin: 0 0 8px; border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 14px; background: #ffffff; overflow: auto; max-height: 190px; }
.gcw-event-table-title { position: sticky; top: 0; z-index: 3; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid rgba(148, 163, 184, 0.20); }
.gcw-event-table-title strong { color: #0f172a; font-size: 12px; }
.gcw-event-table-title small { color: #64748b; font-size: 10.5px; }
.gcw-event-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 11.5px; }
.gcw-event-table th { position: sticky; top: 34px; z-index: 2; text-align: left; padding: 7px 9px; background: #f1f5f9; color: #334155; border-bottom: 1px solid rgba(148, 163, 184, 0.25); text-transform: uppercase; letter-spacing: 0.05em; font-size: 9.5px; }
.gcw-event-table td { padding: 7px 9px; border-bottom: 1px solid rgba(148, 163, 184, 0.14); color: #334155; vertical-align: top; white-space: nowrap; }
.gcw-event-table td strong { display: block; color: #0f172a; font-size: 11.5px; }
.gcw-event-table td small { display: block; color: #64748b; font-size: 10px; margin-top: 2px; }
.gcw-event-trip td:first-child { border-left: 3px solid rgba(220, 38, 38, 0.80); }
.gcw-event-pickup td:first-child { border-left: 3px solid rgba(234, 88, 12, 0.80); }
.gcw-event-breaker td:first-child { border-left: 3px solid rgba(37, 99, 235, 0.80); }
.gcw-event-alarm td:first-child { border-left: 3px solid rgba(124, 58, 237, 0.80); }
.gcw-root.gcw-analysis-mode .gcw-toolbar-select { min-height: 34px; padding: 5px 8px; border-radius: 12px; }
.gcw-root.gcw-analysis-mode .gcw-toolbar-select select { min-height: 26px; font-size: 11.5px; }
.gcw-root.gcw-analysis-mode .gcw-engineering-strip { padding: 6px 9px; font-size: 11px; }
.gcw-root.gcw-analysis-mode .gcw-cursor-panel { grid-template-columns: minmax(130px, 0.8fr) repeat(3, minmax(145px, 1fr)); gap: 7px; }
.gcw-root.gcw-analysis-mode .gcw-event-table-wrap { max-height: 170px; }
.gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card { max-height: calc(100vh - 365px); }
.gcw-root:fullscreen .gcw-canvas-card.gcw-combined-card { max-height: calc(100vh - 330px); }
@media (max-width: 1180px) { .gcw-toolbar-select { grid-template-columns: 1fr; min-width: 210px; } .gcw-cursor-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gcw-toolbar-select, .gcw-clear-cursors, .gcw-export-events { width: 100%; } .gcw-cursor-panel { grid-template-columns: 1fr; } .gcw-event-table-wrap { max-height: 230px; } .gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card { max-height: 520px; } }

.gcw-reference-control { display: inline-grid; grid-template-columns: auto minmax(180px, 240px); align-items: center; gap: 7px; min-height: 34px; padding: 6px 9px; border-radius: 12px; background: #f8fafc; border: 1px solid rgba(148, 163, 184, 0.30); color: #334155; font-size: 12px; font-weight: 850; }
.gcw-reference-control span { color: #475569; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.gcw-reference-control select { min-height: 30px; width: 100%; border: 1px solid rgba(148, 163, 184, 0.34); border-radius: 10px; background: #fff; color: #0f172a; font-size: 12px; font-weight: 750; padding: 4px 8px; outline: none; }
.gcw-reference-control select:focus { border-color: rgba(37, 99, 235, 0.72); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10); }
.gcw-engineering-hint { margin: 0 0 8px; padding: 8px 10px; border: 1px solid rgba(37, 99, 235, 0.14); border-radius: 13px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.055), rgba(14, 165, 233, 0.045)); color: #334155; font-size: 12px; line-height: 1.35; }
.gcw-engineering-hint strong { color: #1e40af; font-weight: 900; }
.gcw-cursor-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
.gcw-cursor-ref, .gcw-cursor-card { min-width: 0; padding: 9px 10px; border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 14px; background: #ffffff; box-shadow: 0 8px 16px rgba(15, 23, 42, 0.035); }
.gcw-cursor-ref span, .gcw-cursor-card span { display: block; margin-bottom: 3px; color: #64748b; font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: 0.06em; }
.gcw-cursor-ref strong, .gcw-cursor-card strong { display: block; color: #0f172a; font-size: 13px; font-weight: 950; line-height: 1.15; overflow-wrap: anywhere; }
.gcw-cursor-card small { display: block; margin-top: 3px; color: #475569; font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
.gcw-cursor-card.is-empty { background: rgba(248, 250, 252, 0.82); border-style: dashed; }
.gcw-cursor-card.is-empty strong { color: #64748b; }
.gcw-cursor-delta { border-color: rgba(124, 58, 237, 0.28); background: linear-gradient(135deg, rgba(124, 58, 237, 0.07), rgba(37, 99, 235, 0.05)); }
.gcw-cursor-delta strong { color: #6d28d9; }
.gcw-event-table-wrap { margin-top: 10px; padding: 10px; border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 16px; background: linear-gradient(180deg, #ffffff, #f8fafc); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035); overflow-x: auto; }
.gcw-event-table-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gcw-event-table-title strong { color: #0f172a; font-size: 13px; font-weight: 950; }
.gcw-event-count { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; color: #1e40af; background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.16); font-size: 11px; font-weight: 900; }
.gcw-event-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.gcw-event-table th { position: sticky; top: 0; z-index: 2; padding: 8px 9px; text-align: left; color: #475569; background: #f1f5f9; border-bottom: 1px solid rgba(148, 163, 184, 0.28); font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: 0.055em; }
.gcw-event-table td { padding: 8px 9px; vertical-align: top; border-bottom: 1px solid rgba(226, 232, 240, 0.86); color: #334155; }
.gcw-event-table td strong { display: block; color: #0f172a; font-weight: 900; }
.gcw-event-table td small { display: block; margin-top: 2px; color: #64748b; font-size: 10.5px; }
.gcw-event-row { cursor: pointer; transition: background 140ms ease; }
.gcw-event-row:hover td { background: rgba(37, 99, 235, 0.045); }
.gcw-event-trip td:first-child { border-left: 4px solid rgba(220, 38, 38, 0.80); }
.gcw-event-pickup td:first-child { border-left: 4px solid rgba(234, 88, 12, 0.80); }
.gcw-event-breaker td:first-child { border-left: 4px solid rgba(37, 99, 235, 0.80); }
.gcw-event-alarm td:first-child { border-left: 4px solid rgba(124, 58, 237, 0.78); }
.gcw-event-digital td:first-child { border-left: 4px solid rgba(15, 23, 42, 0.35); }
.gcw-root.gcw-analysis-mode .gcw-engineering-hint { margin-bottom: 6px; padding: 7px 9px; font-size: 11.5px; }
.gcw-root.gcw-analysis-mode .gcw-cursor-panel { gap: 6px; margin-bottom: 7px; }
.gcw-root.gcw-analysis-mode .gcw-cursor-ref, .gcw-root.gcw-analysis-mode .gcw-cursor-card { padding: 7px 8px; border-radius: 12px; }
.gcw-root.gcw-analysis-mode .gcw-event-table-wrap { margin-top: 8px; padding: 8px; border-radius: 14px; }
.gcw-root.gcw-analysis-mode .gcw-event-table th, .gcw-root.gcw-analysis-mode .gcw-event-table td { padding: 7px 8px; }
@media (max-width: 1180px) { .gcw-reference-control { grid-template-columns: 1fr; min-width: 210px; } .gcw-cursor-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gcw-reference-control { width: 100%; } .gcw-cursor-panel { grid-template-columns: 1fr; } .gcw-event-table { min-width: 680px; } }

body.zrk-comtrade-body .gcw-root {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
    transform: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    background: #f8fafc !important;
    overflow: hidden !important;
}
body.zrk-comtrade-body .gcw-ribbon { display: none !important; }
body.zrk-comtrade-body .gcw-grid { height: 100% !important; margin: 0 !important; gap: 4px !important; padding: 4px !important; overflow: auto !important; }
body.zrk-comtrade-body .gcw-panel { padding: 6px !important; border-radius: 8px !important; box-shadow: none !important; }
body.zrk-comtrade-body .gcw-panel-head { margin-bottom: 5px !important; gap: 6px !important; }
body.zrk-comtrade-body .gcw-panel-head h3 { font-size: 13px !important; line-height: 1.05 !important; }
body.zrk-comtrade-body .gcw-panel-head p { margin-top: 2px !important; font-size: 10px !important; line-height: 1.18 !important; }
body.zrk-comtrade-body .gcw-upload-grid { gap: 5px !important; }
body.zrk-comtrade-body .gcw-dropzone { min-height: 84px !important; gap: 4px !important; padding: 8px !important; border-radius: 10px !important; }
body.zrk-comtrade-body .gcw-upload-icon { width: 34px !important; height: 28px !important; border-radius: 8px !important; font-size: 10px !important; }
body.zrk-comtrade-body .gcw-dropzone strong { font-size: 12px !important; }
body.zrk-comtrade-body .gcw-dropzone small { font-size: 10px !important; }
body.zrk-comtrade-body .gcw-upload-help { max-width: 220px !important; font-size: 9px !important; line-height: 1.2 !important; }
body.zrk-comtrade-body .gcw-actions { margin-top: 6px !important; gap: 5px !important; }
body.zrk-comtrade-body .gcw-alert { margin-top: 5px !important; padding: 6px 8px !important; border-radius: 8px !important; font-size: 10.5px !important; line-height: 1.25 !important; }
body.zrk-comtrade-body .gcw-advanced-parser { margin-top: 6px !important; border-radius: 8px !important; }
body.zrk-comtrade-body .gcw-advanced-parser summary { padding: 6px 8px !important; font-size: 11px !important; }
body.zrk-comtrade-body .gcw-parser-grid { gap: 6px !important; padding: 0 8px 6px !important; }
body.zrk-comtrade-body .gcw-parser-grid select { min-height: 28px !important; border-radius: 8px !important; font-size: 11px !important; padding: 4px 6px !important; }
body.zrk-comtrade-body .gcw-parser-grid span { font-size: 9px !important; }
body.zrk-comtrade-body .gcw-advanced-parser p { padding: 0 8px 7px !important; font-size: 10px !important; line-height: 1.22 !important; }
body.zrk-comtrade-body .gcw-meta-empty { min-height: 88px !important; border-radius: 8px !important; font-size: 11px !important; }
body.zrk-comtrade-body .gcw-meta-chips { gap: 5px !important; }
body.zrk-comtrade-body .gcw-chip { padding: 5px 7px !important; border-radius: 8px !important; }
body.zrk-comtrade-body .gcw-chip span { margin-bottom: 1px !important; font-size: 8.5px !important; }
body.zrk-comtrade-body .gcw-chip strong { font-size: 10.5px !important; }

body.zrk-comtrade-body .gcw-root.gcw-analysis-mode {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-results:not([hidden]) {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 2px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-results-head {
    position: relative !important;
    top: auto !important;
    z-index: 5 !important;
    flex: 0 0 auto !important;
    min-height: 22px !important;
    margin: 0 0 2px !important;
    padding: 2px 4px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-results-head > div:first-child { display: none !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-toolbar {
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 3px !important;
    flex-wrap: wrap !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-btn,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-toggle,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-reference-control,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-toolbar-select {
    min-height: 20px !important;
    height: 20px !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    gap: 4px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-toggle input { width: 11px !important; height: 11px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-reference-control,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-toolbar-select { grid-template-columns: auto minmax(112px, 148px) !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-reference-control span,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-toolbar-select span { font-size: 8px !important; letter-spacing: 0.03em !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-reference-control select,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-toolbar-select select {
    min-height: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border-radius: 5px !important;
    font-size: 9.5px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-toolbar-divider { height: 18px !important; margin: 0 1px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary:not([hidden]) {
    flex: 0 0 auto !important;
    display: flex !important;
    gap: 3px !important;
    max-height: 22px !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    overflow: hidden !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary:not([hidden]) .gcw-chip {
    min-width: 92px !important;
    max-width: 150px !important;
    padding: 2px 5px !important;
    border-radius: 6px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary:not([hidden]) .gcw-chip span { display: none !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary:not([hidden]) .gcw-chip strong { font-size: 9.5px !important; line-height: 1.1 !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-workspace {
    --gcw-measure-width: clamp(330px, 29vw, 460px) !important;
    --gcw-measure-font: 10.6px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    grid-template-columns: minmax(30px, var(--gcw-measure-width)) 5px minmax(0, 1fr) !important;
    gap: 3px !important;
    overflow: hidden !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-pane,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-wave-pane { border-radius: 5px !important; box-shadow: none !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-pane-head {
    flex: 0 0 auto !important;
    min-height: 21px !important;
    padding: 2px 5px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-pane-head h4,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-wave-section-head h4 { font-size: 11px !important; line-height: 1.05 !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-pane-head p,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-wave-section-head p { display: none !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-channel-search {
    flex: 0 0 auto !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 2px 4px !important;
    width: calc(100% - 8px) !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-table th { padding: 3px 4px !important; font-size: 8.7px !important; line-height: 1.08 !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-table td { padding: 3px 4px !important; font-size: 10px !important; line-height: 1.12 !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-table strong { font-size: 10px !important; line-height: 1.1 !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-table small { font-size: 8.5px !important; line-height: 1.08 !important; margin-top: 1px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-table input[type="checkbox"] { width: 12px !important; height: 12px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-digital td:first-child::after,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-analog td:first-child::after { width: 14px !important; height: 10px !important; line-height: 10px !important; font-size: 7px !important; margin-top: 1px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-splitter { width: 5px !important; border-radius: 4px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-splitter::after { width: 2px !important; height: 36px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-wave-pane {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    padding: 2px !important;
    overflow: hidden !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-wave-section,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-combined-section {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 2px !important;
    border-radius: 5px !important;
    overflow: hidden !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-wave-section-head {
    flex: 0 0 auto !important;
    min-height: 20px !important;
    margin: 0 0 2px !important;
    align-items: center !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-mini-badge { min-height: 16px !important; padding: 2px 5px !important; font-size: 8.5px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-engineering-hint { display: none !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-panel {
    flex: 0 0 auto !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3px !important;
    margin: 0 0 2px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-ref,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-card { padding: 3px 5px !important; border-radius: 6px !important; box-shadow: none !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-ref span,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-card span { margin-bottom: 1px !important; font-size: 7.5px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-ref strong,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-card strong { font-size: 9.5px !important; line-height: 1.05 !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-card small { margin-top: 1px !important; font-size: 8px !important; line-height: 1.05 !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 5px !important;
    overflow: auto !important;
    box-shadow: none !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table-wrap {
    flex: 0 0 auto !important;
    max-height: 92px !important;
    margin-top: 2px !important;
    padding: 3px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table-title { margin-bottom: 2px !important; gap: 4px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table-title strong { font-size: 10px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-count { min-height: 15px !important; padding: 1px 5px !important; font-size: 8.5px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table { font-size: 9.5px !important; min-width: 620px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table th,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table td { padding: 3px 5px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table th { font-size: 8px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table td strong { font-size: 9.5px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table td small { font-size: 8px !important; margin-top: 1px !important; }
@media (max-width: 900px) {
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-workspace { display: grid !important; grid-template-columns: minmax(270px, 38vw) 4px minmax(0, 1fr) !important; }
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-panel { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-workspace { display: block !important; overflow: auto !important; }
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-pane { max-height: 36vh !important; margin-bottom: 3px !important; }
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-wave-pane { min-height: 58vh !important; overflow: visible !important; }
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card { min-height: 54vh !important; }
}

.gcw-workspace.gcw-measure-rail .gcw-measurements-pane {
    min-width: 0 !important;
    overflow: hidden !important;
}
.gcw-workspace.gcw-measure-rail .gcw-measurements-pane .gcw-channel-search,
.gcw-workspace.gcw-measure-rail .gcw-measurements-pane .gcw-measure-scroll,
.gcw-workspace.gcw-measure-rail .gcw-measurements-pane .gcw-pane-head p {
    display: none !important;
}
.gcw-workspace.gcw-measure-rail .gcw-measurements-pane .gcw-pane-head {
    height: 100% !important;
    min-height: 80px !important;
    padding: 3px 0 !important;
    align-items: center !important;
    justify-content: center !important;
}
.gcw-workspace.gcw-measure-rail .gcw-measurements-pane .gcw-pane-head h4 {
    writing-mode: vertical-rl !important;
    transform: rotate(180deg) !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 10px !important;
    line-height: 1 !important;
    margin: 0 auto !important;
}

body.gcw-comtrade-compact-host [data-gcw-compact-page-title="true"] {
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.32) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}
body.gcw-comtrade-compact-host [data-gcw-compact-page-title="true"] [data-gcw-compact-title-text="true"],
body.gcw-comtrade-compact-host [data-gcw-compact-title-text="true"] {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 18px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    max-width: none !important;
}
body.gcw-comtrade-compact-host [data-gcw-hidden-page-title="true"] { display: none !important; height: 0 !important; min-height: 0 !important; max-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }

.gcw-canvas-card.gcw-uplot-active { position: relative; overflow: auto; background: #fff; }
.gcw-canvas-card.gcw-uplot-active .gcw-combined-canvas { display: none !important; }
.gcw-uplot-host { position: relative; display: block; width: 100%; min-width: 1100px; min-height: 420px; background: #fff; border-radius: 14px; overflow: hidden; }
.gcw-uplot-host .uplot { display: block !important; width: max-content !important; min-width: 100% !important; max-width: none !important; }
.gcw-uplot-host .u-wrap { position: relative !important; background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.gcw-uplot-host .uplot canvas { max-width: none !important; }
.gcw-uplot-host .u-title, .gcw-uplot-host .u-legend { display: none !important; }
.gcw-uplot-host .u-over { cursor: crosshair; }
.gcw-uplot-host .u-axis { color: #475569; font-size: 11px; font-weight: 700; }
.gcw-uplot-relay-axis-hint { position: absolute; top: 6px; right: 10px; z-index: 10; pointer-events: none; color: #64748b; background: rgba(255,255,255,0.84); border: 1px solid rgba(148,163,184,0.24); border-radius: 999px; padding: 1px 7px; font-size: 9px; line-height: 13px; font-weight: 850; }
.gcw-uplot-host.gcw-uplot-has-relay-axis .u-axis { font-size: 10px; }
.gcw-uplot-host .u-select { background: rgba(37, 99, 235, 0.10) !important; border: 1px solid rgba(37, 99, 235, 0.35) !important; }
.gcw-uplot-event-layer { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.gcw-uplot-event-line, .gcw-uplot-cursor-line { position: absolute; top: 0; bottom: 0; width: 1px; pointer-events: none; }
.gcw-uplot-event-line span, .gcw-uplot-cursor-line span { position: absolute; top: 6px; left: 4px; padding: 1px 5px; border-radius: 999px; background: rgba(255,255,255,0.90); font-size: 9px; line-height: 12px; font-weight: 900; white-space: nowrap; box-shadow: 0 1px 4px rgba(15,23,42,0.10); }
.gcw-uplot-event-trip { background: rgba(220, 38, 38, 0.72); }
.gcw-uplot-event-trip span { color: #dc2626; }
.gcw-uplot-event-pickup { background: rgba(234, 88, 12, 0.62); border-left: 1px dashed rgba(234, 88, 12, 0.75); }
.gcw-uplot-event-pickup span { color: #ea580c; }
.gcw-uplot-event-breaker { background: rgba(37, 99, 235, 0.62); border-left: 1px dashed rgba(37, 99, 235, 0.75); }
.gcw-uplot-event-breaker span { color: #2563eb; }
.gcw-uplot-event-alarm, .gcw-uplot-event-digital { background: rgba(124, 58, 237, 0.46); border-left: 1px dashed rgba(124, 58, 237, 0.65); }
.gcw-uplot-event-alarm span, .gcw-uplot-event-digital span { color: #7c3aed; }
.gcw-uplot-cursor-A { width: 2px; background: rgba(220, 38, 38, 0.90); }
.gcw-uplot-cursor-B { width: 2px; background: rgba(124, 58, 237, 0.90); }
.gcw-uplot-cursor-A span { color: #dc2626; }
.gcw-uplot-cursor-B span { color: #7c3aed; }
.gcw-uplot-delta-span { position: absolute; top: 34px; height: 18px; border-top: 1px dashed rgba(15, 23, 42, 0.62); text-align: center; font-size: 10px; line-height: 16px; font-weight: 900; color: #0f172a; white-space: nowrap; overflow: visible; }
.gcw-uplot-delta-span::before, .gcw-uplot-delta-span::after { content: ""; position: absolute; top: -4px; width: 1px; height: 8px; background: rgba(15, 23, 42, 0.62); }
.gcw-uplot-delta-span::before { left: 0; }
.gcw-uplot-delta-span::after { right: 0; }
.gcw-uplot-channel-labels { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.gcw-uplot-channel-label { position: absolute; min-height: 28px; padding: 2px 4px; border-radius: 8px; background: rgba(255,255,255,0.84); color: #0f172a; box-sizing: border-box; overflow: hidden; }
.gcw-uplot-channel-label strong { display: block; font-size: 12px; line-height: 1.2; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcw-uplot-channel-label small { display: block; font-size: 10px; line-height: 1.18; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcw-uplot-channel-digital strong { font-size: 11px; }
.gcw-uplot-channel-digital small { font-size: 9.5px; }
.gcw-hover-tooltip { z-index: 20; }
@media (max-width: 640px) { .gcw-uplot-host { min-width: 920px; } .gcw-uplot-channel-label { width: 145px !important; } }

.gcw-uplot-host.gcw-uplot-has-relay-axis .u-axis { font-weight: 800; }

.gcw-uplot-relay-tick-layer { position: absolute; inset: 0; pointer-events: none; z-index: 14; overflow: hidden; }
.gcw-uplot-relay-tick { position: absolute; transform: translateX(-50%); color: #475569; background: rgba(255,255,255,0.82); border-radius: 6px; padding: 0 2px; font-size: 8.5px; line-height: 10px; font-weight: 850; white-space: nowrap; text-shadow: 0 1px 0 rgba(255,255,255,0.95); }
.gcw-uplot-host.gcw-uplot-has-relay-axis .u-axis { font-size: 10px; }

.gcw-event-table-wrap {
    --gcw-event-table-height: 190px;
    display: flex !important;
    flex-direction: column !important;
    height: var(--gcw-event-table-height, 190px) !important;
    min-height: 56px !important;
    max-height: min(62vh, 560px) !important;
    overflow: hidden !important;
    padding: 0 !important;
}
.gcw-event-resize-grip {
    flex: 0 0 11px !important;
    height: 11px !important;
    min-height: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: ns-resize !important;
    user-select: none !important;
    touch-action: none !important;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.72)) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.26) !important;
}
.gcw-event-resize-grip span {
    width: 42px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: rgba(100, 116, 139, 0.72) !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
}
.gcw-event-resize-grip:hover span,
body.gcw-event-table-resizing .gcw-event-resize-grip span { background: rgba(37, 99, 235, 0.85) !important; }
body.gcw-event-table-resizing { cursor: ns-resize !important; }
.gcw-event-table-title {
    flex: 0 0 auto !important;
    position: relative !important;
    top: auto !important;
    z-index: 5 !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24) !important;
}
.gcw-event-table-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    background: #ffffff !important;
}
.gcw-event-table-scroll:focus { outline: 2px solid rgba(37, 99, 235, 0.18) !important; outline-offset: -2px !important; }
.gcw-event-table { margin: 0 !important; }
.gcw-event-table thead th,
.gcw-event-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    background: #f1f5f9 !important;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.30) !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table-wrap {
    --gcw-event-table-height: 104px;
    height: var(--gcw-event-table-height, 104px) !important;
    min-height: 68px !important;
    max-height: min(58vh, 480px) !important;
    margin-top: 2px !important;
    padding: 0 !important;
    border-radius: 5px !important;
    overflow: hidden !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-resize-grip {
    flex-basis: 8px !important;
    height: 8px !important;
    min-height: 8px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-resize-grip span { width: 32px !important; height: 2px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table-title {
    min-height: 18px !important;
    padding: 2px 5px !important;
    margin: 0 !important;
    gap: 4px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table-scroll {
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table th,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table td { padding: 3px 5px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table th { top: 0 !important; font-size: 8px !important; }
@media (max-width: 640px) {
    .gcw-event-table-wrap { --gcw-event-table-height: 210px; max-height: 54vh !important; }
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table-wrap { --gcw-event-table-height: 155px; max-height: 50vh !important; }
}

.gcw-root.gcw-analysis-mode .gcw-wave-pane,
.gcw-root.gcw-analysis-mode .gcw-wave-section,
.gcw-root.gcw-analysis-mode .gcw-combined-section {
    min-height: 0 !important;
    overflow: hidden !important;
}
.gcw-root.gcw-analysis-mode .gcw-wave-pane,
.gcw-root.gcw-analysis-mode .gcw-combined-section {
    height: 100% !important;
}
.gcw-root.gcw-analysis-mode .gcw-combined-section {
    --gcw-waveform-min-height: 260px;
    --gcw-event-table-height: 190px;
    --gcw-wave-card-height: auto;
}
.gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card {
    flex: 1 1 var(--gcw-wave-card-height, auto) !important;
    min-height: var(--gcw-waveform-min-height, 260px) !important;
    overflow: auto !important;
}
.gcw-root.gcw-analysis-mode .gcw-event-table-wrap {
    flex: 0 0 var(--gcw-event-table-height, 190px) !important;
    height: var(--gcw-event-table-height, 190px) !important;
    max-height: calc(100% - var(--gcw-waveform-min-height, 260px)) !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-results:not([hidden]) {
    height: calc(100vh - 8px) !important;
    max-height: calc(100vh - 8px) !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-workspace {
    height: calc(100vh - 72px) !important;
    min-height: 420px !important;
    max-height: none !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-combined-section {
    --gcw-waveform-min-height: 170px;
    --gcw-event-table-height: 104px;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card {
    flex: 1 1 var(--gcw-wave-card-height, auto) !important;
    min-height: var(--gcw-waveform-min-height, 170px) !important;
    overflow: auto !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-event-table-wrap {
    flex: 0 0 var(--gcw-event-table-height, 104px) !important;
    height: var(--gcw-event-table-height, 104px) !important;
    max-height: calc(100% - var(--gcw-waveform-min-height, 170px)) !important;
}
body.gcw-event-table-resizing .gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card,
body.gcw-event-table-resizing .gcw-root.gcw-analysis-mode .gcw-event-table-wrap {
    transition: none !important;
}
@media (max-width: 760px) {
    .gcw-root.gcw-analysis-mode .gcw-workspace,
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-workspace {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    .gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card,
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card {
        height: auto !important;
        max-height: 520px !important;
        min-height: 320px !important;
    }
}

body.gcw-event-table-resizing .gcw-canvas-card.gcw-combined-card,
body.gcw-event-table-resizing .gcw-event-table-wrap { transition: none !important; }
body.gcw-event-table-resizing .gcw-canvas-card.gcw-combined-card { will-change: height; }
body.gcw-event-table-resizing .gcw-event-table-wrap { will-change: height; }

.gcw-root.gcw-analysis-mode .gcw-results { position: relative !important; overflow: hidden !important; }
.gcw-root.gcw-analysis-mode .gcw-results-head {
    min-height: 30px !important;
    margin-bottom: 4px !important;
    padding: 5px 7px !important;
    border-radius: 10px !important;
}
.gcw-root.gcw-analysis-mode .gcw-results-head > div:first-child {
    display: none !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-toolbar {
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
}
.gcw-root.gcw-analysis-mode .gcw-summary-toggle {
    min-width: 30px !important;
    width: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}
.gcw-root.gcw-analysis-mode .gcw-summary-toggle.is-open,
.gcw-root.gcw-analysis-mode.gcw-summary-open .gcw-summary-toggle {
    color: #fff !important;
    background: linear-gradient(135deg, var(--gcw-primary), var(--gcw-primary-dark)) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20) !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-summary {
    position: absolute !important;
    top: 42px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 80 !important;
    width: min(680px, calc(100% - 24px)) !important;
    max-height: min(58vh, 410px) !important;
    overflow: auto !important;
    margin: 0 !important;
    padding: 9px !important;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
    gap: 7px !important;
    border: 1px solid rgba(37, 99, 235, 0.24) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18) !important;
    backdrop-filter: blur(14px) !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-summary:not([hidden]) {
    display: grid !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-summary .gcw-chip {
    min-width: 0 !important;
    max-width: none !important;
    padding: 7px 9px !important;
    border-radius: 10px !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-summary .gcw-chip span {
    display: block !important;
    margin-bottom: 2px !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
}
.gcw-root.gcw-analysis-mode .gcw-analysis-summary .gcw-chip strong {
    font-size: 11.5px !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
}
.gcw-root.gcw-analysis-mode .gcw-workspace {
    min-height: calc(100vh - 118px) !important;
}
.gcw-root.gcw-analysis-mode .gcw-wave-section-head {
    min-height: 22px !important;
    margin-bottom: 3px !important;
    align-items: center !important;
}
.gcw-root.gcw-analysis-mode .gcw-wave-section-head p,
.gcw-root.gcw-analysis-mode .gcw-pane-head p,
.gcw-root.gcw-analysis-mode .gcw-engineering-hint {
    display: none !important;
}
.gcw-root.gcw-analysis-mode .gcw-pane-head {
    padding: 6px 8px 5px !important;
}
.gcw-root.gcw-analysis-mode .gcw-channel-search {
    margin: 5px 7px !important;
    width: calc(100% - 14px) !important;
    min-height: 26px !important;
    padding: 5px 8px !important;
}
.gcw-root.gcw-analysis-mode .gcw-measure-scroll {
    max-height: calc(100vh - 185px) !important;
}
.gcw-root.gcw-analysis-mode .gcw-wave-pane {
    max-height: calc(100vh - 96px) !important;
    padding: 4px !important;
}
.gcw-root.gcw-analysis-mode .gcw-wave-section,
.gcw-root.gcw-analysis-mode .gcw-combined-section {
    padding: 4px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-results-head {
    min-height: 22px !important;
    margin-bottom: 1px !important;
    padding: 1px 3px !important;
    border-radius: 4px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-toolbar {
    gap: 2px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-summary-toggle {
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 !important;
    font-size: 12px !important;
    border-radius: 5px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary {
    top: 25px !important;
    right: 4px !important;
    width: min(560px, calc(100% - 8px)) !important;
    max-height: min(62vh, 330px) !important;
    grid-template-columns: repeat(2, minmax(118px, 1fr)) !important;
    gap: 4px !important;
    padding: 5px !important;
    border-radius: 8px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary .gcw-chip {
    min-width: 0 !important;
    max-width: none !important;
    padding: 4px 6px !important;
    border-radius: 7px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary .gcw-chip span {
    display: block !important;
    font-size: 7.5px !important;
    line-height: 1.05 !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary .gcw-chip strong {
    font-size: 9.5px !important;
    line-height: 1.08 !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-workspace {
    height: calc(100vh - 42px) !important;
    min-height: 420px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-scroll {
    max-height: none !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-wave-pane {
    padding: 1px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-wave-section-head {
    min-height: 18px !important;
    margin-bottom: 1px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-panel {
    margin-bottom: 1px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-combined-section {
    --gcw-waveform-min-height: 185px;
}
@media (max-width: 760px) {
    .gcw-root.gcw-analysis-mode .gcw-analysis-summary,
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary {
        top: 40px !important;
        left: 6px !important;
        right: 6px !important;
        width: auto !important;
        grid-template-columns: 1fr !important;
        max-height: 60vh !important;
    }
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary { top: 25px !important; }
    body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-toolbar { flex-wrap: wrap !important; }
}

body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary:not([hidden]) {
    display: grid !important;
    max-height: min(62vh, 330px) !important;
    overflow: auto !important;
    margin: 0 !important;
    padding: 5px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary:not([hidden]) .gcw-chip span {
    display: block !important;
    margin-bottom: 1px !important;
    font-size: 7.5px !important;
    line-height: 1.05 !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-analysis-summary:not([hidden]) .gcw-chip strong {
    font-size: 9.5px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.gcw-root { --gcw-theme-header-height: 40px; --gcw-analysis-toolbar-height: 30px; --gcw-analysis-card-height: 118px; --gcw-panel-gap: 4px; }
body.gcw-comtrade-full-viewport { margin: 0 !important; }
body.gcw-comtrade-full-viewport.gcw-comtrade-analysis-active { overflow: hidden !important; }
body.gcw-comtrade-full-viewport .gcw-comtrade-host-container,
body.gcw-comtrade-full-viewport .site-content,
body.gcw-comtrade-full-viewport .content-area,
body.gcw-comtrade-full-viewport .site-main,
body.gcw-comtrade-full-viewport .inside-article,
body.gcw-comtrade-full-viewport .entry-content { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
body.gcw-comtrade-full-viewport .entry-content > .gcw-root.gcw-viewport-full { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
.gcw-root.gcw-viewport-full { width: 100vw !important; max-width: none !important; min-height: calc(100vh - var(--gcw-theme-header-height, 40px)) !important; margin: 0 auto !important; border-radius: 0 !important; padding: 8px !important; border-left: 0 !important; border-right: 0 !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode { height: calc(100vh - var(--gcw-theme-header-height, 40px)) !important; max-height: calc(100vh - var(--gcw-theme-header-height, 40px)) !important; min-height: 420px !important; padding: 2px !important; overflow: hidden !important; display: flex !important; flex-direction: column !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-ribbon,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-grid { display: none !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-results { flex: 1 1 auto !important; min-height: 0 !important; height: 100% !important; margin: 0 !important; padding: 2px !important; border-radius: 6px !important; overflow: hidden !important; display: flex !important; flex-direction: column !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-results-head { flex: 0 0 auto !important; min-height: 24px !important; margin-bottom: 2px !important; padding: 2px 4px !important; border-radius: 5px !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-toolbar { gap: 3px !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: thin !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-toolbar .gcw-btn,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-toolbar .gcw-toggle,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-toolbar .gcw-toolbar-select { min-height: 21px !important; height: 21px !important; padding: 2px 6px !important; border-radius: 6px !important; font-size: 10px !important; line-height: 1 !important; white-space: nowrap !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-summary-toggle { flex: 0 0 22px !important; width: 22px !important; min-width: 22px !important; padding: 0 !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-workspace { flex: 1 1 auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; grid-template-columns: minmax(30px, var(--gcw-measure-width, 500px)) 5px minmax(0, 1fr) !important; gap: 4px !important; overflow: hidden !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-pane,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-wave-pane,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-combined-section { min-height: 0 !important; max-height: none !important; height: 100% !important; overflow: hidden !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-wave-pane,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-combined-section { display: flex !important; flex-direction: column !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measure-scroll { max-height: none !important; flex: 1 1 auto !important; min-height: 0 !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-wave-section-head { flex: 0 0 auto !important; min-height: 18px !important; margin-bottom: 1px !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-cards { flex: 0 0 var(--gcw-analysis-card-height, 118px) !important; max-height: var(--gcw-analysis-card-height, 118px) !important; min-height: 70px !important; overflow: hidden !important; margin-bottom: 2px !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card { flex: 1 1 auto !important; height: auto !important; min-height: var(--gcw-waveform-min-height, 185px) !important; max-height: none !important; overflow: auto !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-event-table-wrap { flex: 0 0 var(--gcw-event-table-height, 104px) !important; height: var(--gcw-event-table-height, 104px) !important; max-height: calc(100% - var(--gcw-waveform-min-height, 185px)) !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-summary { top: 25px !important; right: 4px !important; width: min(640px, calc(100% - 8px)) !important; max-height: min(62vh, 330px) !important; }

.gcw-measure-table th:nth-child(1), .gcw-measure-table td:nth-child(1) { width: 6% !important; }
.gcw-measure-table th:nth-child(2), .gcw-measure-table td:nth-child(2) { width: 25% !important; }
.gcw-measure-table th:nth-child(3), .gcw-measure-table td:nth-child(3),
.gcw-measure-table th:nth-child(4), .gcw-measure-table td:nth-child(4),
.gcw-measure-table th:nth-child(5), .gcw-measure-table td:nth-child(5),
.gcw-measure-table th:nth-child(6), .gcw-measure-table td:nth-child(6),
.gcw-measure-table th:nth-child(7), .gcw-measure-table td:nth-child(7) { width: 11.5% !important; }
.gcw-measure-table th:nth-child(8), .gcw-measure-table td:nth-child(8) { width: 11% !important; }

.gcw-analysis-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin: 0 0 6px; }
.gcw-sequence-panel, .gcw-validation-panel { min-width: 0; min-height: 0; border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 12px; background: rgba(248, 250, 252, 0.96); overflow: hidden; display: flex; flex-direction: column; }
.gcw-mini-panel-title { flex: 0 0 auto; min-height: 24px; padding: 5px 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.20); background: #f1f5f9; }
.gcw-mini-panel-title strong { font-size: 11px; line-height: 1; color: #0f172a; }
.gcw-sequence-status, .gcw-validation-status { font-size: 9px; font-weight: 900; text-transform: uppercase; padding: 3px 6px; border-radius: 999px; background: #e2e8f0; color: #334155; white-space: nowrap; }
.gcw-status-ok, .gcw-status-complete { background: #dcfce7 !important; color: #166534 !important; }
.gcw-status-warnings, .gcw-status-partial { background: #fef3c7 !important; color: #92400e !important; }
.gcw-status-failed, .gcw-status-no-digital-events { background: #fee2e2 !important; color: #991b1b !important; }
.gcw-sequence-body, .gcw-validation-body { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 4px; }
.gcw-mini-scroll { max-height: 100%; overflow: auto; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.18); background: #fff; margin-bottom: 4px; }
.gcw-mini-table { width: 100%; border-collapse: collapse; font-size: 10.2px; line-height: 1.18; }
.gcw-mini-table th { position: sticky; top: 0; z-index: 1; padding: 4px 5px; text-align: left; background: #e2e8f0; color: #334155; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.gcw-mini-table td { padding: 4px 5px; border-top: 1px solid rgba(148, 163, 184, 0.16); color: #334155; vertical-align: top; overflow-wrap: anywhere; }
.gcw-mini-table tr.is-bad td, .gcw-validation-fail td { background: #fff1f2; color: #991b1b; }
.gcw-validation-warn td { background: #fffbeb; }
.gcw-validation-ok td { background: #f0fdf4; }
.gcw-validation-info td { background: #f8fafc; }
.gcw-mini-warnings { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.gcw-mini-warnings span { display: block; padding: 4px 6px; border-radius: 8px; background: #fffbeb; color: #92400e; font-size: 10px; line-height: 1.2; }
.gcw-cursor-window small { display: flex !important; flex-direction: column; gap: 2px; white-space: normal !important; }
.gcw-cursor-window small span { display: block; }

@media (max-width: 900px) {
    body.gcw-comtrade-full-viewport { overflow: auto !important; }
    .gcw-root.gcw-viewport-full,
    .gcw-root.gcw-viewport-full.gcw-analysis-mode { width: 100% !important; height: auto !important; max-height: none !important; min-height: 0 !important; overflow: visible !important; }
    .gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-workspace { display: block !important; overflow: visible !important; }
    .gcw-analysis-cards { grid-template-columns: 1fr; }
    .gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-cards { max-height: none !important; flex-basis: auto !important; }
}

.gcw-root { --gcw-insights-dock-top: 34px; }
.gcw-combined-section { position: relative !important; }
.gcw-analysis-cards.gcw-insights-dock,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-cards.gcw-insights-dock {
    position: absolute !important;
    top: var(--gcw-insights-dock-top, 34px) !important;
    right: 8px !important;
    left: auto !important;
    z-index: 40 !important;
    width: min(780px, calc(100% - 16px)) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
}
.gcw-analysis-cards.gcw-insights-dock[hidden] { display: none !important; }
.gcw-analysis-cards.gcw-insights-dock.is-collapsed {
    width: auto !important;
    max-width: calc(100% - 16px) !important;
}
.gcw-insights-toggle {
    pointer-events: auto !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 26px !important;
    padding: 3px 8px !important;
    border: 1px solid rgba(37, 99, 235, 0.22) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #0f172a !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
    font: inherit !important;
    cursor: pointer !important;
    backdrop-filter: blur(8px) !important;
}
.gcw-insights-toggle:hover { background: #eff6ff !important; border-color: rgba(37, 99, 235, 0.42) !important; }
.gcw-insights-toggle::before { content: "▾"; display: inline-block; font-size: 11px; line-height: 1; transform: rotate(-90deg); transition: transform 0.15s ease; color: #2563eb; }
.gcw-insights-toggle.is-open::before { transform: rotate(0deg); }
.gcw-insights-title { font-size: 10.5px !important; font-weight: 900 !important; white-space: nowrap !important; }
.gcw-insights-statuses { display: flex !important; align-items: center !important; gap: 5px !important; white-space: nowrap !important; }
.gcw-insights-statuses > span { display: inline-flex !important; align-items: center !important; gap: 3px !important; font-size: 8.5px !important; font-weight: 800 !important; color: #475569 !important; text-transform: uppercase !important; }
.gcw-insights-statuses .gcw-sequence-status,
.gcw-insights-statuses .gcw-validation-status {
    font-size: 8px !important;
    line-height: 1 !important;
    padding: 2px 5px !important;
    border-radius: 999px !important;
    max-width: 110px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.gcw-insights-content {
    pointer-events: auto !important;
    display: grid !important;
    grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.05fr) !important;
    gap: 8px !important;
    margin-top: 6px !important;
    padding: 8px !important;
    border: 1px solid rgba(148, 163, 184, 0.30) !important;
    border-radius: 14px !important;
    background: rgba(248, 250, 252, 0.98) !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.22) !important;
    backdrop-filter: blur(10px) !important;
    max-height: min(46vh, 390px) !important;
    overflow: hidden !important;
}
.gcw-analysis-cards.gcw-insights-dock.is-collapsed .gcw-insights-content { display: none !important; }
.gcw-insights-content .gcw-sequence-panel,
.gcw-insights-content .gcw-validation-panel {
    display: flex !important;
    min-height: 120px !important;
    max-height: min(42vh, 350px) !important;
}
.gcw-insights-content .gcw-sequence-panel[hidden],
.gcw-insights-content .gcw-validation-panel[hidden] { display: none !important; }
.gcw-insights-content .gcw-mini-panel-title { min-height: 22px !important; padding: 5px 7px !important; }
.gcw-insights-content .gcw-sequence-body,
.gcw-insights-content .gcw-validation-body { overflow: hidden !important; }
.gcw-insights-content .gcw-mini-scroll { max-height: 145px !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-canvas-card.gcw-combined-card {
    flex: 1 1 auto !important;
    min-height: max(var(--gcw-waveform-min-height, 185px), 260px) !important;
}
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-cards.gcw-insights-dock + .gcw-canvas-card.gcw-combined-card {
    margin-top: 0 !important;
}
@media (max-width: 900px) {
    .gcw-analysis-cards.gcw-insights-dock,
    .gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-cards.gcw-insights-dock {
        position: static !important;
        width: 100% !important;
        margin: 3px 0 !important;
        pointer-events: auto !important;
    }
    .gcw-insights-toggle { width: 100% !important; justify-content: space-between !important; border-radius: 10px !important; }
    .gcw-insights-content { grid-template-columns: 1fr !important; max-height: none !important; }
    .gcw-insights-content .gcw-sequence-panel,
    .gcw-insights-content .gcw-validation-panel { max-height: none !important; }
}

.gcw-analysis-toolbar { position: relative !important; }
.gcw-analysis-cards.gcw-insights-menu,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-cards.gcw-insights-menu {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 70 !important;
}
.gcw-analysis-cards.gcw-insights-menu[hidden] { display: none !important; }
.gcw-insights-menu .gcw-insights-toggle,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-insights-menu .gcw-insights-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: none !important;
    cursor: pointer !important;
    position: relative !important;
    backdrop-filter: none !important;
}
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-insights-menu .gcw-insights-toggle {
    width: 29px !important;
    min-width: 29px !important;
    height: 21px !important;
    min-height: 21px !important;
    border-radius: 6px !important;
}
.gcw-insights-menu .gcw-insights-toggle:hover,
.gcw-insights-menu .gcw-insights-toggle.is-open { background: #eff6ff !important; border-color: rgba(37, 99, 235, 0.55) !important; }
.gcw-insights-menu .gcw-insights-toggle::before { content: none !important; }
.gcw-insights-menu .gcw-insights-toggle::after {
    content: "Relay Sequence + Validation";
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    z-index: 100;
    display: none;
    min-width: max-content;
    padding: 5px 7px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}
.gcw-insights-menu .gcw-insights-toggle:hover::after { display: block; }
.gcw-insights-icon { display: inline-flex !important; align-items: center !important; justify-content: center !important; font-weight: 950 !important; line-height: 1 !important; }
.gcw-insights-sequence-icon { font-size: 13px !important; color: #2563eb !important; transform: translateX(2px); }
.gcw-insights-validation-icon { margin-left: -1px !important; font-size: 10px !important; color: #059669 !important; transform: translate(-1px, 5px); }
.gcw-insights-validation-icon.gcw-status-warn { color: #d97706 !important; }
.gcw-insights-validation-icon.gcw-status-failed { color: #dc2626 !important; }
.gcw-insights-menu .gcw-insights-content,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-insights-menu .gcw-insights-content {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 90 !important;
    width: min(760px, calc(100vw - 28px)) !important;
    max-height: min(48vh, 390px) !important;
    display: grid !important;
    grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.05fr) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid rgba(148, 163, 184, 0.32) !important;
    border-radius: 14px !important;
    background: rgba(248, 250, 252, 0.99) !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22) !important;
    backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
}
.gcw-insights-menu.is-collapsed .gcw-insights-content { display: none !important; }
.gcw-insights-menu .gcw-mini-panel-title { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; min-height: 22px !important; padding: 5px 7px !important; }
.gcw-insights-menu .gcw-sequence-panel,
.gcw-insights-menu .gcw-validation-panel { display: flex !important; min-height: 120px !important; max-height: min(42vh, 350px) !important; }
.gcw-insights-menu .gcw-sequence-panel[hidden],
.gcw-insights-menu .gcw-validation-panel[hidden] { display: none !important; }
.gcw-insights-menu .gcw-mini-scroll { max-height: 145px !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-cards.gcw-insights-menu + .gcw-toggle { margin-left: 0 !important; }
@media (max-width: 760px) {
    .gcw-analysis-cards.gcw-insights-menu { position: static !important; }
    .gcw-insights-menu .gcw-insights-content,
    .gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-insights-menu .gcw-insights-content {
        position: fixed !important;
        top: 52px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-height: 70vh !important;
        grid-template-columns: 1fr !important;
        overflow: auto !important;
    }
}

.gcw-analysis-cards.gcw-insights-menu,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-analysis-cards.gcw-insights-menu {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 20 !important;
}
.gcw-analysis-cards.gcw-insights-menu[hidden] { display: none !important; }
.gcw-insights-menu .gcw-insights-content { display: none !important; }
.gcw-insights-menu .gcw-insights-toggle,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-insights-menu .gcw-insights-toggle {
    width: 30px !important;
    min-width: 30px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    border: 1px solid rgba(37, 99, 235, 0.26) !important;
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.gcw-insights-menu .gcw-insights-toggle:hover,
.gcw-insights-menu .gcw-insights-toggle.is-open { background: #eff6ff !important; border-color: rgba(37, 99, 235, 0.58) !important; }
.gcw-insights-menu .gcw-insights-toggle::before { content: none !important; }
.gcw-insights-menu .gcw-insights-toggle::after { content: "Relay / Validation inspector" !important; }
.gcw-insights-sequence-icon { font-size: 13px !important; transform: translateX(2px) !important; }
.gcw-insights-validation-icon { font-size: 10px !important; transform: translate(-1px, 5px) !important; }

.gcw-side-inspector {
    flex: 0 0 auto !important;
    margin: 6px 0 6px !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden !important;
}
.gcw-side-inspector[hidden] { display: none !important; }
.gcw-side-inspector-head {
    min-height: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 4px 7px !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.20) !important;
    background: #eaf2ff !important;
}
.gcw-side-inspector-title { font-size: 11px !important; line-height: 1 !important; font-weight: 950 !important; color: #0f172a !important; }
.gcw-side-inspector-close {
    width: 20px !important;
    height: 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.08) !important;
    color: #334155 !important;
    cursor: pointer !important;
    font-size: 15px !important;
    line-height: 18px !important;
    font-weight: 900 !important;
}
.gcw-side-inspector-close:hover { background: rgba(220, 38, 38, 0.12) !important; color: #b91c1c !important; }
.gcw-cursor-inspector,
.gcw-insights-drawer {
    padding: 6px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
}
.gcw-cursor-inspector[hidden],
.gcw-insights-drawer[hidden] { display: none !important; }
.gcw-insights-drawer .gcw-sequence-panel,
.gcw-insights-drawer .gcw-validation-panel,
.gcw-cursor-inspector {
    min-height: 0 !important;
    max-height: none !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
}
.gcw-insights-drawer .gcw-mini-scroll,
.gcw-cursor-inspector .gcw-mini-scroll {
    max-height: 138px !important;
    overflow: auto !important;
}
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-insights-drawer .gcw-mini-scroll,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-cursor-inspector .gcw-mini-scroll {
    max-height: 118px !important;
}

.gcw-root.gcw-analysis-mode .gcw-cursor-panel,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-cursor-panel,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-cursor-panel {
    display: block !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}
.gcw-cursor-panel[hidden] { display: none !important; }
.gcw-cursor-strip {
    min-height: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 5px !important;
    border: 1px solid rgba(148, 163, 184, 0.20) !important;
    border-radius: 9px !important;
    background: rgba(248, 250, 252, 0.96) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
}
.gcw-cursor-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    max-width: 260px !important;
    padding: 2px 6px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
}
.gcw-cursor-chip b { font-size: 9px !important; font-weight: 950 !important; color: #2563eb !important; text-transform: uppercase !important; }
.gcw-cursor-chip em { font-style: normal !important; font-size: 10px !important; font-weight: 900 !important; color: #0f172a !important; }
.gcw-cursor-chip small { display: inline !important; margin: 0 !important; font-size: 9px !important; line-height: 1 !important; color: #64748b !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.gcw-cursor-chip.is-empty { opacity: 0.65 !important; border-style: dashed !important; }
.gcw-cursor-ref-chip b { color: #475569 !important; }
.gcw-cursor-delta-chip { border-color: rgba(124, 58, 237, 0.25) !important; background: #f5f3ff !important; }
.gcw-cursor-delta-chip b,
.gcw-cursor-delta-chip em { color: #6d28d9 !important; }
.gcw-cursor-detail-toggle,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-cursor-detail-toggle {
    flex: 0 0 auto !important;
    min-height: 20px !important;
    height: 20px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
}
@media (max-width: 900px) {
    .gcw-side-inspector { margin: 6px 0 !important; }
    .gcw-cursor-strip { flex-wrap: nowrap !important; }
    .gcw-cursor-chip { max-width: 200px !important; }
}

.gcw-multi-toggle,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-multi-toggle {
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}
.gcw-multi-toggle.is-open { background: #ecfeff !important; border-color: rgba(8, 145, 178, 0.45) !important; color: #155e75 !important; }
.gcw-multi-inspector {
    padding: 6px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    border: 1px solid rgba(8, 145, 178, 0.20) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    overflow: hidden !important;
}
.gcw-multi-inspector[hidden] { display: none !important; }
.gcw-multi-inspector .gcw-mini-panel-title { background: #ecfeff !important; }
.gcw-multi-status { color: #155e75 !important; background: #cffafe !important; border-color: rgba(8,145,178,0.25) !important; }
.gcw-multi-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px !important;
}
.gcw-multi-controls label {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 6px !important;
    align-items: center !important;
    margin: 0 !important;
}
.gcw-multi-controls span { font-size: 9px !important; font-weight: 900 !important; text-transform: uppercase !important; color: #475569 !important; letter-spacing: 0.03em !important; }
.gcw-multi-controls select,
.gcw-multi-controls input {
    width: 100% !important;
    min-height: 24px !important;
    height: 24px !important;
    padding: 2px 6px !important;
    border-radius: 7px !important;
    border: 1px solid rgba(148, 163, 184, 0.36) !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 10px !important;
    line-height: 1 !important;
}
.gcw-multi-body .gcw-mini-scroll { max-height: 185px !important; overflow: auto !important; }
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-multi-body .gcw-mini-scroll { max-height: 136px !important; }
.gcw-multi-table td small { display: block !important; margin-top: 2px !important; font-size: 8.5px !important; color: #64748b !important; }
.gcw-record-visible { display: inline-flex !important; align-items: center !important; gap: 4px !important; margin: 0 !important; font-weight: 900 !important; color: #0f172a !important; }
.gcw-record-visible input { width: 13px !important; height: 13px !important; margin: 0 !important; }
.gcw-mini-warnings.is-info span { background: #eff6ff !important; color: #1d4ed8 !important; }
.gcw-event-record td:first-child { border-left: 4px solid rgba(2, 132, 199, 0.82) !important; }
.gcw-event-record td { background: rgba(236, 254, 255, 0.52) !important; }
.gcw-uplot-event-record { background: rgba(2, 132, 199, 0.72) !important; width: 2px !important; }
.gcw-uplot-event-record span { color: #0369a1 !important; background: rgba(236, 254, 255, 0.94) !important; }
@media (max-width: 900px) {
    .gcw-multi-controls label { grid-template-columns: 1fr !important; }
    .gcw-multi-toggle { flex: 0 0 auto !important; }
}

.gcw-root [title] { cursor: help; }
.gcw-root button[title],
.gcw-root select[title],
.gcw-root input[title],
.gcw-root .gcw-splitter,
.gcw-root .gcw-event-resize-grip,
.gcw-root .gcw-mini-resize-grip,
.gcw-root .gcw-channel-drag { cursor: inherit; }

.gcw-plot-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
}
.gcw-channel-drag {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 18px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(148, 163, 184, 0.34) !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    cursor: grab !important;
    user-select: none !important;
}
.gcw-channel-drag:hover { background: #eff6ff !important; color: #1d4ed8 !important; border-color: rgba(37, 99, 235, 0.38) !important; }
.gcw-channel-drag:active { cursor: grabbing !important; }
.gcw-measure-row.is-dragging td { opacity: 0.56 !important; background: #f8fafc !important; }
.gcw-measure-row.is-drop-before td { box-shadow: inset 0 3px 0 rgba(37, 99, 235, 0.82) !important; }
.gcw-measure-row.is-drop-after td { box-shadow: inset 0 -3px 0 rgba(37, 99, 235, 0.82) !important; }
.gcw-measure-row[data-channel-key] { user-select: none; }

.gcw-mini-resizable {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 86px !important;
    max-height: min(78vh, 720px) !important;
    overflow: hidden !important;
}
.gcw-mini-resizable .gcw-multi-body,
.gcw-mini-resizable .gcw-sequence-body,
.gcw-mini-resizable .gcw-validation-body,
.gcw-mini-resizable .gcw-cursor-inspector-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
}
.gcw-mini-resizable .gcw-mini-scroll {
    max-height: none !important;
    overflow: auto !important;
}
.gcw-mini-resize-grip {
    flex: 0 0 10px !important;
    height: 10px !important;
    min-height: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: ns-resize !important;
    user-select: none !important;
    touch-action: none !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.86)) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.26) !important;
}
.gcw-mini-resize-grip span {
    width: 36px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: rgba(100, 116, 139, 0.68) !important;
}
.gcw-mini-resize-grip:hover span,
body.gcw-mini-panel-resizing .gcw-mini-resize-grip span { background: rgba(37, 99, 235, 0.86) !important; }
body.gcw-mini-panel-resizing { cursor: ns-resize !important; user-select: none !important; }
.gcw-mini-panel-title-resizable { cursor: help !important; }

.gcw-event-table-title {
    cursor: ns-resize !important;
    user-select: none !important;
}
.gcw-event-table-title:hover { background: #eff6ff !important; }
.gcw-event-table-wrap { min-height: 64px !important; }
.gcw-event-table-scroll { min-height: 0 !important; }

body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-channel-drag {
    width: 13px !important;
    height: 14px !important;
    font-size: 9px !important;
    border-radius: 4px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-plot-cell { gap: 2px !important; }
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-mini-resize-grip {
    flex-basis: 8px !important;
    height: 8px !important;
    min-height: 8px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-mini-resize-grip span { width: 30px !important; height: 2px !important; }
.gcw-root button[title] { cursor: pointer !important; }
.gcw-root select[title], .gcw-root input[title] { cursor: help; }
.gcw-root .gcw-splitter { cursor: col-resize !important; }
.gcw-root .gcw-event-resize-grip, .gcw-root .gcw-mini-resize-grip { cursor: ns-resize !important; }
.gcw-mini-resizable[hidden],
.gcw-multi-inspector[hidden],
.gcw-cursor-inspector[hidden],
.gcw-sequence-panel[hidden],
.gcw-validation-panel[hidden] { display: none !important; }
.gcw-root .gcw-measure-table th:nth-child(1),
.gcw-root .gcw-measure-table td:nth-child(1) {
    width: 96px !important;
    min-width: 96px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-table th:nth-child(1),
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-table td:nth-child(1) {
    width: 88px !important;
    min-width: 88px !important;
}

.gcw-root .gcw-plot-cell {
    justify-content: flex-start !important;
    gap: 3px !important;
    white-space: nowrap !important;
}
.gcw-root .gcw-channel-drag {
    width: auto !important;
    min-width: 44px !important;
    height: 20px !important;
    padding: 0 5px !important;
    cursor: grab !important;
    touch-action: none !important;
    -webkit-user-drag: element !important;
    font-size: 10px !important;
}
.gcw-root .gcw-channel-drag:focus {
    outline: 2px solid rgba(37, 99, 235, 0.42) !important;
    outline-offset: 1px !important;
}
.gcw-root .gcw-channel-move {
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    border-radius: 5px !important;
    border: 1px solid rgba(148, 163, 184, 0.45) !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}
.gcw-root .gcw-channel-move:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: rgba(37, 99, 235, 0.45) !important;
}
.gcw-measure-table tbody.is-channel-reordering .gcw-measure-row:not(.is-dragging) td {
    transition: box-shadow 90ms ease, background 90ms ease !important;
}
body.gcw-channel-reordering-active {
    cursor: grabbing !important;
    user-select: none !important;
}
body.gcw-channel-reordering-active .gcw-channel-drag {
    cursor: grabbing !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-channel-drag {
    min-width: 36px !important;
    width: auto !important;
    height: 16px !important;
    padding: 0 3px !important;
    font-size: 8px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-channel-move {
    width: 15px !important;
    height: 15px !important;
    font-size: 9px !important;
}

.gcw-root .gcw-measure-table th:nth-child(1),
.gcw-root .gcw-measure-table td:nth-child(1) {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-table th:nth-child(1),
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measure-table td:nth-child(1) {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
}
.gcw-root .gcw-plot-cell {
    justify-content: center !important;
    gap: 0 !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
}
.gcw-root .gcw-channel-drag,
.gcw-root .gcw-channel-move {
    display: none !important;
}
.gcw-root .gcw-measure-row[data-channel-key] {
    cursor: grab !important;
    touch-action: none !important;
}
.gcw-root .gcw-measure-row[data-channel-key]:active,
.gcw-root .gcw-measure-row.is-dragging {
    cursor: grabbing !important;
}
.gcw-root .gcw-measure-row[data-channel-key]:focus {
    outline: 2px solid rgba(37, 99, 235, 0.30) !important;
    outline-offset: -2px !important;
}
.gcw-root .gcw-measure-toggle {
    cursor: pointer !important;
    touch-action: auto !important;
}
body.gcw-channel-reordering-active,
body.gcw-channel-reordering-active .gcw-measure-row[data-channel-key] {
    cursor: grabbing !important;
    user-select: none !important;
}

.gcw-root .gcw-plot-rescale-btn {
    appearance: none !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    background: #eef4ff !important;
    color: #1e40af !important;
    border-radius: 999px !important;
    min-height: 28px !important;
    padding: 5px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08) !important;
}
.gcw-root .gcw-plot-rescale-btn:hover,
.gcw-root .gcw-plot-rescale-btn:focus {
    background: #dbeafe !important;
    transform: translateY(-1px) !important;
    outline: 2px solid rgba(37, 99, 235, 0.20) !important;
    outline-offset: 1px !important;
}
.gcw-root.gcw-analysis-mode .gcw-plot-rescale-btn {
    min-height: 24px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-plot-rescale-btn,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-plot-rescale-btn {
    min-height: 18px !important;
    height: 18px !important;
    padding: 1px 6px !important;
    border-radius: 6px !important;
    font-size: 9px !important;
    box-shadow: none !important;
}
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-plot-rescale-btn span,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-plot-rescale-btn span {
    display: none !important;
}

.gcw-workspace {
  position: relative;
  grid-template-columns: 44px minmax(30px, var(--gcw-measure-width, 370px)) 10px minmax(0, 1fr);
}
.gcw-engineering-tool-rail {
  grid-column: 1;
  min-width: 0;
  border: 1px solid rgba(30, 64, 175, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  width: 44px;
  transition: width 0.18s ease, box-shadow 0.18s ease;
  z-index: 24;
}
.gcw-engineering-tool-rail:hover,
.gcw-engineering-tool-rail:focus-within {
  width: 164px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.26);
}
.gcw-tool-rail-inner {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 6px;
  position: sticky;
  top: 8px;
}
.gcw-tool-btn {
  appearance: none;
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5eefc;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.gcw-tool-btn:hover,
.gcw-tool-btn:focus-visible,
.gcw-tool-btn.is-active {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(147, 197, 253, 0.65);
  transform: translateX(1px);
  outline: none;
}
.gcw-tool-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
}
.gcw-tool-label {
  opacity: 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.gcw-engineering-tool-rail:hover .gcw-tool-label,
.gcw-engineering-tool-rail:focus-within .gcw-tool-label {
  opacity: 1;
  transform: translateX(0);
}
.gcw-engineering-tool-drawer {
  position: absolute;
  left: 52px;
  top: 0;
  bottom: 0;
  width: min(620px, calc(100vw - 96px));
  max-width: calc(100% - 60px);
  z-index: 22;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gcw-tool-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.gcw-tool-drawer-head strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}
.gcw-tool-drawer-head p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
}
.gcw-tool-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}
.gcw-tool-export,
.gcw-tool-recalculate,
.gcw-tool-close {
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: #fff;
  border-radius: 10px;
  padding: 6px 9px;
  min-height: 30px;
  cursor: pointer;
  font-weight: 850;
  font-size: 12px;
  color: #334155;
}
.gcw-tool-close {
  font-size: 18px;
  line-height: 1;
  padding: 3px 8px 5px;
}
.gcw-tool-export:hover,
.gcw-tool-recalculate:hover,
.gcw-tool-close:hover {
  border-color: rgba(37, 99, 235, 0.55);
  color: #1d4ed8;
}
.gcw-engineering-tool-body {
  padding: 12px;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
}
.gcw-tool-empty {
  border: 1px dashed rgba(148, 163, 184, 0.5);
  border-radius: 16px;
  padding: 18px;
  background: #f8fafc;
  color: #475569;
}
.gcw-tool-note {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
  background: #eff6ff;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 10px;
}
.gcw-tool-note.is-warning {
  border-color: rgba(234, 88, 12, 0.30);
  background: #fff7ed;
  color: #7c2d12;
}
.gcw-tool-grid2 {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: 12px;
  align-items: start;
}
.gcw-tool-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.gcw-tool-kpis div {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}
.gcw-tool-kpis strong {
  display: block;
  font-size: 18px;
  color: #0f172a;
}
.gcw-tool-kpis span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}
.gcw-tool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
}
.gcw-tool-table th,
.gcw-tool-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}
.gcw-tool-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.gcw-tool-graph {
  display: block;
  width: 100%;
  max-height: 260px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: #ffffff;
  margin: 0 0 10px;
}
.gcw-tool-axis { stroke: #94a3b8; stroke-width: 1.2; }
.gcw-tool-grid { fill: none; stroke: #cbd5e1; stroke-dasharray: 3 4; }
.gcw-tool-zone { fill: rgba(59, 130, 246, 0.05); stroke: rgba(37, 99, 235, 0.35); stroke-dasharray: 5 5; }
.gcw-tool-svg-bar { fill: rgba(37, 99, 235, 0.78); }
.gcw-tool-svg-label { fill: #334155; font-size: 10px; font-weight: 700; }
.gcw-tool-phasor-line { stroke: #2563eb; stroke-width: 2.5; marker-end: none; }
.gcw-tool-phasor-1 { stroke: #dc2626; }
.gcw-tool-phasor-2 { stroke: #059669; }
.gcw-tool-phasor-3 { stroke: #7c3aed; }
.gcw-tool-phasor-4 { stroke: #ea580c; }
.gcw-tool-phasor-5 { stroke: #0891b2; }
.gcw-tool-phasor-dot,
.gcw-tool-rx-point { fill: #1d4ed8; stroke: #fff; stroke-width: 1.4; }
.gcw-tool-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.gcw-tool-input-label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 7px;
  background: #fff;
  font-size: 12px;
}
.gcw-tool-input-label span {
  flex: 1 1 auto;
  color: #334155;
  font-weight: 800;
}
.gcw-tool-input-label input {
  width: 74px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  padding: 5px 6px;
}
.gcw-tool-input-label em {
  font-style: normal;
  color: #64748b;
  font-size: 11px;
}
.gcw-fault-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
  font-size: 11px;
  color: #475569;
  font-weight: 800;
}
.gcw-fault-line div {
  height: 14px;
  border-radius: 999px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.gcw-fault-line i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #22c55e, #f97316);
  border-radius: 999px;
}
@media (max-width: 900px) {
  .gcw-workspace {
    display: block;
  }
  .gcw-engineering-tool-rail {
    width: 100%;
    margin-bottom: 10px;
  }
  .gcw-tool-rail-inner {
    flex-direction: row;
    overflow-x: auto;
  }
  .gcw-tool-btn {
    width: auto;
    min-width: 44px;
  }
  .gcw-tool-label {
    opacity: 1;
    transform: none;
  }
  .gcw-engineering-tool-drawer {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin-bottom: 10px;
  }
  .gcw-tool-grid2,
  .gcw-tool-input-grid,
  .gcw-tool-kpis {
    grid-template-columns: 1fr;
  }
}

.gcw-root.gcw-analysis-mode .gcw-workspace,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-workspace,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-workspace {
  grid-template-columns: minmax(320px, var(--gcw-measure-width, 500px)) 6px minmax(0, 1fr) !important;
  gap: 6px !important;
}
.gcw-measurements-pane.gcw-measurements-with-dock {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}
.gcw-measurements-with-dock .gcw-module-dock,
.gcw-measurements-with-dock .gcw-engineering-tool-rail {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  grid-column: 1 !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 100% !important;
  border: 0 !important;
  border-right: 1px solid rgba(148, 163, 184, 0.30) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #0f172a, #1e293b) !important;
  box-shadow: none !important;
  overflow: hidden auto !important;
  z-index: 2 !important;
  transition: none !important;
}
.gcw-measurements-with-dock .gcw-module-dock:hover,
.gcw-measurements-with-dock .gcw-module-dock:focus-within {
  width: 42px !important;
  max-width: 42px !important;
  box-shadow: none !important;
}
.gcw-measurements-with-dock .gcw-tool-rail-inner {
  position: sticky !important;
  top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding: 6px 4px !important;
}
.gcw-measurements-with-dock .gcw-tool-btn {
  width: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  text-align: center !important;
  transform: none !important;
}
.gcw-measurements-with-dock .gcw-tool-btn:hover,
.gcw-measurements-with-dock .gcw-tool-btn:focus-visible,
.gcw-measurements-with-dock .gcw-tool-btn.is-active {
  transform: none !important;
  background: rgba(59, 130, 246, 0.36) !important;
}
.gcw-measurements-with-dock .gcw-tool-icon {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  border-radius: 9px !important;
}
.gcw-measurements-with-dock .gcw-tool-label {
  display: none !important;
  opacity: 0 !important;
  transform: none !important;
}
.gcw-measurements-with-dock .gcw-measurements-main {
  grid-column: 2 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.gcw-measurements-with-dock .gcw-measurement-browser {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-measurement-browser {
  display: none !important;
}
.gcw-measurements-with-dock .gcw-engineering-query-page,
.gcw-measurements-with-dock .gcw-engineering-tool-drawer {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
  overflow: hidden !important;
  flex: 1 1 auto !important;
}
.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-engineering-query-page:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
}
.gcw-measurements-with-dock .gcw-tool-drawer-head {
  padding: 8px 10px !important;
  gap: 8px !important;
  align-items: center !important;
  min-height: 44px !important;
  background: linear-gradient(180deg, #f8fbff, #ffffff) !important;
}
.gcw-measurements-with-dock .gcw-tool-drawer-head strong { font-size: 13px !important; }
.gcw-measurements-with-dock .gcw-tool-drawer-head p { font-size: 10px !important; margin-top: 1px !important; }
.gcw-measurements-with-dock .gcw-tool-drawer-actions { gap: 3px !important; }
.gcw-tool-chart-action,
.gcw-measurements-with-dock .gcw-tool-export,
.gcw-measurements-with-dock .gcw-tool-recalculate,
.gcw-measurements-with-dock .gcw-tool-close {
  min-height: 24px !important;
  padding: 3px 6px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
}
.gcw-tool-chart-action.is-active {
  background: #dbeafe !important;
  border-color: rgba(37, 99, 235, 0.55) !important;
  color: #1d4ed8 !important;
}
.gcw-measurements-with-dock .gcw-engineering-tool-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 8px !important;
  overflow: auto !important;
}
.gcw-query-page { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.gcw-query-page-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 8px 9px;
  background: #f8fafc;
}
.gcw-query-page-head strong { color: #0f172a; font-size: 13px; }
.gcw-query-page-head p { margin: 2px 0 0; color: #64748b; font-size: 11px; line-height: 1.25; }
.gcw-query-page-head small { color: #64748b; font-size: 10px; text-align: right; max-width: 140px; }
.gcw-query-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.gcw-query-status span,
.gcw-chart-measure-box span,
.gcw-chart-measure-box small {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 9px;
  padding: 5px 7px;
  background: #fff;
  font-size: 10.5px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gcw-assumption-panel {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  background: #f8fbff;
  padding: 6px 8px;
}
.gcw-assumption-panel summary {
  cursor: pointer;
  font-weight: 900;
  color: #1e40af;
  font-size: 11px;
}
.gcw-assumption-panel p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.35;
}
.gcw-query-chart-wrap {
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 14px;
  padding: 8px;
  background: #ffffff;
}
.gcw-query-chart-wrap[data-chart-mode="zoom"] { box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.18); cursor: zoom-in; }
.gcw-query-chart-wrap[data-chart-mode="pan"] { cursor: grab; }
.gcw-query-chart-wrap[data-chart-mode="measure"] { box-shadow: inset 0 0 0 2px rgba(234, 88, 12, 0.18); cursor: crosshair; }
.gcw-chart-measure-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  padding: 7px;
  background: #f8fafc;
}
.gcw-chart-measure-box strong { grid-column: 1 / -1; color: #0f172a; font-size: 12px; }
.gcw-chart-measure-box small { grid-column: 1 / -1; background: #fff7ed; color: #7c2d12; }
.gcw-measurements-with-dock .gcw-tool-grid2 { grid-template-columns: 1fr !important; }
.gcw-measurements-with-dock .gcw-tool-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.gcw-measurements-with-dock .gcw-tool-input-label { padding: 5px !important; font-size: 10.5px !important; }
.gcw-measurements-with-dock .gcw-tool-input-label input { width: 62px !important; padding: 3px 4px !important; }
.gcw-measurements-with-dock .gcw-tool-note { font-size: 10.5px !important; padding: 7px 8px !important; margin-bottom: 7px !important; }
.gcw-measurements-with-dock .gcw-tool-table { font-size: 10.5px !important; }
.gcw-measurements-with-dock .gcw-tool-table th,
.gcw-measurements-with-dock .gcw-tool-table td { padding: 5px 6px !important; }
.gcw-measurements-with-dock .gcw-tool-graph { max-height: 210px !important; margin-bottom: 7px !important; border-radius: 12px !important; }
@media (max-width: 900px) {
  .gcw-root.gcw-analysis-mode .gcw-workspace,
  body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-workspace,
  .gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-workspace { display: block !important; }
  .gcw-measurements-pane.gcw-measurements-with-dock { min-height: 320px !important; max-height: 48vh !important; margin-bottom: 6px !important; }
}

.gcw-root.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock {
  grid-template-columns: 40px minmax(0, 1fr) !important;
  background: #ffffff !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 {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 48%, #e0f2fe 100%) !important;
  border-right: 1px solid rgba(37, 99, 235, 0.24) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.92) !important;
  border-radius: 0 !important;
  color: #1e3a8a !important;
  overflow: visible !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(37,99,235,0.34) transparent !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-inner,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-inner,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-inner {
  gap: 4px !important;
  padding: 5px 3px !important;
  overflow: visible !important;
  position: sticky !important;
  top: 0 !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;
  display: flex !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 31px !important;
  min-height: 31px !important;
  max-height: 31px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 9px !important;
  border: 1px solid rgba(37, 99, 235, 0.24) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #1e40af !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  opacity: 1 !important;
  visibility: visible !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  z-index: 5 !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: #dbeafe !important;
  border-color: rgba(29, 78, 216, 0.70) !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
  outline: none !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: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-home:not(.is-active),
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-home:not(.is-active),
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-home:not(.is-active) {
  background: #ecfeff !important;
  color: #0e7490 !important;
  border-color: rgba(14, 116, 144, 0.32) !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 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 27px !important;
  flex: 0 0 30px !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: currentColor !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  text-align: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="phasor"] .gcw-tool-icon { font-size: 17px !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="differential"] .gcw-tool-icon { font-size: 10px !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="sequence"] .gcw-tool-icon { font-size: 9px !important; letter-spacing: -0.06em !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-label,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-label,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-label {
  display: none !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 {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 7px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  min-width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 22px rgba(15,23,42,0.22);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tip]:hover::after,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tip]:focus-visible::after,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tip]:hover::after,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tip]:focus-visible::after,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tip]:hover::after,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tip]:focus-visible::after {
  opacity: 1 !important;
  visibility: visible !important;
}

.gcw-root.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock {
  grid-template-columns: 46px minmax(0, 1fr) !important;
  background: #ffffff !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 {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 100% !important;
  background: #ffffff !important;
  border: 0 !important;
  border-right: 1px solid #d9e4e7 !important;
  border-radius: 0 !important;
  box-shadow: 2px 0 7px rgba(15, 23, 42, 0.05) !important;
  color: #597073 !important;
  overflow: hidden auto !important;
  scrollbar-width: none !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock::-webkit-scrollbar,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-inner,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-inner,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-inner {
  padding: 7px 4px !important;
  gap: 6px !important;
  align-items: center !important;
  position: sticky !important;
  top: 0 !important;
  background: #ffffff !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 {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #5d7476 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !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: #f1f7f7 !important;
  color: #0f766e !important;
  outline: 2px solid rgba(20, 184, 166, 0.22) !important;
  outline-offset: -2px !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,
.gcw-root:not(.gcw-tool-open).gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-home {
  background: #e7fff8 !important;
  color: #008a7a !important;
  box-shadow: inset 3px 0 0 #14b8a6 !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 {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: currentColor !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif !important;
  letter-spacing: normal !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="frequency"] .gcw-tool-icon,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="computed"] .gcw-tool-icon,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="sequence"] .gcw-tool-icon { font-size: 17px !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="readout"] .gcw-tool-icon,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="harmonics"] .gcw-tool-icon,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="differential"] .gcw-tool-icon,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="evidence"] .gcw-tool-icon { font-size: 18px !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-label { display: none !important; }
.gcw-measurements-with-dock .gcw-tool-drawer-head {
  background: #ffffff !important;
  border-bottom: 1px solid #e5edf0 !important;
  padding: 10px 12px !important;
}
.gcw-measurements-with-dock .gcw-engineering-tool-body {
  background: #fbfdfd !important;
  padding: 10px !important;
}
.gcw-query-page-head {
  border: 0 !important;
  border-bottom: 1px solid #e5edf0 !important;
  border-radius: 0 !important;
  padding: 6px 0 10px !important;
  background: transparent !important;
}
.gcw-assumption-panel {
  background: #ffffff !important;
  border-color: #dce8eb !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03) !important;
}
.gcw-tool-input-label select.gcw-tool-input {
  width: min(100%, 210px) !important;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  border-radius: 7px !important;
  padding: 4px 6px !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: 11px !important;
}

.gcw-root.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock {
  grid-template-columns: 44px minmax(0, 1fr) !important;
  background: #ffffff !important;
  border-color: rgba(15, 118, 110, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), inset 0 0 0 1px rgba(255,255,255,0.72) !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 {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 100% !important;
  background: #fbfefd !important;
  border-right: 1px solid #dbe7e4 !important;
  border-radius: 18px 0 0 18px !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.9) !important;
  color: #607d80 !important;
  overflow-x: visible !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail::-webkit-scrollbar,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail::-webkit-scrollbar,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail::-webkit-scrollbar { display: none !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock:hover,
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock:focus-within,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock:hover,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock:focus-within,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock:hover,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-module-dock:focus-within {
  width: 44px !important;
  max-width: 44px !important;
  background: #fbfefd !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-inner,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-inner,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-rail-inner {
  gap: 7px !important;
  padding: 8px 5px !important;
  align-items: center !important;
  overflow: visible !important;
  position: sticky !important;
  top: 0 !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 {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #5f7d7e !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !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: #ecfdf5 !important;
  color: #0f766e !important;
  outline: none !important;
  box-shadow: inset 0 0 0 1px rgba(15,118,110,0.18) !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: #ffedd5 !important;
  color: #ea580c !important;
  box-shadow: inset 0 0 0 1px rgba(251,146,60,0.24), 0 2px 8px rgba(234,88,12,0.10) !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-home.is-active,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-home.is-active,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-home.is-active {
  background: #ccfbf1 !important;
  color: #0f766e !important;
  box-shadow: inset 0 0 0 1px rgba(20,184,166,0.25) !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 {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  background: transparent !important;
  color: currentColor !important;
  border: 0 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="sequence"] .gcw-tool-icon { font-size: 9px !important; font-weight: 900 !important; letter-spacing: -0.08em !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="differential"] .gcw-tool-icon { font-size: 18px !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="readout"] .gcw-tool-icon { font-size: 17px !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-btn[data-tool="frequency"] .gcw-tool-icon { font-size: 19px !important; font-style: italic !important; }
.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-label,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-label,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-tool-label {
  display: none !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 {
  left: calc(100% + 9px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #0f172a !important;
  border-radius: 8px !important;
  padding: 6px 9px !important;
  color: #f8fafc !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}
.gcw-measurements-with-dock .gcw-pane-head {
  min-height: 42px !important;
  padding: 8px 10px 6px !important;
  border-bottom: 1px solid rgba(226,232,240,0.9) !important;
}
.gcw-measurements-with-dock .gcw-pane-head h4 {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
}
.gcw-measurements-with-dock .gcw-pane-head p {
  display: none !important;
}
.gcw-measurements-with-dock .gcw-channel-search {
  margin: 7px 8px !important;
  border-color: #dce8e5 !important;
  background: #f8fafc !important;
  border-radius: 9px !important;
  min-height: 30px !important;
  font-size: 11px !important;
}
.gcw-measurements-with-dock .gcw-tool-drawer-head {
  min-height: 46px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.gcw-measurements-with-dock .gcw-tool-drawer-head strong {
  color: #0f172a !important;
  font-size: 13px !important;
}
.gcw-measurements-with-dock .gcw-tool-drawer-head p {
  color: #64748b !important;
  font-size: 10.5px !important;
}
.gcw-measurements-with-dock .gcw-tool-drawer-actions button {
  border: 1px solid #dbe7e4 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  border-radius: 8px !important;
  min-width: 26px !important;
  min-height: 24px !important;
}
.gcw-measurements-with-dock .gcw-tool-drawer-actions button:hover,
.gcw-measurements-with-dock .gcw-tool-drawer-actions button.is-active {
  background: #ecfdf5 !important;
  color: #0f766e !important;
  border-color: rgba(15,118,110,0.35) !important;
}
.gcw-tool-select-label select.gcw-tool-input,
.gcw-tool-input-label select.gcw-tool-input {
  width: 100% !important;
  min-width: 120px !important;
  border: 1px solid rgba(148,163,184,0.45) !important;
  border-radius: 7px !important;
  padding: 4px 6px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 11px !important;
}
.gcw-tool-line-svg {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}
.gcw-tool-line {
  fill: none !important;
  stroke: #0f766e !important;
  stroke-width: 2.2 !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
}
.gcw-tool-line-dot {
  fill: #0f766e !important;
  stroke: #ffffff !important;
  stroke-width: 1 !important;
}
.gcw-tool-nominal-line {
  stroke: #ea580c !important;
  stroke-width: 1.5 !important;
  stroke-dasharray: 5 4 !important;
}
.gcw-query-chart-wrap[data-chart-mode="measure"] .gcw-tool-line-dot,
.gcw-query-chart-wrap[data-chart-mode="measure"] .gcw-tool-svg-bar,
.gcw-query-chart-wrap[data-chart-mode="measure"] .gcw-tool-rx-point {
  cursor: crosshair !important;
}

.gcw-workbench-wave-splitter { display: none; }
.gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-workspace,
body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-workspace,
.gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-workspace {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0 !important;
  min-height: calc(100vh - 155px) !important;
  height: calc(100vh - 155px) !important;
  overflow: hidden !important;
}
.gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
.gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock {
  grid-column: 1 !important;
  grid-row: 1 !important;
  grid-template-columns: 44px 0 !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-right: 1px solid #d7e4e2 !important;
  box-shadow: none !important;
  background: #fbfefd !important;
  overflow: visible !important;
}
.gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail,
body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail,
.gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail {
  border-radius: 0 !important;
  height: 100% !important;
  z-index: 50 !important;
}
.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-measurements-main,
.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-measurement-browser {
  display: none !important;
}
.gcw-root.gcw-tool-open .gcw-splitter {
  display: none !important;
  width: 0 !important;
}
.gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-wave-pane,
body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-wave-pane,
.gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-wave-pane {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
.gcw-root.gcw-tool-open .gcw-engineering-tool-drawer:not([hidden]) {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 320px !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.gcw-root.gcw-tool-open .gcw-tool-drawer-head {
  flex: 0 0 auto !important;
  min-height: 52px !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #dfe9eb !important;
  background: #fbfefd !important;
}
.gcw-root.gcw-tool-open .gcw-tool-drawer-head strong { font-size: 15px !important; color: #0f172a !important; }
.gcw-root.gcw-tool-open .gcw-tool-drawer-head p { font-size: 11.5px !important; color: #64748b !important; margin-top: 2px !important; }
.gcw-root.gcw-tool-open .gcw-tool-drawer-actions { gap: 5px !important; align-items: center !important; }
.gcw-root.gcw-tool-open .gcw-tool-export,
.gcw-root.gcw-tool-open .gcw-tool-recalculate,
.gcw-root.gcw-tool-open .gcw-tool-close,
.gcw-root.gcw-tool-open .gcw-tool-chart-action {
  min-height: 28px !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}
.gcw-root.gcw-tool-open .gcw-engineering-tool-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 14px !important;
  background: #f8fbfb !important;
}
.gcw-root.gcw-tool-open .gcw-query-page { min-height: 100% !important; gap: 10px !important; }
.gcw-root.gcw-tool-open .gcw-query-page-head {
  border: 1px solid #dbe7e4 !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  background: #ffffff !important;
}
.gcw-root.gcw-tool-open .gcw-query-page-head strong { font-size: 15px !important; }
.gcw-root.gcw-tool-open .gcw-query-page-head p { font-size: 12px !important; }
.gcw-root.gcw-tool-open .gcw-query-page-head small { max-width: 420px !important; font-size: 11px !important; }
.gcw-root.gcw-tool-open .gcw-query-status { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
.gcw-root.gcw-tool-open .gcw-query-status span,
.gcw-root.gcw-tool-open .gcw-chart-measure-box span,
.gcw-root.gcw-tool-open .gcw-chart-measure-box small { font-size: 12px !important; padding: 7px 9px !important; }
.gcw-root.gcw-tool-open .gcw-tool-grid2 { grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr) !important; gap: 14px !important; }
.gcw-root.gcw-tool-open .gcw-tool-input-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.gcw-root.gcw-tool-open .gcw-tool-graph { max-height: 430px !important; min-height: 255px !important; border-radius: 14px !important; }
.gcw-root.gcw-tool-open .gcw-workbench-wave-splitter {
  display: flex !important;
  flex: 0 0 8px !important;
  height: 8px !important;
  min-height: 8px !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: row-resize !important;
  background: linear-gradient(180deg, #e7f0ef, #cfe2df, #e7f0ef) !important;
  border-top: 1px solid #cbdeda !important;
  border-bottom: 1px solid #cbdeda !important;
  z-index: 12 !important;
}
.gcw-root.gcw-tool-open .gcw-workbench-wave-splitter span {
  display: block !important;
  width: 56px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: #6b8f91 !important;
  box-shadow: 0 -3px 0 rgba(107,143,145,0.22), 0 3px 0 rgba(107,143,145,0.22) !important;
}
.gcw-root.gcw-tool-open .gcw-wave-section.gcw-combined-section {
  flex: 0 0 var(--gcw-reference-wave-height, 330px) !important;
  height: var(--gcw-reference-wave-height, 330px) !important;
  min-height: 190px !important;
  max-height: 70vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: #ffffff !important;
}
.gcw-root.gcw-tool-open .gcw-wave-section-head {
  flex: 0 0 auto !important;
  min-height: 36px !important;
  padding: 6px 10px !important;
  border-bottom: 1px solid #e5edf0 !important;
  background: #fbfefd !important;
}
.gcw-root.gcw-tool-open .gcw-wave-section-head h4 { font-size: 12px !important; margin: 0 !important; }
.gcw-root.gcw-tool-open .gcw-wave-section-head p,
.gcw-root.gcw-tool-open .gcw-engineering-hint { display: none !important; }
.gcw-root.gcw-tool-open .gcw-cursor-panel { flex: 0 0 auto !important; }
.gcw-root.gcw-tool-open .gcw-canvas-card.gcw-combined-card {
  flex: 1 1 auto !important;
  min-height: 140px !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  overflow: hidden !important;
}
.gcw-root.gcw-tool-open .gcw-event-table-wrap { flex: 0 0 var(--gcw-event-table-height, 112px) !important; max-height: 180px !important; }
.gcw-root.gcw-tool-open .gcw-tool-empty { margin: 12px !important; }
.gcw-root:not(.gcw-tool-open) .gcw-workbench-wave-splitter { display: none !important; }
.gcw-root:not(.gcw-tool-open) .gcw-wave-pane > .gcw-engineering-tool-drawer { display: none !important; }

@media (max-width: 900px) {
  .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-workspace,
  body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-workspace,
  .gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-workspace {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    height: auto !important;
    min-height: 620px !important;
  }
  .gcw-root.gcw-tool-open .gcw-splitter { display: none !important; }
  .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 620px !important;
    margin: 0 !important;
  }
  .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-wave-pane {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 620px !important;
  }
  .gcw-root.gcw-tool-open .gcw-tool-grid2,
  .gcw-root.gcw-tool-open .gcw-tool-input-grid,
  .gcw-root.gcw-tool-open .gcw-query-status {
    grid-template-columns: 1fr !important;
  }
}

.gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-workspace,
body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-workspace,
.gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-workspace {
  display: grid !important;
  grid-template-columns: minmax(320px, var(--gcw-measure-width, 500px)) 6px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 6px !important;
  overflow: hidden !important;
}

.gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
.gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 7px !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45) !important;
  overflow: hidden !important;
}

.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-measurements-main,
.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-measurement-browser,
body.zrk-comtrade-body .gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-measurements-main,
body.zrk-comtrade-body .gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-measurement-browser,
.gcw-root.gcw-tool-open.gcw-viewport-full .gcw-measurements-with-dock .gcw-measurements-main,
.gcw-root.gcw-tool-open.gcw-viewport-full .gcw-measurements-with-dock .gcw-measurement-browser {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail,
body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail,
.gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-engineering-tool-rail {
  grid-column: 1 !important;
  position: relative !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 100% !important;
  border-right: 1px solid #d7e4e2 !important;
  background: #fbfefd !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.gcw-root.gcw-tool-open .gcw-splitter,
body.zrk-comtrade-body .gcw-root.gcw-tool-open .gcw-splitter,
.gcw-root.gcw-tool-open.gcw-viewport-full .gcw-splitter {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 6px !important;
  min-width: 6px !important;
  cursor: col-resize !important;
}

.gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-wave-pane,
body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-wave-pane,
.gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-wave-pane {
  grid-column: 3 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 7px !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.gcw-root.gcw-tool-open .gcw-wave-pane > .gcw-engineering-tool-drawer:not([hidden]) {
  flex: 1 1 auto !important;
  min-height: 300px !important;
  max-height: none !important;
}

.gcw-root.gcw-tool-open .gcw-wave-section.gcw-combined-section {
  flex: 0 0 var(--gcw-reference-wave-height, 330px) !important;
  height: var(--gcw-reference-wave-height, 330px) !important;
  min-height: 180px !important;
}

.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-pane-head,
.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-channel-search,
.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-measure-scroll {
  display: initial !important;
}
.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-pane-head { display: flex !important; }
.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-measure-scroll { display: block !important; }
.gcw-root.gcw-tool-open .gcw-measurements-with-dock .gcw-channel-search { display: block !important; }

@media (max-width: 900px) {
  .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-workspace,
  body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-workspace,
  .gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-workspace {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: minmax(320px, 46vh) 6px minmax(420px, 1fr) !important;
    height: auto !important;
    min-height: 760px !important;
  }
  .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
  body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
  .gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock {
    grid-column: 1 / span 2 !important;
    grid-row: 1 !important;
    min-height: 320px !important;
  }
  .gcw-root.gcw-tool-open .gcw-splitter { grid-column: 1 / span 2 !important; grid-row: 2 !important; height: 6px !important; width: auto !important; }
  .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-wave-pane,
  body.zrk-comtrade-body .gcw-root.gcw-tool-open.gcw-analysis-mode .gcw-wave-pane,
  .gcw-root.gcw-tool-open.gcw-viewport-full.gcw-analysis-mode .gcw-wave-pane {
    grid-column: 1 / span 2 !important;
    grid-row: 3 !important;
    min-height: 420px !important;
  }
}

.gcw-root.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-pane.gcw-measurements-with-dock {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: stretch !important;
  align-content: stretch !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !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 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-measurements-main,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-measurements-main,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-measurements-main {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-measurement-browser,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-measurement-browser,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-measurement-browser {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}

.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-pane-head,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-pane-head,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-pane-head {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-channel-search,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-channel-search,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-channel-search {
  flex: 0 0 auto !important;
}

.gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-measure-scroll,
body.zrk-comtrade-body .gcw-root.gcw-analysis-mode .gcw-measurements-with-dock .gcw-measure-scroll,
.gcw-root.gcw-viewport-full.gcw-analysis-mode .gcw-measurements-with-dock .gcw-measure-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  overflow: auto !important;
}

.gcw-root:not(.gcw-tool-open) .gcw-measurements-with-dock .gcw-engineering-query-page,
.gcw-root:not(.gcw-tool-open) .gcw-measurements-with-dock .gcw-engineering-tool-drawer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
}
