.input-group-custom {
            margin-bottom: 1rem;
        }
        .p-value-display {
            font-weight: 600;
            color: #28a745;
            font-size: 1.8rem;
        }
        .deep-dive {
            margin: 1.8rem 0;
        }
        .deep-dive p {
            text-align: justify;
        }
        .unit-note {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .coord-input {
            margin-bottom: 0.5rem;
        }
        .geometry-canvas {
            width: 100%;
            height: auto;
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 8px;
            margin-top: 1.5rem;
            display: block;
        }
        .canvas-container {
            text-align: center;
            margin-top: 1rem;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 0.5rem 0;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
        }
        .legend-color.red { background-color: #dc3545; }
        .legend-color.blue { background-color: #0d6efd; }
        .legend-color.green { background-color: #28a745; }
        .legend-color.orange { background-color: #fd7e14; }
        .result-container .row {
            align-items: center;
        }
        .dist-selector .btn-group {
            width: 100%;
        }
        .dist-selector .btn {
            flex: 1;
        }
        .param-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        @media (max-width: 576px) {
            .param-grid {
                grid-template-columns: 1fr;
            }
        }
        .stat-badge {
            display: inline-block;
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.8rem;
        }
        .stat-badge.z { background: #e3f2fd; color: #0d47a1; }
        .stat-badge.t { background: #fce4ec; color: #b71c1c; }
        .stat-badge.chi { background: #e8f5e9; color: #1b5e20; }
        .stat-badge.f { background: #fff3e0; color: #e65100; }
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
        }
        .test-stat-input {
            max-width: 180px;
        }
        .p-value-section {
            background: #f8fff8;
            border: 1px solid #b7e4b7;
            border-radius: 6px;
            padding: 0.8rem 1.2rem;
            margin-top: 0.5rem;
        }