html[data-theme="dark"] .small_arrow-tool {
    filter: invert(0.6);
}

html[data-theme="dark"] .uploadBtn img,
html[data-theme="dark"] .sample_text_btn img {
    filter: invert(1);
}

.synonyms-list {
    position: absolute;
    min-height: 50px;
    min-width: 100px;
    z-index: 6000;
    box-shadow: 0 5px 30px -10px #999;
    background: #fff;
    width: auto;
    padding: 5px;
    white-space: nowrap !important;
}

#captcha {
    right: 3%;
    left: unset;
    z-index: 99;
}

.tool__div__section {
    background: var(--color-bg-featureDiv);
}

/* uncomment it to apply synonym api functionality */
#result .bold_words {
    color: var(--differ-text-color) !important;
    font-weight: 400 !important;
    cursor: pointer;
}


#historyCorrectedText .bold_words {
    color: var(--differ-text-color) !important;
    font-weight: 400 !important;
}

.synonym_main {
    border: 1px solid var(--color-gray);
    background: var(--color-white);
    width: fit-content;
    max-width: 320px;
    box-shadow: 3px 3px 0px 0px var(--color-shadow);
    padding: 12px 16px;
    position: absolute;
    min-height: 50px;
    min-width: 300px;
    z-index: 6000;
}

.synonym_innerbox {
    max-width: 300px;
}

#heading_span {
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: #808080;
}

.word {
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    color: var(--color-gray);
}

.synonym-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.synonym-box {
    padding: 6px 8px;
    background-color: var(--color-table-odd);
    text-align: center;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
}

.screen-split-toggler,
.screen-split-toggler * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* DROPDOWN Tool top Language START */
.dropdown-tool {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dropdown-toggle-tool {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: var(--color-white);
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 8px;
}

.selected_mode_tool {
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.dropdown-menu-tool {
    display: none;
    position: absolute;
    top: 135%;
    left: unset;
    right: 2px;
    background: var(--color-white);
    border: 1px solid #ccc;
    min-width: 150px;
    max-height: 222px;
    overflow: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.search-box-tool {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #8c949b;
    background: var(--color-white);
}

.dropdown-item-tool {
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-gray);
}

.dropdown-item-tool:hover {
    background: #c5f3df;
    color: #000;
}

.dropdown-item-tool.active {
    background: #b3f0d1;
    color: #000;
}

.arrow_up {
    transform: rotate(180deg);
}

/* DROPDOWN Tool top Language  END*/

.skeleton-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    height: 1em;
    position: relative;
    overflow: hidden;
    background-color: #2525251c;
    border-radius: 4px/6.7px;
}

.skeleton-box::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    background-image: -o-linear-gradient(left,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    background-image: -webkit-gradient(linear,
            left top,
            right top,
            color-stop(0, rgba(255, 255, 255, 0)),
            color-stop(20%, rgba(255, 255, 255, 0.2)),
            color-stop(60%, rgba(255, 255, 255, 0.5)),
            to(rgba(255, 255, 255, 0)));
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    content: "";
    -webkit-animation: straightLoading 1.5s infinite linear;
    animation: straightLoading 1.5s infinite linear;
}

.essay__types {
    position: absolute;
    left: 0%;
    top: 100%;
    background: var(--color-white);
    z-index: 10000;
    box-shadow: 0px 4px 6px 4px #0000001a;
    border: 1.5px solid #e2e4e6;
    max-height: 222px;
    overflow: auto;
    min-width: 200px;
}

.essay__types .mode_btn {
    border: none;
    outline: none;
    text-align: left;
    padding: 6px 12px;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    width: 100%;
}

.essay__types .mode_btn:hover {
    background: #f6f8fa;
    color: #000;
}

.essay__types>div {
    flex-wrap: wrap;
    max-width: 100%;
}

.type_text {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.types_div {
    position: relative;
    padding-top: 8px;
    padding-bottom: 12px;
}

.screen-split-toggler {
    display: flex;
    gap: 8px;
    padding-right: 8px;
}

.essay__type__active {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.essay__type__active.active_poem_selection img {
    transform: rotate(180deg);
}

.essay__type__active img {
    transform: rotate(0deg);
}

.essay__type__active span.light_text {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #8c949b;
}

.button_set {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: #f6f8fa;
    color: #000;
}

.button_1 {
    width: 100%;
}

.words b {
    color: #000 !important;
}

.modes__mobile {
    display: none;
}

.synonyms-list .item {
    border-bottom: 1px solid #ebe7e7;
    list-style: none;
    padding: 0 22.5px;
    line-height: 20px;
    text-align: left;
    padding: 5px;
    background-color: #fff;
    cursor: pointer;
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 0;
    color: #333;
}

.flag-n {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.synonyms-list span {
    font-weight: 400;
}

.synonyms-list .item:last-child {
    border-bottom: none !important;
}

.synonyms-list .item::selection {
    background: 0 0;
}

.synonyms-list .item::-moz-selection {
    background: 0 0;
}

.synonyms-list .item:hover {
    background: lightgrey;
}

.noselect {
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.words,
.input-textarea b {
    cursor: pointer;
    color: #000 !important;
    font-weight: 700;
    font-size: 18px;
}

.repal-effect {
    -webkit-animation: ripple 1s infinite;
    animation: ripple 1s infinite;
}

@-webkit-keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 #00b597;
    }

    100% {
        box-shadow: 0 0 0 12px #00000000;
    }
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 #007bff;
    }

    100% {
        box-shadow: 0 0 0 12px #00000000;
    }
}

#paraphrase-loader {
    position: absolute;
    top: 0;
    width: 100%;
    max-width: 500px;
    transform: translateY(50%);
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3) !important;
    display: none;
    margin: auto;
    top: 25%;
}

