
/* =========================================================
   TEXT TO ASCII CONVERTER
   CharacterCounter.com
========================================================= */


/* =========================================================
   BASE LAYOUT
========================================================= */

.ascii-converter-main {
    width: 100%;
    background: #ffffff;
}

.ascii-converter-main *,
.ascii-converter-main *::before,
.ascii-converter-main *::after {
    box-sizing: border-box;
}

.ascii-converter-section {
    width: 100%;
    padding: 68px 20px 70px;
}

.ascii-converter-layout {
    display: grid;
    grid-template-columns: minmax(0, 900px) 300px;
    gap: 32px;
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
    align-items: stretch;
}

.ascii-converter-main-column {
    min-width: 0;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.ascii-converter-main .tool-header {
    margin-bottom: 28px;
    text-align: center;
}

.ascii-converter-main .tool-header h1 {
    margin: 0 0 12px;
    color: #202124;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.ascii-converter-main .tool-intro {
    max-width: 790px;
    margin: 0 auto;
    color: #5f6368;
    font-size: 17px;
    line-height: 1.6;
}


/* =========================================================
   MAIN CONVERTER
========================================================= */

.ascii-converter-tool {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   CONVERSION DIRECTION
========================================================= */

.ascii-direction-fieldset {
    width: 100%;
    min-width: 0;
    margin: 0 0 23px;
    padding: 0;
    border: 0;
}

.ascii-fieldset-title {
    margin: 0 0 10px;
    padding: 0;
    color: #202124;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.ascii-direction-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ascii-direction-option {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.ascii-direction-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
}

.ascii-direction-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #ffffff;
    color: #3c4043;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.ascii-direction-option:hover span {
    border-color: #bdc1c6;
    background: #f8f9fa;
}

.ascii-direction-option input:checked + span {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #174ea6;
}

.ascii-direction-option input:checked:hover + span {
    background: #dce8fc;
}

.ascii-direction-option input:focus-visible + span {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.ascii-direction-option input:disabled + span {
    opacity: 0.55;
    cursor: not-allowed;
}


/* =========================================================
   INPUT AND OUTPUT LAYOUT
========================================================= */

.ascii-input-output-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        34px
        minmax(0, 1fr);
    column-gap: 10px;
    width: 100%;
    align-items: start;
}

.ascii-text-panel {
    min-width: 0;
}

.ascii-panel-title {
    margin: 0 0 10px;
    color: #202124;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.ascii-textarea-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
}


/* =========================================================
   TEXTAREAS
========================================================= */

.ascii-textarea {
    display: block;
    width: 100%;
    height: 290px;
    min-height: 110px;
    margin: 0;
    padding: 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    resize: vertical;
    overflow-y: auto;
    overflow-x: auto;
    overflow-wrap: anywhere;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.ascii-textarea::placeholder {
    color: #80868b;
    opacity: 1;
}

.ascii-textarea:hover {
    border-color: #bdc1c6;
}

.ascii-textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}

.ascii-input-textarea {
    font-family: Arial, Helvetica, sans-serif;
}

.ascii-output-textarea {
    background: #fafafa;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 15px;
    line-height: 1.7;
}

.ascii-output-textarea:focus {
    background: #ffffff;
}

.ascii-textarea[readonly] {
    cursor: text;
}

.ascii-textarea:disabled {
    background: #f8f9fa;
    color: #80868b;
    cursor: not-allowed;
}


/* =========================================================
   TEXTAREA BUTTONS
   BELOW THE TEXT BOXES
========================================================= */

.ascii-textarea-actions {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    width: 100%;
    max-width: none;
    margin-top: 9px;
}

.ascii-textarea-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 61px;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid rgba(218, 220, 224, 0.95);
    border-radius: 5px;
    background: #f8f9fa;
    color: #3c4043;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.ascii-textarea-action:hover:not(:disabled) {
    border-color: #bdc1c6;
    background: #f1f3f4;
}

.ascii-textarea-action:active:not(:disabled) {
    background: #e8eaed;
}

.ascii-textarea-action:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.ascii-textarea-action:disabled {
    color: #9aa0a6;
    background: #f8f9fa;
    cursor: not-allowed;
}

.ascii-textarea-action.is-copied {
    border-color: #188038;
    background: #e6f4ea;
    color: #137333;
}


