/* Filename: twitterTest.css */


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

.twitter-counter-page {
    box-sizing: border-box;
    width: 100%;
    padding: 106px 16px 64px;
}


/* =========================================================
   PAGE GRID
========================================================= */

.twitter-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    width: min(100%, 1200px);
    margin: 0 auto;
    align-items: start;
}


.twitter-main-column {
    min-width: 0;
}


.twitter-sidebar {
    width: 300px;
    min-width: 300px;
}


.sidebar-ad {
    width: 300px;
    min-height: 600px;
}


/* =========================================================
   MAIN CONTENT WIDTH
========================================================= */

.twitter-tool,
.twitter-content {
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}


.twitter-tool {
    color: #17212b;
}


/* =========================================================
   TOOL HEADING
========================================================= */

.tool-heading {
    margin-bottom: 18px;
    text-align: center;
}


.tool-heading h1 {
    margin: 0;
    color: #031f30;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}


/* =========================================================
   PRIMARY METRIC
========================================================= */

.primary-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}


.primary-metric {
    box-sizing: border-box;
    min-width: 0;
    padding: 15px 20px 14px;

    background: #ffffff;
    border: 1px solid #d7e4ec;
    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(3, 31, 48, 0.07);

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}


.primary-metric-single {
    width: 100%;
}


/* =========================================================
   CENTER MAIN METRIC
========================================================= */

.primary-metric-centered {
    text-align: center;
}


.primary-metric-centered .metric-heading-row {
    justify-content: center;
}


.primary-metric-centered .metric-count,
.primary-metric-centered .metric-remaining {
    text-align: center;
}


/* =========================================================
   PRIMARY METRIC HEADING
========================================================= */

.metric-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}


.metric-label {
    color: #17384d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}


.metric-limit {
    color: #788793;
    font-size: 13px;
    white-space: nowrap;
}


/* =========================================================
   PRIMARY METRIC COUNT
========================================================= */

.metric-count {
    color: #071b28;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}


.metric-total {
    color: #75838d;
    font-size: 17px;
    font-weight: 500;
}


/* =========================================================
   REMAINING COUNT
========================================================= */

.metric-remaining {
    min-height: 20px;
    margin-top: 5px;

    color: #667681;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   PROGRESS BAR
========================================================= */

.metric-progress {
    height: 5px;
    margin-top: 9px;

    overflow: hidden;

    background: #e9eff3;
    border-radius: 999px;
}


.metric-progress span {
    display: block;

    width: 0;
    height: 100%;

    background: #1682bd;
    border-radius: inherit;

    transition:
        width 120ms ease,
        background-color 160ms ease;
}


/* =========================================================
   WARNING STATE

   Begins at 260 characters:
   20 characters remaining.
========================================================= */

.primary-metric.is-warning:not(.is-over) {
    border-color: #e2c174;
}


.primary-metric.is-warning:not(.is-over) .metric-progress span {
    background: #e9a11b;
}


.primary-metric.is-warning:not(.is-over) .metric-remaining {
    color: #a96b00;
}


/* =========================================================
   OVER LIMIT STATE
========================================================= */

.primary-metric.is-over {
    background: #fffafa;
    border-color: #d13b3b;
}


.primary-metric.is-over .metric-count,
.primary-metric.is-over .metric-remaining {
    color: #bd2525;
}


.primary-metric.is-over .metric-progress span {
    background: #c93232;
}


/* =========================================================
   EDITOR + SIX METRIC BOXES

   Textarea resizing does not resize or reposition
   the six metric boxes.
========================================================= */

.twitter-editor-layout {
    display: grid;

    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "metrics editor";

    gap: 10px;

    align-items: start;
}


/* =========================================================
   EDITOR COLUMN
========================================================= */

.editor-column {
    grid-area: editor;

    min-width: 0;
    width: 100%;
}


/* =========================================================
   SIX METRIC BOXES
========================================================= */

.metrics-column {
    grid-area: metrics;

    display: grid;

    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 58px);

    gap: 6px;

    min-width: 0;
    width: 100%;
}


/* =========================================================
   EDITOR CARD
========================================================= */

.editor-card {
    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    width: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #cbd8e1;
    border-radius: 14px;

    box-shadow: 0 7px 24px rgba(3, 31, 48, 0.08);

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}


.editor-card:focus-within {
    border-color: #1479b4;

    box-shadow:
        0 0 0 3px rgba(20, 121, 180, 0.11),
        0 7px 24px rgba(3, 31, 48, 0.08);
}


/* =========================================================
   TEXTAREA
========================================================= */

#userWord {
    display: block;

    box-sizing: border-box;

    width: 100%;

    height: 316px;
    min-height: 110px;
    max-height: 700px;

    margin: 0;
    padding: 16px 18px;

    resize: vertical;
    overflow: auto;

    border: 0;
    outline: 0;

    background: #ffffff;
    color: #15222c;

    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
}


#userWord::placeholder {
    color: #8b98a2;
    opacity: 1;
}


