body {
    background-color: var(--bg-color);
    color: var(--text-color);
}
.cv-match-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-16);
    font-weight: var(--fw-regular);
    line-height: var(--lh-16);
    color: var(--text-color);
}
.cv-match-text {
    color: var(--text-muted);
}
.cv-match-percentage {
    font-weight: var(--fw-medium);
    color: var(--accent-color);
}
.vacancy-container {
    display: flex;
    max-width: 1152px;
    margin: 0 auto;
    gap: 32px;
    align-items: flex-start;
    position: relative;
}
.vacancy-main {
    flex: 1;
    background-color: var(--surface-primary);
    border-radius: 24px;
    padding: 20px;
    position: relative;
}
.vacancy-sidebar {
    width: 300px;
    background-color: var(--surface-primary);
    border-radius: 24px;
    padding: 20px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.archive-notice-block {
    width: 300px;
    background-color: var(--surface-primary);
    border-radius: 24px;
    padding: 20px;
    margin-top: 12px;
    display: none;
    font-size: var(--fs-16);
    font-weight: var(--fw-regular);
    color: var(--text-muted);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    text-align: left;
}
@media (min-width: 1280px) {
    .archive-notice-block {
        display: block;
    }
}
@media (max-width: 1279px) {
    .archive-notice-block {
        display: none;
    }
}
.vacancy-sidebar-column {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
@media (max-width: 1279px) {
    .vacancy-sidebar-column {
        width: 100%;
        position: static;
        display: contents;
    }
}
.vacancy-content-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.sidebar-label {
    display: block;
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
    color: var(--text-muted);
    font-weight: var(--fw-regular);
}
.sidebar-value {
    display: block;
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    font-weight: var(--fw-regular);
    color: var(--text-color);
}
.sidebar-divider {
    border: none;
    border-top: 1px solid var(--filter-divider);
    width: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
}
.sidebar-apply-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-align: center;
}
.vacancy-sidebar .btn-primary {
    border-radius: 16px;
}
.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.vacancy-title {
    font-size: var(--fs-40);
    line-height: var(--lh-40);
    letter-spacing: var(--ls-40);
    font-weight: var(--fw-medium);
    text-transform: lowercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vacancy-company {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vacancy-company-logo {
    width: 24px;
    height: 24px;
    border-radius: 32px;
    object-fit: contain;
    background-color: #f3f3f3;
}
.vacancy-company-name {
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    font-weight: var(--fw-regular);
}
.vacancy-published-date {
    font-size: var(--fs-14);
    color: var(--text-muted);
    white-space: nowrap;
}
.vacancy-section {
    margin-bottom: 32px;
}
.vacancy-section-title {
    font-size: var(--fs-20);
    line-height: var(--lh-20);
    letter-spacing: var(--ls-20);
    font-weight: var(--fw-medium);
    margin-bottom: 12px;
}
.vacancy-section-content {
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    white-space: pre-wrap;
}
.vacancy-section-content ul {
    padding-left: 20px;
}
.vacancy-section-content p {
    margin-bottom: 8px;
}
.vacancy-apply-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    font-weight: var(--fw-medium);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-bottom: 16px;
}
.vacancy-apply-button:hover {
    background-color: #0069d9;
}
.vacancy-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.vacancy-tag {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: var(--fs-14);
    background-color: rgba(0,123,255,0.1);
    color: #007bff;
}
@media (max-width: 1279px) {
    .vacancy-container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .vacancy-content-column {
        display: contents;
        order: 1;
        width: 100%;
    }
    .vacancy-main {
        order: 1;
        width: 100%;
    }
    .vacancy-sidebar {
        order: 2;
        width: 100%;
        position: relative;
        margin-top: 0px;
    }
    .vacancy-details-section {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    .vacancy-main,
    .vacancy-sidebar,
    .vacancy-details-section {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .footer .container {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .mobile-title-section, .mobile-search-controls { display: none; }
    .vacancy-title { font-size: var(--fs-32); }
}
.vacancy-details-section {
    background-color: var(--surface-primary);
    border-radius: 24px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}
.vacancy-details-section .vacancy-section-content p {
    margin-top: 0;
    margin-bottom: 12px;
}
.vacancy-details-section .vacancy-section-content ul,
.vacancy-details-section .vacancy-section-content ol {
    margin-top: 0;
    padding-left: 20px;
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    font-weight: var(--fw-regular);
}
.vacancy-details-section .vacancy-section-content li {
    margin-bottom: 8px;
    letter-spacing: var(--ls-16);
    line-height: var(--lh-16);
}
.vacancy-details-section .vacancy-section-content li:last-child { margin-bottom: 0; }
.vacancy-details-section .vacancy-section-content > *:first-child { margin-top: 0; }
.vacancy-details-section .vacancy-section-content li p { margin-top: 0; margin-bottom: 0; }
.vacancy-details-section .vacancy-section-content { white-space: normal; }
.vacancy-details-section .vacancy-section-content p:empty { display: none; }
.vacancy-section-content > *:last-child,
.vacancy-details-section .vacancy-section-content > *:last-child,
.vacancy-section-content p:last-child,
.vacancy-section-content ul:last-child,
.vacancy-section-content ol:last-child { margin-bottom: 0 !important; }
.vacancy-section-header { display: flex; justify-content: space-between; align-items: center; }
.vacancy-section-header .vacancy-section-title { margin-bottom: 0; flex: 1; }
.vacancy-section-header .btn { margin-left: 16px; flex-shrink: 0; }
.vacancy-section-header .btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.vacancy-section-header .btn .btn-spinner { margin-left: 8px; animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cover-letter-buttons { display: flex; align-items: center; }
@media (max-width: 1279px) {
    .cover-letter-buttons { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
    #generateCoverLetterButton { margin-left: 0 !important; width: 100%; }
    #copyCoverLetterButton { width: 100%; order: 2; }
}
.cover-letter-result { margin-top: 16px; padding: 0; }
.cover-letter-result .result-text {
    background: var(--surface-secondary);
    border-radius: 16px;
    padding: 20px;
    font-size: var(--fs-16);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    color: var(--text-color);
    font-family: var(--font-primary);
    white-space: pre-wrap;
}
.cover-letter-result .result-actions { display: flex; gap: 12px; justify-content: flex-start; }
.cover-letter-result .result-actions .btn { flex: 0 0 auto; min-width: 160px; gap: 4px; }
.cover-letter-placeholder-text { color: var(--text-muted); font-size: var(--fs-16); line-height: var(--lh-16); letter-spacing: var(--ls-16); margin: 0; }
@media (max-width: 1279px) {
    .vacancy-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .vacancy-section-header .btn { margin-left: 0; width: 100%; }
    .cover-letter-result .result-text { padding: 16px; font-size: var(--fs-16); letter-spacing: var(--ls-16); line-height: var(--lh-16); }
    .cover-letter-result .result-actions .btn { min-width: auto; flex: 1; }
}
.vacancy-sidebar .sidebar-divider-desktop { border-top: 1px solid var(--filter-divider); margin: 4px 0; }
@media (min-width: 1280px) { .vacancy-sidebar .sidebar-divider-desktop { display: block; } }
@media (max-width: 1279px) { .vacancy-sidebar .sidebar-divider-desktop { display: none; } }
.sidebar-banner-link { display: block; margin-bottom: 0; }
.sidebar-banner-img { width: 100%; border-radius: 16px; display: block; }
@media (max-width: 1279px) { .sidebar-banner-link { display: none !important; } }
.favorite-btn {
    position: relative;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    z-index: 2;
    transition: all 0.2s ease;
    pointer-events: all;
    color: #2F384C;
}
.favorite-btn:hover { transform: scale(1.1); }
.favorite-btn svg { width: 24px; height: 24px; transition: all 0.2s ease; }
.favorite-btn.active svg path { fill: #2F384C; }
html.dark-theme .favorite-btn { color: #FFFFFF; }
html.dark-theme .favorite-btn.active svg path { fill: #FFFFFF; stroke: none; }
.application-btn {
    position: relative;
    top: 12px;
    right: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    pointer-events: all;
    color: #2F384C;
}
.application-btn:hover { transform: scale(1.1); }
.application-btn svg { width: 24px; height: 24px; transition: all 0.2s ease; }
.application-btn.active svg path { fill: #2F384C; }
html.dark-theme .application-btn { color: #FFFFFF; }
html.dark-theme .application-btn.active svg path { fill: #FFFFFF; stroke: none; }
.application-btn-container { position: absolute; width: 64px; height: 64px; pointer-events: none; }
.favorite-btn-container { position: absolute; width: 64px; height: 64px; pointer-events: none; }
@media (min-width: 1280px) { .application-btn-container { position: absolute; top: 0px; right: 24px; } .favorite-btn-container { position: absolute; top: 0px; right: -40px; } }
@media (max-width: 1279px) {
    .application-btn-container { position: absolute; top: 14px; right: 50px; width: 40px; height: 40px; pointer-events: all; z-index: 10; }
    .application-btn { position: static; top: auto; right: auto; width: 40px; height: 40px; }
    .favorite-btn-container { position: absolute; top: 20px; right: 2px; width: 40px; height: 40px; pointer-events: all; z-index: 10; }
    .favorite-btn { position: static; top: auto; right: auto; }
}

