/* VantrisAI Visibility Diagnosis™ — Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ─── App Shell ─── */
.vvd-app {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    color: #f1f5f9;
    background: #070708;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.vvd-app-header {
    background: linear-gradient(135deg, #070708 0%, #0c1525 100%);
    padding: 32px 40px 28px;
    border-bottom: 1px solid #1e3a5f;
    text-align: center;
}

.vvd-logo {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 6px;
}
.vvd-logo span { color: #2563eb; }

.vvd-app-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.vvd-app-sub {
    font-size: 13px;
    color: #64748b;
    letter-spacing: 0.3px;
}

/* ─── Form ─── */
.vvd-form-wrap { padding: 36px 40px; }

.vvd-field { margin-bottom: 20px; }

.vvd-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.vvd-req { color: #2563eb; }
.vvd-optional { color: #475569; font-weight: 400; font-size: 12px; }

.vvd-input {
    width: 100%;
    padding: 12px 16px;
    background: #0f172a;
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.vvd-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.vvd-input::placeholder { color: #334155; }

.vvd-hint {
    font-size: 11px;
    color: #475569;
    margin-top: 5px;
}

.vvd-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin: 24px 0 12px;
    padding-top: 16px;
    border-top: 1px solid #1e3a5f;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.vvd-submit-btn {
    width: 100%;
    padding: 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    transition: background 0.2s, transform 0.1s;
}

.vvd-submit-btn:hover  { background: #1d4ed8; }
.vvd-submit-btn:active { transform: scale(0.99); }
.vvd-submit-btn:disabled { background: #334155; cursor: not-allowed; }

.btn-icon { font-size: 18px; transition: transform 0.2s; }
.vvd-submit-btn:hover .btn-icon { transform: translateX(3px); }

/* ─── Loading State ─── */
.vvd-loading {
    padding: 60px 40px;
    text-align: center;
}

.vvd-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid #1e3a5f;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: vvd-spin 0.9s linear infinite;
    margin: 0 auto 24px;
}

@keyframes vvd-spin { to { transform: rotate(360deg); } }

.vvd-loading-title {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 20px;
}

.vvd-loading-steps { max-width: 380px; margin: 0 auto 20px; }

.vvd-loading-steps .step {
    font-size: 12px;
    color: #334155;
    padding: 6px 0;
    transition: color 0.3s;
}

.vvd-loading-steps .step.active { color: #2563eb; font-weight: 600; }
.vvd-loading-steps .step.done   { color: #10b981; }

.vvd-loading-note {
    font-size: 12px;
    color: #475569;
}

/* ─── Error ─── */
.vvd-error {
    margin: 20px 40px;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 13px;
}

/* ─── Results Wrapper ─── */
.vvd-results { padding: 0 0 32px; }

/* ─── Score Hero ─── */
.vvd-score-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 36px 40px;
    text-align: center;
    border-bottom: 1px solid #1e3a5f;
}

.vvd-score-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 20px;
}

.vvd-score-gauge {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.vvd-gauge-inner {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #070708;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.vvd-gauge-num {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.vvd-gauge-denom {
    font-size: 13px;
    color: #475569;
}

.vvd-score-grade {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 4px;
}

.vvd-score-domain {
    font-size: 14px;
    color: #94a3b8;
}

/* ─── Pillar Cards ─── */
.vvd-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px 40px;
    border-bottom: 1px solid #1e3a5f;
}

.vvd-pillar {
    background: #0f172a;
    border: 1px solid #1e3a5f;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s;
}

.vvd-pillar:hover { border-color: #2563eb; }

.vvd-pillar-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.vvd-pillar-tag.aeo { color: #3b82f6; }
.vvd-pillar-tag.aio { color: #a78bfa; }
.vvd-pillar-tag.geo { color: #34d399; }

.vvd-pillar-def {
    font-size: 10px;
    color: #475569;
    margin-bottom: 12px;
}

.vvd-pillar-num {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.vvd-pillar-max { font-size: 11px; color: #475569; margin-bottom: 10px; }

.vvd-pillar-bar {
    height: 5px;
    background: #1e3a5f;
    border-radius: 3px;
    overflow: hidden;
}

.vvd-pillar-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    border-radius: 3px;
    transition: width 1s ease;
}

/* ─── Sections ─── */
.vvd-section {
    padding: 28px 40px;
    border-bottom: 1px solid #1e3a5f;
}

.vvd-section:last-child { border-bottom: none; }

.vvd-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.vvd-section-icon { font-size: 18px; }

.vvd-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}

/* ─── Check Table ─── */
.vvd-check-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.vvd-check-table th {
    background: #0f172a;
    color: #64748b;
    padding: 8px 12px;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.vvd-check-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #1e3a5f;
    vertical-align: top;
    color: #cbd5e1;
}

.vvd-check-table tr:hover td { background: #0f172a; }

.vvd-status-icon { font-weight: 700; font-size: 13px; }
.status-pass    { color: #10b981; }
.status-partial { color: #f59e0b; }
.status-fail    { color: #ef4444; }

.vvd-pts-bar { display: flex; align-items: center; gap: 6px; }
.vvd-pts-track { flex: 1; height: 4px; background: #1e3a5f; border-radius: 2px; max-width: 60px; }
.vvd-pts-fill  { height: 100%; background: #2563eb; border-radius: 2px; }

/* ─── Prompt Testing ─── */
.vvd-engine-block { margin-bottom: 20px; }

.vvd-engine-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #0f172a;
    border-radius: 8px;
    border: 1px solid #1e3a5f;
}

.vvd-engine-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-chatgpt    { background: #064e3b; color: #34d399; }
.badge-gemini     { background: #1e1b4b; color: #a78bfa; }
.badge-perplexity { background: #1e3a5f; color: #60a5fa; }

.vvd-engine-stat { font-size: 11px; color: #64748b; margin-left: auto; }

.vvd-prompt-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #0f172a;
    font-size: 11px;
}

.vvd-prompt-q  { color: #64748b; padding-right: 8px; }
.vvd-prompt-r  { color: #94a3b8; }
.vvd-prompt-tag { font-size: 10px; font-weight: 700; display: inline-block; margin-bottom: 3px; }
.tag-yes  { color: #10b981; }
.tag-no   { color: #ef4444; }
.tag-err  { color: #64748b; }
.vvd-snippet { color: #475569; font-size: 10px; line-height: 1.5; margin-top: 2px; }

/* ─── Competitor Table ─── */
.vvd-comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.vvd-comp-table th {
    background: #0f172a;
    color: #64748b;
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.vvd-comp-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #1e3a5f;
    color: #cbd5e1;
}

.vvd-comp-table .client-row td {
    background: #0f2a4a;
    font-weight: 700;
    color: #f1f5f9;
}

.vvd-comp-score { font-weight: 700; font-size: 16px; color: #2563eb; }

/* ─── Diagnosis Cards ─── */
.vvd-diag-card {
    background: #0f172a;
    border: 1px solid #1e3a5f;
    border-left: 4px solid #2563eb;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.vvd-diag-card.geo { border-left-color: #ef4444; }
.vvd-diag-card.aeo { border-left-color: #3b82f6; }
.vvd-diag-card.aio { border-left-color: #a78bfa; }

.vvd-diag-pillar {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.vvd-diag-headline {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.vvd-diag-detail {
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
}

/* ─── Fix Cards ─── */
.vvd-fix-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #0f172a;
    border: 1px solid #1e3a5f;
    border-radius: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
    transition: border-color 0.2s;
}

.vvd-fix-card:hover { border-color: #2563eb; }

.vvd-fix-rank {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.vvd-fix-body { flex: 1; }

.vvd-fix-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
    line-height: 1.4;
}

.vvd-fix-why {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 10px;
}

.vvd-fix-meta { display: flex; gap: 8px; flex-wrap: wrap; }

.vvd-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-high   { background: rgba(239,68,68,0.15);  color: #f87171; }
.tag-medium { background: rgba(245,158,11,0.15); color: #fbbf24; }
.tag-low    { background: rgba(16,185,129,0.15); color: #34d399; }
.tag-effort { background: #1e3a5f; color: #64748b; }
.tag-aeo    { background: rgba(59,130,246,0.15); color: #60a5fa; }
.tag-aio    { background: rgba(167,139,250,0.15);color: #a78bfa; }
.tag-geo    { background: rgba(52,211,153,0.15); color: #34d399; }

/* ─── Roadmap ─── */
.vvd-roadmap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.vvd-phase {
    background: #0f172a;
    border: 1px solid #1e3a5f;
    border-radius: 10px;
    padding: 18px;
}

.vvd-phase-num {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2563eb;
    margin-bottom: 4px;
}

.vvd-phase-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 2px;
}

.vvd-phase-time {
    font-size: 11px;
    color: #475569;
    margin-bottom: 12px;
}

.vvd-phase-desc {
    font-size: 11px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.6;
}

.vvd-phase-item {
    font-size: 11px;
    color: #94a3b8;
    padding: 5px 0;
    border-bottom: 1px solid #1e3a5f;
    line-height: 1.4;
    display: flex;
    gap: 6px;
}

.vvd-phase-item::before { content: '✦'; color: #2563eb; flex-shrink: 0; font-size: 9px; margin-top: 2px; }

.vvd-phase-empty {
    font-size: 11px;
    color: #334155;
    font-style: italic;
}

/* ─── Report footer ─── */
.vvd-report-footer {
    text-align: center;
    padding: 24px;
    font-size: 11px;
    color: #334155;
    border-top: 1px solid #1e3a5f;
}

.vvd-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.vvd-print-btn:hover { background: #1d4ed8; }

/* ─── Responsive ─── */
@media (max-width: 700px) {
    .vvd-form-wrap, .vvd-section { padding: 20px; }
    .vvd-pillars  { grid-template-columns: 1fr; gap: 10px; padding: 16px 20px; }
    .vvd-roadmap  { grid-template-columns: 1fr; }
    .vvd-prompt-row { grid-template-columns: 1fr; }
}

/* ─── v1.0.0.7 Report State + Professional Output Overrides ─── */
.vvd-app[data-vvd-view="loading"],
.vvd-app[data-vvd-view="results"] {
    max-width: 980px;
}

.vvd-app[data-vvd-view="loading"] {
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vvd-app[data-vvd-view="loading"] .vvd-loading {
    width: 100%;
    min-height: 620px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(37,99,235,.18), transparent 35%),
        linear-gradient(135deg, #05070d 0%, #0f172a 100%);
}

.vvd-results {
    background: #070708;
    color: #f8fafc;
}

.vvd-report-actions {
    display: flex;
    justify-content: flex-end;
    padding: 18px 22px 0;
}

.vvd-btn-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563eb;
    color: #fff !important;
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(37,99,235,.25);
}

.vvd-btn-print:hover { background: #1d4ed8; }

.vvd-hero {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 34px 40px 24px;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.24), transparent 38%),
        linear-gradient(135deg, #07101f 0%, #070708 75%);
    border-bottom: 1px solid #1e3a5f;
}

.vvd-report-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 8px;
}

.vvd-domain {
    display: block;
    max-width: 100%;
    color: #fff;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -1.6px;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vvd-industry-label {
    color: #94a3b8;
    font-size: 14px;
    margin: 12px 0 0;
    overflow-wrap: anywhere;
}

.vvd-gauge {
    width: 154px;
    height: 154px;
    border-radius: 50%;
    background: conic-gradient(#2563eb calc(var(--score) * 3.6deg), #1e293b 0deg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 48px rgba(37,99,235,.18);
}

.vvd-gauge-inner {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #070708;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vvd-gauge-number { font-size: 42px; font-weight: 900; color: #fff; line-height: 1; }
.vvd-gauge-label { font-size: 13px; color: #94a3b8; }

.vvd-grade {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.vvd-grade.strong { background: rgba(16,185,129,.14); color: #34d399; }
.vvd-grade.developing { background: rgba(245,158,11,.16); color: #fbbf24; }
.vvd-grade.critical { background: rgba(239,68,68,.16); color: #f87171; }

.vvd-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 40px 30px;
    border-bottom: 1px solid #1e3a5f;
}

.vvd-pillar-card {
    background: #0f172a;
    border: 1px solid #1e3a5f;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.vvd-pillar-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.vvd-pillar-badge {
    flex: 0 0 auto;
    color: #fff;
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}
.vvd-pillar-badge.aeo { background: #2563eb; }
.vvd-pillar-badge.aio { background: #7c3aed; }
.vvd-pillar-badge.geo { background: #059669; }

.vvd-pillar-title { color: #fff; font-size: 13px; font-weight: 800; line-height: 1.25; }
.vvd-pillar-sub { color: #94a3b8; font-size: 12px; margin-top: 2px; }
.vvd-pillar-score { color: #fff; font-size: 34px; font-weight: 900; line-height: 1; margin-bottom: 12px; }
.vvd-pillar-max { color: #94a3b8; font-size: 13px; font-weight: 700; }
.vvd-bar-track { height: 7px; background: #1e293b; border-radius: 99px; overflow: hidden; }
.vvd-bar-fill { height: 100%; border-radius: 99px; transition: width .8s ease; }
.vvd-pillar-card.aeo .vvd-bar-fill { background: #2563eb; }
.vvd-pillar-card.aio .vvd-bar-fill { background: #7c3aed; }
.vvd-pillar-card.geo .vvd-bar-fill { background: #059669; }

.vvd-section {
    padding: 30px 40px;
    border-bottom: 1px solid #1e3a5f;
}
.vvd-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.vvd-section-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.2px;
}
.vvd-section-icon { font-size: 18px; }

.vvd-check-table,
.vvd-prompt-table,
.vvd-comp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #1e3a5f;
    border-radius: 12px;
    background: #08111f;
}
.vvd-check-table th,
.vvd-prompt-table th,
.vvd-comp-table th {
    background: #111c31;
    color: #94a3b8;
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 900;
}
.vvd-check-table td,
.vvd-prompt-table td,
.vvd-comp-table td {
    padding: 13px 14px;
    border-top: 1px solid #1e3a5f;
    color: #cbd5e1;
    vertical-align: top;
}
.vvd-check-table small { color: #64748b; }

.vvd-status-pill,
.vvd-mention,
.vvd-grade-sm,
.vvd-you-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .45px;
    white-space: nowrap;
}
.status-pass, .vvd-mention.yes, .vvd-grade-sm.strong { background: rgba(16,185,129,.16); color: #34d399; }
.status-partial, .vvd-grade-sm.developing { background: rgba(245,158,11,.16); color: #fbbf24; }
.status-fail, .vvd-mention.no, .vvd-grade-sm.critical { background: rgba(239,68,68,.16); color: #f87171; }
.vvd-you-badge { background: rgba(37,99,235,.18); color: #93c5fd; margin-left: 6px; }

.vvd-engine-block { margin-bottom: 18px; }
.vvd-engine-block:last-child { margin-bottom: 0; }
.vvd-engine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: #0f172a;
    border: 1px solid #1e3a5f;
    border-radius: 12px 12px 0 0;
}
.vvd-engine-stat { color: #cbd5e1; font-size: 13px; font-weight: 800; }
.vvd-prompt-table { border-radius: 0 0 12px 12px; border-top: 0; }
.vvd-prompt-text { overflow-wrap: anywhere; }

.vvd-client-row td { background: #0f2a4a !important; color: #fff; }
.vvd-comp-table td:first-child { overflow-wrap: anywhere; max-width: 280px; }
.vvd-comp-table small { color: #f87171; }

.vvd-grade-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.vvd-grade-legend > div {
    background: #0f172a;
    border: 1px solid #1e3a5f;
    border-radius: 12px;
    padding: 12px;
}
.vvd-grade-legend p { margin: 8px 0 0; color: #94a3b8; font-size: 11px; line-height: 1.5; }

.vvd-diag-card,
.vvd-fix-card,
.vvd-phase {
    background: #0f172a;
    border: 1px solid #1e3a5f;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
}
.vvd-diag-card { padding: 17px 18px; margin-bottom: 12px; border-left: 4px solid #2563eb; }
.vvd-diag-card.geo { border-left-color: #059669; }
.vvd-diag-card.aio { border-left-color: #7c3aed; }
.vvd-diag-headline { font-size: 14px; color: #fff; font-weight: 900; margin-bottom: 6px; }
.vvd-diag-detail { font-size: 12px; color: #94a3b8; line-height: 1.7; }

.vvd-fix-card { display: flex; gap: 15px; padding: 18px; margin-bottom: 12px; }
.vvd-fix-rank { min-width: 34px; height: 34px; border-radius: 50%; display:flex; align-items:center; justify-content:center; background:#2563eb; color:#fff; font-weight:900; }
.vvd-fix-body { flex:1; }
.vvd-fix-title { color:#fff; font-size:14px; font-weight:900; margin-bottom:7px; line-height:1.4; }
.vvd-fix-why { color:#94a3b8; font-size:12px; line-height:1.7; margin-bottom:11px; }
.vvd-fix-meta { display:flex; flex-wrap:wrap; gap:8px; }
.vvd-tag { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.45px; }
.tag-high { background:rgba(239,68,68,.16); color:#f87171; }
.tag-medium { background:rgba(245,158,11,.16); color:#fbbf24; }
.tag-low { background:rgba(16,185,129,.16); color:#34d399; }
.tag-effort { background:rgba(148,163,184,.14); color:#cbd5e1; }
.tag-aeo { background:rgba(37,99,235,.16); color:#93c5fd; }
.tag-aio { background:rgba(124,58,237,.18); color:#c4b5fd; }
.tag-geo { background:rgba(5,150,105,.18); color:#6ee7b7; }

.vvd-roadmap { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:16px; }
.vvd-phase { padding:18px; }
.vvd-phase-num { color:#60a5fa; font-size:10px; font-weight:900; letter-spacing:1.4px; text-transform:uppercase; margin-bottom:7px; }
.vvd-phase-title { color:#fff; font-size:15px; font-weight:900; line-height:1.3; margin-bottom:4px; }
.vvd-phase-time { color:#cbd5e1; font-size:12px; font-weight:800; margin-bottom:10px; }
.vvd-phase-desc { color:#64748b; font-size:11px; line-height:1.6; margin-bottom:12px; }
.vvd-phase-item { color:#cbd5e1; font-size:12px; line-height:1.55; padding:8px 0; border-top:1px solid #1e3a5f; display:flex; gap:7px; }
.vvd-phase-item:before { content:'✦'; color:#60a5fa; flex:0 0 auto; }
.vvd-phase-empty { color:#64748b; font-size:12px; font-style:italic; padding-top:8px; border-top:1px solid #1e3a5f; }

.vvd-report-footer { text-align:center; padding:24px 40px 32px; color:#64748b; font-size:12px; }

@media (max-width: 800px) {
    .vvd-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 20px; }
    .vvd-pillars, .vvd-roadmap, .vvd-grade-legend { grid-template-columns: 1fr; }
    .vvd-pillars, .vvd-section { padding-left: 20px; padding-right: 20px; }
    .vvd-report-actions { justify-content: center; }
}

@media print {
    body * { visibility: hidden; }
    #vvd-results, #vvd-results * { visibility: visible; }
    #vvd-results { position: absolute; left: 0; top: 0; width: 100%; background: #fff !important; color: #0f172a !important; }
    .no-print, .vvd-report-actions { display: none !important; }
    .vvd-app { box-shadow: none !important; max-width: none !important; background: #fff !important; }
    .vvd-results, .vvd-section, .vvd-hero, .vvd-pillars, .vvd-report-footer { background: #fff !important; color: #0f172a !important; border-color: #e2e8f0 !important; }
    .vvd-hero { border: 1px solid #e2e8f0 !important; border-radius: 14px; margin: 0 0 14px; }
    .vvd-domain, .vvd-section-title, .vvd-pillar-title, .vvd-pillar-score, .vvd-diag-headline, .vvd-fix-title, .vvd-phase-title { color: #0f172a !important; }
    .vvd-pillar-card, .vvd-diag-card, .vvd-fix-card, .vvd-phase, .vvd-check-table, .vvd-prompt-table, .vvd-comp-table, .vvd-grade-legend > div { background: #fff !important; border-color: #e2e8f0 !important; box-shadow: none !important; }
    .vvd-check-table th, .vvd-prompt-table th, .vvd-comp-table th { background: #f8fafc !important; color: #475569 !important; }
    .vvd-check-table td, .vvd-prompt-table td, .vvd-comp-table td { color: #334155 !important; border-color: #e2e8f0 !important; }
    .vvd-roadmap, .vvd-pillars { break-inside: avoid; }
    @page { margin: 14mm; }
}