#paraphrase-loader .progress-bar {
    width: 0;
    height: 10px;
    float: left;
    background-color: #e5dd95 !important;
}

#alert-loader {
    position: absolute;
    top: 0;
    width: 100%;
    max-width: 500px;
    transform: translateY(50%);
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    margin: auto;
    top: 35%;
}

#alert-loader .progress-bar {
    width: 0;
    height: 10px;
    float: left;
    background-color: #e5dd95;
}

.btn {
    border-radius: 4px;
    background: #3a9ff4;
    padding: 12px 20px;
    margin-top: 15px !important;
    cursor: pointer;
    border: none;
    color: #fff;
    font-size: 18px;
}

.close {
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.closeBtn {
    border-radius: 4px;
    background: #721c24 !important;
    margin-top: 7px;
    cursor: pointer;
    border: none;
    color: #fff;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.uplBtn2 {
    cursor: pointer;
    background: none;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
}

.uplBtn2:hover {
    background: 0 0;
}

.proDiv,
.modes {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.proDiv img {
    width: 20px;
    margin-top: -2px;
    filter: brightness(0) saturate(100%) invert(45%) sepia(19%) saturate(0%) hue-rotate(300deg) brightness(95%) contrast(85%);
}

.mode_active {
    transition: 0.3s ease;
    background: #e6faf1 !important;
    color: #000 !important;
}

.input__counter,
#total_words,
.result__counter,
#total_after_words {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-tool-text);
    line-height: 18px;
}

#downloadBtn,
#copyBtn {
    cursor: pointer;
}

#total_words,
#total_after_words {
    margin-left: 5px;
}

.mode_active img {
    filter: none;
}

.hover__effect {
    background: #e6faf1;
}

.hover__effect {
    width: 0;
    left: 0;
    position: absolute;
    height: 40px;
    transition: 0.3s ease;
}

.tool__input__div {
    border-top-color: #e4e6e8;
}

.modes_div div {
    font-size: 14px;
    justify-content: center;
    padding: 12px;
}

.modes {
    z-index: 1;
    padding: 6px 8px;
}

.flex-row {
    margin: 1em auto;
}

.flex-col h3 {
    margin: 0;
    padding: 0;
    margin-bottom: 5px;
}

.flex-col #text,
.flex-col #result {
    height: 380px;
    overflow-y: auto;
    border: 0;
    outline: 0;
    resize: none;
    padding: 16px;
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-tool-text);
    background: none;
}
.flex-col #text{
    padding-right: 14px !important;
}
.flex-col #result span {
    color: var(--color-tool-text);
}

#text {
    padding-right: 32px !important;
}

.uplBtn2 {
    background: #fff;
    color: #000;
    display: inline-block;
    padding: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #000;
}

/*
.uploadBtn span,
.sample_text_btn span {
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
}


button#uplBtn:hover,
button#sampleBtn:hover,
button#uplBtn:hover img {
    color: var(--color-button-hover);
    filter: brightness(0);
    } */

button#uplBtn,
button#sampleBtn {
    background: none;
    border: none;
}