/* =========================================================
   EDITOR FOOTER
========================================================= */

.editor-footer {
    display: flex;
    flex: 0 0 auto;

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

    gap: 10px;

    padding: 10px 12px 11px;

    border-top: 1px solid #e5ebef;

    background: #fbfcfd;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.tool-actions {
    display: flex;
    flex: 0 0 auto;

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

    gap: 8px;

    width: 100%;
}


/* =========================================================
   BUTTONS
========================================================= */

.tool-button {
    min-height: 38px;
    padding: 8px 13px;

    border: 1px solid transparent;
    border-radius: 9px;

    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        transform 140ms ease,
        opacity 140ms ease;
}


.tool-button:hover:not(:disabled) {
    transform: translateY(-1px);
}


.tool-button:focus-visible {
    outline: 3px solid rgba(20, 121, 180, 0.24);
    outline-offset: 2px;
}


.tool-button:disabled {
    opacity: 0.46;
    cursor: default;
    transform: none;
}


/* =========================================================
   WHITE SECONDARY BUTTONS
========================================================= */

.tool-button-secondary {
    color: #36505f;

    background: #ffffff;

    border-color: #cbd8e1;
}


.tool-button-secondary:hover:not(:disabled) {
    background: #f1f6f9;
    border-color: #aebfca;
}


/* =========================================================
   BLUE PRIMARY BUTTON

   Convert to Twitter Thread
========================================================= */

.tool-button-primary {
    color: #ffffff;

    background: #0879b4;

    border-color: #0879b4;
}


.tool-button-primary:hover:not(:disabled) {
    background: #056a9f;
    border-color: #056a9f;
}


/* =========================================================
   COPY BUTTON
========================================================= */

#copyButton {
    min-width: 72px;
}


/* =========================================================
   THREAD MAKER BUTTON
========================================================= */

#threadMakerButton {
    padding-left: 15px;
    padding-right: 15px;
}


/* =========================================================
   SECONDARY METRIC CARDS
========================================================= */

.secondary-metric {
    display: flex;

    box-sizing: border-box;

    min-width: 0;
    height: 58px;

    flex-direction: column;
    justify-content: center;

    gap: 3px;

    padding: 7px 11px;

    background: #f6fbfe;

    border: 1px solid #d8e7ef;
    border-radius: 10px;

    overflow: visible;

    transition:
        border-color 140ms ease,
        background-color 140ms ease,
        color 140ms ease;
}


/* =========================================================
   SECONDARY OVER-LIMIT STATE
========================================================= */

.secondary-metric.is-over {
    background: #fff5f5;
    border-color: #e7aaaa;
}


.secondary-metric.is-over .secondary-label,
.secondary-metric.is-over .secondary-count {
    color: #bd2525;
}


/* =========================================================
   SECONDARY METRIC LABEL
========================================================= */

.secondary-label {
    color: #527080;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.02em;
    text-transform: uppercase;
}


/* =========================================================
   SECONDARY METRIC COUNT
========================================================= */

.secondary-count {
    color: #183647;

    font-size: 13px;
    line-height: 1.2;

    font-variant-numeric: tabular-nums;

    white-space: nowrap;
}


.secondary-count strong {
    font-size: 17px;
}


/* =========================================================
   USERNAME METRIC
========================================================= */

.username-metric {
    position: relative;
    z-index: 5;
}


/* =========================================================
   USERNAME INVALID STATE
========================================================= */

.username-metric.is-invalid,
.username-metric.has-error {
    background: #fff5f5;
    border-color: #df9292;
}


.username-metric.is-invalid .secondary-label,
.username-metric.has-error .secondary-label {
    color: #a52c2c;
}


.username-metric.is-invalid .secondary-count,
.username-metric.has-error .secondary-count {
    color: #bd2525;
}


/* =========================================================
   USERNAME LABEL ROW
========================================================= */

.secondary-label-row {
    display: flex;

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

    gap: 6px;

    min-width: 0;
}


/* =========================================================
   USERNAME INFO TOOLTIP WRAPPER
========================================================= */

.metric-info-wrapper {
    position: relative;

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

    flex: 0 0 auto;
}


/* =========================================================
   USERNAME INFO BUTTON
========================================================= */

