.cvmb-app {
    --cvmb-accent: #a8558f;
    --cvmb-border: #e6e8ef;
    --cvmb-muted: #777b87;
    --cvmb-text: #232633;
    color: var(--cvmb-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 24px auto;
    max-width: 1280px;
}

.cvmb-app * {
    box-sizing: border-box;
}

.cvmb-toolbar {
    align-items: center;
    background: #191a20;
    border-radius: 8px 8px 0 0;
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
}

.cvmb-eyebrow {
    color: #b8bcc9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 0 0 2px;
    text-transform: uppercase;
}

.cvmb-toolbar h2 {
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
}

.cvmb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cvmb-btn,
.cvmb-small-btn,
.cvmb-import-card {
    border: 1px solid var(--cvmb-border);
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
}

.cvmb-btn {
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
}

.cvmb-btn-primary {
    background: #5b28d6;
    border-color: #5b28d6;
    color: #fff;
}

.cvmb-btn-secondary {
    background: transparent;
    border-color: #484b58;
    color: #fff;
}

.cvmb-shell {
    background: #f5f6f8;
    display: grid;
    grid-template-columns: minmax(320px, 470px) 1fr;
    min-height: 780px;
}

.cvmb-editor {
    background: #fff;
    border-right: 1px solid var(--cvmb-border);
    padding: 20px;
}

.cvmb-import-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
}

.cvmb-import-card {
    align-items: center;
    background: #fff;
    color: #626776;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 70px;
    padding: 12px;
}

.cvmb-import-card + .cvmb-import-card {
    border-left: 0;
}

