
/* =========================================================
   CharacterCounter.COM — Keyboard Counter CSS
   File name: keyboard-counter.css
========================================================= */


/* =========================================================
   1. Base Layout
========================================================= */

.footer {
    width: 100%;
}

.parent-vowel {
    display: grid;
    grid-template-columns: 1fr 8fr 1fr 300px;
    grid-template-rows: 1fr;
    grid-column-gap: 2px;
    grid-row-gap: 2px;
    width: 100%;
}

.div1-vowel {
    grid-area: 1 / 1 / 2 / 2;
}

.div2-vowel {
    grid-area: 1 / 3 / 2 / 4;
}

.div3-vowel {
    grid-area: 1 / 2 / 2 / 3;
    min-width: 0;
}

#sidebar {
    grid-area: 1 / 4 / 2 / 5;
    width: 300px;
    min-width: 300px;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    background: #fff;
    color: #111;
}

main {
    width: 100%;
    flex: 1 0 auto;
}

.keyboard-counter-section {
    width: 100%;
}


/* =========================================================
   2. Main Tool Container
========================================================= */

.vc-container {
    max-width: none;
    width: 100%;
    padding: 15px;
    margin-top: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: #fff;
    min-width: 0;
}

.vc-title {
    font-size: 56px;
    color: #333;
    margin: 0 auto;
    text-align: center;
    padding: 10px 0;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0;
}

.vc-intro {
    width: 100%;
    max-width: 750px;
    margin: 10px 0 24px;

    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    color: #444;
    font-weight: 300;
    letter-spacing: 0;
}


/* =========================================================
   3. Main Key Press Counter
========================================================= */

.keyboard-total {
    width: 90%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    margin: 0 0 20px;
}

.keyboard-total-label {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.keyboard-total-number {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    color: #1a73e8;
    letter-spacing: -2px;

    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    max-width: 100%;
}


/* =========================================================
   4. Keyboard Capture Area
========================================================= */

.keyboard-capture {
    width: 90%;
    min-height: 220px;

    padding: 30px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    text-align: center;

    border: 2px dashed #b8c6d8;
    border-radius: 10px;
    background: #f8fbff;

    cursor: pointer;

    user-select: none;
    -webkit-user-select: none;

    outline: none;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.1s ease;

    margin-bottom: 20px;
}

.keyboard-capture:hover {
    border-color: #1a73e8;
    background: #f3f8ff;
}

.keyboard-capture:focus,
.keyboard-capture:focus-visible,
.keyboard-capture.active,
.keyboard-capture.is-active {
    border: 2px solid #1a73e8;
    background: #f3f8ff;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.14);
}

.keyboard-capture:active {
    transform: translateY(1px);
}


/* Keyboard Icon */

.keyboard-capture-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #1a73e8;
    font-size: 52px;
    line-height: 1;

    margin-bottom: 4px;
}

.keyboard-capture-icon i {
    font-size: inherit;
    line-height: 1;
}


/* Capture Title */

.keyboard-capture-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    letter-spacing: 0;
}


/* Capture Instructions */

.keyboard-capture-hint {
    font-size: 16px;
    font-weight: 300;
    color: #555;
    line-height: 1.5;
    letter-spacing: 0;

    max-width: 520px;
    margin: 0;
}


/* Capture Status */

.keyboard-capture-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;

    margin-top: 6px;
    padding: 5px 12px;

    border-radius: 999px;

    border: 1px solid #d6dce5;
    background: #f1f3f4;

    color: #666;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.keyboard-capture:focus .keyboard-capture-status,
.keyboard-capture.active .keyboard-capture-status,
.keyboard-capture.is-active .keyboard-capture-status {
    color: #17653a;
    background: #e9f7ee;
    border-color: #a8d9ba;
}


/* =========================================================
   5. Keyboard Statistics
========================================================= */

.keyboard-stats {
    width: 90%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
    margin-bottom: 20px;
}

.keyboard-stat {
    min-width: 0;
    min-height: 105px;

    padding: 16px 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    text-align: center;

    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 10px;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.05);
}

.keyboard-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #555;
    line-height: 1.4;
}

.keyboard-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
    line-height: 1.2;
    letter-spacing: 0;

    overflow-wrap: anywhere;
    max-width: 100%;

    font-variant-numeric: tabular-nums;
}

