/* page-speed: converted from /PageSpeed.html 2026-11-03. Every rule is fenced inside .tool-app. */
.tool-app *{margin: 0;
            padding: 0;
            box-sizing: border-box;}
.tool-app{font-family: inherit;
            background: transparent;
            
            padding: 20px;}
.tool-app .container{background: white;
            border-radius: 10px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            padding: 40px;
            max-width: 900px;
            margin: 0 auto;}
.tool-app .tool-title{color: var(--navy);
            margin-bottom: 10px;
            font-size: 28px;}
.tool-app .subtitle{color: var(--navy-76);
            margin-bottom: 30px;
            font-size: 14px;}
.tool-app .form-group{margin-bottom: 20px;}
.tool-app label{display: block;
            margin-bottom: 8px;
            color: var(--navy);
            font-weight: bold;}
.tool-app input[type="text"]{width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            transition: border-color 0.3s;}
.tool-app input[type="text"]:focus{outline: none;
            border-color: var(--orange);}
.tool-app .device-selector{display: flex;
            gap: 10px;
            margin-bottom: 20px;}
.tool-app .device-btn{flex: 1;
            padding: 12px;
            background: #f0f0f0;
            border: 2px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: all 0.3s;}
.tool-app .device-btn.active{background: var(--orange);
            color: white;
            border-color: var(--orange);}
.tool-app .device-btn:hover{transform: translateY(-2px);}
.tool-app button[type="submit"]{width: 100%;
            padding: 14px;
            background: var(--orange);
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s;}
.tool-app button[type="submit"]:hover{transform: translateY(-2px);}
.tool-app button[type="submit"]:disabled{opacity: 0.6;
            cursor: not-allowed;}
.tool-app .results{margin-top: 30px;
            display: none;}
.tool-app .results.show{display: block;}
.tool-app .score-card{background: #f8f9fa;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            margin-bottom: 30px;}
.tool-app .score-circle{width: 150px;
            height: 150px;
            border-radius: 50%;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            font-weight: bold;
            color: white;
            position: relative;}
.tool-app .score-circle.good{background: linear-gradient(135deg, #0cce6b 0%, #08a552 100%);}
.tool-app .score-circle.average{background: linear-gradient(135deg, #ffa400 0%, #ff8c00 100%);}
.tool-app .score-circle.poor{background: linear-gradient(135deg, #ff4e42 0%, #d32f2f 100%);}
.tool-app .score-label{font-size: 18px;
            color: var(--navy-76);
            font-weight: bold;}
.tool-app .metrics-grid{display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;}
.tool-app .metric-card{background: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            border-left: 4px solid var(--orange);}
.tool-app .metric-title{font-size: 14px;
            color: var(--navy-76);
            margin-bottom: 10px;
            font-weight: bold;}
.tool-app .metric-value{font-size: 24px;
            color: var(--navy);
            font-weight: bold;
            margin-bottom: 5px;}
.tool-app .metric-rating{display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;}
.tool-app .metric-rating.good{background: #e8f5e9;
            color: #2e7d32;}
.tool-app .metric-rating.needs-improvement{background: #fff3e0;
            color: #f57c00;}
.tool-app .metric-rating.poor{background: #ffebee;
            color: #c62828;}
.tool-app .section-title{font-size: 20px;
            color: var(--navy);
            margin-bottom: 20px;
            font-weight: bold;
            border-bottom: 2px solid var(--orange);
            padding-bottom: 10px;}
.tool-app .loading{text-align: center;
            color: var(--orange);
            margin-top: 20px;
            display: none;}
.tool-app .loading.show{display: block;}
.tool-app .loading-spinner{border: 4px solid #f3f3f3;
            border-top: 4px solid var(--orange);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 20px auto;}
@keyframes spin{
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
.tool-app .error{background: #fee;
            color: #c33;
            padding: 15px;
            border-radius: 5px;
            margin-top: 20px;
            display: none;}
.tool-app .error.show{display: block;}
.tool-app .api-note{background: #fff3cd;
            border: 1px solid #ffc107;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
            font-size: 14px;}
.tool-app .api-note strong{display: block;
            margin-bottom: 5px;}
.tool-app .api-note a{color: var(--orange);
            text-decoration: none;
            font-weight: bold;}
.tool-app .api-note a:hover{text-decoration: underline;}
.tool-app .url-display{background: #f8f9fa;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
            word-break: break-all;}
.tool-app .url-label{font-size: 12px;
            color: var(--navy-76);
            margin-bottom: 5px;}
.tool-app .url-value{font-size: 16px;
            color: var(--navy);
            font-weight: bold;}
.tool-app .opportunities{background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-top: 20px;}
.tool-app .opportunity-item{padding: 10px 0;
            border-bottom: 1px solid #ddd;}
.tool-app .opportunity-item:last-child{border-bottom: none;}
.tool-app .opportunity-title{font-weight: bold;
            color: var(--navy);
            margin-bottom: 5px;}
.tool-app .opportunity-description{font-size: 14px;
            color: var(--navy-76);}
