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

   DESKTOP LAYOUT:
   1. Page Heading
   2. Your Text
   3. Split Options
   4. Split Results
   5. Split Statistics
   6. Informational Article
   7. 300px Raptive Sidebar

   MOBILE:
   - Full-width input textarea
   - Stacked settings
   - Responsive result cards
   - Statistics below results
   - Sidebar hidden below 900px

   ========================================================= */


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

.text-splitter-page {
    width: 100%;
    padding: 105px 15px 40px;

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

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

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

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

.text-splitter-page button {
    -webkit-tap-highlight-color: transparent;
}

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

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

.text-splitter-page a:focus-visible,
.text-splitter-page button:focus-visible,
.text-splitter-page select:focus-visible,
.text-splitter-page input:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.3);
    outline-offset: 3px;
}


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

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

.text-splitter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;

    align-items: stretch;
    gap: 28px;

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

    margin: 0 auto;
}

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

.text-splitter-sidebar {
    display: block;

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

    align-self: stretch;

    margin: 0;
    padding: 0;
}


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

.text-splitter-heading {
    width: 100%;
    margin: 0 0 25px;

    text-align: center;
}

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

    color: #333;

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

    overflow-wrap: break-word;
}

.text-splitter-intro {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
    padding: 0;

    color: #555;

    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
}


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

