
.vm-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
}
.vm-header__inner {
    padding: 20px 24px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.vm-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f5f3ff;
    border-radius: 50%;
    border: 1px solid #ede9fe;
    flex-shrink: 0;
    font-size: 18px;
    color: #7c3aed;
}
.vm-header__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ede9fe;
    display: block;
}

.vm-header__photo-btn {
    padding: 0;
    border: 0;
    background: transparent;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: none;
}
.vm-header__photo-btn:hover {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.vm-header__photo-btn:hover .vm-header__photo {
    border-color: #7c3aed;
}
.vm-header__photo-btn .ui-img-preview__overlay {
    border-radius: 50%;
}
.vm-header__title {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    margin-bottom: 5px;
}
.vm-header__badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vm-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.vm-body--card-preview {
    flex: 1 1 auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px 24px;
}
.vm-body--card-preview > .card-block {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    box-sizing: border-box;

}

.vm-section:not(:first-child) {
    padding-top: 18px;
    margin-top: 4px;
    border-top: 1px solid #f3f4f6;
}

.vm-section:not(:last-child) {
    margin-bottom: 24px;
}

.vm-body > .vm-section {
    margin-bottom: 0;
}

.vm-section__title {
    font-size: 11px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 14px;
}
.vm-section__title i {
    margin-right: 5px;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}
.vm-grid--1col { grid-template-columns: 1fr; }
.vm-grid--3col { grid-template-columns: 1fr 1fr 1fr; }

.vm-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.vm-field__label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.vm-field__value {
    font-size: 13.5px;
    color: #1f2937;
    font-weight: 500;
    word-wrap: break-word;
}
.vm-field__empty { color: #d1d5db; }

.vm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px;
}
.vm-empty__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    color: #c4b5fd;
}
.vm-empty__title {
    font-size: 14.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.vm-empty__desc {
    font-size: 12.5px;
    color: #9ca3af;
    max-width: 300px;
    line-height: 1.55;
}

.vm-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f5f3ff;
    border-radius: 8px;
    border: 1px solid #ede9fe;
}
.vm-info__icon {
    color: #7c3aed;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}
.vm-info__text {
    font-size: 13px;
    color: #5b21b6;
    line-height: 1.55;
}

.vm-notfound {
    padding: 40px;
    text-align: center;
    color: #9ca3af;
}
.vm-notfound i {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.vm-field--full,
.vm-grid__full { grid-column: 1 / -1; }

#cmModal .modal-body > .ui-tab-bar--scroll,
#cmModal .modal-body > .vm-tabs,
#docViewModal .modal-body > .ui-tab-bar--scroll,
#docViewModal .modal-body > .vm-tabs {
    position: sticky;
    top: 0;
    z-index: 9;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0;
}

#cmModal .modal-body > .vm-header + .ui-tab-bar--scroll,
#cmModal .modal-body > .vm-header + .vm-tabs,
#docViewModal .modal-body > .vm-header + .ui-tab-bar--scroll,
#docViewModal .modal-body > .vm-header + .vm-tabs {
    top: 85px;
}

.vm-prose {
    font-size: 13.5px;
    color: #374151;
    line-height: 1.7;
}
.vm-prose:not(:first-child) { margin-top: 16px; }

.vm-principal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.vm-principal__name {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

.vm-quote {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    background: #fafafa;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #f3f4f6;
}

.vm-faqs { display: flex; flex-direction: column; gap: 10px; }
.vm-faq {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.vm-faq__q {
    padding: 11px 14px;
    font-weight: 600;
    font-size: 13.5px;
    color: #111827;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.vm-faq__index {
    background: #7c3aed;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.vm-faq__a {
    padding: 0 14px 12px 42px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.vm-map {
    width: 100%;
    height: 160px;
    border: 0;
    border-radius: 8px;
}

.vm-map-fallback {
    padding: 20px 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    text-align: center;
    color: #7f1d1d;
}
.vm-map-fallback__icon {
    font-size: 22px;
    color: #dc2626;
    margin-bottom: 8px;
}
.vm-map-fallback__title {
    font-size: 13.5px;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 6px;
}
.vm-map-fallback__desc {
    font-size: 12.5px;
    color: #7f1d1d;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 10px;
}
.vm-map-fallback__desc code {
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11.5px;
}
.vm-map-fallback__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}
.vm-map-fallback__link:hover { text-decoration: underline; }

.vm-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background .15s;
}
.vm-social-link:hover { background: #f3f4f6; }
.vm-social-link__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vm-social-link__icon i { font-size: 15px; }
.vm-social-link__label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}
.vm-social-link__url {
    font-size: 11px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}
.vm-social-link__chevron {
    margin-left: auto;
    font-size: 11px;
    color: #c4b5fd;
}

.ui-td--align-right   { text-align: right; }
.ui-td--align-center  { text-align: center; }
.ui-table thead th.ui-th--align-right   { text-align: right; }
.ui-table thead th.ui-th--align-center  { text-align: center; }
.ui-td--bold          { font-weight: 600; }
.ui-td--nowrap        { white-space: nowrap; }
.ui-th--w80           { width: 80px; }
.ui-th--w96           { width: 96px; }
.vm-field__sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.rs-backlog-block {
    margin-top: 14px;
}
.rs-backlog-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #b45309;
}
.rs-backlog-head i {
    color: #d97706;
}
.rs-head-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
