
        body {
            background-color: #f1f5f9;
            font-family: 'Segoe UI', system-ui, sans-serif;
        }


        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #e2e8f0;
        }

        ::-webkit-scrollbar-thumb {
            background: #94a3b8;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #64748b;
        }

        input:focus,
        select:focus {
            outline: 2px solid #2563eb;
            outline-offset: 1px;
            border-color: #2563eb;
        }

        .input-primary {
            border: 1px solid #94a3b8;
            color: #0f172a;
            background-color: #ffffff;
            font-weight: 600;
        }

        .table-header {
            font-size: 0.75rem;
            text-transform: uppercase;
            color: #475569;
            font-weight: 800;
            letter-spacing: 0.025em;
        }


        .row-animation {
            animation: fadeIn 0.2s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .pressure-box {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        }


        .toggle-checkbox:checked {
            right: 0;
            border-color: #2563eb;
        }

        .toggle-checkbox:checked+.toggle-label {
            background-color: #2563eb;
        }


        .checkbox-wrapper {
            display: flex;
            align-items: center;
            margin-bottom: 0.35rem;
            cursor: pointer;
        }

        .checkbox-wrapper input {
            margin-right: 0.5rem;
            width: 1rem;
            height: 1rem;
            accent-color: #2563eb;
        }

        .checkbox-wrapper span {
            font-size: 0.85rem;
            color: #4b5563;
        }

        .checkbox-wrapper:hover span {
            color: #1d4ed8;
        }

        .select-all-wrapper {
            border-bottom: 1px solid #f1f5f9;
            padding-bottom: 0.5rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .select-all-wrapper span {
            color: #2563eb;
            font-size: 0.8rem;
        }

        .filter-section {
            border-bottom: 1px solid #e5e7eb;
            padding-bottom: 1rem;
            margin-bottom: 1rem;
        }

        .filter-title {
            font-weight: 700;
            font-size: 0.8rem;
            text-transform: uppercase;
            color: #1e3a8a;
            margin-bottom: 0.5rem;
            letter-spacing: 0.05em;
        }

        .filter-subtitle {
            font-size: 0.7rem;
            color: #9ca3af;
            text-transform: none;
            font-weight: normal;
            margin-left: 4px;
        }


        .step-card {
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .step-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
        }


        .nav-step {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 700;
            border-radius: 9999px;
            transition: all 0.2s;
            cursor: pointer;
            text-decoration: none;
        }

        .nav-step-active {
            background-color: #2563eb;
            color: white;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .nav-step-inactive {
            background-color: white;
            color: #94a3b8;
            border: 1px solid #e2e8f0;
        }

        .nav-step-completed {
            background-color: #10b981;
            color: white;
        }

        .pump-view-button {
            border: 1px solid #cbd5e1;
            border-radius: 0.5rem;
            padding: 0.4rem 0.7rem;
            color: #475569;
            background: white;
            font-size: 0.75rem;
            font-weight: 700;
        }

        .pump-view-button[aria-pressed="true"] {
            color: white;
            background: #4f46e5;
            border-color: #4f46e5;
        }

        .pump-compare-option {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.55rem 0.7rem;
            border-bottom: 1px solid #e2e8f0;
            font-size: 0.875rem;
            color: #334155;
            cursor: pointer;
        }

        .pump-compare-option:hover { background: #f1f5f9; }
        .pump-compare-option:has(input:checked) { background: #eef2ff; font-weight: 700; }
        .pump-compare-name { flex: 1; min-width: 0; }
        .pump-compare-swatch, .pump-legend-swatch { display: inline-block; flex: none; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--pump-color); }
        .pump-compare-option:not(:has(input:checked)) .pump-compare-swatch { visibility: hidden; }
        .pump-compare-option input { flex: none; width: 1rem; height: 1rem; accent-color: #4f46e5; }
        .pump-comparison-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; font-size: 0.75rem; font-weight: 700; color: #334155; }
        .pump-comparison-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
        .pump-comparison-legend .pump-legend-link { display: inline-flex; align-items: center; gap: 0.35rem; color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }
        .pump-comparison-legend .pump-legend-link:hover { color: #1e40af; }
        .pump-compare-dialog { width: min(960px, calc(100vw - 2rem)); max-width: none; max-height: min(700px, calc(100vh - 2rem)); margin: auto; padding: 0; border: 1px solid #cbd5e1; border-radius: 1rem; background: white; box-shadow: 0 24px 70px #0f172a4d; }
        .pump-compare-dialog::backdrop { background: #0f172a99; }
        .pump-compare-dialog-inner { display: flex; flex-direction: column; max-height: min(700px, calc(100vh - 2rem)); }
        .pump-compare-dialog-header, .pump-compare-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: #f8fafc; }
        .pump-compare-dialog-header { border-bottom: 1px solid #e2e8f0; }
        .pump-compare-dialog-footer { border-top: 1px solid #e2e8f0; }
        .pump-compare-close { border: 0; background: transparent; color: #475569; font-size: 1.8rem; line-height: 1; cursor: pointer; }
        #pump-compare-show:disabled { opacity: 0.45; cursor: not-allowed; }
        .pump-compare-dialog-body { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.25fr); min-height: 0; flex: 1; }
        .pump-compare-search-panel, .pump-compare-results-panel { padding: 1.25rem; min-height: 0; }
        .pump-compare-search-panel { border-right: 1px solid #e2e8f0; }
        .pump-compare-results-panel { display: flex; flex-direction: column; }
        .pump-compare-list { overflow-y: auto; min-height: 15rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; }
        @media (max-width: 640px) {
            .pump-compare-dialog-body { grid-template-columns: 1fr; overflow-y: auto; }
            .pump-compare-search-panel { border-right: 0; border-bottom: 1px solid #e2e8f0; }
            .pump-compare-results-panel { min-height: 16rem; }
        }

        .help-tip { display: inline-block; position: relative; margin-left: 0.35rem; vertical-align: middle; text-transform: none; }
        .help-tip summary { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font-size: 0.75rem; font-weight: 800; cursor: pointer; list-style: none; }
        .help-tip summary::-webkit-details-marker { display: none; }
        .help-tip[open] .help-tip-content { display: block; }
        .help-tip:hover .help-tip-content, .help-tip:focus-within .help-tip-content { display: block; }
        .help-tip-content { position: fixed; z-index: 1000; width: min(18rem, 75vw); padding: 0.7rem; border: 1px solid #bfdbfe; border-radius: 0.5rem; background: white; box-shadow: 0 8px 24px #0f172a26; color: #334155; font-size: 0.75rem; font-weight: 400; line-height: 1.4; text-align: left; }


        .hidden {
            display: none !important;
        }



        #mobile-fab {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 16px;
            z-index: 200;
            width: 50px;
            height: 50px;
            background: #2563eb;
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 22px;
            box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
            cursor: pointer;
            align-items: center;
            justify-content: center;
            transition: transform 0.15s;
        }

        #mobile-fab:active {
            transform: scale(0.91);
        }

        #mobile-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.48);
            z-index: 150;
        }

        #mobile-backdrop.mob-visible {
            display: block;
        }

        @media screen and (max-width: 767px) {
            .app-header-inner {
                flex-direction: column;
                gap: 0.75rem;
            }

            #navigation-bar {
                position: static !important;
                transform: none !important;
                margin-inline: auto;
            }

            html {
                height: auto !important;
                overflow: auto !important;
            }

            body {
                height: auto !important;
                overflow: auto !important;
                overflow-x: hidden !important;
            }

            body>.flex-1 {
                overflow: visible !important;
                height: auto !important;
            }

            .flex-1.overflow-hidden.relative.w-full {
                overflow: visible !important;
                height: auto !important;
            }

            #welcome-screen,
            #step-1-screen,
            #step-2-screen,
            #step-3-screen {
                position: relative !important;
                height: auto !important;
                min-height: calc(100vh - 60px);
                overflow: visible !important;
                flex-direction: column !important;
                inset: auto !important;
            }

            #step-1-screen>aside,
            #step-2-screen>aside,
            #step-3-screen>aside {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                height: 100% !important;
                width: 82vw !important;
                max-width: 300px !important;
                z-index: 160 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch;
                transform: translateX(-110%);
                transition: transform 0.27s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 6px 0 28px rgba(0, 0, 0, 0.22);
            }

            #step-1-screen>aside.mob-open,
            #step-2-screen>aside.mob-open,
            #step-3-screen>aside.mob-open {
                transform: translateX(0%) !important;
            }

            #step-1-screen>main,
            #step-2-screen>main,
            #step-3-screen>main {
                width: 100% !important;
                height: auto !important;
                overflow: visible !important;
                flex: none !important;
                display: block !important;
            }

            #step-1-screen>main>.flex-1,
            #step-2-screen>main>.flex-1 {
                overflow: visible !important;
                height: auto !important;
                flex: none !important;
            }

            #step-1-screen>main>.bg-white.border-t,
            #step-2-screen>main>.bg-white.border-t {
                position: sticky !important;
                bottom: 0 !important;
                z-index: 30 !important;
            }

            #step-1-screen .bg-white.border-t .max-w-6xl,
            #step-2-screen .bg-white.border-t .max-w-6xl {
                flex-direction: column !important;
                gap: 0.6rem !important;
                align-items: stretch !important;
            }

            #step-1-screen .bg-white.border-t .flex.gap-4,
            #step-2-screen .bg-white.border-t .flex.gap-4 {
                flex-direction: column !important;
                gap: 0.5rem !important;
            }

            #step-1-screen .bg-white.border-t .bg-blue-600,
            #step-1-screen .bg-white.border-t .pressure-box,
            #step-2-screen .bg-white.border-t .bg-blue-600 {
                width: 100% !important;
                min-width: 0 !important;
            }

            #step-2-screen .bg-white.border-t .grid.grid-cols-4 {
                grid-template-columns: 1fr 1fr !important;
            }

            #step-1-screen .bg-white.border-t button,
            #step-2-screen .bg-white.border-t button {
                width: 100% !important;
                justify-content: center;
            }

            #step-1-screen .bg-white.rounded-xl.shadow-md,
            #step-2-screen .bg-white.rounded-xl.shadow-md {
                overflow-x: auto !important;
            }

            #table-header-row,
            #nozzles-container>div {
                min-width: 540px !important;
            }

            #pipes-container>div {
                min-width: 620px !important;
            }

            #pump-result-view {
                flex-direction: column !important;
                overflow: visible !important;
                height: auto !important;
            }

            #pump-result-view>div:first-child {
                width: 100% !important;
                border-right: none !important;
                border-bottom: 1px solid #e2e8f0 !important;
                overflow: visible !important;
            }

            #pump-result-view>div:last-child {
                width: 100% !important;
                min-height: 280px;
            }

            #tabs-header {
                height: auto !important;
                flex-wrap: wrap !important;
                padding: 0.5rem !important;
            }

            #step-3-screen>main {
                overflow: visible !important;
            }

            #msg-empty-3,
            #msg-notfound-3 {
                position: relative !important;
                min-height: 200px;
            }

            #navigation-bar {
                gap: 0.25rem !important;
                padding: 0.25rem !important;
            }

            .nav-step {
                padding: 0.3rem 0.55rem !important;
                font-size: 0.68rem !important;
            }

            #welcome-screen .grid {
                grid-template-columns: 1fr !important;
            }

            #welcome-screen h2 {
                font-size: 1.7rem !important;
            }

            #mobile-fab {
                display: flex !important;
            }
        }

        @media screen and (min-width: 768px) and (max-width: 1023px) {

            #step-1-screen>aside,
            #step-2-screen>aside {
                width: 250px !important;
            }

            #step-3-screen>aside {
                width: 220px !important;
            }
        }