.text-splitter-notice {
    margin: 0 0 18px;
    padding: 12px 15px;

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

    background: #fff9eb;
    color: #665022;

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


/* =========================================================
   TOOL CONTAINER
   ========================================================= */

.text-splitter-tool {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   YOUR TEXT SECTION
   ========================================================= */

.text-splitter-editor {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    margin: 0 0 26px;
    padding: 0;
}


/* =========================================================
   EDITOR HEADING
   ========================================================= */

.text-splitter-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;
    gap: 8px 12px;

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

    margin: 0 0 10px;
}

.text-splitter-editor-heading h2 {
    margin: 0;
    padding: 0;

    color: #333;

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


/* =========================================================
   TRY EXAMPLE BUTTON
   ========================================================= */

.text-splitter-example-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;
    min-height: 32px;

    margin: 0;
    padding: 6px 10px;

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

    background: #f3f7fc;
    color: #145ba8;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;

    white-space: nowrap;
    cursor: pointer;

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

.text-splitter-example-button i {
    font-size: 16px;
    line-height: 1;
}

.text-splitter-example-button:hover {
    border-color: #9bbce5;
    background: #e5f0ff;
    color: #104b8d;
}

.text-splitter-example-button:active {
    background: #d8e9ff;
}


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

.text-splitter-textarea-wrapper {
    position: relative;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


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

.text-splitter-page .text-splitter-textarea {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 305px;
    min-height: 56px;
    max-height: 900px;

    margin: 0;
    padding: 16px 17px 65px;

    border: 2px solid #c9ced6;
    border-radius: 10px;

    background: #fff;
    color: #222;

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

    outline: none;
    resize: vertical;

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

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

    tab-size: 4;
    box-shadow: none;

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

.text-splitter-page .text-splitter-textarea::placeholder {
    color: #9299a2;
    opacity: 1;
}

.text-splitter-page .text-splitter-textarea:hover {
    border-color: #aeb4bd;
}

.text-splitter-page .text-splitter-textarea:focus {
    border-color: #1a73e8;

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


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

   Bottom-right inside textarea.
   Undo | Clear
   ========================================================= */

.text-splitter-textarea-actions {
    position: absolute;

    right: 13px;
    bottom: 13px;

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

    flex-wrap: wrap;
    gap: 7px;

    max-width: calc(100% - 26px);

    z-index: 2;
}


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

.text-splitter-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;
    min-height: 34px;

    margin: 0;
    padding: 7px 10px;

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

    background: #f7f8fa;
    color: #444;

    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;

    text-align: center;
    white-space: nowrap;

    cursor: pointer;
    user-select: none;

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

.text-splitter-inline-button i {
    flex: 0 0 auto;

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

.text-splitter-inline-button:hover {
    border-color: #aeb6bf;
    background: #e9edf2;
    color: #333;
}

.text-splitter-inline-button:active {
    background: #dfe5ec;
}

.text-splitter-inline-button:disabled {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;

    opacity: 0.8;
    cursor: not-allowed;
}

.text-splitter-inline-button:disabled:hover {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;
}


/* =========================================================
   INPUT STATISTICS

   Characters: 0    Words: 0
   ========================================================= */

.text-splitter-editor-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-wrap: wrap;
    gap: 7px 20px;

    width: 100%;

    margin: 10px 0 0;
    padding: 0 2px;

    color: #666;

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

.text-splitter-editor-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    white-space: nowrap;
}

.text-splitter-editor-stats strong {
    color: #333;

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

    font-variant-numeric: tabular-nums;
}


/* =========================================================
   SPLIT OPTIONS PANEL
   ========================================================= */

.text-splitter-options {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0 0 26px;
    padding: 17px 18px 19px;

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

    background: #fff;
}

.text-splitter-options-title {
    margin: 0;
    padding: 0 8px;

    color: #333;

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

.text-splitter-options-description {
    margin: 0 0 17px;
    padding: 0;

    color: #666;

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


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

   Split By | Maximum Characters Per Part
   ========================================================= */

.text-splitter-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    align-items: start;
    gap: 16px;

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

.text-splitter-field {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.text-splitter-field > label {
    display: block;

    margin: 0 0 7px;

    color: #333;

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

.text-splitter-field-help {
    margin: 7px 0 0;
    padding: 0;

    color: #777;

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


/* =========================================================
   SELECT INPUTS
   ========================================================= */

.text-splitter-select-wrapper {
    position: relative;
    width: 100%;
}

.text-splitter-page .text-splitter-select {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 43px;

    margin: 0;
    padding: 10px 35px 10px 12px;

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

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

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

    outline: none;
    cursor: pointer;

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

.text-splitter-page .text-splitter-select:hover {
    border-color: #aeb4bd;
}

.text-splitter-page .text-splitter-select:focus {
    border-color: #1a73e8;

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


/* =========================================================
   NUMBER AND TEXT INPUTS
   ========================================================= */

.text-splitter-page .text-splitter-number-input,
.text-splitter-page .text-splitter-text-input {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 43px;

    margin: 0;
    padding: 10px 12px;

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

    background: #fff;
    color: #333;

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

    outline: none;

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

.text-splitter-page .text-splitter-number-input:hover,
.text-splitter-page .text-splitter-text-input:hover {
    border-color: #aeb4bd;
}

.text-splitter-page .text-splitter-number-input:focus,
.text-splitter-page .text-splitter-text-input:focus {
    border-color: #1a73e8;

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

.text-splitter-page .text-splitter-text-input::placeholder {
    color: #9299a2;
    font-weight: 400;
}


/* =========================================================
   MODE-SPECIFIC OPTIONS
   ========================================================= */

.text-splitter-mode-options {
    width: 100%;
    min-width: 0;

    margin: 17px 0 0;
    padding: 17px 0 0;

    border-top: 1px solid #e5e9ee;
}

.text-splitter-mode-options[hidden] {
    display: none !important;
}

.text-splitter-custom-delimiter {
    margin-top: 16px;
}


/* =========================================================
   CHECKBOX OPTION LIST
   ========================================================= */

.text-splitter-option-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    align-items: stretch;
    gap: 12px;

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

.text-splitter-option {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    width: 100%;
    min-width: 0;
    min-height: 85px;

    margin: 0;
    padding: 13px 14px;

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

    background: #fafbfc;

    text-align: left;
    cursor: pointer;

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

.text-splitter-option:hover {
    border-color: #c4d2e2;
    background: #f5f8fc;
}

.text-splitter-option input[type="checkbox"] {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 3px 0 0;

    accent-color: #1a73e8;
    cursor: pointer;
}

.text-splitter-option-content {
    display: flex;
    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

.text-splitter-option-title {
    display: block;

    color: #333;

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

.text-splitter-option-description {
    display: block;

    color: #666;

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


/* =========================================================
   SELECTED CHECKBOX STYLING
   ========================================================= */

@supports selector(:has(*)) {

    .text-splitter-option:has(input:checked) {
        border-color: #b7d3f5;
        background: #f1f7ff;
    }

    .text-splitter-option:has(input:checked):hover {
        border-color: #94bae8;
        background: #e9f3ff;
    }

    .text-splitter-option:has(input:checked)
    .text-splitter-option-title {
        color: #145ba8;
    }

}


/* =========================================================
   GENERAL OPTIONS

   Add Part Numbers
   ========================================================= */

.text-splitter-general-options {
    width: 100%;

    margin: 17px 0 0;
    padding: 17px 0 0;

    border-top: 1px solid #e5e9ee;
}

.text-splitter-general-options .text-splitter-option {
    min-height: 70px;
}


/* =========================================================
   SPLIT RESULTS SECTION

   Appears above the three statistics boxes.
   ========================================================= */

.text-splitter-results-section {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   RESULTS HEADING
   ========================================================= */

.text-splitter-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;
    gap: 12px 16px;

    width: 100%;

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

.text-splitter-results-title-group {
    display: flex;
    align-items: center;

    flex-wrap: wrap;
    gap: 8px 12px;

    min-width: 0;
}

.text-splitter-results-title-group h2 {
    margin: 0;
    padding: 0;

    color: #333;

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

.text-splitter-results-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 25px;

    padding: 3px 9px;

    border: 1px solid #dce5f0;
    border-radius: 20px;

    background: #f1f6fc;
    color: #4a6585;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;

    font-variant-numeric: tabular-nums;
}


/* =========================================================
   RESULTS ACTIONS
   ========================================================= */

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

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


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

   Copy All | Download TXT
   ========================================================= */

.text-splitter-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
    min-height: 39px;

    margin: 0;
    padding: 9px 13px;

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

    background: #f7f8fa;
    color: #444;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;

    text-align: center;
    white-space: nowrap;

    cursor: pointer;
    user-select: none;

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

.text-splitter-action-button i {
    flex: 0 0 auto;

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

.text-splitter-action-button:hover {
    border-color: #aeb6bf;
    background: #e9edf2;
    color: #333;
}

.text-splitter-action-button:active {
    background: #dfe5ec;
}

.text-splitter-action-button:disabled {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;

    opacity: 0.8;
    cursor: not-allowed;
}

.text-splitter-action-button:disabled:hover {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;
}


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

.text-splitter-copy-all-button:not(:disabled) {
    border-color: #c3d8f3;
    background: #edf5ff;
    color: #145ba8;
}

.text-splitter-copy-all-button:not(:disabled):hover {
    border-color: #94bae8;
    background: #e1eeff;
    color: #124f94;
}


/* =========================================================
   EMPTY RESULTS STATE
   ========================================================= */

.text-splitter-results-empty {
    display: flex;
    flex-direction: column;

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

    gap: 7px;

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

    margin: 0;
    padding: 28px 18px;

    border: 1px dashed #d2d9e2;
    border-radius: 10px;

    background: #fafbfd;

    text-align: center;
}

.text-splitter-results-empty i {
    margin-bottom: 2px;

    color: #9aa8b8;

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

.text-splitter-results-empty p {
    margin: 0;
    padding: 0;

    color: #555;

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

.text-splitter-results-empty span {
    color: #888;

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


/* =========================================================
   RESULT LIST

   Individual result boxes generated by JavaScript.
   ========================================================= */

.text-splitter-results-list {
    display: flex;
    flex-direction: column;

    gap: 15px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.text-splitter-results-list:empty {
    display: none;
}


/* =========================================================
   INDIVIDUAL RESULT CARDS
   ========================================================= */

.text-splitter-result-card,
.text-splitter-result-item {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

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

    background: #fff;

    overflow: hidden;

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

.text-splitter-result-card:hover,
.text-splitter-result-item:hover {
    border-color: #c2d0e0;

    box-shadow:
        0 2px 9px rgba(30, 50, 70, 0.04);
}


/* =========================================================
   RESULT CARD HEADER
   ========================================================= */

.text-splitter-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;
    gap: 9px 12px;

    width: 100%;

    margin: 0;
    padding: 11px 14px;

    border-bottom: 1px solid #e7ebf0;

    background: #f8fafc;
}

.text-splitter-result-title-group {
    display: flex;
    align-items: center;

    flex-wrap: wrap;
    gap: 7px 12px;

    min-width: 0;
}

.text-splitter-result-title,
.text-splitter-part-title {
    margin: 0;
    padding: 0;

    color: #333;

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

.text-splitter-result-stats,
.text-splitter-part-stats {
    display: flex;
    align-items: center;

    flex-wrap: wrap;
    gap: 5px 12px;

    color: #777;

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

    font-variant-numeric: tabular-nums;
}

.text-splitter-result-stats strong,
.text-splitter-part-stats strong {
    color: #444;
    font-weight: 600;
}


/* =========================================================
   INDIVIDUAL RESULT COPY BUTTON
   ========================================================= */

.text-splitter-result-copy,
.text-splitter-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;
    min-height: 32px;

    margin: 0;
    padding: 6px 10px;

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

    background: #edf5ff;
    color: #145ba8;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;

    white-space: nowrap;
    cursor: pointer;

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

.text-splitter-result-copy i,
.text-splitter-copy-button i {
    font-size: 15px;
    line-height: 1;
}

.text-splitter-result-copy:hover,
.text-splitter-copy-button:hover {
    border-color: #94bae8;
    background: #e1eeff;
    color: #124f94;
}

.text-splitter-result-copy:active,
.text-splitter-copy-button:active {
    background: #d6e7ff;
}


/* =========================================================
   RESULT TEXT CONTENT

   Preserve line breaks, tabs, spaces and Unicode.
   ========================================================= */

.text-splitter-result-content,
.text-splitter-result-text,
.text-splitter-part-text {
    display: block;

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

    margin: 0;
    padding: 15px 16px;

    background: #fff;
    color: #333;

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

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

    tab-size: 4;
    overflow-x: auto;
}

.text-splitter-result-content:empty,
.text-splitter-result-text:empty,
.text-splitter-part-text:empty {
    min-height: 48px;
}


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

   Alternative output field styling.
   ========================================================= */

.text-splitter-page .text-splitter-result-textarea {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 145px;
    min-height: 48px;
    max-height: 700px;

    margin: 0;
    padding: 14px 16px;

    border: 0;
    border-radius: 0;

    background: #fff;
    color: #333;

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

    outline: none;

    resize: vertical;
    overflow: auto;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
    tab-size: 4;
}

.text-splitter-page .text-splitter-result-textarea:focus {
    box-shadow:
        inset 0 0 0 2px rgba(26, 115, 232, 0.18);
}


/* =========================================================
   SHOW MORE RESULTS
   ========================================================= */

.text-splitter-show-more-wrapper {
    display: flex;
    flex-direction: column;

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

    gap: 11px;

    width: 100%;

    margin: 22px 0 0;
    padding: 0;
}

.text-splitter-showing-count {
    margin: 0;
    padding: 0;

    color: #777;

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

    text-align: center;
    font-variant-numeric: tabular-nums;
}

.text-splitter-show-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
    min-height: 41px;

    margin: 0;
    padding: 9px 18px;

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

    background: #f3f7fc;
    color: #145ba8;

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

    cursor: pointer;

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

.text-splitter-show-more-button i {
    font-size: 18px;
    line-height: 1;
}

.text-splitter-show-more-button:hover {
    border-color: #9bbce5;
    background: #e5f0ff;
    color: #104b8d;
}


/* =========================================================
   TOOL STATUS

   Copy success appears on the button itself.
   ========================================================= */

.text-splitter-status {
    width: 100%;

    margin: 12px 0 0;
    padding: 0;

    color: #666;

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

    text-align: center;
    overflow-wrap: break-word;
}

.text-splitter-status:empty {
    display: none;
}

.text-splitter-status.is-success {
    color: #257447;
}

.text-splitter-status.is-error {
    color: #b42318;
}


/* =========================================================
   SPLIT SUMMARY

   BELOW SPLIT RESULTS

   Original Characters | Total Parts | Longest Part
   ========================================================= */

.text-splitter-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: stretch;
    gap: 12px;

    width: 100%;
    min-width: 0;

    /* Spacing after Split Results */
    margin: 25px 0 25px;
    padding: 0;
}

.text-splitter-summary-item {
    display: flex;
    flex-direction: column;

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

    gap: 5px;

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

    padding: 15px 10px;

    border: 1px solid #e0e5eb;
    border-radius: 9px;

    background: #f8fafc;

    text-align: center;
}

.text-splitter-summary-number {
    display: block;

    max-width: 100%;

    color: #333;

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

    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.text-splitter-summary-label {
    display: block;

    color: #666;

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

    overflow-wrap: break-word;
}


/* =========================================================
   TOTAL PARTS HIGHLIGHT
   ========================================================= */

.text-splitter-summary-highlight {
    border-color: #c3d8f3;
    background: #edf5ff;
}

.text-splitter-summary-highlight
.text-splitter-summary-number {
    color: #145ba8;
}

.text-splitter-summary-highlight
.text-splitter-summary-label {
    color: #37638f;
}


/* =========================================================
   PRIVACY NOTE

   Below statistics boxes.
   ========================================================= */

.text-splitter-privacy {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;
    gap: 7px;

    width: 100%;

    margin: 0 0 30px;
    padding: 0;

    color: #777;

    font-size: 12px;
    line-height: 1.6;

    text-align: center;
}

.text-splitter-privacy i {
    color: #66806e;

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


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

.text-splitter-content {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: #444;

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

.text-splitter-content section {
    width: 100%;

    margin: 0 0 30px;
    padding: 0;
}

.text-splitter-content h2 {
    margin: 0 0 14px;
    padding: 0;

    color: #333;

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

    overflow-wrap: break-word;
}

.text-splitter-content h3 {
    margin: 23px 0 10px;
    padding: 0;

    color: #333;

    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;

    overflow-wrap: break-word;
}

.text-splitter-content p {
    margin: 0 0 15px;
    padding: 0;
}

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

.text-splitter-content li {
    margin: 0 0 9px;
    padding: 0;
}

.text-splitter-content li:last-child {
    margin-bottom: 0;
}

.text-splitter-content strong {
    color: #333;
    font-weight: 700;
}

.text-splitter-content a {
    color: #1155cc;
    text-decoration: none;
}

.text-splitter-content a:hover {
    text-decoration: underline;
}

.text-splitter-content code {
    padding: 2px 5px;

    border-radius: 4px;

    background: #f1f3f6;
    color: #333;

    font-size: 0.92em;
}


/* =========================================================
   TEXT SPLITTING EXAMPLES

   Original Text | Split Results
   ========================================================= */

.text-splitter-example-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    gap: 14px;

    width: 100%;
    min-width: 0;

    margin: 20px 0;
    padding: 0;
}

.text-splitter-example-block > div {
    min-width: 0;

    padding: 15px 16px;

    border: 1px solid #e0e5eb;
    border-radius: 9px;

    background: #f8fafc;
}

.text-splitter-example-block strong {
    display: block;

    margin: 0 0 10px;

    color: #333;

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

.text-splitter-example-block pre {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 12px 14px;

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

    background: #fff;
    color: #333;

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

    white-space: pre-wrap;
    overflow-wrap: anywhere;

    overflow-x: auto;
    tab-size: 4;
}

.text-splitter-example-result {
    border-color: #cbdcf1 !important;
    background: #f3f8ff !important;
}


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

.text-splitter-faq {
    margin-top: 35px !important;
}

.text-splitter-faq h2 {
    margin-bottom: 20px;
}

.text-splitter-faq h3 {
    margin: 23px 0 8px;

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

.text-splitter-faq p {
    margin-bottom: 17px;
}


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

.text-splitter-related-tools {
    margin-top: 36px !important;
}

.text-splitter-related-tools h2 {
    margin-bottom: 10px;
}

.text-splitter-content
.text-splitter-related-intro {
    margin-bottom: 18px;

    color: #666;
    font-size: 15px;
}


/* =========================================================
   RELATED TOOL LINKS
   ========================================================= */

.text-splitter-content
.text-splitter-related-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px 20px;

    width: 100%;

    margin: 0 0 22px;
    padding: 0;

    list-style: none;
}

.text-splitter-related-links li {
    position: relative;

    margin: 0;
    padding: 0 0 0 19px;

    min-width: 0;
}

.text-splitter-related-links li::before {
    position: absolute;

    left: 0;
    top: 10px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #2b78d0;

    content: "";
}

.text-splitter-related-links a {
    color: #1155cc;

    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;

    overflow-wrap: break-word;
}


/* =========================================================
   RELATED TOOL CALLOUTS
   ========================================================= */

.text-splitter-related-callouts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.text-splitter-related-callout {
    min-width: 0;

    margin: 0;
    padding: 17px 18px;

    border: 1px solid #dce5f0;
    border-radius: 9px;

    background: #f8fafc;
}

.text-splitter-content
.text-splitter-related-callout h3 {
    margin: 0 0 9px;

    color: #333;

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

.text-splitter-content
.text-splitter-related-callout p {
    margin: 0;

    color: #555;

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


/* =========================================================
   RESPONSIVE — SMALLER DESKTOP

   Keep the 300px sidebar.
   ========================================================= */

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

    .text-splitter-layout {
        gap: 22px;
    }

    .text-splitter-settings-grid {
        gap: 12px;
    }

    .text-splitter-option-list {
        gap: 10px;
    }

    .text-splitter-option {
        padding: 12px;
    }

    .text-splitter-summary {
        gap: 10px;
    }

}


/* =========================================================
   RESPONSIVE — MEDIUM DESKTOP

   Sidebar remains visible.
   ========================================================= */

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

    .text-splitter-layout {
        gap: 20px;
    }

    .text-splitter-page .text-splitter-textarea {
        height: 265px;
    }

    .text-splitter-options {
        padding: 16px;
    }

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

    .text-splitter-option-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .text-splitter-option {
        min-height: 70px;
    }

    .text-splitter-content h2 {
        font-size: 22px;
    }

    .text-splitter-summary {
        gap: 8px;
    }

    .text-splitter-summary-item {
        padding: 13px 7px;
    }

    .text-splitter-summary-number {
        font-size: 25px;
    }

    .text-splitter-results-heading {
        align-items: flex-start;
    }

}


/* =========================================================
   RESPONSIVE — TABLETS

   Hide sidebar below 900px.
   Restore full-width content.
   ========================================================= */

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

    .text-splitter-page {
        padding: 95px 18px 35px;
    }

    .text-splitter-layout {
        display: block;

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

        margin: 0 auto;
    }

    .text-splitter-main {
        width: 100%;
    }

    .text-splitter-sidebar {
        display: none !important;
    }

    .text-splitter-page .text-splitter-textarea {
        height: 285px;
    }

    .text-splitter-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .text-splitter-option-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .text-splitter-summary-number {
        font-size: 27px;
    }

    .text-splitter-content h2 {
        font-size: 24px;
    }

}


/* =========================================================
   RESPONSIVE — SMALL TABLETS / LARGE PHONES
   ========================================================= */

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

    .text-splitter-page {
        padding: 90px 16px 30px;
    }

    .text-splitter-heading {
        margin-bottom: 21px;
    }

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

    .text-splitter-intro {
        font-size: 16px;
    }

    .text-splitter-editor {
        margin-bottom: 24px;
    }

    .text-splitter-page .text-splitter-textarea {
        height: 235px;
    }

    .text-splitter-options {
        margin-bottom: 24px;
    }

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

    .text-splitter-option-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .text-splitter-option {
        min-height: 68px;
    }

    .text-splitter-content {
        font-size: 15px;
    }

    .text-splitter-content h2 {
        font-size: 22px;
    }

    .text-splitter-content h3 {
        font-size: 18px;
    }

    .text-splitter-related-callouts {
        grid-template-columns: minmax(0, 1fr);
    }

}


/* =========================================================
   RESPONSIVE — MOBILE PHONES
   ========================================================= */

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

    .text-splitter-page {
        padding: 85px 13px 28px;
    }

    .text-splitter-heading {
        margin-bottom: 20px;
    }

    .text-splitter-heading h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .text-splitter-intro {
        font-size: 15px;
        line-height: 1.6;
    }

    .text-splitter-editor-heading h2 {
        font-size: 18px;
    }

    .text-splitter-example-button {
        min-height: 31px;

        padding: 6px 9px;

        font-size: 12px;
    }

    .text-splitter-page .text-splitter-textarea {
        height: 220px;
        min-height: 56px;

        padding: 13px 13px 61px;

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

    .text-splitter-textarea-actions {
        right: 10px;
        bottom: 10px;

        gap: 6px;
    }

    .text-splitter-inline-button {
        min-height: 32px;

        padding: 6px 9px;

        font-size: 12px;
    }

    .text-splitter-editor-stats {
        gap: 6px 15px;

        font-size: 12px;
    }

    .text-splitter-editor-stats strong {
        font-size: 13px;
    }


    /* SPLIT OPTIONS */

    .text-splitter-options {
        margin-bottom: 22px;
        padding: 13px 12px 16px;

        border-radius: 9px;
    }

    .text-splitter-options-title {
        font-size: 18px;
    }

    .text-splitter-options-description {
        margin-bottom: 14px;

        font-size: 13px;
    }

    .text-splitter-settings-grid {
        gap: 14px;
    }

    .text-splitter-field > label {
        font-size: 13px;
    }

    .text-splitter-field-help {
        font-size: 12px;
    }

    .text-splitter-page .text-splitter-select,
    .text-splitter-page .text-splitter-number-input,
    .text-splitter-page .text-splitter-text-input {
        min-height: 43px;

        font-size: 14px;
    }

    .text-splitter-mode-options,
    .text-splitter-general-options {
        margin-top: 15px;
        padding-top: 15px;
    }

    .text-splitter-option {
        min-height: 65px;

        padding: 11px 12px;
    }

    .text-splitter-option-title {
        font-size: 13px;
    }

    .text-splitter-option-description {
        font-size: 12px;
    }


    /* RESULTS */

    .text-splitter-results-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;

        margin-bottom: 14px;
    }

    .text-splitter-results-title-group h2 {
        font-size: 20px;
    }

    .text-splitter-results-actions {
        justify-content: flex-start;

        width: 100%;
        gap: 8px;
    }

    .text-splitter-action-button {
        min-height: 38px;

        padding: 9px 12px;

        font-size: 12px;
    }

    .text-splitter-results-list {
        gap: 12px;
    }

    .text-splitter-result-header {
        padding: 10px 11px;
    }

    .text-splitter-result-title,
    .text-splitter-part-title {
        font-size: 14px;
    }

    .text-splitter-result-stats,
    .text-splitter-part-stats {
        font-size: 11px;
    }

    .text-splitter-result-copy,
    .text-splitter-copy-button {
        padding: 6px 9px;

        font-size: 12px;
    }

    .text-splitter-result-content,
    .text-splitter-result-text,
    .text-splitter-part-text {
        padding: 12px 13px;

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

    .text-splitter-page .text-splitter-result-textarea {
        height: 120px;

        padding: 12px 13px;

        font-size: 14px;
    }

    .text-splitter-results-empty {
        min-height: 145px;

        padding: 24px 14px;
    }


    /* STATISTICS BELOW RESULTS */

    .text-splitter-summary {
        gap: 7px;

        margin-top: 22px;
        margin-bottom: 22px;
    }

    .text-splitter-summary-item {
        min-height: 83px;

        padding: 11px 5px;
    }

    .text-splitter-summary-number {
        font-size: 22px;
    }

    .text-splitter-summary-label {
        font-size: 10px;
        line-height: 1.4;
    }


    /* PRIVACY */

    .text-splitter-privacy {
        margin-bottom: 26px;

        font-size: 11px;
    }


    /* ARTICLE */

    .text-splitter-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .text-splitter-content section {
        margin-bottom: 27px;
    }

    .text-splitter-content h2 {
        margin-bottom: 12px;

        font-size: 21px;
    }

    .text-splitter-content h3 {
        margin-top: 20px;

        font-size: 17px;
    }

    .text-splitter-content p,
    .text-splitter-content ul,
    .text-splitter-content ol {
        margin-bottom: 14px;
    }

    .text-splitter-content ul,
    .text-splitter-content ol {
        padding-left: 22px;
    }

    .text-splitter-example-block {
        gap: 11px;
        margin: 17px 0;
    }

    .text-splitter-example-block > div {
        padding: 12px;
    }

    .text-splitter-example-block pre {
        padding: 11px 12px;

        font-size: 13px;
    }

    .text-splitter-content
    .text-splitter-related-links {
        grid-template-columns: minmax(0, 1fr);

        gap: 9px;
    }

    .text-splitter-related-callout {
        padding: 15px;
    }

}


/* =========================================================
   RESPONSIVE — VERY SMALL PHONES
   ========================================================= */

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

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

    .text-splitter-heading h1 {
        font-size: 26px;
    }

    .text-splitter-intro {
        font-size: 14px;
    }

    .text-splitter-options {
        padding: 12px 10px 14px;
    }

    .text-splitter-option {
        gap: 9px;
        padding: 10px;
    }

    .text-splitter-summary {
        gap: 5px;

        margin-top: 20px;
        margin-bottom: 20px;
    }

    .text-splitter-summary-item {
        min-height: 78px;
        padding: 9px 4px;
    }

    .text-splitter-summary-number {
        font-size: 20px;
    }

    .text-splitter-summary-label {
        font-size: 10px;
    }

    .text-splitter-results-actions {
        gap: 6px;
    }

    .text-splitter-action-button {
        padding: 8px 10px;

        font-size: 11px;
    }

    .text-splitter-result-header {
        gap: 8px;
    }

    .text-splitter-content h2 {
        font-size: 20px;
    }

}


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

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

    .text-splitter-page *,
    .text-splitter-page *::before,
    .text-splitter-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

}


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

@media print {

    .text-splitter-page {
        padding: 15px 0;
        color: #000;
    }

    .text-splitter-layout {
        display: block;
        max-width: none;
    }

    .text-splitter-sidebar,
    .text-splitter-example-button,
    .text-splitter-textarea-actions,
    .text-splitter-results-actions,
    .text-splitter-show-more-wrapper,
    .text-splitter-privacy,
    .text-splitter-status {
        display: none !important;
    }

    .text-splitter-page .text-splitter-textarea {
        height: auto;
        min-height: 120px;

        padding: 12px;

        border: 1px solid #aaa;

        resize: none;
    }

    .text-splitter-options {
        border-color: #aaa;
        background: #fff;
    }

    .text-splitter-option,
    .text-splitter-summary-item {
        background: #fff;
        border-color: #ccc;
    }

    .text-splitter-result-card,
    .text-splitter-result-item {
        break-inside: avoid;
        box-shadow: none;
    }

    .text-splitter-result-header {
        background: #fff;
    }

    .text-splitter-result-content,
    .text-splitter-result-text,
    .text-splitter-part-text {
        color: #000;
    }

    .text-splitter-summary {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .text-splitter-content {
        color: #000;
    }

    .text-splitter-content a {
        color: #000;
        text-decoration: underline;
    }

}