.btn-row-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: none;
    padding: 10px 15px;
}

.divText {
    border-bottom: 2px solid #e4e6e8 !important;
}

.placeholder-block {
    height: 23px;
    background: #efefef;
    margin: 5px 0;
}

.pw-100 {
    width: 100%;
    font-size: 14px;
    text-indent: 10px;
    line-height: 22px;
    color: #aaa;
}

.pw-50 {
    width: 50%;
}

.flex-row {
    max-width: 1320px;
}

.modes_div {
    background: #fff;
    width: fit-content;
    justify-content: center;
    width: 100.3%;
    justify-content: flex-start;
    border-bottom: 1px solid #000000;
}

.modes {
    cursor: pointer;
    color: #808080;
    padding: 8px;
    transition: 0.3s ease;
}

.modes_div {
    flex-direction: flex !important;
}

.blocked {
    display: inline-block;
    position: relative;
}

.grecaptcha-badge {
    display: none !important;
}

.darkmode div#result strong,
.darkmode div#result b {
    color: #eee8aa;
}

.suggestion__para b {
    color: #3a99d9 !important;
    font-weight: 400 !important;
}

.input_button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input__bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Clear button sits in the input footer, next to the submit button */
.paraphrase-tool .input__bar #clearBtn {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    align-items: center;
}

.input__bar>span {
    color: #737373 !important;
}

.tool__input__wrapper {
    display: flex;
    flex-direction: column;
}

.output__bar {
    justify-content: space-between;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.output__bar>div {
    display: flex;
    justify-content: center;
    gap: 16px !important;
}

.output__bar>div:nth-child(2) * {
    border-color: #737373 !important;
}

.result__expand {
    position: absolute;
    left: -14px;
    top: 40%;
    transform: translateY(-60%);
    display: grid;
    place-items: center;
    padding: 3px;
    cursor: pointer;
    z-index: 1000;
    transform-origin: center center;
    border: 1px solid #737373;
    background-color: #fff;
    border-radius: 0;
}

.result__expand img {
    width: 12px;
}

.flex-col {
    display: flex;
    width: 50%;
    flex-direction: column;
    position: relative;
}

.tool__input__div {
    border-right: 1px solid #e2e4e6;
    border-top-color: #e4e6e8;
}

.tool__output__div>div.active {
    border-left-color: #000 !important;
}

@media screen and (min-width: 990px) {
    .tool__output__div>div {
        border-top-color: #e4e6e8 !important;
        border-left-color: #e4e6e8 !important;
    }

    #result {
        padding-left: 25px !important;
    }
}

.tool__output__div,
.tool__input__div {
    transition: 0.2s ease;
}

.tool__input__div.tool__shrink {
    width: 0% !important;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.tool__output__div.tool__expand {
    width: 100% !important;
}

.result__expand.active {
    -webkit-transform: scaleX(-1);
    transform: translateY(-10px) scaleX(-1);
}

.d-none {
    display: none !important;
}

.split-para {
    display: inline !important;
}

#result__wrapper {
    position: relative;
}

#result mark {
    background: 0 0;
}

#rephrase__suggestions {
    width: 0%;
    margin: auto !important;
    position: absolute;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
    box-shadow: 6px 6px 20px 0 #00000026;
    display: block !important;
}

#suggestion__topbar {
    display: flex;
    justify-content: space-between;
    background: #f6f6f6;
    padding: 6px;
    position: sticky !important;
    top: 0;
    z-index: 10000;
}

#suggestion__topbar button {
    border: 1px solid transparent;
    outline: none;
    background: 0 0;
    transition: 0.3s ease;
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 14px;
    padding: 5px 8px;
    color: #8c8c8c;
}

#suggestion__topbar button img {
    max-width: 16px;
}

#suggestion__topbar button.active {
    background: #3a99d9;
    color: #fff;
}

#suggestion__topbar button.active img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(131deg) brightness(102%) contrast(101%);
}

#switch__orignal:hover {
    border: 1px solid #d3d3d3;
}

#rephrase__suggestions p {
    padding: 0 !important;
}

#rephrase__suggestions div {
    position: relative;
}

#rephrase__suggestions div>span {
    position: absolute;
    right: 5px;
    top: 60%;
    transform: translateY(-40%);
    font-size: 16px;
    cursor: pointer;
}