.keyboard-stat-sub {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
}

.keyboard-stat-sub:empty {
    display: none;
}


/* =========================================================
   6. Reset Control
========================================================= */

.keyboard-controls {
    width: 90%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 14px;
    margin-bottom: 30px;
}

.keyboard-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 46px;
    padding: 12px 20px;

    background: #d32f2f;
    color: #fff;

    border: 1px solid #d32f2f;
    border-radius: 5px;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease;
}

.keyboard-reset-button i {
    font-size: 19px;
    line-height: 1;
}

.keyboard-reset-button:hover {
    background: #c62828;
    border-color: #c62828;
}

.keyboard-reset-button:active {
    background: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(2px);
}

.keyboard-reset-button:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 3px;
}


/* =========================================================
   7. Key Press Breakdown Section
========================================================= */

.keyboard-results {
    width: 90%;
    min-width: 0;
    margin: 0 0 20px;
}

.keyboard-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;
    gap: 14px;

    width: 100%;
    margin-bottom: 16px;
}

.keyboard-results-title {
    margin: 0;

    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    color: #333;
}


/* =========================================================
   8. Sort and Download Actions
========================================================= */

.keyboard-results-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-wrap: wrap;
    gap: 10px;

    min-width: 0;
}


/* Sort Control */

.keyboard-sort {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
}

.keyboard-sort label {
    font-size: 15px;
    font-weight: 400;
    color: #444;
    letter-spacing: 0;
    white-space: nowrap;
}

.keyboard-sort-select {
    min-height: 42px;
    min-width: 165px;
    max-width: 100%;

    padding: 9px 34px 9px 12px;

    border: 1px solid #ccc;
    border-radius: 6px;

    background-color: #fff;
    color: #333;

    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.keyboard-sort-select:hover {
    border-color: #888;
}

.keyboard-sort-select:focus {
    border-color: #1a73e8;
    outline: none;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.12);
}


/* =========================================================
   9. Download CSV Button
========================================================= */

.keyboard-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;
    padding: 9px 15px;

    background: #1a73e8;
    color: #fff;

    border: 1px solid #1a73e8;
    border-radius: 6px;

    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;

    white-space: nowrap;
    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease,
        opacity 0.15s ease;
}

.keyboard-download-button i {
    font-size: 18px;
    line-height: 1;
}

.keyboard-download-button:not(:disabled):hover {
    background: #1666cc;
    border-color: #1666cc;
}

.keyboard-download-button:not(:disabled):active {
    background: #1256ad;
    border-color: #1256ad;
    transform: translateY(1px);
}

.keyboard-download-button:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 3px;
}


/* Disabled until at least one key has been counted */

.keyboard-download-button:disabled {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #777;

    cursor: not-allowed;
    opacity: 1;
    transform: none;
}


/* =========================================================
   10. Key Frequency Table
========================================================= */

.keyboard-table-wrap {
    width: 100%;
    min-width: 0;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.keyboard-frequency-table {
    width: 100%;

    border-collapse: collapse;
    border-spacing: 0;

    background: #fff;
    table-layout: fixed;

    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0;
}

.keyboard-frequency-table th,
.keyboard-frequency-table td {
    padding: 12px 14px;

    border: 1px solid #d0d0d0;

    text-align: left;
    vertical-align: middle;

    color: #111;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0;

    overflow-wrap: anywhere;
}


/* Table Header */

.keyboard-frequency-table thead th {
    background: #f1f3f4;
    font-weight: 700;
    color: #333;
}


/* Column Widths */

.keyboard-frequency-table th:nth-child(1),
.keyboard-frequency-table td:nth-child(1) {
    width: 50%;
}

.keyboard-frequency-table th:nth-child(2),
.keyboard-frequency-table td:nth-child(2) {
    width: 25%;
    text-align: right;
}

.keyboard-frequency-table th:nth-child(3),
.keyboard-frequency-table td:nth-child(3) {
    width: 25%;
    text-align: right;
}


/* Table Body */

.keyboard-frequency-table tbody td {
    background: #fff;
    font-weight: 400;
}

.keyboard-frequency-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.keyboard-frequency-table tbody tr:hover td {
    background: #f3f8ff;
}

.keyboard-frequency-table tbody td:nth-child(2),
.keyboard-frequency-table tbody td:nth-child(3) {
    font-variant-numeric: tabular-nums;
}


/* Empty Table Message */

.keyboard-frequency-table .keyboard-empty-row td {
    width: auto;
    padding: 30px 18px;

    text-align: center;

    color: #777;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;

    background: #fff;
}

.keyboard-frequency-table .keyboard-empty-row:hover td {
    background: #fff;
}


/* Total Row */

.keyboard-frequency-table tfoot th,
.keyboard-frequency-table tfoot td {
    background: #f1f3f4;

    font-weight: 700;
    color: #111;

    font-variant-numeric: tabular-nums;
}

.keyboard-frequency-table tfoot td:nth-child(2),
.keyboard-frequency-table tfoot td:nth-child(3) {
    text-align: right;
}


/* =========================================================
   11. No JavaScript Message
========================================================= */

.keyboard-noscript {
    width: 90%;

    margin: 15px 0;
    padding: 14px;

    background: #fff8e1;
    border: 1px solid #f0d58b;
    border-radius: 6px;

    color: #664d03;

    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}


/* =========================================================
   12. Supporting Article / SEO Text
========================================================= */

.text {
    width: 100%;
    max-width: 900px;

    padding: 5px;

    color: #111;
    font-size: 18px;
    line-height: 1.65;
    letter-spacing: 0;
}

.text hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0 0 24px;
}