/* =========================================================
   SWAP BUTTON
========================================================= */

.ascii-swap-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    padding-top: 37px;
}

.ascii-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #ffffff;
    color: #3c4043;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.ascii-tool-button:hover:not(:disabled) {
    border-color: #bdc1c6;
    background: #f8f9fa;
}

.ascii-tool-button:active:not(:disabled) {
    background: #e8eaed;
}

.ascii-tool-button:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.ascii-tool-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ascii-swap-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
}

.ascii-swap-button i {
    font-size: 16px;
    line-height: 1;
}


/* =========================================================
   CONVERSION OPTIONS
========================================================= */

.ascii-options {
    width: 100%;
    margin-top: 23px;
    padding-top: 20px;
    border-top: 1px solid #dadce0;
}

.ascii-options-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    width: 100%;
}

.ascii-option-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.ascii-option-label {
    display: block;
    color: #202124;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.ascii-select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 43px;
    min-height: 43px;
    padding: 9px 34px 9px 12px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
}

.ascii-select:hover {
    border-color: #bdc1c6;
}

.ascii-select:focus {
    border-color: #1a73e8;
    outline: 2px solid #1a73e8;
    outline-offset: 1px;
}

.ascii-select:disabled {
    background: #f8f9fa;
    color: #9aa0a6;
    cursor: not-allowed;
}