#rephrase__suggestions div>span::before {
    content: "copy";
    position: absolute;
    top: -21px;
    background-color: #fff;
    padding: 3px 5px;
    color: #000;
    border: 1px solid #000;
    font-size: 10px;
    left: -17px;
    display: none;
}

.question-section .content {
    display: flex;
    gap: 12px;
    flex-direction: column;
    margin-bottom: 48px;
}

#rephrase__suggestions div>span:hover::before {
    display: block;
}

#rephrase__suggestions div>span.active::before {
    content: "Copied";
    left: -22px;
}

#rephrase__suggestions div span img {
    width: 16px;
}

#rephrase__suggestions .suggestion__para {
    padding: 8px 15px !important;
    padding-right: 42px !important;
    position: relative;
}

#rephrase__suggestions .suggestion__para::before:hover {
    transform: scale(1.05);
}

.suggestion__para {
    border-top: 1px solid #e4e6e8;
    cursor: pointer;
    font-size: 16px !important;
    transition: 0.3s ease;
}

#rephrase__suggestions>div>span {
    display: none;
}

#rephrase__suggestions>div:hover>span {
    display: block;
}

.suggestion__para:hover {
    background: #f6f6f6;
}

.suggestion__para:hover mark {
    background: #f6f6f6;
    border-top: 1px solid #e4e6e8;
    padding: 8px;
}

#rephrase__btn {
    background-color: #9eebca;
    color: black;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 4px 8px;
    gap: 8px;
    position: absolute;
    z-index: 1000;
    border-radius: 100px;
    cursor: pointer;
}

#rephrase__btn img {
    width: 16px;
}

article {
    background: #fff;
    width: 100%;
    position: relative;
    padding: 5px;
    box-sizing: border-box;
    overflow-x: hidden;
    border: 1px solid #e3e3e3;
}

article .line {
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #f5f5f5 0%, #f8f8f8 101.26%);
    margin: 10px 0;
    overflow: hidden;
}

article .line-half {
    width: 50% !important;
}

article .shimmer {
    background-image: linear-gradient(to right,
            #f1f2f3 0%,
            #edeef1 20%,
            #e7e7e7 40%,
            #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    margin-top: -5px;
    display: inline-block;
    position: relative;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    height: 18px;
    width: 100%;
    animation-iteration-count: infinite;
    animation-name: placeholderShimmer;
    animation-timing-function: linear;
}

.shimmer-half {
    width: 50%;
}


@keyframes placeholderShimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.tool__button__row {
    justify-content: space-between;
}

.tool__button__row>div {
    flex: 1;
}

.tool__buttton {
    margin-left: -207px;
}

#result .flex-col {
    margin-top: 35px;
}

.ep__laoder__wrapper {
    width: calc(100% - 2px) !important;
    height: calc(100% + 48px) !important;
    left: 1px !important;
    top: -49px !important;
}

.captcha-div {
    top: calc(50% + 30px);
}

.hide_on_mobile {
    display: block;
}

.gc-editor-div .tool-history {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 4px;
    padding: 8px 0px;
}

.gc-editor-div .history-div span {
    font-size: 14px;
    color: var(--color-gray);
}
[data-theme="dark"] .gc-editor-div .history-div span {
    filter: invert(1);
}
.gc-editor-div .history-div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gc-editor-div .tool-history img,
.gc-editor-div .tool-history span {
    cursor: pointer
}

@media (max-width: 1150px) {
    #paraphrase-loader {
        left: 0;
    }

    .proDiv {
        display: flex;
        column-gap: 3px;
    }

    .mode_label {
        display: none !important;
    }

    .tool__buttton {
        margin-left: 0 !important;
    }

    .modes {
        position: relative;
    }

    .popover__menu {
        top: -42px !important;
        max-width: 170px;
        left: 100px;
        min-width: unset;
    }

    .popover__menu:after {
        transform: translateY(-50%) rotate(-90deg) !important;
        left: -13px !important;
        top: 50%;
    }
}

@media (max-width: 1024px) {
    .proDiv {
        display: flex;
        column-gap: 3px;
    }

    .mode_label {
        display: none !important;
    }

    .popover__menu-item {
        width: 100%;
    }

    .modes__mobile>span,
    .modes__mobile>div span:nth-child(1) {
        font-size: 16px;
    }
    
}

@media (max-width: 1024px) and (min-width: 960px) {
    .modes__premium {
        top: -20px !important;
    }

    .modes__mobile {
        top: -2px;
    }
}

