:root {
            --main-color: #1A48EE;
            --secondary-color: #008AFF;
            --secondary-background: #f9f9f9;
            --main-background: #e5f3ff;
            --color-white: #ffffff;
            --color-error: #c53030;
            --color-error-background: #fef2f2;
            --color-success: #065f46;
            --color-success-background: #f0fdf4;
            --border-color: #e2e8f0;
            --color-gray: #4a5568;
            --color-dark-gray: #1F2937;
            --focus-ring-color: rgba(26, 72, 238, 0.3);
        }
        .wrapper { padding: 2rem 1rem; }
        h1 {
            text-align: center;
            margin-top: 0px;
            color: var(--color-dark-gray);
            font-size: 2.25rem;
            font-weight: bold;
        }
        h2 {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--color-dark-gray);
            margin-top: 2rem;
            margin-bottom: 1rem;
        }
        h3 {
            font-size: 1.25rem;
            font-weight: 600;
        }
        h4 {
             font-size: 1.1rem;
             font-weight: 600;
             margin-bottom: 0.5rem;
        }
        p { margin: 0 0 16px; color: var(--color-gray); line-height: 1.6; }
        .articlecontainer { margin: auto; max-width: 800px; width: 100%; }
        .hidden { display: none; }
        .card {
            background-color: var(--color-white);
            border-radius: 16px;
            border: 1px solid var(--border-color);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            padding: 2.5rem;
            margin-bottom: 2rem;
        }
        .instructions {
            background-color: var(--color-white);
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            margin-bottom: 1.5rem;
        }
        .instructions ul { list-style-position: inside; padding-left:0; margin-left: 1rem; }
        .instructions li { margin-bottom: 0.5rem; }
        .ad-container { width: 100%; margin: 2rem auto; text-align: center; min-height: 90px; }
        .visually-hidden {
            position: absolute; width: 1px; height: 1px;
            padding: 0; margin: -1px; overflow: hidden;
            clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
        }

        .form-group { margin-bottom: 1.25rem; }
        .form-group label {
            display: block; font-size: 0.875rem; font-weight: 500;
            color: var(--color-dark-gray); margin-bottom: 0.5rem;
        }
        
        input[type="text"], input[type="number"], input[type="date"], textarea {
            width: 100%; padding: 0.75rem; border: 1px solid #cbd5e0;
            border-radius: 0.5rem; font-size: 1rem;
            transition: border-color 0.2s, box-shadow 0.2s;
            font-family: 'Inter', sans-serif;
        }
        input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus, textarea:focus {
            outline: none; border-color: var(--main-color);
            box-shadow: 0 0 0 3px var(--focus-ring-color);
        }
        
        textarea {
            min-height: 150px;
            line-height: 1.6;
        }

        .wpm-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem;
            background-color: var(--secondary-background);
            border-radius: 8px;
            margin-bottom: 1.5rem;
        }
        .wpm-controls label {
            font-weight: 500;
            color: var(--color-gray);
            margin: 0;
        }
        .wpm-controls input {
            width: 120px;
            text-align: center;
            font-weight: 600;
        }
        @media (min-width: 480px) {
            .wpm-controls {
                flex-direction: row;
                justify-content: center;
                gap: 1rem;
            }
            .wpm-controls label {
                margin-bottom: 0;
            }
        }
        
        .calculate-btn {
            width: 100%; background-color: var(--main-color); color: var(--color-white);
            font-weight: 600; padding: 0.85rem 2rem; border: none;
            border-radius: 0.5rem; transition: background-color 0.2s, transform 0.2s;
            cursor: pointer; font-size: 1rem; margin-top: 1.5rem;
        }
        .calculate-btn:hover { background-color: #2142c2; transform: translateY(-1px); }
        
        .result-message {
            background-color: var(--color-success-background);
            color: var(--color-success);
            border: 1px solid var(--color-success);
            padding: 1.25rem;
            margin-top: 1.5rem;
            border-radius: 8px;
            text-align: center;
            font-size: 1.1rem;
            font-weight: 600;
        }
        .result-message p { margin: 0; }

        .error-message {
            background-color: var(--color-error-background);
            color: var(--color-error);
            border: 1px solid var(--color-error);
            padding: 1.25rem;
            margin-top: 1.5rem;
            border-radius: 8px;
            text-align: center;
        }
        .error-message p { margin: 0; font-weight: 500; }

        .styled-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        .styled-table th, .styled-table td {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        .styled-table thead {
            background-color: var(--secondary-background);
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--color-gray);
        }
        .styled-table tbody tr:last-child td {
            border-bottom: none;
        }
        .styled-table tbody tr:hover {
            background-color: #fcfcfc;
        }
        
        @media (max-width: 480px) {
            .wrapper { padding: 1rem 0.5rem; }
            h1 { font-size: 1.75rem; }
            .card { padding: 1.5rem; }
            .styled-table th, .styled-table td {
                padding: 0.5rem 0.75rem;
                font-size: 0.9rem;
            }
        }