﻿.vem-wrap {
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 12px;
    max-width: 960px;
    margin: 12px auto;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Helvetica Neue, Noto Sans, sans-serif
}

.vem-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px
}

.vem-field {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.vem-label {
    font-size: 12px;
    color: #334155
}

.vem-input {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px
}

.vem-btn {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer
}

.vem-btn[disabled] {
    opacity: .6;
    cursor: not-allowed
}

.vem-row-actions {
    align-items: center;
}

.vem-advanced-toggle {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
}

.vem-advanced {
    display: none;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 12px;
    background: #f8fafc;
}

.vem-advanced.is-open {
    display: block;
}

.vem-hint {
    font-size: 12px;
    color: #64748b
}

.vem-results {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

.vem-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px
}

.vem-title {
    font-weight: 600;
    margin: 0 0 4px
}

.vem-meta {
    font-size: 12px;
    color: #475569;
    margin: 2px 0
}

.vem-badge {
    font-size: 11px;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 9999px;
    padding: 2px 8px;
    margin-left: 6px
}

.vem-empty {
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #475569
}

.vem-card-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.vem-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
    flex: 0 0 96px
}

.vem-rating {
    font-size: 12px;
    color: #334155;
    margin-top: 4px
}

.vem-stars {
    font-size: 13px;
    line-height: 1;
    color: #f59e0b;
    letter-spacing: 1px
}

.vem-excerpt {
    font-size: 12px;
    color: #475569;
    margin-top: 6px
}

.vem-outreach {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    background: #fafafa
}

.vem-out-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center
}

.vem-pill {
    font-size: 11px;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 9999px;
    padding: 2px 8px
}

.vem-row .vem-field.checkbox {
    flex: 0 0 320px;
    align-items: flex-start
}

.vem-chip {
    display: inline-block;
    font-size: 11px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 9999px;
    padding: 2px 8px;
    margin-left: 6px
}

.vem-chat {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: #f8fafc;
}

.vem-chat-log {
    max-height: 260px;
    overflow: auto;
    padding-right: 6px;
}

.vem-chat-bubble {
    margin: 6px 0;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.35
}

.vem-chat-bubble.user {
    background: #e0f2fe;
    color: #0c4a6e;
    align-self: flex-end
}

.vem-chat-bubble.assistant {
    background: #ede9fe;
    color: #3730a3;
}

.vem-chat-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center
}

.vem-mic,
.vem-send {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    cursor: pointer
}

.vem-chat-input {
    flex: 1;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px
}

.vem-slotbar {
    font-size: 12px;
    color: #475569;
    margin-top: 6px
}

.vem-slotbar .tag {
    display: inline-block;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 8px;
    margin-right: 6px
}

.vem-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.vem-modal {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    width: 420px;
    max-width:
        calc(100vw - 32px);
}

.vem-modal h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.vem-modal .vem-field {
    margin-bottom: 10px;
}

.vem-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

.vem-error {
    color: #b91c1c;
    font-size: 12px;
    margin-top: 6px;
}

.vem-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.vem-spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    border-top-color: #111827;
    animation: vem-spin .6s linear infinite;
}

@keyframes vem-spin {
    to {
        transform: rotate(360deg);
    }
}

.vem-wrap[data-ui="off_market"] {
    background: #f9fafb;
    border: none;
    box-shadow: none;
    padding: 20px;
}

.vem-wrap[data-ui="off_market"] .vem-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vem-om-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 2px;
}

