/* pages-gangue-evaluator.css | extracted from tools/gangue-evaluator/index.html (inline <style> -> external, v20261113c) */
        :root {
            --wb-bg: #f4f6f8;
            --wb-card: #ffffff;
            --wb-soft: #f8fafc;
            --wb-head: #f1f5f9;
            --wb-border: #e2e8f0;
            --wb-title: #1e293b;
            --wb-body: #334155;
            --wb-muted: #64748b;
            --wb-accent: #3b5998;
            --wb-blue: #2563eb;
            --wb-gold: #b48a2c;
            --wb-emerald: #047857;
            --wb-amber: #b45309;
        }

        body.evaluator-page {
            background-color: var(--wb-bg) !important;
            color: var(--wb-body) !important;
            margin: 0;
            padding: 0;
            overflow-x: clip !important;
        }

        @media (min-width: 992px) {
            .mobile-nav-toggle,
            button.mobile-nav-toggle,
            .header .mobile-nav-toggle {
                display: none !important;
                visibility: hidden !important;
                pointer-events: none !important;
                opacity: 0 !important;
            }
        }

        .nav-fa-svg,
        .svg-icon,
        .nav-svg-icon {
            width: 1em;
            height: 1em;
            fill: currentColor;
            display: inline-block;
            vertical-align: middle;
        }
        .nav-dropdown-icon {
            width: 0.72rem !important;
            height: 0.72rem !important;
            margin-left: 2px !important;
            transition: transform 0.25s ease !important;
            display: inline-block !important;
            vertical-align: middle !important;
            fill: currentColor !important;
        }
        .nav-dropdown:hover .nav-dropdown-icon { transform: rotate(180deg) !important; }
        .nav-dropdown .dropdown-menu li a .nav-fa-svg {
            color: #b48a2c !important;
            fill: #b48a2c !important;
            width: 18px !important;
            height: 18px !important;
            flex-shrink: 0 !important;
        }
        .nav-contact-btn .nav-fa-svg { margin-right: 4px; }

        /* Hero Banner */
        .tool-hero {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a5f 100%);
            color: #ffffff;
            padding: 102px 20px 34px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .tool-hero-inner {
            max-width: 920px;
            margin: 0 auto;
        }
        .tool-hero .breadcrumb {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            font-size: 0.84rem;
            color: #94a3b8;
            margin-bottom: 10px;
        }
        .tool-hero .breadcrumb a {
            color: #cbd5e1;
            text-decoration: none;
        }
        .tool-hero .breadcrumb a:hover { color: #d4af37; }
        .tool-hero h1 {
            margin: 0 auto 10px;
            font-size: 1.72rem;
            font-weight: 700;
            line-height: 1.35;
            color: #ffffff;
        }
        .tool-hero h1::after { display: none !important; content: none !important; }
        .tool-hero-sub {
            margin: 0 auto;
            max-width: 760px;
            font-size: 0.92rem;
            line-height: 1.65;
            color: rgba(226, 232, 240, 0.9);
        }

        /* 2-Column 1200px Workbench */
        .workbench-section {
            max-width: 1220px;
            margin: 28px auto 64px;
            padding: 0 20px;
        }
        .evaluator-workbench {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
            gap: 24px;
            align-items: start;
        }
        .wb-col {
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-width: 0;
        }
        .workbench-right {
            position: sticky;
            top: 84px;
        }

        .wb-card {
            background: var(--wb-card);
            border: 1px solid var(--wb-border);
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
            overflow: visible;
        }
        .wb-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 13px 18px;
            background: var(--wb-head);
            border-bottom: 1px solid var(--wb-border);
            border-radius: 12px 12px 0 0;
        }
        .wb-card-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--wb-title);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .wb-card-body {
            padding: 18px 20px;
        }

        /* Presets */
        .preset-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
            align-items: center;
        }
        .preset-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--wb-muted);
            margin-right: 4px;
        }
        .preset-chip {
            border: 1px solid var(--wb-border);
            background: var(--wb-soft);
            color: var(--wb-body);
            font-size: 0.78rem;
            font-weight: 600;
            padding: 5px 11px;
            border-radius: 999px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .preset-chip:hover {
            border-color: #93c5fd;
            background: #eff6ff;
            color: var(--wb-blue);
        }
        .preset-chip.active {
            background: var(--wb-accent);
            border-color: var(--wb-accent);
            color: #ffffff;
        }

        /* Tips & Reset Header Controls */
        .vc-component-tips {
            position: relative;
            display: inline-flex;
            align-items: center;
            color: var(--wb-muted);
            cursor: pointer;
        }
        .vc-component-tips svg { width: 16px; height: 16px; fill: currentColor; }
        .vc-component-tips-tooltip {
            position: absolute;
            top: calc(100% + 10px);
            left: 50%;
            transform: translate(-50%, -4px);
            background: #1e293b;
            color: #ffffff;
            padding: 10px 12px;
            font-size: 12px;
            line-height: 1.55;
            border-radius: 8px;
            width: 280px;
            max-width: var(--vc-tooltip-max-width, 280px);
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.15s ease, transform 0.15s ease;
            z-index: 40;
            font-weight: 400;
        }
        .vc-component-tips-tooltip.visible {
            opacity: 1;
            transform: translate(-50%, 0);
            pointer-events: auto;
        }
        .vc-component-control-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 6px;
            background: #ffffff;
            border: 1px solid var(--wb-border);
            color: var(--wb-body);
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
        }
        .vc-component-control-btn svg { width: 15px; height: 15px; fill: currentColor; }
        .vc-component-icon-rotating { animation: wbSpin 0.55s ease; }
        @keyframes wbSpin { to { transform: rotate(360deg); } }

        /* Segmented Route Selector */
        .vc-tabs-segmented {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            background: var(--wb-soft);
            padding: 4px;
            border-radius: 10px;
            border: 1px solid var(--wb-border);
            gap: 4px;
            margin-bottom: 18px;
        }
        .vc-tabs-option {
            position: relative;
            cursor: pointer;
            margin: 0;
        }
        .vc-tabs-option input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }
        .vc-tabs-option span {
            display: block;
            text-align: center;
            padding: 8px 6px;
            font-size: 0.88rem;
            font-weight: 500;
            color: var(--wb-body);
            border-radius: 7px;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .vc-tabs-option input:checked + span {
            background: #ffffff;
            color: var(--wb-blue);
            font-weight: 700;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
        }

        /* Sliders */
        .vc-slider-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 18px;
        }
        .vc-slider-container {
            position: relative;
            background: var(--wb-soft);
            border: 1px solid var(--wb-border);
            border-radius: 10px;
            padding: 12px 14px;
            touch-action: pan-y;
        }
        .vc-slider-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            font-size: 0.86rem;
            color: var(--wb-muted);
            font-weight: 600;
        }
        .vc-slider-value {
            font-size: 1rem;
            font-weight: 800;
            color: var(--wb-title);
            font-variant-numeric: tabular-nums;
        }
        .vc-slider-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .step-btn {
            width: 26px;
            height: 26px;
            border-radius: 6px;
            border: 1px solid var(--wb-border);
            background: #ffffff;
            color: var(--wb-title);
            font-weight: 700;
            font-size: 0.95rem;
            line-height: 1;
            cursor: pointer;
            flex-shrink: 0;
        }
        .step-btn:hover { background: var(--wb-head); }
        .vc-slider-track-area {
            position: relative;
            height: 20px;
            flex: 1;
            cursor: pointer;
            touch-action: none;
        }
        .vc-slider-track-bg {
            position: absolute;
            width: 100%;
            height: 5px;
            background: #cbd5e1;
            border-radius: 3px;
            top: 50%;
            margin-top: -2.5px;
        }
        .vc-slider-track-active {
            position: absolute;
            height: 5px;
            background: var(--wb-blue);
            border-radius: 3px;
            top: 50%;
            margin-top: -2.5px;
            left: 0;
        }
        .vc-slider-thumb {
            position: absolute;
            height: 18px;
            width: 18px;
            border-radius: 50%;
            background: #ffffff;
            border: 2px solid var(--wb-blue);
            top: 50%;
            margin-top: -9px;
            transform: translateX(-50%);
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
            z-index: 2;
        }
        .vc-slider-thumb.active { transform: translateX(-50%) scale(1.18); }
        .vc-slider-tooltip {
            position: absolute;
            top: -40px;
            transform: translateX(-50%);
            background: #1e293b;
            color: #ffffff;
            border-radius: 6px;
            font-size: 12px;
            line-height: 26px;
            padding: 0 8px;
            opacity: 0;
            pointer-events: none;
            z-index: 20;
            white-space: nowrap;
        }
        .vc-slider-tooltip.visible { opacity: 1; }

        /* Geological Cross-Section Canvas */
        .strata-canvas-card {
            background: #0f172a;
            border-radius: 10px;
            padding: 12px 14px;
            color: #e2e8f0;
        }
        .demo-status-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.82rem;
            margin-bottom: 10px;
            gap: 8px;
            flex-wrap: wrap;
        }
        .demo-status-main {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-weight: 600;
            color: #f8fafc;
        }
        .demo-status-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: #38bdf8;
            box-shadow: 0 0 6px #38bdf8;
        }
        .demo-status-side { color: #cbd5e1; }
        .demo-status-side b { color: #fde68a; }
        .strata-viewport {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(148, 163, 184, 0.22);
        }
        .strata-svg {
            display: block;
            width: 100%;
            height: 132px;
        }
        .slurry-flow-line {
            stroke-dasharray: 6 4;
            animation: slurryPulse 1.2s linear infinite;
        }
        @keyframes slurryPulse {
            from { stroke-dashoffset: 40; }
            to { stroke-dashoffset: 0; }
        }
        .cavern-fill {
            transition: fill 0.35s ease, opacity 0.35s ease;
        }

        /* KPI Grid in Right Column */
        .metrics-grid-4 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 18px;
        }
        .hud-card {
            background: var(--wb-soft);
            border: 1px solid var(--wb-border);
            border-radius: 10px;
            padding: 12px 14px;
        }
        .hud-label {
            display: block;
            font-size: 0.78rem;
            color: var(--wb-muted);
            margin-bottom: 4px;
        }
        .hud-value {
            display: block;
            font-size: 1.32rem;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            line-height: 1.2;
        }
        .hud-card.accent-blue .hud-value { color: var(--wb-blue); }
        .hud-card.accent-emerald .hud-value { color: var(--wb-emerald); }
        .hud-card.accent-amber .hud-value { color: var(--wb-amber); }
        .hud-card.accent-purple .hud-value { color: #5b21b6; }
        .hud-sub {
            display: block;
            font-size: 0.74rem;
            color: var(--wb-muted);
            margin-top: 3px;
        }

        /* TCO Visual Comparison Bars */
        .cost-bars-box {
            background: var(--wb-soft);
            border: 1px solid var(--wb-border);
            border-radius: 10px;
            padding: 14px 16px;
            margin-bottom: 18px;
        }
        .cost-bars-title {
            font-size: 0.84rem;
            font-weight: 700;
            color: var(--wb-title);
            margin: 0 0 10px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .cost-bar-item {
            margin-bottom: 10px;
            padding: 6px 8px;
            border-radius: 6px;
            transition: background 0.2s;
        }
        .cost-bar-item:last-child { margin-bottom: 0; }
        .cost-bar-item.selected {
            background: #eff6ff;
            border: 1px solid #bfdbfe;
        }
        .cost-bar-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.78rem;
            color: var(--wb-body);
            margin-bottom: 5px;
            font-weight: 600;
        }
        .cost-bar-track {
            position: relative;
            height: 10px;
            background: #e2e8f0;
            border-radius: 999px;
            overflow: hidden;
            display: flex;
        }
        .cost-bar-opex {
            background: #2563eb;
            height: 100%;
        }
        .cost-bar-capex {
            background: #93c5fd;
            height: 100%;
        }
        .cost-legend {
            display: flex;
            gap: 14px;
            font-size: 0.73rem;
            color: var(--wb-muted);
            margin-top: 8px;
        }
        .legend-dot {
            display: inline-block;
            width: 9px;
            height: 9px;
            border-radius: 2px;
            margin-right: 4px;
        }

        /* Breakdown Table */
        .wb-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.84rem;
            margin-bottom: 16px;
        }
        .wb-table th {
            background: var(--wb-head);
            color: var(--wb-title);
            padding: 8px 10px;
            text-align: left;
            border-bottom: 1px solid var(--wb-border);
            font-weight: 600;
        }
        .wb-table td {
            padding: 8px 10px;
            border-bottom: 1px solid #f1f5f9;
            color: var(--wb-body);
        }
        .wb-table td.num {
            font-weight: 700;
            color: var(--wb-title);
            font-variant-numeric: tabular-nums;
            text-align: right;
            white-space: nowrap;
        }

        .vc-button-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        .vc-button {
            height: 40px;
            border-radius: 8px;
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
            border: 1px solid var(--wb-border);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .vc-button-plain {
            background: var(--wb-soft);
            color: var(--wb-title);
        }
        .vc-button-primary {
            background: var(--wb-accent);
            border-color: var(--wb-accent);
            color: #ffffff;
        }

        /* Lead Capture Workbench Card */
        .calc-lead-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid #cbd5e1;
            border-left: 4px solid var(--wb-gold);
            border-radius: 12px;
            padding: 18px 20px;
        }
        .calc-lead-card h3 {
            margin: 0 0 6px 0;
            font-size: 1rem;
            color: var(--wb-title);
        }
        .calc-lead-card h3::after { display: none !important; content: none !important; }
        .calc-lead-sub {
            margin: 0 0 12px 0;
            font-size: 0.82rem;
            color: var(--wb-muted);
            line-height: 1.55;
        }
        .calc-lead-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        .calc-lead-form input {
            width: 100%;
            box-sizing: border-box;
            padding: 9px 11px;
            border: 1px solid #cbd5e1;
            border-radius: 7px;
            font-size: 0.85rem;
            color: var(--wb-title);
            background: #ffffff;
        }
        .calc-lead-form .full-span { grid-column: 1 / -1; }
        .calc-lead-submit {
            grid-column: 1 / -1;
            padding: 10px 14px;
            border-radius: 8px;
            border: none;
            background: var(--wb-gold);
            color: #ffffff;
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
        }
        .calc-lead-submit:hover { opacity: 0.92; }

        /* Methodology Card */
        .vc-calc-explanation-card ul {
            margin: 0;
            padding-left: 18px;
        }
        .vc-calc-explanation-card li {
            margin-bottom: 9px;
            font-size: 0.86rem;
            line-height: 1.68;
            color: var(--wb-body);
        }
        .wb-footer-links {
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid #f1f5f9;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 0.84rem;
        }
        .wb-footer-links a {
            color: var(--wb-blue);
            font-weight: 600;
            text-decoration: none;
        }

        /* Modal & Toast */
        .audit-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.58);
            z-index: 20000;
            display: none;
            padding: 20px 14px;
            align-items: center;
            justify-content: center;
        }
        .audit-modal-backdrop.show { display: flex; }
        .audit-modal-card {
            background: #ffffff;
            border-radius: 12px;
            width: 100%;
            max-width: 660px;
            max-height: 86vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
        }
        .modal-header {
            padding: 13px 18px;
            background: var(--wb-head);
            border-bottom: 1px solid var(--wb-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .modal-title { font-weight: 700; font-size: 0.96rem; color: var(--wb-title); }
        .modal-close-btn {
            background: transparent;
            border: none;
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
            color: var(--wb-muted);
        }
        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px 18px;
            font-size: 0.86rem;
            line-height: 1.6;
        }
        .modal-section-title {
            font-weight: 700;
            color: var(--wb-title);
            margin: 12px 0 6px;
        }
        .modal-body table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 12px;
            font-size: 0.83rem;
        }
        .modal-body th, .modal-body td {
            border: 1px solid var(--wb-border);
            padding: 7px 9px;
            text-align: left;
        }
        .modal-body th { background: var(--wb-head); }
        .modal-footer {
            padding: 11px 18px;
            background: var(--wb-soft);
            border-top: 1px solid var(--wb-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.82rem;
            color: var(--wb-muted);
        }
        .toast-bubble {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(12px);
            background: #1e293b;
            color: #ffffff;
            padding: 9px 18px;
            border-radius: 999px;
            font-size: 0.85rem;
            opacity: 0;
            pointer-events: none;
            transition: all 0.25s ease;
            z-index: 25000;
        }
        .toast-bubble.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        @media (max-width: 991px) {
            .tool-hero { padding: 88px 16px 24px; }
            .tool-hero h1 { font-size: 1.34rem; }
            .workbench-section { padding: 0 14px; margin: 20px auto 48px; }
            .evaluator-workbench { grid-template-columns: 1fr; }
            .workbench-right { position: static; }
            .vc-slider-row { grid-template-columns: 1fr; }
            .calc-lead-form { grid-template-columns: 1fr; }
        }