.metric-info {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    width: 18px;
    height: 18px;

    padding: 0;
    margin: 0;

    border: 1px solid #afc2cd;
    border-radius: 50%;

    background: #ffffff;

    color: #536f7e;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    text-align: center;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        color 120ms ease,
        border-color 120ms ease,
        background-color 120ms ease;
}


.metric-info:hover {
    color: #176f9f;
    border-color: #70a5c1;
    background: #f5fbfe;
}


.metric-info:focus-visible {
    outline: 2px solid rgba(20, 121, 180, 0.28);
    outline-offset: 2px;
}


/* Red state retains a visible info button */

.username-metric.is-invalid .metric-info,
.username-metric.has-error .metric-info {
    color: #9b4141;
    border-color: #d2a1a1;
    background: #ffffff;
}


.username-metric.is-invalid .metric-info:hover,
.username-metric.has-error .metric-info:hover {
    color: #8d2929;
    border-color: #bd7777;
    background: #fffafa;
}


/* =========================================================
   CUSTOM TOOLTIP

   Hidden by default.

   Shows immediately when:
   - info button is hovered
   - info button receives keyboard focus
   - JS adds .is-open to the wrapper on tap/click
========================================================= */

.metric-tooltip {
    position: absolute;

    z-index: 100;

    left: 50%;
    bottom: calc(100% + 9px);

    width: 205px;

    box-sizing: border-box;

    padding: 10px 11px;

    transform:
        translateX(-50%)
        translateY(4px);

    border: 1px solid #c7d7e0;
    border-radius: 8px;

    background: #17313f;
    color: #ffffff;

    box-shadow:
        0 8px 24px rgba(3, 31, 48, 0.18);

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.42;

    text-align: left;
    letter-spacing: normal;
    text-transform: none;

    white-space: normal;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 110ms ease,
        transform 110ms ease,
        visibility 110ms ease;
}


/* =========================================================
   TOOLTIP TITLE
========================================================= */

.metric-tooltip strong {
    display: block;

    margin-bottom: 3px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}


/* =========================================================
   TOOLTIP BODY
========================================================= */

.metric-tooltip span {
    display: block;

    color: #e2edf2;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.42;
}


/* =========================================================
   TOOLTIP ARROW
========================================================= */

.metric-tooltip::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 100%;

    width: 0;
    height: 0;

    transform: translateX(-50%);

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #17313f;
}


/* =========================================================
   SHOW TOOLTIP ON HOVER
========================================================= */

.metric-info-wrapper:hover .metric-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   SHOW TOOLTIP ON KEYBOARD FOCUS
========================================================= */

.metric-info-wrapper:focus-within .metric-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   SHOW TOOLTIP ON TAP / CLICK

   JS should add .is-open to .metric-info-wrapper.
========================================================= */

.metric-info-wrapper.is-open .metric-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   USERNAME COUNT + STATUS ROW
========================================================= */

.secondary-count-row {
    display: flex;

    align-items: baseline;
    justify-content: space-between;

    gap: 6px;

    min-width: 0;
}


/* =========================================================
   USERNAME STATUS
========================================================= */