.text h2 {
    margin: 1.55em 0 0.55em;

    color: #111;

    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text h3 {
    margin: 1.25em 0 0.4em;

    color: #111;

    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}

.text p {
    margin-top: 1em;
    margin-bottom: 1em;

    color: #111;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: 0;
}

.text strong {
    font-weight: 700;
}

.text ul,
.text ol {
    margin: 1em 0 1.25em 35px;
    padding-left: 0;

    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0;
}

.text li {
    margin: 0.45em 0;

    color: #111;

    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0;
}

.text ul {
    list-style-type: disc;
}

.text ol {
    list-style-type: decimal;
}

.text a {
    color: #1a73e8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.text a:hover {
    text-decoration-thickness: 2px;
}


/* =========================================================
   13. General Layout Compatibility
========================================================= */

.parent-vowel p {
    margin-bottom: 20px;
}

.parent-vowel h2,
.parent-vowel h3 {
    margin-bottom: 20px;
}


/* Restore tool-specific spacing */

.parent-vowel .vc-intro {
    margin-bottom: 24px;
}

.parent-vowel .keyboard-capture-hint {
    margin-bottom: 0;
}

.parent-vowel .keyboard-results-title {
    margin: 0;
}

.parent-vowel .keyboard-noscript {
    margin-bottom: 15px;
}


/* SEO article heading spacing */

.parent-vowel .text h2 {
    margin: 1.55em 0 0.55em;
}

.parent-vowel .text h3 {
    margin: 1.25em 0 0.4em;
}


/* =========================================================
   14. Large Desktop
========================================================= */

@media screen and (min-width: 1200px) {

    .div3-vowel {
        max-width: 900px;
    }

}


/* =========================================================
   15. Desktop / Tablet With Sidebar
========================================================= */

@media screen and (max-width: 1200px) {

    .parent-vowel {
        display: grid;

        grid-template-columns: minmax(0, 1fr) 300px;
        grid-template-rows: 1fr;

        grid-column-gap: 2px;
        grid-row-gap: 2px;
    }

    .div1-vowel,
    .div2-vowel {
        display: none;
    }

    .div3-vowel {
        grid-area: 1 / 1 / 2 / 2;
        min-width: 0;
    }

    #sidebar {
        grid-area: 1 / 2 / 2 / 3;
    }

    .keyboard-results-title {
        font-size: 24px;
    }

    .keyboard-results-actions {
        justify-content: flex-start;
    }

}


/* =========================================================
   16. Tablet / Small Screens
========================================================= */

@media screen and (max-width: 992px) {

    .parent-vowel {
        grid-template-columns: minmax(0, 1fr);
    }

    .div3-vowel {
        grid-area: 1 / 1 / 2 / 2;
    }

    #sidebar {
        display: none;
    }

    .vc-title {
        font-size: 42px;
    }

    .keyboard-capture {
        min-height: 200px;
    }

    .keyboard-total-number {
        font-size: 72px;
    }

    .keyboard-results-header {
        align-items: flex-start;
    }

    .text {
        max-width: 100%;
    }

}


