.project-line-editor {
    --project-line-editor-gutter-width: 42px;
    --project-line-editor-gutter-min-width: 42px;
    --project-line-editor-font-size: 13px;
    --project-line-editor-line-height: 1.7;
    --project-line-editor-input-padding: 14px 46px 14px 16px;
    --project-line-editor-gutter-padding: 14px 10px;
    --project-line-editor-radius: 11px;
    --project-line-editor-border: rgba(117, 166, 230, 0.36);
    --project-line-editor-focus-border: #7197e2;
    --project-line-editor-focus-ring: rgba(85, 120, 203, 0.2);
    --project-line-editor-background: rgba(10, 26, 49, 0.8);
    --project-line-editor-gutter-background: rgba(67, 98, 145, 0.2);
    --project-line-editor-gutter-border: rgba(117, 166, 230, 0.2);
    --project-line-editor-gutter-color: #7891b4;
    --project-line-editor-text-color: #e7f0ff;
    --project-line-editor-placeholder-color: #8fa8cf;
    --project-line-editor-caret-color: #8fb4ff;

    position: relative;
    display: grid;
    grid-template-columns: var(--project-line-editor-gutter-width) minmax(0, 1fr);
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--project-line-editor-border);
    border-radius: var(--project-line-editor-radius);
    background: var(--project-line-editor-background);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.project-line-editor:focus-within {
    border-color: var(--project-line-editor-focus-border);
    box-shadow:
        0 0 0 2px var(--project-line-editor-focus-ring),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.project-line-editor__gutter {
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid var(--project-line-editor-gutter-border);
    color: var(--project-line-editor-gutter-color);
    background: var(--project-line-editor-gutter-background);
    pointer-events: none;
    user-select: none;
}

.project-line-editor__gutter-content {
    display: block;
    min-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: var(--project-line-editor-gutter-padding);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    text-align: right;
    white-space: pre;
    font: var(--project-line-editor-font-size) / var(--project-line-editor-line-height) "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.project-line-editor .project-line-editor__input {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--project-line-editor-text-color);
    color-scheme: dark;
    caret-color: var(--project-line-editor-caret-color);
    padding: var(--project-line-editor-input-padding);
    resize: none;
    overflow: auto;
    tab-size: 4;
    font: var(--project-line-editor-font-size) / var(--project-line-editor-line-height) "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.project-line-editor .project-line-editor__input:focus {
    border-color: transparent;
    box-shadow: none;
}

.project-line-editor .project-line-editor__input::placeholder {
    color: var(--project-line-editor-placeholder-color);
    opacity: 1;
}

.project-line-editor__search-highlight {
    position: absolute;
    z-index: 1;
    top: var(--project-line-editor-search-top, 0);
    right: 0;
    left: var(--project-line-editor-gutter-width);
    height: var(--project-line-editor-search-height, 22px);
    pointer-events: none;
    opacity: 0;
}

.project-line-editor__search-highlight.is-visible {
    opacity: 1;
}

.project-line-editor__search-highlight::before {
    position: absolute;
    inset: 0 8px;
    border-radius: 6px;
    background: rgba(91, 126, 211, 0.22);
    box-shadow: inset 2px 0 0 rgba(126, 183, 255, 0.74);
    content: "";
}

.project-line-editor__search-bar {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    width: min(248px, calc(100% - 64px));
    max-height: 32px;
    clip-path: inset(0 0 0 0 round 8px);
    opacity: 1;
    transform: translateX(0);
    transition:
        clip-path 180ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 150ms ease,
        transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
    will-change: clip-path, opacity, transform;
}

.project-line-editor__search-bar.is-search-hidden {
    visibility: hidden;
    clip-path: inset(0 0 0 calc(100% - 30px) round 8px);
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition:
        clip-path 150ms ease,
        opacity 120ms ease,
        transform 150ms ease,
        visibility 0s linear 150ms;
}

.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single {
    overflow: hidden;
    height: 32px;
    border: 1px solid rgba(120, 164, 220, 0.34) !important;
    border-radius: 8px !important;
    background: #172944 !important;
    box-shadow: 0 8px 18px rgba(5, 13, 28, 0.28) !important;
}

.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single:hover,
.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single:focus-within {
    border-color: rgba(132, 188, 255, 0.64) !important;
    background: #172944 !important;
    box-shadow:
        0 0 0 2px rgba(85, 143, 221, 0.16),
        0 8px 18px rgba(5, 13, 28, 0.28) !important;
}

.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single .search-btn-inside {
    width: 30px;
    min-width: 30px;
    height: 30px;
    color: #91b5e8;
}

.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single .tg-search-input {
    display: block;
    height: 30px;
    padding-right: 4px;
    padding-left: 0;
    color: #eaf3ff;
    font-size: 12px;
}

.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single .tg-search-input::placeholder {
    color: #849abd;
}

.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single .tg-search-input::-webkit-search-decoration,
.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single .tg-search-input::-webkit-search-cancel-button,
.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single .tg-search-input::-webkit-search-results-button,
.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single .tg-search-input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single .tg-search-input::-ms-clear,
.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search.results-search-single .tg-search-input::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.project-line-editor__search-wrap.parser-jobs-search.parser-analysis-search .results-search-clear {
    display: inline-flex;
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin-right: 2px;
    color: #9eb7dc;
    font-size: 18px;
}

.project-line-editor__search-open-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: #8da9d0;
    background: transparent;
    box-shadow: none;
    transition:
        opacity 120ms ease,
        background-color 120ms ease,
        color 120ms ease;
}

.project-line-editor__search-open-btn .job-log-search-open-icon {
    --project-search-icon-size: 14px;
}

.project-line-editor__search-open-btn:hover,
.project-line-editor__search-open-btn:focus-visible {
    color: #d6e7ff;
    background: rgba(104, 151, 219, 0.16);
    box-shadow: none;
}

.project-line-editor__search-open-btn:focus-visible {
    outline: 2px solid rgba(126, 183, 255, 0.68);
    outline-offset: 1px;
}

.project-line-editor__search-bar:not(.is-search-hidden) + .project-line-editor__search-open-btn {
    opacity: 0;
    pointer-events: none;
}

.project-line-editor--compact {
    --project-line-editor-font-size: 12px;
    --project-line-editor-line-height: 1.5;
    --project-line-editor-input-padding: 12px 13px;
    --project-line-editor-gutter-padding: 12px 9px;
    --project-line-editor-placeholder-color: #91a8c9;
}