.secondary-status {
    min-width: 0;

    overflow: hidden;

    color: #bd2525;

    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.15;

    text-align: right;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.secondary-status:empty {
    display: none;
}


/* =========================================================
   DESCRIPTION BELOW TOOL
========================================================= */

.tool-description {
    margin-top: 30px;

    color: #4c5e69;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   PRIMARY DESCRIPTION PANEL
========================================================= */

.tool-description-primary {
    box-sizing: border-box;

    margin: 0;
    padding: 14px 17px;

    background: #f7fafc;

    border: 1px solid #dce7ed;
    border-left: 3px solid #1682bd;

    border-radius: 9px;

    color: #435864;

    line-height: 1.65;
}


/* =========================================================
   DESCRIPTION PARAGRAPHS
========================================================= */

.tool-description p {
    margin: 0;
}


.tool-description p + p {
    margin-top: 12px;
}


/* =========================================================
   DESCRIPTION LINKS
========================================================= */

.tool-description a {
    color: #116fb0;

    font-weight: 700;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}


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


/* =========================================================
   THREAD MAKER DESCRIPTION
========================================================= */

.thread-maker-description {
    padding: 0 2px;

    color: #536771;
}


/* =========================================================
   ARTICLE CONTENT
========================================================= */

.twitter-content {
    margin-top: 44px;

    color: #263640;

    font-size: 18px;
    line-height: 1.68;
}


.twitter-content > br:first-child {
    display: none;
}


.twitter-content p {
    margin: 1em 0;
}


/* =========================================================
   ARTICLE HEADINGS
========================================================= */

.twitter-content h2,
.twitter-content h3 {
    color: #102f42;
    line-height: 1.25;
}


.twitter-content h2 {
    margin: 1.9em 0 0.6em;

    font-size: clamp(23px, 3vw, 29px);
}


.twitter-content h3 {
    margin: 1.6em 0 0.5em;

    font-size: clamp(19px, 2.4vw, 23px);
}


/* =========================================================
   ARTICLE LISTS
========================================================= */

.twitter-content ul {
    margin: 0.9em 0 1.2em;

    padding-left: 1.5em;

    list-style: disc;
}


.twitter-content li {
    margin: 0.3em 0;
}


/* =========================================================
   ARTICLE LINKS
========================================================= */

.twitter-content a {
    color: #116fb0;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}


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


/* =========================================================
   OLD / UNUSED ELEMENTS
========================================================= */

#div12,
#sidebar,
#inContentDiv1,
#inContentDiv2,
#inContentDiv3 {
    display: none !important;
}


/* =========================================================
   ERROR SNACKBAR
========================================================= */

.snackbar {
    visibility: hidden;

    position: fixed;
    z-index: 1000;

    left: 50%;
    bottom: 28px;

    min-width: 210px;
    max-width: calc(100vw - 32px);

    padding: 12px 16px;

    transform:
        translateX(-50%)
        translateY(12px);

    border-radius: 9px;

    background: #b93434;
    color: #ffffff;

    text-align: center;

    font-size: 14px;
    font-weight: 700;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 180ms ease;
}


.snackbar-error {
    background: #b93434;
}


.snackbar.show {
    visibility: visible;

    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   SMALL DESKTOP / LAPTOP
========================================================= */

@media (max-width: 1100px) {

    .twitter-page-grid {
        display: block;

        width: 100%;
        max-width: 920px;
    }


    .twitter-sidebar {
        display: none;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 820px) {

    .twitter-counter-page {
        padding: 94px 12px 48px;
    }


    /* -----------------------------------------------------
       HEADING
    ----------------------------------------------------- */

    .tool-heading {
        margin-bottom: 16px;
    }


    .tool-heading h1 {
        font-size: 34px;
    }


    /* -----------------------------------------------------
       PRIMARY METRIC
    ----------------------------------------------------- */

    .primary-metrics {
        gap: 9px;
        margin-bottom: 10px;
    }


    .primary-metric {
        padding: 14px 15px 13px;

        border-radius: 12px;
    }


    .metric-heading-row {
        margin-bottom: 4px;
    }


    .primary-metric-centered .metric-heading-row {
        justify-content: center;
    }


    .metric-count {
        font-size: 36px;
    }


    .metric-total {
        font-size: 15px;
    }


    /* -----------------------------------------------------
       EDITOR + METRICS
    ----------------------------------------------------- */

    .twitter-editor-layout {
        display: flex;

        flex-direction: column;

        gap: 10px;
    }


    .editor-column {
        order: 1;

        width: 100%;
    }


    .metrics-column {
        order: 2;

        display: grid;

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

        grid-template-rows:
            repeat(
                2,
                67px
            );

        gap: 7px;

        width: 100%;
    }


    /* -----------------------------------------------------
       TEXTAREA
    ----------------------------------------------------- */

    #userWord {
        height: 220px;
        min-height: 100px;
        max-height: 700px;

        padding: 16px 17px;

        font-size: 16px;
    }


    /* -----------------------------------------------------
       FOOTER
    ----------------------------------------------------- */

    .editor-footer {
        padding: 10px 11px 11px;
    }


    /* -----------------------------------------------------
       BUTTONS
    ----------------------------------------------------- */

    .tool-actions {
        width: 100%;
    }


    .tool-button {
        flex: 1 1 auto;

        padding-left: 10px;
        padding-right: 10px;
    }


    #threadMakerButton {
        padding-left: 11px;
        padding-right: 11px;
    }


    /* -----------------------------------------------------
       SECONDARY METRICS
    ----------------------------------------------------- */

    .secondary-metric {
        height: 67px;

        padding: 9px 11px;
    }


    .secondary-label {
        font-size: 11px;
    }


    .secondary-count {
        font-size: 13px;
    }


    .secondary-count strong {
        font-size: 17px;
    }


    .secondary-status {
        font-size: 10px;
    }


    /* -----------------------------------------------------
       TOOLTIP
    ----------------------------------------------------- */

    .metric-tooltip {
        width: 210px;
    }


    /* -----------------------------------------------------
       DESCRIPTION
    ----------------------------------------------------- */

    .tool-description {
        margin-top: 26px;

        font-size: 15px;
    }


    .tool-description-primary {
        padding: 13px 15px;
    }


    /* -----------------------------------------------------
       ARTICLE
    ----------------------------------------------------- */

    .twitter-content {
        margin-top: 38px;

        font-size: 17px;
        line-height: 1.62;
    }

}


/* =========================================================
   BUTTON BREAKPOINT
========================================================= */

@media (max-width: 650px) {

    .tool-actions {
        display: grid;

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

        gap: 8px;
    }


    .tool-button {
        width: 100%;
        min-width: 0;

        min-height: 40px;

        padding: 9px 10px;

        white-space: normal;
    }


    #copyButton {
        min-width: 0;
    }


    #threadMakerButton {
        padding: 9px 10px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 550px) {

    .twitter-counter-page {
        padding: 92px 10px 44px;
    }


    /* -----------------------------------------------------
       HEADING
    ----------------------------------------------------- */

    .tool-heading {
        margin-bottom: 15px;
    }


    .tool-heading h1 {
        font-size: 30px;
    }


    /* -----------------------------------------------------
       PRIMARY METRIC
    ----------------------------------------------------- */

    .primary-metric {
        padding: 13px 14px 12px;
    }


    .metric-heading-row {
        flex-direction: row;
        align-items: center;
    }


    .primary-metric-centered .metric-heading-row {
        justify-content: center;
    }


    .metric-label {
        font-size: 13px;
    }


    .metric-count {
        margin-top: 3px;

        font-size: 34px;
    }


    .metric-total {
        font-size: 14px;
    }


    .metric-remaining {
        margin-top: 4px;
    }


    /* -----------------------------------------------------
       EDITOR
    ----------------------------------------------------- */

    .editor-card {
        border-radius: 12px;
    }


    #userWord {
        height: 190px;
        min-height: 90px;

        padding: 15px;
    }


    .editor-footer {
        padding: 9px 10px 10px;
    }


    /* -----------------------------------------------------
       SECONDARY METRICS
    ----------------------------------------------------- */

    .metrics-column {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        grid-template-rows:
            repeat(
                3,
                64px
            );

        gap: 7px;
    }


    .secondary-metric {
        height: 64px;

        padding: 8px 10px;
    }


    .secondary-status {
        font-size: 9.5px;
    }


    /* -----------------------------------------------------
       TOOLTIP

       Shift it slightly left so it stays comfortably
       inside smaller screens.
    ----------------------------------------------------- */

    .metric-tooltip {
        left: auto;
        right: -8px;

        width: 200px;

        transform: translateY(4px);
    }


    .metric-tooltip::before {
        left: auto;
        right: 10px;

        transform: none;
    }


    .metric-info-wrapper:hover .metric-tooltip,
    .metric-info-wrapper:focus-within .metric-tooltip,
    .metric-info-wrapper.is-open .metric-tooltip {
        transform: translateY(0);
    }


    /* -----------------------------------------------------
       DESCRIPTION
    ----------------------------------------------------- */

    .tool-description {
        margin-top: 24px;

        font-size: 14px;
        line-height: 1.55;
    }


    .tool-description-primary {
        padding: 12px 13px;

        line-height: 1.6;
    }


    .tool-description p + p {
        margin-top: 10px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .twitter-counter-page {
        padding-left: 9px;
        padding-right: 9px;
    }


    .tool-heading h1 {
        font-size: 29px;
    }


    #userWord {
        height: 180px;
        min-height: 85px;

        padding: 14px;
    }


    .tool-button {
        font-size: 13px;
    }


    .secondary-count {
        font-size: 13px;
    }


    .secondary-count strong {
        font-size: 16px;
    }


    .metric-tooltip {
        width: 190px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .tool-heading h1 {
        font-size: 27px;
    }


    .metrics-column {
        grid-template-columns: 1fr;

        grid-template-rows:
            repeat(
                6,
                62px
            );
    }


    .secondary-metric {
        height: 62px;
    }


    .tool-actions {
        grid-template-columns: 1fr;
    }


    .tool-button {
        min-height: 41px;
    }


    #userWord {
        min-height: 80px;
    }


    .secondary-status {
        font-size: 10px;
    }


    .metric-tooltip {
        width: 185px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

    .primary-metric,
    .metric-progress span,
    .editor-card,
    .tool-button,
    .secondary-metric,
    .metric-info,
    .metric-tooltip,
    .snackbar {
        transition: none;
    }


    .tool-button:hover:not(:disabled) {
        transform: none;
    }

}