/* =========================================================
   17. Mobile
========================================================= */

@media screen and (max-width: 600px) {

    .vc-container {
        padding: 12px;
        margin-top: 12px;
    }

    .vc-title {
        font-size: 36px;
        padding: 6px 0 10px;
    }

    .vc-intro {
        font-size: 16px;
        line-height: 1.5;
        margin: 6px 0 22px;
    }


    /* Main Counter */

    .keyboard-total {
        width: 100%;
        margin-bottom: 18px;
    }

    .keyboard-total-label {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .keyboard-total-number {
        font-size: 64px;
        letter-spacing: -1px;
    }


    /* Capture Area */

    .keyboard-capture {
        width: 100%;
        min-height: 185px;

        padding: 24px 16px;
        gap: 9px;

        margin-bottom: 18px;
    }

    .keyboard-capture-icon {
        font-size: 44px;
    }

    .keyboard-capture-title {
        font-size: 21px;
    }

    .keyboard-capture-hint {
        font-size: 15px;
    }

    .keyboard-capture-status {
        font-size: 12px;
    }


    /* Statistics */

    .keyboard-stats {
        width: 100%;
        gap: 8px;
        margin-bottom: 18px;
    }

    .keyboard-stat {
        min-height: 100px;
        padding: 12px 7px;
        gap: 6px;
    }

    .keyboard-stat-label {
        font-size: 11px;
        letter-spacing: 0.1px;
    }

    .keyboard-stat-value {
        font-size: 23px;
    }

    .keyboard-stat-sub {
        font-size: 12px;
    }


    /* Reset Control */

    .keyboard-controls {
        width: 100%;
        gap: 14px;
        margin-bottom: 26px;
    }

    .keyboard-reset-button {
        min-height: 44px;
        padding: 11px 16px;
        font-size: 15px;
    }


    /* Breakdown Section */

    .keyboard-results {
        width: 100%;
        margin-bottom: 16px;
    }

    .keyboard-results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .keyboard-results-title {
        font-size: 24px;
    }


    /* Sorting and Download */

    .keyboard-results-actions {
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: space-between;

        flex-wrap: wrap;
        gap: 10px;
    }

    .keyboard-sort {
        flex: 1 1 auto;
        min-width: 0;
    }

    .keyboard-sort label {
        font-size: 15px;
    }

    .keyboard-sort-select {
        min-height: 42px;
        min-width: 0;
        font-size: 15px;
    }

    .keyboard-download-button {
        min-height: 42px;
        padding: 9px 13px;
        font-size: 14px;
    }

    .keyboard-download-button i {
        font-size: 17px;
    }


    /* Frequency Table */

    .keyboard-frequency-table th,
    .keyboard-frequency-table td {
        padding: 11px 9px;
        font-size: 15px;
    }

    .keyboard-frequency-table .keyboard-empty-row td {
        font-size: 15px;
        padding: 24px 12px;
    }


    /* Supporting Article */

    .text {
        padding: 5px;
        font-size: 16px;
        line-height: 1.6;
    }

    .text p,
    .text li,
    .text ul,
    .text ol {
        font-size: 16px;
        line-height: 1.6;
    }

    .text h2 {
        font-size: 25px;
    }

    .text h3 {
        font-size: 20px;
    }

}


/* =========================================================
   18. Narrow Mobile
========================================================= */

@media screen and (max-width: 460px) {

    /* Two statistic cards followed by one full-width */

    .keyboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .keyboard-stat {
        min-height: 95px;
    }

    .keyboard-stat:nth-child(3) {
        grid-column: 1 / -1;
        min-height: 85px;
    }

    .keyboard-stat-value {
        font-size: 25px;
    }


    /* Reset Full Width */

    .keyboard-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .keyboard-reset-button {
        width: 100%;
    }


    /* Sort Row Above CSV Button */

    .keyboard-results-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .keyboard-sort {
        display: flex;
        align-items: center;

        width: 100%;
        flex: none;
    }

    .keyboard-sort label {
        flex: 0 0 auto;
    }

    .keyboard-sort-select {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .keyboard-download-button {
        width: 100%;
        min-height: 44px;
        font-size: 15px;
    }

}


/* =========================================================
   19. Very Narrow Mobile
========================================================= */

@media screen and (max-width: 400px) {

    .vc-container {
        padding: 10px;
    }

    .vc-title {
        font-size: 33px;
    }

    .vc-intro {
        font-size: 15px;
    }

    .keyboard-total-number {
        font-size: 58px;
    }


    /* Capture Area */

    .keyboard-capture {
        min-height: 175px;
        padding: 22px 12px;
    }

    .keyboard-capture-icon {
        font-size: 40px;
    }

    .keyboard-capture-title {
        font-size: 19px;
    }

    .keyboard-capture-hint {
        font-size: 14px;
    }


    /* Statistics */

    .keyboard-stat {
        padding: 12px 8px;
    }

    .keyboard-stat-label {
        font-size: 11px;
    }

    .keyboard-stat-value {
        font-size: 23px;
    }


    /* Breakdown */

    .keyboard-results-title {
        font-size: 22px;
    }

    .keyboard-sort {
        gap: 8px;
    }

    .keyboard-sort label {
        font-size: 14px;
    }

    .keyboard-sort-select {
        font-size: 14px;
        padding-left: 10px;
    }

    .keyboard-download-button {
        font-size: 14px;
    }


    /* Table */

    .keyboard-frequency-table th,
    .keyboard-frequency-table td {
        padding: 10px 7px;
        font-size: 14px;
    }

    .text {
        padding: 5px;
    }

}


/* =========================================================
   20. Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .keyboard-capture,
    .keyboard-reset-button,
    .keyboard-sort-select,
    .keyboard-download-button {
        transition: none;
    }

    .keyboard-capture:active,
    .keyboard-reset-button:active,
    .keyboard-download-button:active {
        transform: none;
    }

}


/* =========================================================
   21. Header Navigation Color Fix
   Match Other CharacterCounter.com Tool Pages
========================================================= */

.header .list-link {
    color: var(--light-color-alt);
}

.header .list-link:hover {
    color: var(--light-color);
}


/* =========================================================
   22. Compact Laptop Layout
   Optimized for 13-inch MacBook Pro Screens

   Applies only when:
   - Viewport width is at least 993px
   - Viewport height is 850px or less

   Goal:
   Keep Unique Keys, Most Pressed Key,
   and Last Key Pressed above the fold.
========================================================= */

@media screen and (min-width: 993px) and (max-height: 850px) {

    /* Reduce container top spacing */

    .vc-container {
        margin-top: 10px;
    }


    /* Smaller H1 with less vertical padding */

    .vc-title {
        font-size: 48px;
        padding: 5px 0;
        line-height: 1.1;
    }


    /* Compact introduction */

    .parent-vowel .vc-intro {
        font-size: 16px;
        line-height: 1.4;
        margin: 5px 0 12px;
    }


    /* Main counter spacing */

    .keyboard-total {
        margin-bottom: 12px;
    }

    .keyboard-total-label {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .keyboard-total-number {
        font-size: 68px;
        line-height: 1.05;
    }


    /* Reduce capture area height */

    .keyboard-capture {
        min-height: 140px;
        padding: 12px 14px;
        gap: 4px;
        margin-bottom: 12px;
    }


    /* Smaller keyboard icon */

    .keyboard-capture-icon {
        font-size: 32px;
        margin-bottom: 0;
    }


    /* Compact capture text */

    .keyboard-capture-title {
        font-size: 20px;
        line-height: 1.25;
    }

    .keyboard-capture-hint {
        font-size: 14px;
        line-height: 1.35;
    }


    /* Compact active/inactive indicator */

    .keyboard-capture-status {
        min-height: 22px;
        margin-top: 2px;
        padding: 3px 10px;
        font-size: 12px;
    }


    /* Compact statistics */

    .keyboard-stats {
        gap: 10px;
        margin-bottom: 16px;
    }

    .keyboard-stat {
        min-height: 92px;
        padding: 10px 8px;
        gap: 4px;
    }

    .keyboard-stat-label {
        font-size: 12px;
    }

    .keyboard-stat-value {
        font-size: 26px;
    }

    .keyboard-stat-sub {
        font-size: 12px;
    }

}


/* =========================================================
   End of Keyboard Counter CSS
========================================================= */