.vem-om-titleblock {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vem-om-h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.vem-om-sub {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.vem-om-chip {
    background: #eef2ff;
    color: #3b6fea;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}

.vem-om-banner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.vem-om-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    color: #111827;
    flex: 0 0 auto;
}

.vem-om-banner-title {
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.vem-om-banner-text {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.vem-om-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.vem-om-toolbar-left {
    color: #6b7280;
    font-size: 13px;
}

.vem-om-toolbar-actions {
    display: flex;
    gap: 8px;
}

.vem-om-ghost {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    color: #111827;
    cursor: pointer;
}

.vem-om-card {
    background: #fff;
    border: 2px solid #c7d2fe;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.vem-om-card.is-selected {
    border: 2px solid #3b6fea;
}

.vem-om-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    display: grid;
    place-items: center;
    color: #fff;
}

.vem-om-discount {
    display: none;
}

.vem-om-ribbon {
    --size: 50px;
    position: absolute;
    top: 8px;
    right: 74px;
    width: var(--size);
    z-index: 3;
}

.vem-om-ribbon__tails {
    display: none;
}

.vem-om-ribbon__tail {
    position: absolute;
    bottom: 0;
    width: 38%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a1a, #0b0b0b);
    clip-path: polygon(10% 0, 90% 0, 100% 82%, 52% 100%, 0 82%);
    box-sizing: border-box;
    border: 4px solid transparent;
    border-top: 0;
    border-image: linear-gradient(180deg, #f7e39a, #caa23b, #8a6720) 1;
    border-radius: 0 0 8px 8px;
}

.vem-om-ribbon__tail--left {
    left: 10%;
    transform: rotate(12deg);
    transform-origin: top center;
}

.vem-om-ribbon__tail--right {
    right: 10%;
    transform: rotate(-12deg);
    transform-origin: top center;
}

.vem-om-ribbon__medallion {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #4a4a4a 0 22%, #242424 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}

.vem-om-ribbon__medallion::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f7e39a, #caa23b, #8a6720);
    z-index: -1;
}

.vem-om-ribbon__medallion::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: .9;
    pointer-events: none;
}

.vem-om-ribbon__text {
    position: relative;
    color: #fff7d6;
    font-family: "Georgia","Times New Roman",serif;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .3px;
    text-shadow: 0 1px 0 rgba(0,0,0,.45);
}

.vem-om-ribbon__text small {
    display: block;
    font-size: 7px;
}

.vem-om-ribbon__text strong {
    display: block;
    font-size: 15px;
    line-height: 1;
    margin: 2px 0;
}

.vem-om-ribbon__text span {
    display: block;
    font-size: 7px;
}

.vem-om-card.is-selected .vem-om-check {
    background: #3b6fea;
    border-color: #3b6fea;
}

.vem-om-card.is-selected .vem-om-check svg {
    stroke: #fff;
}

.vem-om-rail {
    width: 140px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.vem-om-rail.tint-0 {
    background: #eef7ee;
}

.vem-om-rail.tint-1 {
    background: #eef7ee;
}

.vem-om-rail.tint-2 {
    background: #eef7ee;
}

.vem-om-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.vem-om-tag {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 6px 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #14532d;
    text-transform: uppercase;
    text-align: center;
}

.vem-om-rail-footer {
    margin-top: auto;
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vem-om-main {
    padding: 18px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.vem-om-topline {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.vem-om-match {
    background: #e0e7ff;
    color: #4f46e5;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.vem-om-type {
    background: #eef2ff;
    color: #475569;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 700;
}

.vem-om-rating-inline {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vem-om-rating-inline .vem-om-stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 12px;
    line-height: 1;
}

.vem-om-rating-inline .vem-om-rating-num {
    color: #334155;
    font-weight: 700;
}

.vem-om-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.vem-om-desc {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.vem-om-features {
    color: #92400e;
    font-size: 13px;
    margin: 0;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 8px 12px;
    width: fit-content;
}

.vem-om-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.vem-om-spec {
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border: 1px solid #eef2f7;
}

.vem-om-spec-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vem-om-spec-value {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}

.vem-om-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.vem-om-footer-left {
    display: flex;
    gap: 16px;
    align-items: center;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.vem-om-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-weight: 700;
}

.vem-om-icon {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    color: #64748b !important;
    flex: 0 0 16px;
    stroke: #64748b !important;
    fill: none !important;
}

.vem-om-icon path {
    stroke: currentColor !important;
    fill: none !important;
}

.vem-om-icon circle {
    stroke: currentColor !important;
    fill: none !important;
}

.vem-om-link {
    background: none;
    border: none;
    color: #3b6fea;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.vem-om-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.vem-om-cta-text {
    color: #6b7280;
    font-size: 13px;
}

.vem-om-cta-btn {
    background: #121826;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.vem-om-cta-btn[disabled],
.vem-om-cta-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.vem-om-result {
    font-size: 13px;
    color: #475569;
}

.vem-om-empty {
    background: #fff;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    color: #6b7280;
}

@media (max-width: 760px) {
    .vem-om-card {
        flex-direction: column;
    }

    .vem-om-rail {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        text-align: left;
    }

    .vem-om-tags {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .vem-om-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .vem-om-specs {
        grid-template-columns: 1fr;
    }
}