.ascii-options-note {
    margin: 13px 0 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   CONVERSION STATUS
========================================================= */

.ascii-conversion-status {
    margin: 12px 0 0;
    padding: 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ascii-conversion-status:empty {
    display: none;
}

.ascii-conversion-status.is-error,
.ascii-conversion-status.error {
    padding: 11px 13px;
    border: 1px solid #f6c7c3;
    border-radius: 6px;
    background: #fce8e6;
    color: #b3261e;
}

.ascii-conversion-status.is-warning,
.ascii-conversion-status.warning {
    padding: 11px 13px;
    border: 1px solid #f3d18c;
    border-radius: 6px;
    background: #fef7e0;
    color: #795900;
}

.ascii-conversion-status.is-success,
.ascii-conversion-status.success {
    padding: 11px 13px;
    border: 1px solid #ceead6;
    border-radius: 6px;
    background: #e6f4ea;
    color: #137333;
}


/* =========================================================
   CONVERSION STATISTICS
========================================================= */

.ascii-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.ascii-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid #dadce0;
    border-radius: 7px;
    background: #ffffff;
}

.ascii-stat-card strong {
    display: block;
    max-width: 100%;
    color: #1a73e8;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.ascii-stat-card span {
    display: block;
    margin-top: 5px;
    color: #5f6368;
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   CHARACTER BREAKDOWN
========================================================= */

.ascii-breakdown-section {
    width: 100%;
    min-width: 0;
    margin-top: 37px;
}

.ascii-section-heading {
    margin-bottom: 15px;
}

.ascii-section-heading h2 {
    margin: 0 0 7px;
    color: #202124;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.ascii-section-heading p {
    margin: 0;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   SHARED TABLE STYLING
========================================================= */

.ascii-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.ascii-breakdown-table,
.ascii-example-table,
.ascii-reference-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    color: #3c4043;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.ascii-breakdown-table th,
.ascii-breakdown-table td,
.ascii-example-table th,
.ascii-example-table td,
.ascii-reference-table th,
.ascii-reference-table td {
    padding: 11px 13px;
    border-bottom: 1px solid #e8eaed;
    vertical-align: middle;
}

.ascii-breakdown-table thead th,
.ascii-example-table thead th,
.ascii-reference-table thead th {
    background: #f8f9fa;
    color: #202124;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.ascii-breakdown-table tbody tr:last-child td,
.ascii-example-table tbody tr:last-child td,
.ascii-reference-table tbody tr:last-child td {
    border-bottom: none;
}

.ascii-breakdown-table tbody tr:hover,
.ascii-example-table tbody tr:hover,
.ascii-reference-table tbody tr:hover {
    background: #f8f9fa;
}

.ascii-breakdown-table td,
.ascii-reference-table td {
    font-variant-numeric: tabular-nums;
}

.ascii-breakdown-table {
    min-width: 520px;
}

.ascii-breakdown-table th:first-child,
.ascii-breakdown-table td:first-child {
    min-width: 100px;
}

.ascii-breakdown-table th:last-child,
.ascii-breakdown-table td:last-child {
    white-space: nowrap;
}

.ascii-empty-row td {
    padding: 22px 14px;
    color: #80868b;
    font-size: 14px;
    text-align: center;
}

.ascii-breakdown-note {
    margin: 12px 0 0;
    color: #5f6368;
    font-size: 13px;
    line-height: 1.6;
}

.ascii-breakdown-note:empty {
    display: none;
}


/* =========================================================
   SHOW MORE BUTTON
========================================================= */

.ascii-show-more-button {
    display: flex;
    margin: 16px auto 0;
    padding: 9px 20px;
}

.ascii-show-more-button[hidden] {
    display: none !important;
}

.ascii-converter-main [hidden] {
    display: none !important;
}


/* =========================================================
   RELATED TOOLS CALLOUT
========================================================= */

.related-tool-callout {
    margin: 29px 0 34px;
    padding: 14px 16px;
    border: 1px solid #dadce0;
    border-radius: 7px;
    background: #f8f9fa;
    color: #3c4043;
    font-size: 14px;
    line-height: 1.65;
}

.related-tool-row + .related-tool-row {
    margin-top: 8px;
}

.related-tool-callout strong {
    color: #202124;
    font-weight: 600;
}

.related-tool-callout a,
.ascii-converter-content a {
    color: #1a73e8;
    text-decoration: none;
}

.related-tool-callout a:hover,
.related-tool-callout a:focus,
.ascii-converter-content a:hover,
.ascii-converter-content a:focus {
    color: #1558b0;
    text-decoration: underline;
}


/* =========================================================
   SEO CONTENT
========================================================= */

.ascii-converter-content {
    width: 100%;
    min-width: 0;
    color: #3c4043;
}

.ascii-converter-content h2 {
    margin: 38px 0 13px;
    color: #202124;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.ascii-converter-content h2:first-child {
    margin-top: 0;
}

.ascii-converter-content h3 {
    margin: 26px 0 10px;
    color: #202124;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.ascii-converter-content p {
    margin: 0 0 17px;
    color: #3c4043;
    font-size: 16px;
    line-height: 1.75;
}

.ascii-converter-content strong {
    color: #202124;
    font-weight: 600;
}

.ascii-converter-content p code {
    display: inline;
    padding: 2px 5px;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    background: #f8f9fa;
    color: #202124;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.ascii-converter-content ul,
.ascii-converter-content ol {
    margin: 0 0 18px;
    padding-left: 25px;
}

.ascii-converter-content li {
    margin-bottom: 8px;
    color: #3c4043;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   CONVERSION EXAMPLE
========================================================= */

.ascii-example {
    width: 100%;
    margin: 18px 0 22px;
    padding: 17px 18px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #f8f9fa;
}

.ascii-example-label {
    margin-bottom: 7px;
    color: #5f6368;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.ascii-example-label:not(:first-child) {
    margin-top: 17px;
}

.ascii-example code {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* =========================================================
   EXAMPLE TABLE
========================================================= */

.ascii-example-table {
    min-width: 360px;
}

.ascii-example-table tbody th {
    color: #202124;
    font-weight: 600;
}

.ascii-example-table td {
    font-family:
        Consolas,
        "Courier New",
        monospace;
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   COMPLETE ASCII REFERENCE TABLE
========================================================= */

.ascii-reference-details {
    width: 100%;
    margin: 18px 0 25px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.ascii-reference-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 14px 17px;
    background: #f8f9fa;
    color: #202124;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.ascii-reference-details > summary::-webkit-details-marker {
    display: none;
}

.ascii-reference-details > summary::marker {
    content: "";
}

.ascii-reference-details > summary:hover {
    background: #f1f3f4;
}

.ascii-reference-details > summary:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: -3px;
}

.ascii-reference-details > summary i {
    flex-shrink: 0;
    color: #5f6368;
    font-size: 21px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ascii-reference-details[open] > summary {
    border-bottom: 1px solid #dadce0;
}

.ascii-reference-details[open] > summary i {
    transform: rotate(180deg);
}

.ascii-reference-content {
    width: 100%;
    min-width: 0;
    padding: 15px;
}

.ascii-reference-content .ascii-table-wrapper {
    max-height: 520px;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ascii-reference-table {
    min-width: 390px;
}

.ascii-reference-table caption {
    padding: 10px 12px;
    color: #202124;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    caption-side: top;
}

.ascii-reference-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f9fa;
}

.ascii-reference-table th:first-child,
.ascii-reference-table td:first-child {
    width: 100px;
}

.ascii-reference-table th:nth-child(2),
.ascii-reference-table td:nth-child(2) {
    width: 85px;
}

.ascii-reference-table td:nth-child(2) {
    font-family:
        Consolas,
        "Courier New",
        monospace;
}


/* =========================================================
   ADVERTISING SIDEBAR
========================================================= */

#sidebar {
    width: 300px;
    min-width: 300px;
    min-height: 600px;
    align-self: stretch;
    position: relative;
}


/* =========================================================
   RESPONSIVE: SMALLER DESKTOP
========================================================= */

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

    .ascii-converter-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
    }

}


/* =========================================================
   RESPONSIVE: TABLET / HIDE SIDEBAR
========================================================= */

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

    .ascii-converter-section {
        padding-top: 82px;
    }

    .ascii-converter-layout {
        display: block;
        max-width: 900px;
    }

    #sidebar {
        display: none;
    }

    .ascii-converter-main .tool-header h1 {
        font-size: 32px;
    }

}


/* =========================================================
   RESPONSIVE: STACK CONVERTER BOXES
========================================================= */

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

    .ascii-input-output-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .ascii-text-panel {
        width: 100%;
    }

    .ascii-swap-container {
        min-height: 0;
        padding: 12px 0;
    }

    .ascii-swap-button {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .ascii-swap-button i {
        transform: rotate(90deg);
    }

    .ascii-textarea {
        height: 210px;
        min-height: 100px;
    }

    .ascii-options-grid {
        gap: 14px;
    }

}


/* =========================================================
   RESPONSIVE: SMALL TABLETS
========================================================= */

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

    .ascii-converter-section {
        padding: 82px 16px 55px;
    }

    .ascii-converter-main .tool-header {
        margin-bottom: 24px;
    }

    .ascii-converter-main .tool-header h1 {
        font-size: 30px;
    }

    .ascii-converter-main .tool-intro {
        font-size: 16px;
    }

    .ascii-direction-fieldset {
        margin-bottom: 20px;
    }

    .ascii-panel-title {
        font-size: 19px;
    }

    .ascii-options {
        margin-top: 20px;
    }

    .ascii-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .ascii-option-group:last-child {
        grid-column: 1 / -1;
    }

    .ascii-stat-card {
        min-height: 70px;
        padding: 10px 12px;
    }

    .ascii-stat-card strong {
        font-size: 21px;
    }

    .ascii-breakdown-section {
        margin-top: 32px;
    }

    .ascii-section-heading h2 {
        font-size: 22px;
    }

    .ascii-converter-content h2 {
        margin-top: 32px;
        font-size: 22px;
    }

    .ascii-converter-content h3 {
        margin-top: 24px;
        font-size: 18px;
    }

}


/* =========================================================
   RESPONSIVE: MOBILE PHONES
========================================================= */

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

    .ascii-converter-section {
        padding: 82px 14px 48px;
    }

    .ascii-converter-main .tool-header {
        margin-bottom: 22px;
    }

    .ascii-converter-main .tool-header h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .ascii-converter-main .tool-intro {
        font-size: 15px;
        line-height: 1.6;
    }

    .ascii-fieldset-title {
        font-size: 15px;
    }

    .ascii-direction-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ascii-direction-option {
        display: block;
        min-width: 0;
    }

    .ascii-direction-option span {
        width: 100%;
        min-height: 40px;
        padding: 8px 9px;
        font-size: 13px;
    }

    .ascii-panel-title {
        margin-bottom: 8px;
        font-size: 19px;
    }

    .ascii-textarea {
        height: 190px;
        min-height: 90px;
        padding: 14px;
        font-size: 16px;
        line-height: 1.6;
    }

    .ascii-output-textarea {
        font-size: 14px;
        line-height: 1.7;
    }

    .ascii-textarea-actions {
        margin-top: 8px;
        gap: 7px;
    }

    .ascii-textarea-action {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .ascii-swap-container {
        padding: 11px 0;
    }

    .ascii-swap-button {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
    }

    .ascii-options {
        margin-top: 18px;
        padding-top: 17px;
    }

    .ascii-options-grid {
        gap: 13px;
    }

    .ascii-option-label {
        font-size: 14px;
    }

    .ascii-select {
        height: 41px;
        min-height: 41px;
        padding: 8px 30px 8px 10px;
        font-size: 13px;
    }

    .ascii-options-note {
        margin-top: 11px;
        font-size: 12.5px;
    }

    .ascii-stats {
        gap: 7px;
        margin-top: 18px;
    }

    .ascii-stat-card {
        min-height: 66px;
        padding: 9px 8px;
    }

    .ascii-stat-card strong {
        font-size: 19px;
    }

    .ascii-stat-card span {
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.3;
    }

    .ascii-breakdown-section {
        margin-top: 29px;
    }

    .ascii-section-heading h2 {
        font-size: 21px;
    }

    .ascii-section-heading p {
        font-size: 13px;
    }

    .ascii-breakdown-table,
    .ascii-example-table,
    .ascii-reference-table {
        font-size: 13px;
    }

    .ascii-breakdown-table th,
    .ascii-breakdown-table td,
    .ascii-example-table th,
    .ascii-example-table td,
    .ascii-reference-table th,
    .ascii-reference-table td {
        padding: 10px 11px;
    }

    .ascii-breakdown-note {
        font-size: 12.5px;
    }

    .ascii-show-more-button {
        min-height: 40px;
        font-size: 13px;
    }

    .related-tool-callout {
        margin: 25px 0 30px;
        padding: 12px 13px;
        font-size: 13.5px;
    }

    .ascii-converter-content h2 {
        font-size: 22px;
    }

    .ascii-converter-content h3 {
        font-size: 18px;
    }

    .ascii-converter-content p {
        font-size: 15.5px;
        line-height: 1.7;
    }

    .ascii-converter-content li {
        font-size: 15px;
    }

    .ascii-example {
        padding: 13px;
    }

    .ascii-example code {
        padding: 11px 12px;
        font-size: 13px;
    }

    .ascii-reference-details > summary {
        min-height: 47px;
        padding: 12px 13px;
        font-size: 14px;
    }

    .ascii-reference-content {
        padding: 10px;
    }

    .ascii-reference-content .ascii-table-wrapper {
        max-height: 440px;
    }

}


/* =========================================================
   RESPONSIVE: VERY SMALL PHONES
========================================================= */

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

    .ascii-converter-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ascii-converter-main .tool-header h1 {
        font-size: 26px;
    }

    .ascii-direction-options {
        gap: 6px;
    }

    .ascii-direction-option span {
        padding: 8px 6px;
        font-size: 12px;
    }

    .ascii-panel-title {
        font-size: 18px;
    }

    .ascii-textarea {
        height: 180px;
    }

    .ascii-textarea-action {
        padding: 6px 8px;
        font-size: 12px;
    }

    .ascii-options-grid {
        gap: 10px;
    }

    .ascii-option-label {
        font-size: 13px;
    }

    .ascii-stat-card {
        padding: 8px 6px;
    }

    .ascii-stat-card strong {
        font-size: 18px;
    }

    .ascii-stat-card span {
        font-size: 10px;
    }

    .ascii-converter-content h2 {
        font-size: 21px;
    }

}


/* =========================================================
   ACCESSIBILITY AND REDUCED MOTION
========================================================= */

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

    .ascii-converter-main *,
    .ascii-converter-main *::before,
    .ascii-converter-main *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}


/* =========================================================
   PRINT STYLES
========================================================= */

@media print {

    .ascii-converter-section {
        padding: 15px 0;
    }

    .ascii-converter-layout {
        display: block;
        max-width: 100%;
    }

    #sidebar,
    .ascii-swap-container,
    .ascii-textarea-actions,
    .ascii-show-more-button,
    .related-tool-callout {
        display: none !important;
    }

    .ascii-input-output-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .ascii-textarea {
        height: 180px;
        border: 1px solid #999999;
        resize: none;
    }

    .ascii-reference-content .ascii-table-wrapper {
        max-height: none;
        overflow: visible;
    }

    .ascii-converter-content h2,
    .ascii-converter-content h3 {
        break-after: avoid;
    }

}
