
/* =========================================================
   TEXT WRAPPER — CharacterCounter.com

   File: text-wrapper.css

   Compatible with:
   - text-wrapper.html
   - text-wrapper.js
   - header-and-footer-updated.css

   Desktop:
   Your Text | Wrapped Text | 300px Ad Sidebar

   Tablet:
   Your Text | Wrapped Text

   Mobile:
   Stacked textareas
   ========================================================= */


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

.tw-page {
    --tw-blue: #1a73e8;
    --tw-blue-dark: #1558aa;
    --tw-blue-pale: #edf5ff;

    --tw-border: #dce2e9;
    --tw-border-dark: #c9ced6;

    --tw-text: #333;
    --tw-muted: #666;
    --tw-soft: #f8fafc;

    --tw-green: #237a40;
    --tw-green-pale: #edf8f0;

    --tw-red: #b42318;
    --tw-red-pale: #fff3f2;

    --tw-warning: #856404;
    --tw-warning-pale: #fff9e9;

    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 105px 20px 50px;

    background: #fff;
    color: var(--tw-text);

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   BOX SIZING
   ========================================================= */

.tw-page,
.tw-page *,
.tw-page *::before,
.tw-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   HIDDEN ELEMENTS
   ========================================================= */

.tw-page [hidden] {
    display: none !important;
}


/* =========================================================
   FORM TYPOGRAPHY
   ========================================================= */

.tw-page button,
.tw-page input,
.tw-page textarea,
.tw-page select {
    font-family: "Roboto", Arial, sans-serif;
}


/* =========================================================
   BUTTON DEFAULTS
   ========================================================= */

.tw-page button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}


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

.tw-page a {
    color: #1155cc;
    text-decoration: none;
}

.tw-page a:hover {
    text-decoration: underline;
}


/* =========================================================
   KEYBOARD FOCUS
   ========================================================= */

.tw-page a:focus-visible,
.tw-page button:focus-visible,
.tw-page input:focus-visible,
.tw-page textarea:focus-visible,
.tw-page select:focus-visible {
    outline: 3px solid var(--tw-blue);
    outline-offset: 3px;
}


/* =========================================================
   ANCHOR OFFSET
   ========================================================= */

.tw-page [id] {
    scroll-margin-top: 105px;
}


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

.tw-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;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   MAIN PAGE LAYOUT

   Main Content | 300px Advertising Sidebar
   ========================================================= */

.tw-layout {
    display: grid;

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

    align-items: stretch;

    gap: 25px;

    width: 100%;
    max-width: 1250px;

    margin: 0 auto;
    padding: 0;
}


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

