/* imports */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100..900&family=Tektur:wght@400..900&display=swap');

/* vars */
:root {
    --main-width: 390px;
    --bg-main: #070707;
    --text-main: #fff;
    --primary-5: #B7F900;
    --primary-7: #83B300;
    --primary-8: #5E8000;
    --gray-5: #D9D9D9;
    --gray-6: #BFBFBF;
    --gray-7: #8C8C8C;
    --gray-8: #595959;
    --gray-9: #434343;
    --gray-10: #262626;
    --gray-11: #1F1F1F;
    --gray-12: #141414;
    --error-5: #F5232E;
    --attention-5: #FA8C16;
}

* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    /* запрет контекстного меню на iOS */
    -webkit-tap-highlight-color: transparent;
    /* убрать подсветку при нажатии */
    touch-action: manipulation;
    /* улучшение UX на мобильных */
    -webkit-user-drag: none;
    /* запрет перетаскивания элементов */
}


/* fonts */
.noto-sans-400 {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.noto-sans-500 {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.noto-sans-700 {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.tektur-400 {
    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.tektur-500 {
    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.tektur-700 {
    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}


/* font sizes */
.fs-8 {
    font-size: 0.5em;
    line-height: 9.55px;
}

.fs-10 {
    font-size: 0.625em;
    line-height: 11.93px;
}

.fs-12 {
    font-size: 0.75em;
    line-height: 14.88px;
}

.fs-14 {
    font-size: 0.87em;
    line-height: 18.2px;
}

.fs-16 {
    font-size: 1em;
    line-height: 20.8px;
}

.fs-20 {
    font-size: 1.25em;
    line-height: 22px;
}

.fs-28 {
    font-size: 1.75em;
    line-height: 30px;
}

b,
strong {
    font-weight: 600;
}

/* links */
a,
.click {
    color: var(--text-main);
    cursor: pointer;
    text-decoration: none;
    outline: none;
    user-select: none;
}

a>*,
.click>* {
    vertical-align: middle;
}

/* colors */
.gray-5 {
    color: var(--gray-5);
}

.gray-6 {
    color: var(--gray-6);
}

.gray-7 {
    color: var(--gray-7);
}

.gray-8 {
    color: var(--gray-8);
}

.gray-9 {
    color: var(--gray-9);
}

.gray-10 {
    color: var(--gray-10);
}

.gray-12 {
    color: var(--gray-12);
}

.white {
    color: #fff;
}

.black {
    color: #000;
}

.red {
    color: #E45539;
}

.error-5 {
    color: #F5232E !important;
}

.attention-5 {
    color: var(--attention-5) !important;
}

.primary-5 {
    color: var(--primary-5);
}

/* modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    opacity: 0;
}

.modal.opened {
    display: flex;
}

.modal>.box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: var(--gray-12);
    padding: 12px;
    width: 358px;
    box-sizing: border-box;
    z-index: 10000;
}

.modal>.box .btn-close {
    cursor: pointer;
}

/* toasts (notifications) */
.toasts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    pointer-events: none
}

.toasts>.box {
    max-width: 390px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.toasts .note {
    pointer-events: auto;
    box-shadow: 0 10px 30px #000000e6;
    animation: toast-in .22s ease
}

.toasts .note.out {
    animation: toast-out .2s ease forwards
}

@keyframes toast-in {
    from {
        transform: translateY(-12px);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

@keyframes toast-out {
    to {
        transform: translateY(-12px);
        opacity: 0
    }
}

/* tooltip */
i.protip {
    vertical-align: middle;
    cursor: pointer;
    display: inline-block;
    height: 16px;
    width: 16px;
    margin-left: 6px;
}

i.protip::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8%200C3.57803%200%200%203.57834%200%208C0%2012.422%203.57834%2016%208%2016C12.422%2016%2016%2012.4217%2016%208C16%203.57803%2012.4216%200%208%200ZM8%2014.75C4.26897%2014.75%201.25%2011.7308%201.25%208C1.25%204.26897%204.26922%201.25%208%201.25C11.731%201.25%2014.75%204.26922%2014.75%208C14.75%2011.731%2011.7308%2014.75%208%2014.75Z%22%20fill%3D%22%23434343%22%20%2F%3E%3Cpath%20d%3D%22M8%206.69727C7.65481%206.69727%207.375%206.97708%207.375%207.32227V11.347C7.375%2011.6922%207.65481%2011.972%208%2011.972C8.34519%2011.972%208.625%2011.6922%208.625%2011.347V7.32227C8.625%206.97708%208.34519%206.69727%208%206.69727Z%22%20fill%3D%22%23434343%22%20%2F%3E%3Cpath%20d%3D%22M8%205.93164C8.46599%205.93164%208.84375%205.55388%208.84375%205.08789C8.84375%204.6219%208.46599%204.24414%208%204.24414C7.53401%204.24414%207.15625%204.6219%207.15625%205.08789C7.15625%205.55388%207.53401%205.93164%208%205.93164Z%22%20fill%3D%22%23434343%22%20%2F%3E%3C%2Fsvg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 50%;
}

i.protip.protip-open::after,
i.protip:hover::after {
    box-shadow: 0 0 0px 4px #B7F9001A;
    background-image: url('data:image/svg+xml;utf8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8%200C3.57803%200%200%203.57834%200%208C0%2012.422%203.57834%2016%208%2016C12.422%2016%2016%2012.4217%2016%208C16%203.57803%2012.4216%200%208%200ZM8%2014.75C4.26897%2014.75%201.25%2011.7308%201.25%208C1.25%204.26897%204.26922%201.25%208%201.25C11.731%201.25%2014.75%204.26922%2014.75%208C14.75%2011.731%2011.7308%2014.75%208%2014.75Z%22%20fill%3D%22%23B7F900%22%2F%3E%0A%3Cpath%20d%3D%22M8%206.69727C7.65481%206.69727%207.375%206.97708%207.375%207.32227V11.347C7.375%2011.6922%207.65481%2011.972%208%2011.972C8.34519%2011.972%208.625%2011.6922%208.625%2011.347V7.32227C8.625%206.97708%208.34519%206.69727%208%206.69727Z%22%20fill%3D%22%23B7F900%22%2F%3E%0A%3Cpath%20d%3D%22M8%205.93164C8.46599%205.93164%208.84375%205.55388%208.84375%205.08789C8.84375%204.6219%208.46599%204.24414%208%204.24414C7.53401%204.24414%207.15625%204.6219%207.15625%205.08789C7.15625%205.55388%207.53401%205.93164%208%205.93164Z%22%20fill%3D%22%23B7F900%22%2F%3E%0A%3C%2Fsvg%3E%0A');
}

.protip-skin-default--scheme-pro.protip-container {
    background: var(--gray-10);
    color: var(--text-main);
    border-radius: 2px;
    font-family: inherit;
    margin-top: -10px;
}

.protip-skin-default--size-normal {
    font-size: 12px;
    line-height: 16px;
    padding: 8px;
}

/* buttons */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 15px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    user-select: none;

    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;

    font-size: 0.87em;

    border-radius: 2px;

    border: 1px solid transparent;
}

.btn>* {
    vertical-align: middle;
}

.btn>svg {
    margin-right: 8px;
}

.btn.text {
    color: var(--gray-6);
    border: 1px solid var(--gray-6);
    background-color: transparent;
}

.btn.text>svg>path {
    fill: var(--gray-6);
}

.btn.text.black {
    color: #000;
    border-color: #000;
}

.btn.text.black>svg>path {
    fill: #000;
}

.btn.text:hover {
    background-color: #FAFAFA;
    color: #000000D9;
    border-color: #000000D9;
}

.btn.text>svg>path {
    fill: #000000D9;
}

.btn.text:active {
    background-color: #F5F5F5;
    color: #000000D9;
}

.btn.text:active {
    background-color: #F5F5F5;
    color: #000000D9;
}

.btn.primary {
    color: var(--gray-11);
    background-color: var(--primary-5);
    border-color: var(--primary-5);
}

.btn.primary:hover {
    background-color: var(--primary-7);
    border-color: var(--primary-7);
}

.btn.primary:active {
    background-color: var(--primary-8);
    border-color: var(--primary-8);
}

.btn.primary.disabled,
.btn.primary:disabled {
    filter: grayscale(1);
    color: var(--gray-5);
    background-color: var(--gray-7);
    border-color: var(--gray-7);
    cursor: default;
}

.btn.secondary {
    color: var(--text-main);
    background-color: var(--gray-12);
    border-color: var(--gray-10);
}

.btn.secondary:hover {
    color: var(--primary-5);
    border-color: var(--primary-5);
}

.btn.secondary:active {
    opacity: 0.7;
}

.btn.secondary.disabled,
.btn.secondary:disabled {
    opacity: 1;
    filter: grayscale(1);
    color: var(--gray-7);
    background-color: transparent;
    border-color: var(--gray-7);
    cursor: default;
}

.btn.secondary.error {
    color: var(--error-5);
}

.btn.secondary.error:hover {
    border-color: var(--error-5);
}

.btn.secondary.warning {
    color: var(--gray-12);
    background-color: var(--attention-5);
    border-color: transparent;
}

.btn.secondary.warning:hover {
    border-color: var(--attention-5);
}

.input-select {
    display: flex;
    flex-direction: column;
}

.input-select>.select {
    border: 1px solid var(--gray-9);
    border-radius: 2px;
    padding: 5px 12px;
    cursor: pointer;
    background-color: #000;

    display: grid;
    grid-template-areas: "select";
    align-items: center;
}

.input-select>.select>select {
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 0 1em 0 0;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    cursor: inherit;
    line-height: inherit;
    z-index: 1;
    outline: none;
    grid-area: select;
}

.input-select>.select>select>option {
    color: #000
}

.input-select>.select::after {
    content: "";
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M-2.18557e-07%201.5L0.5%201.5L0.5%202.5L1.5%202.5L1.5%203.5L2.5%203.5L2.5%204.5L3.5%204.5L3.5%205.5L4%205.5L4%206L4.5%206L4.5%206.5L5.5%206.5L5.5%206L6%206L6%205.5L6.5%205.5L6.5%204.5L7.5%204.5L7.5%203.5L8.5%203.5L8.5%203L8.5%202.5L9%202.5L9.5%202.5L9.5%201.5L10%201.5L10%200.5L8.5%200.5L8.5%201.5L7.5%201.5L7.5%202.5L6.5%202.5L6.5%203.5L5.5%203.5L5.5%204.5L4.5%204.5L4.5%203.5L3.5%203.5L3.5%202.5L2.5%202.5L2.5%201.5L1.5%201.5L1.5%200.5L-2.62268e-07%200.5L-2.18557e-07%201.5Z%22%20fill%3D%22%23B7F900%22%2F%3E%0A%3C%2Fsvg%3E%0A");
    grid-area: select;
    justify-self: end;
}

.input-select>.select:hover {
    border-color: var(--primary-5);
}

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

.input>input {
    background-color: #000;
    border: 1px solid var(--gray-9);
    border-radius: 2px;
    padding: 4px 12px;
    color: var(--text-main);

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

    outline: none;
}

.input.white>input {
    background-color: #fff;
    color: #000;
    border: 1px solid var(--gray-9) !important;
}

.input>input:hover,
.input>input:focus {
    border-color: var(--primary-5);
}

.input>input:disabled {
    background-color: var(--gray-12);
    border-color: var(--gray-9);
    color: var(--gray-9);
}

.input>input::-webkit-outer-spin-button,
.input>input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input>input::placeholder {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;

    color: var(--gray-8);
    font-size: 12px;
}

.input-radio {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.input-radio>input[type="radio"] {
    appearance: none;
    background-color: #000;
    margin: 0;
    width: 16px;
    height: 16px;
    border: 1px solid var(--gray-9);
    border-radius: 50%;
    /* transform: translateY(-0.075em); */
    display: grid;
    place-content: center;
}

.input-radio>input[type="radio"]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: none;
    /* transform: scale(0); */
    /* transition: 120ms transform ease-in-out; */
    background-color: var(--primary-5);
}

.input-radio>input[type="radio"]:checked,
.input-radio>input[type="radio"]:not(:disabled):hover {
    border-color: var(--primary-5);
}

.input-radio>input[type="radio"]:not(:disabled):hover {
    cursor: pointer;
}

.input-radio>input[type="radio"]:checked::before {
    /* transform: scale(1); */
    display: block;
}

.params .label,
.input-select>label,
.input>.label,
.input>label {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;

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

    color: var(--gray-6);

    margin-bottom: 4px;
}

.input-select>.select,
.input-radio,
.input-checkbox,
.input>input {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;

    font-size: 14px;
    line-height: 22px;
    color: var(--text-main);
}

.input-checkbox {
    display: inline-block;
    position: relative;
    padding: 1px 0 1px 25px;
    cursor: pointer;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
}

.input-checkbox>input[type="checkbox"] {
    display: none;
}

.input-checkbox>.checkmark {
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #434343;
    background-color: #000;
    border-radius: 2px;
    /* transition: all 0.3s; */
}

.input-checkbox>input[type="checkbox"]:checked+.checkmark {
    border-color: var(--primary-5);
}

.input-checkbox>input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 10px;
    height: 10px;
    /* border-radius: 1px; */
    background-color: var(--primary-5);
}

.input-checkbox:hover>.checkmark {
    border-color: var(--primary-5);
}

.input-checkbox.disabled:hover>.checkmark {
    border: 1px solid #434343;
}

.input-checkbox.disabled {
    cursor: default;
    /* opacity: 0.7; */
}

.input-checkbox.disabled .checkmark {
    border-color: var(--gray-9) !important;
    background-color: var(--gray-12) !important;
}

.input-checkbox.disabled .checkmark::after {
    background-color: var(--gray-9) !important;
}

.input-switch .switch {
    display: inline-block;
    position: relative;
    width: 28px;
    height: 16px;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid var(--gray-7);
    background-color: #000;
}

.input-switch .switch::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 10px;
    height: 10px;
    background-color: var(--gray-7);
}

.input-switch:hover .switch {
    border-color: var(--primary-7)
}

.input-switch input {
    display: none;
}

.input-switch input:checked~.switch {
    border-color: var(--primary-5);
}

.input-switch input:checked~.switch::after {
    left: 15px;
    background-color: var(--primary-5);
}

.segment {
    display: flex;
    flex-direction: row;
    background-color: var(--gray-12);
}

.segment>.item {
    padding: 3px 11px;
    border-radius: 2px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.segment>.item.active,
.segment>.item:hover {
    background-color: var(--primary-5);
    color: var(--gray-10);
}

.close:hover svg path {
    fill: var(--primary-5);
}

.icon {
    display: flex;
    flex-shrink: 0;
    cursor: pointer;
}

.icon:hover>svg>path {
    fill: var(--primary-5);
}

.status {
    border-radius: 2px;
    padding: 4px 8px;
    white-space: nowrap;
}

.status.completed {
    background-color: #52C41A1A;
    color: #52C41A;
}

.status.failed {
    background-color: #F5232E1A;
    color: #F5232E;
}

.status.stoped {
    background-color: #FFFFFF1A;
    color: #FFFFFFD9;
}

.status.processing,
.status.pending {
    background-color: #40A9FF1A;
    color: #40A9FF;
}

.status.unpaid {
    background-color: #FA8C161A;
    color: var(--attention-5);
}

.status.preview {
    background-color: #B7F9001A;
    color: var(--primary-5)
}

.tag {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 8px;
    border-radius: 2px;
    border: 1px solid var(--gray-11);
    white-space: nowrap;
}

.tag>svg {
    margin-right: 4px;
}

.text-overflow {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 6px;
    margin-top: 6px;
    background-color: var(--gray-12);
}

.progress-bar.process {
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20width%3D%229%22%20height%3D%228%22%20viewBox%3D%220%200%209%208%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpath%20id%3D%22path1%22%20fill%3D%22%231f1f1f%22%20stroke%3D%22none%22%20d%3D%22M%204.5%200%20L%208.5%200%20L%20-3%2020%20L%20-7%2020%20L%204.5%200%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20id%3D%22-%22%20fill%3D%22%231f1f1f%22%20stroke%3D%22none%22%20d%3D%22M%204.5%200%20L%208.5%200%20L%20-3%2020%20L%20-7%2020%20L%204.5%200%20Z%22%2F%3E%0A%3C%2Fsvg%3E");
    background-size: 9px 8px;
    background-color: #0d0d0d;
    background-position: 0 0;
    animation: progress-bar-process 1s infinite linear;
}

@keyframes progress-bar-process {
    0% {
        background-position: 0 0;
    }

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

.progress-bar>.bar {
    height: 6px;
    border-radius: 6px;
    background-color: var(--primary-5);
}


/* layouts */
.flex {
    flex: 1;
}

.row {
    display: flex;
    flex-direction: row;
}

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

.h100 {
    height: 100%;
}

.w100 {
    width: 100% !important;
}

.w50 {
    width: 50% !important;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

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

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: end;
}

.ml-4 {
    margin-left: 4px;
}

.mr-4 {
    margin-right: 4px;
}

.mr-8 {
    margin-right: 8px;
}

.mr-12 {
    margin-right: 12px;
}

.mr-16 {
    margin-right: 16px;
}

.mb-3 {
    margin-bottom: 3px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-28 {
    margin-bottom: 28px;
}

.gap-4 {
    gap: 4px;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.pd-0 {
    padding: 0 !important;
}

.pd-8 {
    padding: 8px;
}

.pd-12 {
    padding: 12px;
}

.border-1 {
    border: 1px solid transparent;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hide {
    display: none;
}

.no-select {
    user-select: none;
}

.error-box {
    padding: 8px 12px;
    background-color: #F5232E1A;
    border: 1px solid var(--error-5);
}