.cvmb-import-card span {
    align-items: center;
    border: 1px solid #cfd3de;
    border-radius: 6px;
    display: inline-flex;
    font-size: 18px;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.cvmb-panel {
    border-bottom: 1px solid var(--cvmb-border);
}

.cvmb-panel summary {
    align-items: center;
    color: #8a8d98;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 800;
    justify-content: space-between;
    list-style: none;
    padding: 16px 0;
}

.cvmb-panel summary::-webkit-details-marker {
    display: none;
}

.cvmb-panel summary span {
    align-items: center;
    border: 1px solid #cfd3de;
    border-radius: 5px;
    color: #454957;
    display: inline-flex;
    font-size: 18px;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.cvmb-panel[open] summary {
    color: var(--cvmb-text);
}

.cvmb-panel[open] summary span {
    border-color: color-mix(in srgb, var(--cvmb-accent) 55%, #fff);
    color: var(--cvmb-accent);
}

.cvmb-panel-body {
    padding: 0 0 16px;
}

.cvmb-photo-field {
    margin-bottom: 16px;
}

.cvmb-photo-field > span {
    color: #585d6b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.cvmb-photo-upload {
    align-items: center;
    background: #f3f3f5;
    border: 1px dashed #cfd3de;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    height: 150px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 150px;
}

.cvmb-photo-upload input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.cvmb-photo-upload img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cvmb-photo-placeholder {
    color: #8a8d98;
    font-size: 13px;
    font-weight: 800;
}

.cvmb-photo-remove {
    margin-top: 8px;
}

.cvmb-photo-remove:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.cvmb-privacy-note {
    color: #767b88;
    font-size: 12px;
    line-height: 1.45;
    margin: 8px 0 0;
}

.cvmb-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.cvmb-field {
    display: block;
    margin-bottom: 12px;
}

.cvmb-field span,
.cvmb-options label {
    color: #585d6b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.cvmb-field input,
.cvmb-field textarea,
.cvmb-options select {
    background: #fff;
    border: 1px solid #d8dce6;
    border-radius: 6px;
    color: var(--cvmb-text);
    font: inherit;
    font-size: 14px;
    min-height: 40px;
    padding: 9px 10px;
    width: 100%;
}

.cvmb-field textarea {
    line-height: 1.45;
    resize: vertical;
}

.cvmb-repeat-item {
    background: #fafbfc;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
}

.cvmb-small-btn {
    background: #fff;
    color: #4a4f5d;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 10px;
}

.cvmb-options {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: 120px 1fr;
    padding-top: 18px;
}

.cvmb-options input[type="color"] {
    border: 1px solid var(--cvmb-border);
    border-radius: 6px;
    height: 40px;
    padding: 4px;
    width: 100%;
}

.cvmb-preview-wrap {
    align-items: start;
    display: flex;
    justify-content: center;
    overflow: auto;
    padding: 28px 20px 52px;
}

.cvmb-paper {
    --cvmb-paper-width: min(100%, 560px);
    background: #fff;
    box-shadow: 0 2px 14px rgba(20, 24, 34, .12);
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 720px;
    overflow: hidden;
    width: var(--cvmb-paper-width);
}

.cvmb-side {
    background: color-mix(in srgb, var(--cvmb-accent) 10%, #fff);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cvmb-side-top {
    background: var(--cvmb-accent);
    color: #fff;
    padding: 28px 20px 42px;
    position: relative;
    text-align: center;
}

.cvmb-side-top::after {
    background: color-mix(in srgb, var(--cvmb-accent) 10%, #fff);
    border-radius: 0 0 50% 50%;
    bottom: -28px;
    content: "";
    height: 54px;
    left: 0;
    position: absolute;
    right: 0;
}

.cvmb-side h3 {
    color: #fff;
    font-size: 20px;
    line-height: 1.08;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.cvmb-photo-preview {
    background: #fff;
    border: 6px solid #fff;
    border-radius: 999px;
    height: 116px;
    margin: 0 auto 16px;
    overflow: hidden;
    position: relative;
    width: 116px;
    z-index: 1;
}

.cvmb-photo-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cvmb-side-top p {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.cvmb-contact,
.cvmb-side > div:not(.cvmb-side-top) {
    padding: 0 18px;
}

.cvmb-contact p {
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    font-size: 12px;
    margin: 0;
    padding: 8px 0;
    word-break: break-word;
}

.cvmb-paper h4 {
    color: var(--cvmb-accent);
    font-size: 11px;
    letter-spacing: .04em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.cvmb-paper ul {
    margin: 0;
    padding-left: 18px;
}

.cvmb-paper li {
    font-size: 11px;
    margin-bottom: 7px;
}

.cvmb-main {
    padding: 34px 28px 28px;
}

.cvmb-main section {
    margin-bottom: 30px;
}

.cvmb-main p {
    color: #343846;
    font-size: 12px;
    line-height: 1.55;
    margin: 0;
}

.cvmb-cv-item {
    margin-bottom: 18px;
}

.cvmb-cv-item div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.cvmb-cv-item strong {
    color: #202330;
    font-size: 12px;
}

.cvmb-cv-item span {
    color: #777d8c;
    flex: 0 0 auto;
    font-size: 11px;
}

.cvmb-cv-item p {
    margin-top: 6px;
}

.cvmb-template-clean {
    display: block;
}

.cvmb-template-clean .cvmb-side {
    background: #fff;
    border-bottom: 5px solid var(--cvmb-accent);
    display: block;
    padding: 0;
}

.cvmb-template-clean .cvmb-side-top {
    padding: 34px 42px 18px;
    text-align: left;
}

.cvmb-template-clean .cvmb-side-top::after {
    display: none;
}

.cvmb-template-clean .cvmb-photo-preview {
    margin: 0 0 18px;
}

.cvmb-template-clean .cvmb-contact,
.cvmb-template-clean .cvmb-side > div:not(.cvmb-side-top) {
    padding: 0 42px 18px;
}

.cvmb-template-clean .cvmb-main {
    padding-top: 30px;
}

@media (max-width: 920px) {
    .cvmb-shell {
        grid-template-columns: 1fr;
    }

    .cvmb-editor {
        border-right: 0;
    }

    .cvmb-paper {
        grid-template-columns: 190px 1fr;
        min-height: 760px;
    }
}

@media (max-width: 640px) {
    .cvmb-toolbar,
    .cvmb-cv-item div {
        align-items: stretch;
        flex-direction: column;
    }

    .cvmb-grid,
    .cvmb-import-row,
    .cvmb-options {
        grid-template-columns: 1fr;
    }

    .cvmb-import-card + .cvmb-import-card {
        border-left: 1px solid var(--cvmb-border);
        border-top: 0;
    }

    .cvmb-preview-wrap {
        padding: 16px 8px 30px;
    }

    .cvmb-paper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cvmb-main {
        padding: 28px 24px;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .cvmb-printing,
    .cvmb-printing * {
        visibility: visible !important;
    }

    .cvmb-printing {
        left: 0;
        margin: 0 !important;
        max-width: none !important;
        position: absolute;
        top: 0;
        width: 100%;
    }

    .cvmb-printing .cvmb-toolbar,
    .cvmb-printing .cvmb-editor {
        display: none !important;
    }

    .cvmb-printing .cvmb-shell,
    .cvmb-printing .cvmb-preview-wrap {
        background: #fff;
        display: block;
        min-height: 0;
        padding: 0;
    }

    .cvmb-printing .cvmb-paper {
        box-shadow: none;
        min-height: 100vh;
        width: 100%;
    }

    @page {
        margin: 0;
        size: A4;
    }
}