.tw-main {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


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

   Starts alongside the page heading.

   Advertising provider controls individual ad placements
   and sticky behavior.
   ========================================================= */

.tw-page .tw-sidebar {
    display: block;

    width: 300px;
    min-width: 300px;
    min-height: 100%;

    align-self: stretch;

    margin: 0;
    padding: 0;
}


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

.tw-heading {
    width: 100%;

    margin: 0 0 25px;
    padding: 0;

    text-align: center;
}


/* =========================================================
   MAIN H1
   ========================================================= */

.tw-heading h1 {
    margin: 0 0 10px;
    padding: 0;

    color: #333;

    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;

    text-align: center;

    overflow-wrap: break-word;
}


/* =========================================================
   INTRODUCTORY TEXT
   ========================================================= */

.tw-intro {
    width: 100%;
    max-width: 800px;

    margin: 0 auto;
    padding: 0;

    color: #555;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;

    text-align: center;
}


/* =========================================================
   JAVASCRIPT NOTICE
   ========================================================= */

.tw-notice {
    margin: 0 0 18px;
    padding: 12px 14px;

    border: 1px solid #f0d5a9;
    border-radius: 7px;

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

.tw-notice-warning {
    background: var(--tw-warning-pale);
    color: #6e531c;
}


/* =========================================================
   MAIN TEXT WRAPPER TOOL
   ========================================================= */

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

    margin: 0 0 45px;
    padding: 0;
}


/* =========================================================
   TOOL WORKSPACE

   Your Text | Wrapped Text
   ========================================================= */

.tw-workspace {
    display: grid;

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

    align-items: start;

    gap: 22px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   WORKSPACE PANELS
   ========================================================= */

.tw-input-panel,
.tw-output-panel {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   PANEL HEADINGS
   ========================================================= */

.tw-panel-title {
    margin: 0 0 12px;
    padding: 0;

    color: #333;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;

    text-align: left;
}


/* =========================================================
   SHARED TEXTAREA STYLES

   Both textareas use matching dimensions, typography,
   spacing and native vertical resizing.
   ========================================================= */

.tw-page .tw-textarea {
    display: block;

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

    height: 320px;
    min-height: 170px;

    margin: 0;
    padding: 15px 16px;

    border: 1px solid var(--tw-border-dark);
    border-radius: 7px;

    background: #fff;
    color: #333;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;

    font-variant-numeric: tabular-nums;

    text-align: start;

    overflow-x: auto;
    overflow-y: auto;

    tab-size: 4;
    -moz-tab-size: 4;

    resize: vertical;

    outline: none;
    box-shadow: none;

    appearance: auto;
    -webkit-appearance: auto;

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


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

   Soft visual wrapping is permitted in the input.
   This does not modify the original text.
   ========================================================= */

.tw-page .tw-input {
    background: #fff;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;

    cursor: text;
    caret-color: var(--tw-blue);
}

.tw-page .tw-input:hover {
    border-color: #9eaab7;
}

.tw-page .tw-input:focus,
.tw-page .tw-input:focus-visible {
    border-color: var(--tw-blue);

    outline: none;

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


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

   IMPORTANT:

   Visual word wrapping is disabled.

   The output displays only the actual line breaks
   generated by the JavaScript text wrapper.

   Long lines can be viewed by scrolling horizontally.
   ========================================================= */

.tw-page .tw-output {
    background: #fff;
    color: #333;

    white-space: pre;

    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;

    overflow-x: auto;
    overflow-y: auto;

    text-align: start;

    cursor: text;
}

.tw-page .tw-output:hover {
    border-color: #9eaab7;
}

.tw-page .tw-output:focus,
.tw-page .tw-output:focus-visible {
    border-color: var(--tw-blue);

    outline: none;

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


/* =========================================================
   PLACEHOLDER TEXT
   ========================================================= */

.tw-page .tw-textarea::placeholder {
    color: #9299a3;

    opacity: 1;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
}


/* =========================================================
   READONLY OUTPUT
   ========================================================= */

.tw-page .tw-textarea[readonly] {
    -webkit-user-select: text;
    user-select: text;
}


/* =========================================================
   TEXT SELECTION
   ========================================================= */

.tw-page .tw-textarea::selection {
    background: #d7e7ff;
    color: #222;
}


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

.tw-page .tw-textarea {
    scrollbar-width: thin;
    scrollbar-color: #b9c1cb #f3f5f7;
}

.tw-page .tw-textarea::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.tw-page .tw-textarea::-webkit-scrollbar-track {
    background: #f3f5f7;

    border-radius: 6px;
}

.tw-page .tw-textarea::-webkit-scrollbar-thumb {
    background: #b9c1cb;

    border: 2px solid #f3f5f7;
    border-radius: 6px;
}

.tw-page .tw-textarea::-webkit-scrollbar-thumb:hover {
    background: #9ea8b5;
}

.tw-page .tw-textarea::-webkit-scrollbar-corner {
    background: transparent;
}


/* =========================================================
   SHARED BUTTON STYLES
   ========================================================= */

.tw-page .tw-button {
    display: inline-flex;

    flex: 0 0 auto;

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

    gap: 7px;

    min-height: 41px;

    margin: 0;
    padding: 9px 14px;

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

    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;

    text-align: center;
    text-transform: none;
    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

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

.tw-button i {
    flex: 0 0 auto;

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

.tw-button span {
    min-width: 0;
}


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

.tw-page .tw-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;

    box-shadow: none;
}


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

.tw-page .tw-button-primary {
    background: var(--tw-blue);
    border-color: var(--tw-blue);

    color: #fff;
}

.tw-page .tw-button-primary:hover:not(:disabled) {
    background: var(--tw-blue-dark);
    border-color: var(--tw-blue-dark);

    color: #fff;
}

.tw-page .tw-button-primary:active:not(:disabled) {
    background: #124a91;
    border-color: #124a91;
}


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.tw-page .tw-button-secondary {
    background: #fff;
    border-color: var(--tw-border-dark);

    color: #444;
}

.tw-page .tw-button-secondary:hover:not(:disabled) {
    background: #f4f7fa;
    border-color: #aab4c1;

    color: #222;
}

.tw-page .tw-button-secondary:active:not(:disabled) {
    background: #eaf0f5;
}


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

   Applied by JavaScript after a successful copy.
   ========================================================= */

.tw-page .tw-button.tw-copied,
.tw-page .tw-button.is-copied,
.tw-page .tw-button.copied {
    background: var(--tw-green);
    border-color: var(--tw-green);

    color: #fff;
}

.tw-page .tw-button.tw-copied:hover,
.tw-page .tw-button.is-copied:hover,
.tw-page .tw-button.copied:hover {
    background: #1d6836;
    border-color: #1d6836;

    color: #fff;
}


/* =========================================================
   INPUT AND OUTPUT TOOLBARS
   ========================================================= */

.tw-input-toolbar,
.tw-output-toolbar {
    display: flex;

    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;

    gap: 9px;

    width: 100%;
    min-width: 0;

    margin: 10px 0 0;
    padding: 0;
}

#twClear {
    min-width: 85px;
}

#twCopy {
    min-width: 110px;
}

#twDownload {
    min-width: 130px;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.tw-message {
    width: 100%;

    margin: 18px 0 0;
    padding: 12px 15px;

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

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

    overflow-wrap: anywhere;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.tw-message-error {
    background: var(--tw-red-pale);
    border-color: #efc4c0;

    color: var(--tw-red);
}


/* =========================================================
   WARNING MESSAGE
   ========================================================= */

.tw-message-warning {
    background: var(--tw-warning-pale);
    border-color: #ecd79e;

    color: #795b13;
}


/* =========================================================
   WRAPPING OPTIONS CONTAINER
   ========================================================= */

.tw-settings {
    width: 100%;
    min-width: 0;

    margin: 24px 0 0;
    padding: 20px;

    border: 1px solid var(--tw-border);
    border-radius: 8px;

    background: var(--tw-soft);
}


/* =========================================================
   SETTINGS HEADING
   ========================================================= */

.tw-settings-title {
    margin: 0 0 18px;
    padding: 0;

    color: #333;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================================================
   SETTINGS GRID
   ========================================================= */

.tw-settings-grid {
    display: grid;

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

    align-items: start;

    column-gap: 22px;
    row-gap: 18px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   INDIVIDUAL SETTINGS
   ========================================================= */

.tw-setting {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   SETTING LABELS
   ========================================================= */

.tw-setting-label {
    display: block;

    width: 100%;

    margin: 0 0 8px;
    padding: 0;

    color: #333;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}


/* =========================================================
   NUMBER INPUT AND SELECT
   ========================================================= */

.tw-page .tw-number-input,
.tw-page .tw-select {
    display: block;

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

    height: 43px;

    margin: 0;
    padding: 9px 12px;

    border: 1px solid var(--tw-border-dark);
    border-radius: 6px;

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

    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;

    outline: none;
    box-shadow: none;

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

.tw-page .tw-number-input:hover:not(:disabled),
.tw-page .tw-select:hover:not(:disabled) {
    border-color: #9eaab7;
}

.tw-page .tw-number-input:focus,
.tw-page .tw-select:focus {
    border-color: var(--tw-blue);

    outline: none;

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


/* =========================================================
   NUMBER INPUT
   ========================================================= */

.tw-page .tw-number-input {
    font-variant-numeric: tabular-nums;

    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

.tw-page .tw-number-input::-webkit-inner-spin-button,
.tw-page .tw-number-input::-webkit-outer-spin-button {
    opacity: 1;
}


/* =========================================================
   SELECT DROPDOWN
   ========================================================= */

.tw-page .tw-select {
    padding-right: 34px;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    cursor: pointer;
}


/* =========================================================
   INVALID INPUT STATE
   ========================================================= */

.tw-page .tw-number-input[aria-invalid="true"],
.tw-page .tw-select[aria-invalid="true"],
.tw-page .tw-number-input.tw-invalid,
.tw-page .tw-select.tw-invalid,
.tw-page .tw-number-input.is-invalid,
.tw-page .tw-select.is-invalid {
    background-color: #fffafa;
    border-color: #d54b42;
}

.tw-page .tw-number-input[aria-invalid="true"]:focus,
.tw-page .tw-select[aria-invalid="true"]:focus,
.tw-page .tw-number-input.tw-invalid:focus,
.tw-page .tw-select.tw-invalid:focus,
.tw-page .tw-number-input.is-invalid:focus,
.tw-page .tw-select.is-invalid:focus {
    box-shadow:
        0 0 0 3px rgba(180, 35, 24, 0.10);
}


/* =========================================================
   DISABLED FORM CONTROLS
   ========================================================= */

.tw-page .tw-number-input:disabled,
.tw-page .tw-select:disabled {
    background-color: #f0f2f5;

    color: #888;

    cursor: not-allowed;
}


/* =========================================================
   SETTING DESCRIPTIONS
   ========================================================= */

.tw-setting-hint {
    margin: 6px 0 0;
    padding: 0;

    color: var(--tw-muted);

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


/* =========================================================
   LINE LENGTH PRESETS
   ========================================================= */

.tw-presets {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    width: 100%;

    margin: 16px 0 0;
    padding: 0;
}


/* =========================================================
   PRESETS LABEL
   ========================================================= */

.tw-presets-label {
    flex: 0 0 auto;

    color: #555;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}


/* =========================================================
   PRESET BUTTON GROUP
   ========================================================= */

.tw-preset-buttons {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   INDIVIDUAL PRESET BUTTONS
   ========================================================= */

.tw-page .tw-preset {
    display: inline-flex;

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

    min-width: 44px;
    min-height: 33px;

    margin: 0;
    padding: 5px 10px;

    border: 1px solid var(--tw-border-dark);
    border-radius: 5px;

    background: #fff;
    color: #555;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;

    font-variant-numeric: tabular-nums;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

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


/* =========================================================
   PRESET HOVER STATE
   ========================================================= */

.tw-page .tw-preset:hover:not(:disabled) {
    background: var(--tw-blue-pale);
    border-color: #9bc2f8;

    color: var(--tw-blue-dark);
}


/* =========================================================
   ACTIVE PRESET
   ========================================================= */

.tw-page .tw-preset.tw-preset-active,
.tw-page .tw-preset[aria-pressed="true"] {
    background: var(--tw-blue);
    border-color: var(--tw-blue);

    color: #fff;
}

.tw-page .tw-preset.tw-preset-active:hover,
.tw-page .tw-preset[aria-pressed="true"]:hover {
    background: var(--tw-blue-dark);
    border-color: var(--tw-blue-dark);

    color: #fff;
}

.tw-page .tw-preset:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}


/* =========================================================
   ADDITIONAL SETTINGS LAYOUT

   Existing Line Breaks | Additional Options
   ========================================================= */

.tw-settings-bottom {
    display: grid;

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

    align-items: start;

    column-gap: 22px;
    row-gap: 20px;

    width: 100%;
    min-width: 0;

    margin: 20px 0 0;
    padding: 18px 0 0;

    border-top: 1px solid var(--tw-border);
}


/* =========================================================
   SETTINGS FIELDSETS
   ========================================================= */

.tw-line-break-settings,
.tw-additional-options {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
}

.tw-line-break-settings legend,
.tw-additional-options legend {
    display: block;

    width: 100%;

    margin: 0 0 12px;
    padding: 0;
}


/* =========================================================
   RADIO AND CHECKBOX LISTS
   ========================================================= */

.tw-radio-list,
.tw-checkbox-list {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    gap: 13px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   RADIO AND CHECKBOX OPTIONS
   ========================================================= */

.tw-radio-option,
.tw-checkbox-option {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   RADIO BUTTONS AND CHECKBOXES
   ========================================================= */

.tw-page .tw-radio-option input[type="radio"],
.tw-page .tw-checkbox-option input[type="checkbox"] {
    display: inline-block;

    flex: 0 0 17px;

    width: 17px;
    height: 17px;

    margin: 2px 0 0;
    padding: 0;

    accent-color: var(--tw-blue);

    cursor: pointer;

    appearance: auto;
    -webkit-appearance: auto;
}


/* =========================================================
   RADIO AND CHECKBOX TEXT
   ========================================================= */

.tw-radio-content,
.tw-checkbox-content {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 3px;

    flex: 1 1 auto;

    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   RADIO AND CHECKBOX TITLES
   ========================================================= */

.tw-radio-title,
.tw-checkbox-title {
    display: block;

    color: #333;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}


/* =========================================================
   RADIO AND CHECKBOX DESCRIPTIONS
   ========================================================= */

.tw-radio-description,
.tw-checkbox-description {
    display: block;

    color: #777;

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


/* =========================================================
   OPTION HOVER STATES
   ========================================================= */

.tw-radio-option:hover .tw-radio-title,
.tw-checkbox-option:hover .tw-checkbox-title {
    color: var(--tw-blue-dark);
}


/* =========================================================
   DISABLED OPTIONS

   Used when Break Long Words is unnecessary,
   such as during character wrapping.
   ========================================================= */

.tw-radio-option.tw-option-disabled,
.tw-checkbox-option.tw-option-disabled,
.tw-radio-option.is-disabled,
.tw-checkbox-option.is-disabled,
.tw-radio-option[aria-disabled="true"],
.tw-checkbox-option[aria-disabled="true"] {
    opacity: 0.5;

    cursor: not-allowed;
}

.tw-page .tw-radio-option input:disabled,
.tw-page .tw-checkbox-option input:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}

.tw-radio-option input:disabled + .tw-radio-content,
.tw-checkbox-option input:disabled + .tw-checkbox-content {
    opacity: 0.55;

    cursor: not-allowed;
}

.tw-radio-option input:disabled + .tw-radio-content .tw-radio-title,
.tw-checkbox-option input:disabled + .tw-checkbox-content .tw-checkbox-title {
    color: #777;
}

.tw-radio-option:has(input:disabled),
.tw-checkbox-option:has(input:disabled) {
    cursor: not-allowed;
}

.tw-radio-option:has(input:disabled):hover .tw-radio-title,
.tw-checkbox-option:has(input:disabled):hover .tw-checkbox-title {
    color: #777;
}


/* =========================================================
   LIVE STATISTICS

   Original Lines | Wrapped Lines | Longest Line
   ========================================================= */

.tw-stats {
    display: grid;

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

    align-items: stretch;

    gap: 12px;

    width: 100%;
    min-width: 0;

    margin: 18px 0 0;
    padding: 0;
}


/* =========================================================
   STATISTIC CARDS
   ========================================================= */

.tw-stat-card {
    display: flex;
    flex-direction: column;

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

    gap: 3px;

    min-width: 0;
    min-height: 96px;

    margin: 0;
    padding: 14px 10px;

    border: 1px solid var(--tw-border);
    border-radius: 7px;

    background: #fff;

    text-align: center;

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


/* =========================================================
   STATISTIC VALUES
   ========================================================= */

.tw-stat-value {
    display: block;

    max-width: 100%;

    margin: 0;
    padding: 0;

    color: var(--tw-blue);

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

    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
}


/* =========================================================
   STATISTIC LABELS
   ========================================================= */

.tw-stat-label {
    display: block;

    margin: 0;
    padding: 0;

    color: #555;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}


/* =========================================================
   STATISTIC UNIT
   ========================================================= */

.tw-stat-unit {
    display: block;

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

    color: #888;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}


/* =========================================================
   LONGEST LINE WARNING STATE

   Highlights the longest line statistic when one or more
   lines exceed the selected character limit.
   ========================================================= */

.tw-stat-card.tw-stat-warning,
.tw-stat-card.tw-stat-over-limit,
.tw-stat-card.is-warning,
.tw-stat-card.is-over-limit {
    background: var(--tw-warning-pale);
    border-color: #ecd79e;
}

.tw-stat-card.tw-stat-warning .tw-stat-value,
.tw-stat-card.tw-stat-over-limit .tw-stat-value,
.tw-stat-card.is-warning .tw-stat-value,
.tw-stat-card.is-over-limit .tw-stat-value {
    color: #a16c09;
}


/* =========================================================
   INFORMATIONAL ARTICLE
   ========================================================= */

.tw-article {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: #444;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;

    overflow-wrap: break-word;
}


/* =========================================================
   ARTICLE SECTIONS
   ========================================================= */

.tw-article-section {
    width: 100%;
    min-width: 0;

    margin: 0 0 34px;
    padding: 0;
}

.tw-article-section:last-child {
    margin-bottom: 0;
}


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

.tw-article h2 {
    margin: 0 0 14px;
    padding: 0;

    color: #333;

    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
}

.tw-article h3 {
    margin: 20px 0 9px;
    padding: 0;

    color: #333;

    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}


/* =========================================================
   ARTICLE PARAGRAPHS
   ========================================================= */

.tw-article p {
    margin: 0 0 14px;
    padding: 0;

    color: #444;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}

.tw-article p:last-child {
    margin-bottom: 0;
}

.tw-article strong {
    color: #333;

    font-weight: 600;
}


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

.tw-article a:not(.tw-related-card) {
    color: #1155cc;

    text-decoration: none;
}

.tw-article a:not(.tw-related-card):hover {
    text-decoration: underline;
}


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

.tw-article ul,
.tw-article ol {
    margin: 12px 0 18px;
    padding-left: 24px;

    list-style-position: outside;
}

.tw-article ul {
    list-style-type: disc;
}

.tw-article ol {
    list-style-type: decimal;
}

.tw-article li {
    display: list-item;

    margin: 0 0 8px;
    padding: 0;

    color: #444;

    font-size: 16px;
    line-height: 1.7;
}

.tw-article li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   INSTRUCTIONS LIST
   ========================================================= */

.tw-article .tw-instructions {
    margin: 12px 0 0;
    padding-left: 25px;
}

.tw-article .tw-instructions li {
    margin-bottom: 11px;
    padding-left: 3px;
}

.tw-article .tw-instructions li:last-child {
    margin-bottom: 0;
}

.tw-article .tw-instructions li::marker {
    color: var(--tw-blue);

    font-weight: 600;
}


/* =========================================================
   EXAMPLE GRID
   ========================================================= */

.tw-example-grid {
    display: grid;

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

    align-items: stretch;

    gap: 16px;

    width: 100%;
    min-width: 0;

    margin: 18px 0;
    padding: 0;
}


/* =========================================================
   EXAMPLE CARDS
   ========================================================= */

.tw-example-card {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    min-width: 0;

    margin: 0;
    padding: 16px;

    border: 1px solid var(--tw-border);
    border-radius: 7px;

    background: #fff;
}


/* =========================================================
   EXAMPLE CARD HEADINGS
   ========================================================= */

.tw-example-card h3 {
    margin: 0 0 12px;
    padding: 0;

    color: #333;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}


/* =========================================================
   PREFORMATTED EXAMPLE TEXT

   Preserve actual line breaks and whitespace.

   Scroll horizontally rather than introducing visual
   line breaks that could confuse the examples.
   ========================================================= */

.tw-article .tw-example-code {
    display: block;

    flex: 1 1 auto;

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

    min-height: 104px;

    margin: 0;
    padding: 13px;

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

    background: #f7f9fc;
    color: #333;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;

    white-space: pre;

    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;

    overflow-x: auto;
    overflow-y: auto;

    tab-size: 4;

    scrollbar-width: thin;
    scrollbar-color: #b9c1cb #f3f5f7;
}

.tw-example-code::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.tw-example-code::-webkit-scrollbar-track {
    background: #edf0f4;

    border-radius: 5px;
}

.tw-example-code::-webkit-scrollbar-thumb {
    background: #b9c1cb;

    border: 2px solid #edf0f4;
    border-radius: 5px;
}


/* =========================================================
   EXAMPLE CAPTIONS
   ========================================================= */

.tw-example-caption {
    display: flex;

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

    gap: 5px 10px;

    width: 100%;

    margin: 10px 0 0;
    padding: 0;

    color: #777;

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   FEATURE GRID

   Word wrapping | Character wrapping
   ========================================================= */

.tw-feature-grid {
    display: grid;

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

    align-items: stretch;

    gap: 16px;

    width: 100%;
    min-width: 0;

    margin: 18px 0;
    padding: 0;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.tw-feature-card {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    min-width: 0;

    margin: 0;
    padding: 18px;

    border: 1px solid var(--tw-border);
    border-radius: 7px;

    background: var(--tw-soft);
}


/* =========================================================
   FEATURE ICONS
   ========================================================= */

.tw-feature-icon {
    display: inline-flex;

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

    width: 42px;
    height: 42px;

    margin: 0 0 12px;
    padding: 0;

    border-radius: 8px;

    background: var(--tw-blue-pale);
    color: var(--tw-blue);
}

.tw-feature-icon i {
    font-size: 23px;
    line-height: 1;
}


/* =========================================================
   FEATURE CARD TYPOGRAPHY
   ========================================================= */

.tw-feature-card h3 {
    margin: 0 0 8px;
    padding: 0;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.tw-feature-card p {
    margin: 0 0 9px;
    padding: 0;

    color: #555;

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

.tw-feature-card p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   RESPONSIVE TABLE WRAPPER
   ========================================================= */

.tw-table-wrapper {
    display: block;

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

    margin: 18px 0;
    padding: 0;

    border: 1px solid var(--tw-border);
    border-radius: 7px;

    background: #fff;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #b9c1cb #f3f5f7;
}


/* =========================================================
   ARTICLE TABLES
   ========================================================= */

.tw-article .tw-table {
    width: 100%;

    margin: 0;
    padding: 0;

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

    color: #444;

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

    text-align: left;
}


/* =========================================================
   TABLE HEADINGS AND CELLS
   ========================================================= */

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

    border: 0;
    border-bottom: 1px solid var(--tw-border);

    text-align: left;
    vertical-align: top;
}

.tw-table thead th {
    background: #f2f5f9;

    color: #333;

    font-weight: 600;
    line-height: 1.45;
}

.tw-table tbody th {
    color: #333;

    font-weight: 500;
}

.tw-table tbody td {
    color: #555;

    font-weight: 400;
}

.tw-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.tw-table tbody tr:last-child th,
.tw-table tbody tr:last-child td {
    border-bottom: 0;
}

.tw-table tbody tr:hover {
    background: #f6f9fd;
}


/* =========================================================
   STATISTIC EXPLANATION GRID
   ========================================================= */

.tw-stat-explanation-grid {
    display: grid;

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

    align-items: stretch;

    gap: 12px;

    width: 100%;
    min-width: 0;

    margin: 18px 0;
    padding: 0;
}


/* =========================================================
   STATISTIC EXPLANATION CARDS
   ========================================================= */

.tw-stat-explanation {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    min-width: 0;

    margin: 0;
    padding: 15px 13px;

    border: 1px solid var(--tw-border);
    border-radius: 7px;

    background: #fff;
}

.tw-stat-explanation > div:last-child {
    flex: 1 1 auto;

    min-width: 0;
}


/* =========================================================
   STATISTIC EXPLANATION ICON
   ========================================================= */

.tw-stat-explanation-icon {
    display: inline-flex;

    flex: 0 0 34px;

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

    width: 34px;
    height: 34px;

    margin: 0;
    padding: 0;

    border-radius: 6px;

    background: var(--tw-blue-pale);
    color: var(--tw-blue);
}

.tw-stat-explanation-icon i {
    font-size: 19px;
    line-height: 1;
}


/* =========================================================
   STATISTIC EXPLANATION TYPOGRAPHY
   ========================================================= */

.tw-stat-explanation h3 {
    margin: 0 0 5px;
    padding: 0;

    color: #333;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.tw-stat-explanation p {
    margin: 0;
    padding: 0;

    color: #666;

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


/* =========================================================
   COMMON USES GRID
   ========================================================= */

.tw-use-grid {
    display: grid;

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

    align-items: stretch;

    gap: 14px;

    width: 100%;
    min-width: 0;

    margin: 18px 0 0;
    padding: 0;
}


/* =========================================================
   COMMON USE CARDS
   ========================================================= */

.tw-use-card {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    min-width: 0;

    margin: 0;
    padding: 17px;

    border: 1px solid var(--tw-border);
    border-radius: 7px;

    background: #fff;
}


/* =========================================================
   COMMON USE ICONS
   ========================================================= */

.tw-use-card > i {
    display: inline-flex;

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

    width: 38px;
    height: 38px;

    margin: 0 0 11px;
    padding: 0;

    border-radius: 7px;

    background: var(--tw-blue-pale);
    color: var(--tw-blue);

    font-size: 21px;
    line-height: 1;
}


/* =========================================================
   COMMON USE CARD TYPOGRAPHY
   ========================================================= */

.tw-use-card h3 {
    margin: 0 0 7px;
    padding: 0;

    color: #333;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.tw-use-card p {
    margin: 0;
    padding: 0;

    color: #666;

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


/* =========================================================
   FREQUENTLY ASKED QUESTIONS
   ========================================================= */

.tw-faq {
    width: 100%;
}


/* =========================================================
   FAQ ITEMS
   ========================================================= */

.tw-faq-item {
    width: 100%;

    margin: 0;
    padding: 17px 0;

    border-bottom: 1px solid #e5e8ed;
}

.tw-faq-item:first-of-type {
    padding-top: 4px;
}

.tw-faq-item:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


/* =========================================================
   FAQ QUESTIONS
   ========================================================= */

.tw-faq-item h3 {
    margin: 0 0 7px;
    padding: 0;

    color: #333;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}


/* =========================================================
   FAQ ANSWERS
   ========================================================= */

.tw-faq-item p {
    margin: 0;
    padding: 0;

    color: #555;

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


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

.tw-related {
    width: 100%;

    margin-top: 36px;
}


/* =========================================================
   RELATED TOOLS GRID
   ========================================================= */

.tw-related-grid {
    display: grid;

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

    align-items: stretch;

    gap: 12px;

    width: 100%;
    min-width: 0;

    margin: 18px 0 0;
    padding: 0;
}


/* =========================================================
   RELATED TOOL CARDS
   ========================================================= */

.tw-page .tw-related-card {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
    min-height: 89px;

    margin: 0;
    padding: 13px;

    border: 1px solid var(--tw-border);
    border-radius: 7px;

    background: #fff;
    color: #333;

    text-decoration: none;

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


/* =========================================================
   RELATED TOOL HOVER STATE
   ========================================================= */

.tw-page .tw-related-card:hover {
    background: #f8fbff;
    border-color: #a8c9f5;

    color: #333;

    text-decoration: none;

    box-shadow:
        0 2px 6px rgba(26, 115, 232, 0.06);
}

.tw-page .tw-related-card:focus-visible {
    outline: 2px solid var(--tw-blue);
    outline-offset: 2px;
}


/* =========================================================
   RELATED TOOL ICONS
   ========================================================= */

.tw-related-icon {
    display: inline-flex;

    flex: 0 0 36px;

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

    width: 36px;
    height: 36px;

    margin: 0;
    padding: 0;

    border-radius: 7px;

    background: var(--tw-blue-pale);
    color: var(--tw-blue);
}

.tw-related-icon i {
    font-size: 20px;
    line-height: 1;
}


/* =========================================================
   RELATED TOOL CONTENT
   ========================================================= */

.tw-related-content {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    flex: 1 1 auto;

    gap: 4px;

    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   RELATED TOOL TITLE
   ========================================================= */

.tw-related-content h3 {
    margin: 0;
    padding: 0;

    color: #333;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    overflow-wrap: break-word;
}


/* =========================================================
   RELATED TOOL DESCRIPTION
   ========================================================= */

.tw-related-content p {
    margin: 0;
    padding: 0;

    color: #777;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;

    overflow-wrap: break-word;
}

.tw-related-card:hover .tw-related-content h3 {
    color: var(--tw-blue-dark);
}


/* =========================================================
   RELATED TOOL ARROW
   ========================================================= */

.tw-related-arrow {
    flex: 0 0 auto;

    margin-left: auto;

    color: #9ba4af;

    font-size: 17px;
    line-height: 1;

    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.tw-related-card:hover .tw-related-arrow {
    color: var(--tw-blue);

    transform: translateX(2px);
}


/* =========================================================
   VIEW ALL TOOLS LINK
   ========================================================= */

.tw-all-tools {
    display: flex;

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

    width: 100%;

    margin: 20px 0 0;
    padding: 0;
}

.tw-page .tw-all-tools a {
    display: inline-flex;

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

    gap: 7px;

    min-height: 40px;

    margin: 0;
    padding: 9px 17px;

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

    background: #fff;
    color: var(--tw-blue-dark);

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    text-decoration: none;

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

.tw-page .tw-all-tools a:hover {
    background: var(--tw-blue-pale);
    border-color: #8cb6ec;

    text-decoration: none;
}

.tw-all-tools i {
    font-size: 16px;
    line-height: 1;
}


/* =========================================================
   LARGE DESKTOP

   Keep a centered, controlled content width rather
   than stretching the tool across the entire screen.
   ========================================================= */

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

    .tw-page {
        padding-left: 30px;
        padding-right: 30px;
    }

    .tw-layout {
        max-width: 1250px;
    }

}


/* =========================================================
   STANDARD DESKTOP
   ========================================================= */

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

    .tw-workspace {
        gap: 22px;
    }

    .tw-page .tw-textarea {
        height: 320px;
    }

}


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

   1024px – 1199px

   Retain all three columns:
   Input | Output | Advertising
   ========================================================= */

@media screen and (min-width: 1024px) and (max-width: 1199px) {

    .tw-page {
        padding-left: 15px;
        padding-right: 15px;
    }

    .tw-layout {
        gap: 20px;
    }

    .tw-heading {
        margin-bottom: 22px;
    }

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

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

    .tw-workspace {
        gap: 15px;
    }

    .tw-page .tw-textarea {
        height: 300px;

        padding: 13px;

        font-size: 14px;
    }

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

    .tw-page .tw-button {
        gap: 5px;

        padding: 9px 10px;

        font-size: 13px;
    }

    .tw-button i {
        font-size: 16px;
    }

    .tw-input-toolbar,
    .tw-output-toolbar {
        gap: 7px;
    }

    #twCopy {
        min-width: 94px;
    }

    #twDownload {
        min-width: 112px;
    }

    .tw-settings {
        padding: 17px;
    }

    .tw-settings-grid,
    .tw-settings-bottom {
        column-gap: 20px;
        row-gap: 17px;
    }

    .tw-radio-title,
    .tw-checkbox-title {
        font-size: 14px;
    }

    .tw-stat-card {
        min-height: 87px;

        padding: 12px 8px;
    }

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

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

    .tw-example-grid,
    .tw-feature-grid {
        gap: 12px;
    }

    .tw-example-card,
    .tw-feature-card {
        padding: 14px;
    }

    .tw-stat-explanation-grid {
        gap: 10px;
    }

    .tw-stat-explanation {
        flex-direction: column;

        gap: 8px;

        padding: 13px;
    }

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

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

}


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

   1023px and below

   Hide the advertising sidebar while retaining the
   two-column textarea workspace.
   ========================================================= */

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

    .tw-page {
        padding: 100px 18px 40px;
    }

    .tw-layout {
        display: block;

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

    .tw-main {
        width: 100%;
        min-width: 0;
    }

    .tw-page .tw-sidebar {
        display: none !important;

        width: 0;
        min-width: 0;
        min-height: 0;

        margin: 0;
        padding: 0;
    }

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

        gap: 20px;
    }

    .tw-page .tw-textarea {
        height: 300px;
    }

    .tw-settings-grid,
    .tw-settings-bottom {
        column-gap: 22px;
    }

}


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

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

    .tw-workspace {
        gap: 15px;
    }

    .tw-page .tw-textarea {
        height: 290px;

        padding: 13px;

        font-size: 14px;
    }

    .tw-page .tw-button {
        padding: 9px 11px;

        font-size: 13px;
    }

    #twCopy {
        min-width: 100px;
    }

    #twDownload {
        min-width: 115px;
    }

    .tw-settings {
        padding: 18px;
    }

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

    .tw-stat-explanation {
        flex-direction: column;

        gap: 8px;
    }

}


/* =========================================================
   MOBILE AND SMALL TABLET

   700px and below

   Stack textareas vertically.
   ========================================================= */

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

    .tw-page {
        padding: 90px 15px 35px;
    }

    .tw-page [id] {
        scroll-margin-top: 90px;
    }

    .tw-heading {
        margin-bottom: 22px;
    }

    .tw-heading h1 {
        margin-bottom: 9px;

        font-size: 29px;
    }

    .tw-intro {
        max-width: 560px;

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

    .tw-tool {
        margin-bottom: 35px;
    }

    .tw-workspace {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 23px;
    }

    .tw-panel-title {
        margin-bottom: 10px;

        font-size: 19px;
    }

    .tw-page .tw-textarea {
        height: 240px;
        min-height: 150px;

        padding: 13px 14px;

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

    .tw-page .tw-textarea::placeholder {
        font-size: 15px;
    }

    .tw-input-toolbar,
    .tw-output-toolbar {
        margin-top: 9px;

        gap: 8px;
    }

    .tw-page .tw-button {
        min-height: 41px;
    }

    .tw-settings {
        margin-top: 22px;
        padding: 17px;
    }

    .tw-settings-title {
        margin-bottom: 16px;

        font-size: 19px;
    }

    .tw-settings-grid {
        column-gap: 16px;
        row-gap: 16px;
    }

    .tw-setting-label {
        font-size: 14px;
    }

    .tw-page .tw-number-input,
    .tw-page .tw-select {
        font-size: 16px;
    }

    .tw-presets {
        margin-top: 15px;

        gap: 9px;
    }

    .tw-settings-bottom {
        column-gap: 16px;
        row-gap: 18px;

        margin-top: 18px;
        padding-top: 17px;
    }

    .tw-radio-list,
    .tw-checkbox-list {
        gap: 12px;
    }

    .tw-radio-title,
    .tw-checkbox-title {
        font-size: 14px;
    }

    .tw-radio-description,
    .tw-checkbox-description {
        font-size: 12px;
    }

    .tw-stats {
        gap: 9px;

        margin-top: 15px;
    }

    .tw-stat-card {
        min-height: 88px;

        padding: 12px 7px;
    }

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

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

    .tw-stat-unit {
        font-size: 10px;
    }

    .tw-message {
        margin-top: 14px;
        padding: 11px 13px;

        font-size: 13px;
    }

    .tw-article {
        font-size: 15px;
        line-height: 1.7;
    }

    .tw-article-section {
        margin-bottom: 29px;
    }

    .tw-article h2 {
        margin-bottom: 12px;

        font-size: 23px;
    }

    .tw-article h3 {
        font-size: 18px;
    }

    .tw-article p,
    .tw-article li {
        font-size: 15px;
        line-height: 1.7;
    }

    .tw-example-grid,
    .tw-feature-grid {
        gap: 12px;
    }

    .tw-example-card,
    .tw-feature-card {
        padding: 14px;
    }

    .tw-example-card h3 {
        font-size: 15px;
    }

    .tw-article .tw-example-code {
        font-size: 12px;
    }

    .tw-feature-card h3 {
        font-size: 16px;
    }

    .tw-feature-card p {
        font-size: 14px;
    }

    .tw-stat-explanation-grid {
        gap: 10px;
    }

    .tw-stat-explanation {
        flex-direction: column;

        gap: 8px;

        padding: 13px;
    }

    .tw-stat-explanation h3 {
        font-size: 14px;
    }

    .tw-stat-explanation p {
        font-size: 13px;
    }

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

        gap: 12px;
    }

    .tw-use-card {
        padding: 15px;
    }

    .tw-use-card h3 {
        font-size: 15px;
    }

    .tw-use-card p {
        font-size: 14px;
    }

    .tw-table th,
    .tw-table td {
        padding: 10px 12px;
    }

    .tw-faq-item h3 {
        font-size: 16px;
    }

    .tw-faq-item p {
        font-size: 15px;
    }

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

        gap: 10px;
    }

    .tw-page .tw-related-card {
        padding: 12px;
    }

    .tw-related-content h3 {
        font-size: 14px;
    }

    .tw-related-content p {
        font-size: 12px;
    }

}


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

   480px and below
   ========================================================= */

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

    .tw-page {
        padding: 85px 12px 30px;
    }

    .tw-heading {
        margin-bottom: 20px;
    }

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

    .tw-intro {
        font-size: 14px;
        line-height: 1.55;
    }

    .tw-workspace {
        gap: 22px;
    }

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

    .tw-page .tw-textarea {
        height: 220px;

        padding: 12px;

        font-size: 16px;
    }

    .tw-page .tw-button {
        gap: 6px;

        padding: 9px 12px;

        font-size: 13px;
    }

    #twClear {
        min-width: 80px;
    }

    #twCopy {
        min-width: 105px;
    }

    #twDownload {
        min-width: 120px;
    }

    .tw-settings {
        padding: 15px;
    }

    .tw-settings-title {
        margin-bottom: 15px;

        font-size: 18px;
    }

    .tw-settings-grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 15px;
    }

    .tw-setting-label {
        margin-bottom: 7px;

        font-size: 14px;
    }

    .tw-page .tw-number-input,
    .tw-page .tw-select {
        height: 44px;

        font-size: 16px;
    }

    .tw-setting-hint {
        font-size: 12px;
    }

    .tw-presets {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

        margin-top: 16px;
    }

    .tw-preset-buttons {
        gap: 6px;
    }

    .tw-page .tw-preset {
        min-width: 40px;
        min-height: 36px;

        padding: 6px 9px;
    }

    .tw-settings-bottom {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 20px;

        margin-top: 18px;
        padding-top: 17px;
    }

    .tw-line-break-settings legend,
    .tw-additional-options legend {
        margin-bottom: 11px;
    }

    .tw-radio-list,
    .tw-checkbox-list {
        gap: 13px;
    }

    .tw-radio-option,
    .tw-checkbox-option {
        gap: 10px;
    }

    .tw-page .tw-radio-option input[type="radio"],
    .tw-page .tw-checkbox-option input[type="checkbox"] {
        flex-basis: 18px;

        width: 18px;
        height: 18px;
    }

    .tw-radio-title,
    .tw-checkbox-title {
        font-size: 14px;
    }

    .tw-radio-description,
    .tw-checkbox-description {
        font-size: 12px;
    }

    .tw-stats {
        gap: 7px;
    }

    .tw-stat-card {
        gap: 4px;

        min-height: 84px;

        padding: 11px 5px;
    }

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

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

    .tw-stat-unit {
        font-size: 10px;
    }

    .tw-article-section {
        margin-bottom: 27px;
    }

    .tw-article h2 {
        font-size: 22px;
        line-height: 1.35;
    }

    .tw-article h3 {
        font-size: 17px;
    }

    .tw-article p,
    .tw-article li {
        font-size: 15px;
    }

    .tw-example-grid,
    .tw-feature-grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 12px;
    }

    .tw-example-card,
    .tw-feature-card {
        padding: 14px;
    }

    .tw-example-card h3 {
        font-size: 15px;
    }

    .tw-article .tw-example-code {
        min-height: 80px;

        padding: 12px;

        font-size: 13px;
    }

    .tw-feature-card h3 {
        font-size: 16px;
    }

    .tw-feature-card p {
        font-size: 14px;
    }

    .tw-stat-explanation-grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 10px;
    }

    .tw-stat-explanation {
        flex-direction: row;

        align-items: flex-start;

        gap: 12px;

        padding: 14px;
    }

    .tw-stat-explanation h3 {
        font-size: 15px;
    }

    .tw-stat-explanation p {
        font-size: 13px;
    }

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

        gap: 10px;
    }

    .tw-use-card {
        padding: 13px;
    }

    .tw-use-card > i {
        width: 35px;
        height: 35px;

        font-size: 19px;
    }

    .tw-use-card h3 {
        font-size: 14px;
    }

    .tw-use-card p {
        font-size: 13px;
        line-height: 1.55;
    }

    .tw-article .tw-table {
        font-size: 13px;
    }

    .tw-table th,
    .tw-table td {
        padding: 9px 10px;
    }

    .tw-table thead th {
        font-size: 13px;
    }

    .tw-faq-item {
        padding: 15px 0;
    }

    .tw-faq-item h3 {
        font-size: 16px;
    }

    .tw-faq-item p {
        font-size: 14px;
    }

    .tw-related {
        margin-top: 29px;
    }

    .tw-related-grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 9px;
    }

    .tw-page .tw-related-card {
        min-height: 72px;

        gap: 12px;

        padding: 12px 14px;
    }

    .tw-related-icon {
        flex-basis: 38px;

        width: 38px;
        height: 38px;
    }

    .tw-related-content h3 {
        font-size: 14px;
    }

    .tw-related-content p {
        font-size: 13px;
    }

    .tw-related-arrow {
        font-size: 18px;
    }

}


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

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

    .tw-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tw-heading h1 {
        font-size: 25px;
    }

    .tw-intro {
        font-size: 14px;
    }

    .tw-page .tw-textarea {
        height: 200px;

        padding: 11px;
    }

    .tw-settings {
        padding: 13px;
    }

    .tw-page .tw-preset {
        min-width: 35px;

        padding: 6px 8px;

        font-size: 12px;
    }

    .tw-preset-buttons {
        gap: 5px;
    }

    .tw-stat-card {
        min-height: 79px;

        padding: 10px 4px;
    }

    .tw-stat-value {
        font-size: 21px;
    }

    .tw-stat-label {
        font-size: 10px;
    }

    .tw-stat-unit {
        font-size: 9px;
    }

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

    .tw-use-card {
        padding: 14px;
    }

    .tw-use-card h3 {
        font-size: 15px;
    }

    .tw-use-card p {
        font-size: 14px;
    }

}


/* =========================================================
   EXTRA NARROW SCREENS
   ========================================================= */

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

    .tw-output-toolbar {
        flex-direction: column;

        align-items: stretch;
    }

    .tw-output-toolbar .tw-button {
        width: 100%;
    }

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

    .tw-stat-card {
        min-height: 65px;
    }

    .tw-stat-value {
        font-size: 24px;
    }

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

}


/* =========================================================
   TOUCH DEVICE IMPROVEMENTS
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .tw-page .tw-button {
        min-height: 44px;
    }

    .tw-page .tw-preset {
        min-height: 40px;
    }

    .tw-page .tw-radio-option input[type="radio"],
    .tw-page .tw-checkbox-option input[type="checkbox"] {
        width: 18px;
        height: 18px;

        flex-basis: 18px;
    }

    .tw-radio-option,
    .tw-checkbox-option {
        min-height: 36px;
    }

}


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

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

    .tw-page *,
    .tw-page *::before,
    .tw-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

    .tw-related-card:hover .tw-related-arrow {
        transform: none;
    }

}


/* =========================================================
   HIGH CONTRAST / FORCED COLORS
   ========================================================= */

@media (forced-colors: active) {

    .tw-page .tw-textarea,
    .tw-page .tw-number-input,
    .tw-page .tw-select,
    .tw-page .tw-button,
    .tw-page .tw-preset,
    .tw-stat-card,
    .tw-settings,
    .tw-example-card,
    .tw-feature-card,
    .tw-stat-explanation,
    .tw-use-card,
    .tw-related-card {
        border-color: CanvasText;
    }

    .tw-page .tw-select {
        appearance: auto;
        -webkit-appearance: auto;

        background-image: none;
    }

    .tw-page .tw-preset[aria-pressed="true"] {
        border: 2px solid Highlight;

        background: Highlight;
        color: HighlightText;

        forced-color-adjust: none;
    }

    .tw-page .tw-button-primary {
        border-color: ButtonText;

        background: ButtonFace;
        color: ButtonText;
    }

    .tw-page .tw-button:disabled {
        color: GrayText;
    }

}


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

@media print {

    .tw-page {
        width: 100%;

        margin: 0;
        padding: 0;

        background: #fff;
        color: #000;
    }

    .tw-layout {
        display: block;

        width: 100%;
        max-width: none;

        margin: 0;
        padding: 0;
    }

    .tw-main {
        width: 100%;
    }

    .tw-page .tw-sidebar,
    .tw-input-toolbar,
    .tw-output-toolbar,
    .tw-settings,
    .tw-presets,
    .tw-related,
    .tw-all-tools {
        display: none !important;
    }

    .tw-workspace {
        display: block;
    }

    .tw-input-panel,
    .tw-output-panel {
        margin-bottom: 15px;
    }

    .tw-page .tw-textarea {
        width: 100%;
        min-height: 180px;

        border: 1px solid #999;

        box-shadow: none;

        resize: none;
    }

    .tw-stat-card,
    .tw-example-card,
    .tw-feature-card,
    .tw-use-card,
    .tw-stat-explanation {
        break-inside: avoid;

        background: #fff;
    }

    .tw-article h2,
    .tw-article h3 {
        break-after: avoid;
    }

    .tw-article a {
        color: #000;

        text-decoration: underline;
    }

}


/* =========================================================
   END OF TEXT WRAPPER STYLESHEET
   ========================================================= */