@media (min-width: 1024px) and (max-width: 1100px) {
    .flex-row~.flex-row>.flex-col {
        width: 65% !important;
    }
}

@media (max-width: 990px) {
    .ep__laoder__wrapper {
        height: calc(100% + 18px) !important;
        top: -32px !important;
        width: 100% !important;
        left: 0 !important;
    }

    .screen-split-toggler {
        display: none !important;
    }
}

@media (max-width: 960px) {
    .modes__mobile {
        top: -32px;
    }

    .modes__premium {
        top: -49px !important;
    }

    .tool__top__div {
        margin-top: 30px !important;
    }

    .tool__div__section {
        row-gap: 0 !important;
    }
}

@media (max-width: 880px) {
    .modes__mobile {
        position: absolute;
        top: -51px;
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
        background: #f6f6f6;
        min-height: 50px;
        padding: 0 8px;
        cursor: pointer;
        border: 1px solid #000;
        border-bottom-color: #e4e6e8;
    }

    .modes__mobile>div {
        min-width: 200px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fff;
        min-height: 38px;
        padding: 8px;
    }

    /* .modes_div {
        display: none;
    } */
}

@media (max-width: 850px) {
    #btnShadowRoot button {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    #mobile-modes-dropdown {
        display: flex !important;
    }

    #modes-dropdown {
        display: none;
    }

    .initial-hide-on-mobile {
        border-top: none !important;
    }

    .hide_on_mobile {
        display: none;
        margin-top: 12px;
    }

    .tool__div__section>.gc-row {
        flex-direction: column;
    }

    .flex-col {
        width: 100%;
    }

    .hover__effect {
        display: none !important;
    }

    #result {
        border-top: 2px solid #e4e6e8 !important;
    }

    /* .paraphrase-tool #clearBtn {
        top: unset;
        top: 3%;
        right: 2%;
    } */
    textarea#text {
        padding-right: 25px !important;
    }

    .types_div {
        padding: 0;
    }

    .essay__types {
        top: unset;
        left: unset;
        bottom: 150%;
        right: 0;
    }
    .gc-editor-div .history-div span{
        display: none !important;
    }
}

@media screen and (min-width:580px) and (max-width:768px) {
    .input_button {
        width: 50%;
        justify-content: space-between;
    }

    #modes-dropdown {
        transform: translateX(50%);
    }
}

@media (max-width: 620px) {
    .gc-editor-row>div:first-child {
        margin: unset;
    }
}

@media (max-width: 580px) {
    .input__bar {
        width: 100%;
    }

    .input_button {
        /* height: 35px; */
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .btn-row-actions {
        flex-direction: column;
        gap: 8px;
    }

    /* Clear button goes to the right end of the word-count row; the submit
       button wraps to its own full-width row below. */
    .paraphrase-tool .btn-row-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .paraphrase-tool .btn-row-actions .input_button {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    .paraphrase-tool .input__bar {
        display: contents;
    }

    .paraphrase-tool .input__bar #btnShadowRoot {
        flex: 0 0 100%;
    }

    .toolSubmitBtn {
        width: 100%;
    }


    .ai-text {
        margin: auto;
    }

    .inner-row {
        gap: 2px !important;
    }

    .header__sidebar+.flex-row {
        margin: 32px auto !important;
    }

    .button_2,
    .button_1 {
        width: 100%;
    }
}

@media (max-width: 425px) {
    /* .paraphrase-tool #clearBtn {
        bottom: 11%;
    } */

    .modes_div {
        font-size: 17px !important;
    }

    .planDDivLap {
        display: none !important;
    }

    .planDDivMob {
        text-align: center;
        margin-bottom: 9px;
        width: 100%;
        display: block !important;
    }
}

@media (max-width: 320px) {
    .modes_div {
        font-size: 14px !important;
    }
}

/* Contenteditable #text Placeholder & Formatting */
#text[contenteditable="true"] {
    white-space: pre-wrap !important;
    word-break: break-word;

}
#text span{
    color: var(--color-tool-text) !important;
}
#text[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    color: #8c949b;
    pointer-events: none;
    display: block;
}

/* Fine Tune sentence level synchronization styles */
.fine-tune-sentence {
    display: inline;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 2px;
}

.fine-tune-sentence.ft-sentence-highlight {
    background-color: #FEB0321F !important;
    cursor: text;
}

/* Synced sentences are editable text: keep the text cursor over them and their
   changed words, overriding the pointer from rephrase.css / #result .bold_words. */
