@font-face {
    font-family: Gilroy;
    font-display: swap;
    src:
        url('/fonts/Gilroy-Black.woff2') format('woff2'),
        url('/fonts/Gilroy-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: Gilroy;
    font-display: swap;
    src:
        url('/fonts/Gilroy-Bold.woff2') format('woff2'),
        url('/fonts/Gilroy-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: Gilroy;
    font-display: swap;
    src:
        url('/fonts/Gilroy-SemiBold.woff2') format('woff2'),
        url('/fonts/Gilroy-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: Gilroy;
    font-display: swap;
    src:
        url('/fonts/Gilroy-Medium.woff2') format('woff2'),
        url('/fonts/Gilroy-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: Gilroy;
    font-display: swap;
    src:
        url('/fonts/Gilroy-Regular.woff2') format('woff2'),
        url('/fonts/Gilroy-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

:root {
    /* font */
    --ff: 'Gilroy', sans-serif;

    --fz-xl: 24px;
    --lh-xl: 30px;
    --f-xl: var(--fz-xl) / var(--lh-xl) var(--ff);

    --fz-l: 20px;
    --lh-l: 25px;
    --f-l: var(--fz-l) / var(--lh-l) var(--ff);

    --fz-xm: 18px;
    --lh-xm: 22px;
    --f-xm: var(--fz-xm) / var(--lh-xm) var(--ff);

    --fz-m: 16px;
    --lh-m: 20px;
    --f-m: var(--fz-m) / var(--lh-m) var(--ff);

    --fz-s: 14px;
    --lh-s: 18px;
    --f-s: var(--fz-s) / var(--lh-s) var(--ff);

    --fz-xs: 12px;
    --lh-xs: 16px;
    --f-xs: var(--fz-xs) / var(--lh-xs) var(--ff);

    /* color */
    --body: #f7f8fa;
    --body50: rgba(247, 248, 250, 0.5);
    --bg: #ffffff;
    --bg50: rgba(255, 255, 255, 0.5);
    --bg15: rgba(255, 255, 255, 0.15);
    --bg05: rgba(255, 255, 255, 0.05);
    --text: #333333;
    --text75: rgba(51, 51, 51, 0.75);
    --text50: rgba(51, 51, 51, 0.5);
    --text25: rgba(51, 51, 51, 0.25);
    --text15: rgba(51, 51, 51, 0.15);
    --text10: rgba(51, 51, 51, 0.1);
    --text05: rgba(51, 51, 51, 0.05);

    --black: #0b1c35;
    --black50: rgba(11, 28, 53, 0.5);
    --orange: #fd8c26;
    --purple: #8e0ef2;
    --yellow: #fcbf47;
    --yellow15: rgba(252, 191, 71, 0.15);
    --yellow10: rgba(252, 191, 71, 0.1);
    --red: #e54047;
    --red50: rgba(229, 64, 71, 0.5);
    --red25: rgba(229, 64, 71, 0.25);
    --red15: rgba(229, 64, 71, 0.15);
    --red10: rgba(229, 64, 71, 0.1);
    --red05: rgba(229, 64, 71, 0.05);
    --blue: #295cc9;
    --blue75: rgba(41, 92, 201, 0.75);
    --blue50: rgba(41, 92, 201, 0.5);
    --blue25: rgba(41, 92, 201, 0.25);
    --blue15: rgba(41, 92, 201, 0.15);
    --blue10: rgba(41, 92, 201, 0.1);
    --blue05: rgba(41, 92, 201, 0.05);
    --green: #54b268;
    --green25: rgba(84, 178, 104, 0.25);
    --green15: rgba(84, 178, 104, 0.15);
    --green10: rgba(84, 178, 104, 0.1);
    --green05: rgba(84, 178, 104, 0.05);
    --gray-dark: #d8d8d8;
    --gray: #eeeff1;
    --gray50: rgba(238, 239, 241, 0.5);
    --gray-light: #eaeaea;

    /* shadow */
    --shadow: 0 4px 15px 0 rgba(122, 148, 199, 0.15);

    /* space */
    --container: 1440px;
}

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

img,
video {
    display: block;
}

ul[class],
ol[class] {
    list-style: none;
}

input,
textarea,
button {
    font: inherit;
    color: inherit;
}

button,
[role='button'] {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input:focus,
textarea:focus {
    outline: none;
}

input[type='checkbox'],
input[type='radio'] {
    flex-shrink: 0;
    width: var(--s);
    height: var(--s);
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid var(--text25);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type='file'] {
    font-size: 0;
}

input[type='file']::-webkit-file-upload-button {
    display: none;
}

textarea {
    resize: none;
}

input::placeholder,
textarea::placeholder {
    font: inherit;
    color: inherit;
    opacity: 0.5;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    font: inherit;
    color: inherit;
    opacity: 0.5;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    font: inherit;
    color: inherit;
    opacity: 0.5;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    font: inherit;
    color: inherit;
    opacity: 0.5;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    width: 100vw;
    min-height: 100vh;
    font: var(--f-m);
    font-weight: 400;
    font-style: normal;
    background-color: var(--body);
    color: var(--text);
    overflow-x: hidden;
}

._modal {
    overflow: hidden;
}

._container {
    max-width: var(--container);
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

._center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

._nowrap {
    white-space: nowrap;
}

._icon {
    flex-shrink: 0;
    width: var(--s);
    height: var(--s);
    -webkit-mask-size: var(--s);
    mask-size: var(--s);
}

._ava {
    --s: 36px;

    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: var(--s);
    height: var(--s);
    font: var(--f-s);
    font-weight: 500;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--bg);
    border-radius: 50%;
    text-transform: uppercase;
}

._one-line,
._two-line,
._three-line {
    outline: none;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    -moz-box-orient: vertical;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 1;
}

._two-line {
    -webkit-line-clamp: 2;
}

._three-line {
    -webkit-line-clamp: 3;
}

._sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

._no-scroll {
    overflow: auto;
    scrollbar-width: none;
}

._no-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

._scroll {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--blue15) var(--bg);
}

._scroll::-webkit-scrollbar {
    width: 8px;
}

._scroll::-webkit-scrollbar-track {
    background-color: var(--bg);
    border-radius: 8px;
}

._scroll::-webkit-scrollbar-thumb {
    background-color: var(--blue15);
    border-radius: 8px;
}

._mono {
    font-variant-numeric: tabular-nums !important;
}

._progress {
    --range: calc(var(--max) - var(--min));
    --ratio: calc((var(--value) - var(--min)) / var(--range));
    --sx: calc(0.5 * 8px + var(--ratio) * (100% - 8px));

    width: 100%;
    height: 4px;
    background-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

._progress:focus {
    outline: none;
}

._progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 16px;
    background: var(--bg);
    border: none;
    box-shadow: none;
    margin-top: -2px;
}

._progress::-webkit-slider-runnable-track {
    height: 4px;
    border: none;
    border-radius: 0.5em;
    background: var(--bg15);
    box-shadow: none;
}

._progress::-webkit-slider-runnable-track {
    background:
        linear-gradient(var(--bg), var(--bg)) 0 / var(--sx) 100% no-repeat,
        var(--bg15);
}

._progress::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 16px;
    background: var(--bg);
    border: none;
    box-shadow: none;
}

._progress::-moz-range-track {
    height: 4px;
    border: none;
    border-radius: 0.5em;
    background:
        linear-gradient(var(--bg), var(--bg)) 0 / var(--sx) 100% no-repeat,
        var(--bg15);
    box-shadow: none;
}

._progress::-ms-fill-upper {
    background: transparent;
    border-color: transparent;
}

._progress::-ms-fill-lower {
    background: transparent;
    border-color: transparent;
}

._progress::-ms-thumb {
    width: 8px;
    height: 8px;
    border-radius: 16px;
    background: var(--bg);
    border: none;
    box-shadow: none;
    margin-top: 0;
    box-sizing: border-box;
}

._progress::-ms-track {
    height: 4px;
    border-radius: 0.5em;
    background: var(--bg15);
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}

._progress::-ms-fill-lower {
    height: 4px;
    border-radius: 0.5em 0 0 0.5em;
    margin: 0;
    background: var(--bg);
    border: none;
    border-right-width: 0;
}

.input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    background-color: transparent;
    border-radius: 8px;
    border: 1px solid var(--text15);
}

.input:disabled {
    opacity: 0.5;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 50px;
    padding: 0 15px;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    background-color: var(--blue);
    color: var(--bg);
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.button:disabled {
    opacity: 0.5;
    cursor: auto;
}

[contenteditable] {
    outline: none;
    word-break: break-word;
    cursor: auto;
}

[contenteditable]:empty:not(:focus):before {
    content: attr(data-placeholder);
    color: var(--text50);
    pointer-events: none;
}

.common-modal__wrapper,
.mini-modal__wrapper {
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    background-color: var(--text15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 50;
}

.common-modal__wrapper._active,
.mini-modal__wrapper._active {
    opacity: 1;
    visibility: visible;
}

.common-modal {
    position: absolute;
    height: calc(100vh - 20px * 2);
    height: calc(100dvh - 20px * 2);
    width: calc(100vw - (60px + 20px * 2));
    max-width: 1200px;
    padding: 20px;
    right: 20px;
    top: 20px;
    background-color: var(--body);
    transform: translateX(200%);
    transition: all 0.2s;
    border-radius: 10px;
}

.common-modal._active {
    transform: translateX(0);
}

.mini-modal {
    position: absolute;
    display: flex;
    flex-direction: column;
    max-width: 550px;
    width: 100%;
    height: 500px;
    padding: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.mini-modal._active {
    opacity: 1;
    visibility: visible;
}

.mini-modal__inner,
.mini-modal__content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.mini-modal__header {
    display: none;
}

.mini-modal__banner {
    flex-shrink: 0;
    height: 170px;
    margin-bottom: 50px;
    background-color: var(--black);
    border-radius: 8px;
}

.mini-modal__banner-image {
    height: calc(100% - 20px);
    object-fit: contain;
}

.mini-modal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mini-modal__body-title {
    margin-bottom: 20px;
    font: var(--f-l);
    font-weight: 600;
}

.mini-modal__footer {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.mini-modal__footer-cancel {
    margin-right: 20px;
    background-color: var(--body);
    color: var(--text50);
}

.hint {
    position: absolute;

    margin: 0 auto;
    left: -12px;
    bottom: calc(100% + 12px);
    font: var(--f-s);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    text-align: left;
    pointer-events: none;
    z-index: 10;
}

.hint._right {
    left: auto;
    right: -12px;
}

.hint__inner {
    display: flex;
    width: 210px;
    padding: 14px;
    background-color: var(--bg);
    border-radius: 5px;
    z-index: 2;
}

.hint__shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-shadow: var(--shadow);
    border-radius: 5px;
    z-index: -1;
}

.hint__inner::after,
.hint__shadow::after {
    --s: 10px;

    position: absolute;
    width: var(--s);
    height: var(--s);
    left: 15px;
    bottom: -5px;
    transform: rotateZ(45deg);
    background-color: var(--bg);
    border-radius: 0 0 2px 0;
    z-index: -1;
    content: '';
}

.hint._right .hint__inner::after,
.hint._right .hint__shadow::after {
    left: auto;
    right: 15px;
}

.hint__shadow::after {
    box-shadow: var(--shadow);
    border-radius: 0 0 2px 0;
}

.hint__icon {
    --s: 24px;

    margin-right: 15px;
    background-color: var(--text50);
    -webkit-mask-image: url('/img/tasks/info-circle.svg');
    mask-image: url('/img/tasks/info-circle.svg');
}

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

.hint__title {
    font-weight: 500;
    color: var(--text);
}

.hint__text {
    color: var(--text50);
}

.hint__title + .hint__text {
    margin-top: 12px;
}

.user {
    display: flex;
    align-items: center;
}

.user__image {
    --s: 35px;

    flex-shrink: 0;
    width: var(--s);
    height: var(--s);
    margin-right: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
}

.user__name {
    font-weight: 500;
}

.user__pos {
    margin-top: 2px;
    font: var(--f-s);
    opacity: 0.5;
}

.header {
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    background-color: var(--bg);
}

.header__inner {
    display: flex;
    align-items: center;
    height: 60px;
}

.header-search {
    display: flex;
    flex: 1;
    align-items: center;
}

.header-search__icon {
    --s: 20px;

    margin-right: 10px;
    background-color: var(--text);
    mask-image: url('/img/tasks/search.svg');
    -webkit-mask-image: url('/img/tasks/search.svg');
    opacity: 0.5;
}

.header-search__input {
    flex: 1;
    background-color: transparent;
    border: 0;
}

.header__quit {
    --s: 30px;

    margin-left: 20px;
    background-color: transparent;
    border: 0;
}

.header__quit > span {
    --s: 24px;

    background-color: var(--red);
    mask-image: url('/img/tasks/quit.svg');
    -webkit-mask-image: url('/img/tasks/quit.svg');
}