/* #text .fine-tune-sentence,
#text .fine-tune-sentence *,
#result .fine-tune-sentence,
#result .fine-tune-sentence *,
#result .fine-tune-sentence.suggestion_paragraphs:hover,
#result .fine-tune-sentence.suggestion_paragraphs.active {
    cursor: text !important;
} */

/* ============================================================
   Paraphrase tool - Paraphrasing modes strip
   The old "Select Mode" dropdown (.types_div) is replaced by an
   always-visible horizontal strip of mode chips (Figma node
   17117-5359). The legacy hook classes (essay__types / mode_btn /
   button_set / data-mode) are kept so the existing JS runs
   unchanged. On narrow screens the strip scrolls horizontally.
   ============================================================ */
#modes-dropdown {
    width: 100%;
    border: 1px solid var(--color-gray);
    background: var(--color-bg-featureDiv);
    border-bottom: none;
}

.gc-editor-row {
    border-top: 1px solid #E2E4E6 !important;
}

#modes-dropdown .modes-strip {
    flex: 1 1 auto;
    min-width: 0;
    position: static;
    display: block;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    border: 0;
    border-bottom: none;
    border-radius: 0;
    box-shadow: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#modes-dropdown .modes-strip::-webkit-scrollbar {
    display: none;

}

/* The legacy JS toggles gc-d-none on .essay__types - keep the strip visible */
#modes-dropdown .modes-strip.gc-d-none {
    display: block !important;
}

#modes-dropdown .modes-strip>div {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

#modes-dropdown .mode_chip {
    display: inline-grid;
    flex: 0 0 auto;
    grid-template-columns: auto;
    align-items: center;
    justify-items: center;
    width: auto;
    height: 40px;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 8px 16px 10px 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    color: var(--color-tool-text, #000);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
/* #modes-dropdown .mode_chip:nth-child(1){
    width: 94px;
}
#modes-dropdown .mode_chip:nth-child(2){
    width: 87px;
}
#modes-dropdown .mode_chip:nth-child(3){
    width: 98px;
}
#modes-dropdown .mode_chip:nth-child(4){
    width: 80px;
}
#modes-dropdown .mode_chip:nth-child(5){
    width: 94px;
} */
/* The visible label and a hidden semibold copy of it are stacked in one grid
   cell, so the chip is always as wide as its label at weight 600. Toggling
   .button_set then changes font-weight without changing the width - no
   reflow and no flicker of the neighbouring chips. */
#modes-dropdown .mode_chip>span {
    grid-area: 1 / 1;
}

#modes-dropdown .mode_chip::after {
    grid-area: 1 / 1;
    content: attr(data-label);
    font-weight: 600;
    white-space: nowrap;
    visibility: hidden;
    pointer-events: none;
}

#modes-dropdown .mode_chip:hover,
#modes-dropdown .mode_chip:focus-visible {
    background: var(--color-hover);
    color: #000;
}

#modes-dropdown .mode_chip.button_set {
    font-weight: 600;
    color: var(--color-tool-text, #000);
    background: transparent;
    border-bottom-color: #08aa84;
}
#modes-dropdown .mode_chip span {
   font-size: 14px;
}
#modes-dropdown .mode_chip.button_set span {
    font-weight: 600;
}

/* The tick stays in the markup for the JS, hidden to match the Figma chip */
#modes-dropdown .mode_chip .tick_img {
    display: none !important;
}

/* Mode chips are locked while a paraphrase request is in flight. */
#modes-dropdown .mode_chip:disabled {
    cursor: not-allowed;
}
#modes-dropdown .mode_chip.button_set:disabled{
    opacity: 0.4 !important;
}

/* The running mode stays fully visible so it is clear which one is processing. */
#modes-dropdown .mode_chip:disabled:not(.button_set) {
    opacity: 0.5;
}

#modes-dropdown .mode_chip:disabled:hover {
    background: transparent;
}
[data-theme="dark"] .remove-grammatical-error-section tr td,
[data-theme="dark"] .remove-grammatical-error-section tr th {
    border-right-color: #B6C2CF !important;
}
@media screen and (max-width: 768px) {
    #modes-dropdown {
        display: flex !important;
        width: 100%;
        transform: none;
    }

    #modes-dropdown .modes-strip {
        flex: 1 1 auto;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

@media screen and (min-width: 580px) and (max-width: 768px) {
    .input_button {
        width: 100%;
    }
}