/* ═══════════════════════════════════════════════════════════════
   Valuation Engine. Page-specific styles.
   Inherits: nav, footer, dark-mode base from main-styles-v5.min.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────────── */
.ve-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 40px 120px;
}

/* ── Back link ──────────────────────────────────────────────── */
.ve-back {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color);
    opacity: 0.35;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
    margin-bottom: 36px;
}
.ve-back:hover { opacity: 0.6; }

/* ── Hero ───────────────────────────────────────────────────── */
h1.ve-title {
    font-family: 'Instrument Serif', Georgia, serif !important;
    font-weight: 400 !important;
    font-size: clamp(2.2rem, 5vw, 3.2rem) !important;
    letter-spacing: -0.04em !important;
    line-height: 1.15 !important;
    text-align: left !important;
    display: block !important;
    animation: none !important;
    margin: 0 0 12px !important;
    color: var(--text-color);
}
h1.ve-title::after { display: none !important; }

.ve-subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    font-style: italic;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.45;
    margin: 0 0 48px 0;
    line-height: 1.6;
    max-width: 620px;
}

/* ── Paper card ─────────────────────────────────────────────── */
.ve-card {
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(180, 160, 130, 0.12) 100%),
        radial-gradient(ellipse at 25% 15%, rgba(255, 252, 242, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 85%, rgba(240, 228, 208, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 40%, rgba(248, 240, 225, 0.3) 0%, transparent 40%),
        #faf7f0;
    border: none;
    border-radius: 2px;
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.02),
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.03),
        0 6px 16px rgba(0, 0, 0, 0.04),
        0 16px 40px rgba(0, 0, 0, 0.03);
}
.ve-card::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 12%;
    right: 12%;
    height: 8px;
    background: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    z-index: -1;
}
.ve-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='8' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0.4 0.6 0.8 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23f)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    pointer-events: none;
    mix-blend-mode: multiply;
}
body.dark-mode .ve-card {
    background:
        radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.15) 100%),
        radial-gradient(ellipse at 30% 20%, rgba(40, 38, 34, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(30, 28, 24, 0.5) 0%, transparent 60%),
        #1e1c18;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 6px 16px rgba(0, 0, 0, 0.12),
        0 16px 40px rgba(0, 0, 0, 0.08);
}
body.dark-mode .ve-card::after {
    opacity: 0.05;
    mix-blend-mode: screen;
}
body.dark-mode .ve-card::before {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ve-card-inner { position: relative; z-index: 1; }

.ve-card h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #2c2c2c;
    margin: 0 0 18px 0;
    text-align: left;
}
.ve-card h2::after { display: none; }
body.dark-mode .ve-card h2 { color: #e8e6e3; }

.ve-card p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.008em;
    color: #2c2c2c;
    opacity: 0.9;
    margin: 0 0 16px 0;
    -webkit-font-smoothing: antialiased;
}
body.dark-mode .ve-card p { color: #e8e6e3; }
.ve-card p:last-child { margin-bottom: 0; }
.ve-card strong { font-weight: 700; }
.ve-card em { font-style: italic; opacity: 0.8; }

/* ── Section counter + quiet subhead ────────────────────────── */
.ve-section-number {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #2c2c2c;
    opacity: 0.4;
    margin-bottom: 12px;
}
body.dark-mode .ve-section-number { color: #e8e6e3; }

.ve-subhead {
    display: block;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #2c2c2c;
    opacity: 0.4;
    margin: 28px 0 12px 0;
}
body.dark-mode .ve-subhead { color: #e8e6e3; }
.ve-card .ve-subhead:first-child { margin-top: 0; }

.ve-hint {
    display: block;
    font-family: Georgia, serif;
    font-size: 12px;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.4;
    margin-top: 4px;
    line-height: 1.4;
}

/* ── Formula block ──────────────────────────────────────────── */
.ve-formula {
    display: block;
    font-family: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.7;
    color: #2c2c2c;
    opacity: 0.9;
    background: rgba(44, 44, 44, 0.04);
    border-left: 2px solid rgba(44, 44, 44, 0.2);
    padding: 14px 18px;
    margin: 16px 0 20px 0;
    border-radius: 2px;
    white-space: pre-wrap;
    word-break: normal;
    overflow-wrap: break-word;
    position: relative;
    z-index: 1;
}
body.dark-mode .ve-formula {
    color: #e8e6e3;
    background: rgba(232, 230, 227, 0.05);
    border-left-color: rgba(232, 230, 227, 0.25);
}
.ve-formula-label {
    display: block;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2c2c2c;
    opacity: 0.4;
    margin-bottom: 6px;
}
body.dark-mode .ve-formula-label { color: #e8e6e3; }
.ve-formula .ve-out {
    color: inherit;
    font-weight: 500;
    opacity: 1;
}

/* ── Fields and inputs ──────────────────────────────────────── */
.ve-field { position: relative; }
.ve-field label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2c2c2c;
    opacity: 0.45;
    display: block;
    margin-bottom: 6px;
}
body.dark-mode .ve-field label { color: #e8e6e3; }

.ve-field input[type="text"],
.ve-field input[type="number"] {
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    padding: 8px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(128, 128, 128, 0.22);
    color: inherit;
    outline: none;
    transition: border-color 0.25s ease;
    border-radius: 0;
    text-align: right;
}
.ve-field input[type="text"] { text-align: left; }
.ve-field input:focus {
    border-bottom-color: rgba(128, 128, 128, 0.55);
}
.ve-field input[type="number"]::-webkit-outer-spin-button,
.ve-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ve-field input[type="number"] { -moz-appearance: textfield; }

.ve-field-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ve-field-inline input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #2c2c2c;
    cursor: pointer;
}
body.dark-mode .ve-field-inline input[type="checkbox"] { accent-color: #e8e6e3; }
.ve-field-inline label { margin-bottom: 0; }

/* ── Grid layouts ───────────────────────────────────────────── */
.ve-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-bottom: 12px; }
.ve-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px 28px; margin-bottom: 12px; }
.ve-grid-year { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 12px; }

/* ── Ticker input + chips ───────────────────────────────────── */
.ve-ticker-input {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 12px;
}
.ve-ticker-input .ve-field { max-width: 180px; }
.ve-ticker-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 18px 0;
    min-height: 32px;
}
.ve-ticker-chip {
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 10px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 3px;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.25s ease, opacity 0.25s ease;
    cursor: default;
}
.ve-ticker-chip.loading {
    opacity: 0.55;
    border-style: dashed;
}
.ve-ticker-chip.error {
    border-color: rgba(170, 90, 50, 0.5);
    color: #8a4a2a;
}
body.dark-mode .ve-ticker-chip.error { color: #d4a27a; border-color: rgba(212, 162, 122, 0.45); }
.ve-ticker-chip:hover { border-color: rgba(128, 128, 128, 0.45); }
.ve-ticker-remove {
    cursor: pointer;
    opacity: 0.5;
    font-size: 14px;
    line-height: 1;
    transition: opacity 0.2s ease;
    user-select: none;
}
.ve-ticker-remove:hover { opacity: 1; }

/* ── Buttons ────────────────────────────────────────────────── */
.ve-btn {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ve-btn-primary {
    background: #2c2c2c;
    color: #faf7f0;
}
.ve-btn-primary:hover { transform: translateY(-1px); }
.ve-btn-primary:active { transform: translateY(0); }
.ve-btn-primary:disabled { opacity: 0.35; cursor: default; transform: none; }
body.dark-mode .ve-btn-primary { background: #e8e6e3; color: #1e1c18; }

.ve-btn-secondary {
    background: transparent;
    color: inherit;
    border-color: rgba(128, 128, 128, 0.3);
}
.ve-btn-secondary:hover { border-color: rgba(128, 128, 128, 0.6); }

.ve-btn-small {
    padding: 8px 14px;
    font-size: 10.5px;
}

/* ── Status line (under regression button) ──────────────────── */
.ve-status {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 13px;
    opacity: 0.55;
    margin-top: 12px;
    min-height: 20px;
    line-height: 1.5;
}

/* ── Warning (inline validation) ────────────────────────────── */
.ve-warning {
    display: block;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 12.5px;
    color: #8a4a2a;
    opacity: 0.9;
    margin-top: 4px;
    line-height: 1.4;
}
body.dark-mode .ve-warning { color: #d4a27a; }

/* ── Tables ─────────────────────────────────────────────────── */
.ve-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 10px;
    margin-bottom: 12px;
}
.ve-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 13px;
    font-weight: 400;
}
.ve-table th {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.55;
    padding: 10px 10px;
    text-align: right;
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
    white-space: nowrap;
}
.ve-table th:first-child { text-align: left; }
.ve-table td {
    padding: 10px 10px;
    text-align: right;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
    white-space: nowrap;
}
.ve-table td:first-child {
    text-align: left;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.02em;
}
.ve-table tbody tr:nth-child(2n) td { background: rgba(128, 128, 128, 0.025); }
body.dark-mode .ve-table tbody tr:nth-child(2n) td { background: rgba(232, 230, 227, 0.025); }
.ve-table tfoot td {
    border-top: 1px solid rgba(128, 128, 128, 0.3);
    border-bottom: none;
    font-weight: 600;
    padding-top: 14px;
    padding-bottom: 4px;
}
.ve-table tfoot td:first-child {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
}
.ve-table input {
    background: transparent;
    border: none;
    border-bottom: 1px dotted rgba(128, 128, 128, 0.25);
    outline: none;
    text-align: right;
    width: 100%;
    font: inherit;
    color: inherit;
    padding: 2px 0;
    border-radius: 0;
    transition: border-color 0.2s ease;
}
.ve-table input:focus { border-bottom-color: rgba(128, 128, 128, 0.55); border-bottom-style: solid; }
.ve-table input[readonly] { border-bottom: none; cursor: default; }

/* ── Output cells (pulse when upstream changes) ─────────────── */
.ve-out-num {
    transition: background-color 700ms ease, color 700ms ease;
    display: inline-block;
    padding: 1px 3px;
    margin: -1px -3px;
    border-radius: 2px;
}
.ve-out-num.pulse { background-color: rgba(200, 160, 100, 0.22); }
body.dark-mode .ve-out-num.pulse { background-color: rgba(220, 190, 150, 0.12); }

/* ── Buyer archetype cards (within section 5) ───────────────── */
.ve-buyer-stack {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin: 16px 0 22px 0;
}
.ve-buyer {
    padding: 18px 16px;
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 2px;
    background: rgba(44, 44, 44, 0.02);
}
body.dark-mode .ve-buyer { background: rgba(232, 230, 227, 0.03); }
.ve-buyer h5 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.55;
    margin: 0 0 4px 0;
}
.ve-buyer .ve-buyer-subtitle {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 12.5px;
    opacity: 0.55;
    margin: 0 0 14px 0;
    line-height: 1.4;
}
.ve-buyer .ve-field { margin-bottom: 10px; }
.ve-buyer .ve-field label { font-size: 9.5px; }

/* ── Ramp schedule (5 inputs across) ────────────────────────── */
.ve-ramp-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 12px 0 18px 0;
}

/* ── Heatmap ────────────────────────────────────────────────── */
.ve-heatmap {
    display: grid;
    grid-template-columns: minmax(72px, auto) repeat(7, 1fr);
    gap: 2px;
    margin-top: 16px;
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 11.5px;
}
.ve-heatmap-corner,
.ve-heatmap-axis {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.5;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ve-heatmap-axis.col { border-bottom: 1px solid rgba(128, 128, 128, 0.2); }
.ve-heatmap-axis.row { border-right: 1px solid rgba(128, 128, 128, 0.2); justify-content: flex-end; padding-right: 10px; }
.ve-heatmap-cell {
    padding: 12px 8px;
    text-align: right;
    font-weight: 500;
    border-radius: 2px;
    transition: transform 0.15s ease;
}
.ve-heatmap-cell:hover { transform: scale(1.04); z-index: 2; }
.ve-heatmap-axis-title {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.45;
    margin-top: 10px;
    text-align: center;
}

/* ── Action bar + footer note ───────────────────────────────── */
.ve-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 32px 0 16px 0;
}
.ve-footer-note {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.35;
    text-align: center;
    margin: 24px 0 0 0;
    line-height: 1.6;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Overview method list ───────────────────────────────────── */
.ve-method-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}
.ve-method-list li {
    font-family: Georgia, serif;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.75;
    color: inherit;
    opacity: 0.85;
    padding-left: 18px;
    position: relative;
    margin-bottom: 4px;
}
.ve-method-list li::before {
    content: '·';
    position: absolute;
    left: 4px;
    top: -3px;
    font-size: 22px;
    opacity: 0.5;
}

/* ── Sticky summary band ────────────────────────────────────── */
.ve-summary-band {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 247, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(128, 128, 128, 0.18);
    padding: 10px 0;
}
body.dark-mode .ve-summary-band {
    background: rgba(30, 28, 24, 0.92);
    border-bottom-color: rgba(232, 230, 227, 0.12);
}
.ve-summary-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ve-summary-inner::-webkit-scrollbar { display: none; }
.ve-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}
.ve-summary-k {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.5;
}
.ve-summary-v {
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    transition: background-color 700ms ease;
    padding: 1px 3px;
    margin: -1px -3px;
    border-radius: 2px;
}
.ve-summary-v.pulse { background-color: rgba(200, 160, 100, 0.22); }
body.dark-mode .ve-summary-v.pulse { background-color: rgba(220, 190, 150, 0.12); }

/* ── Sector preset row ─────────────────────────────────────── */
.ve-preset-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ve-select {
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 14px;
    padding: 8px 22px 8px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(128, 128, 128, 0.22);
    color: inherit;
    outline: none;
    min-width: 280px;
    max-width: 320px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    transition: border-color 0.25s ease;
}
.ve-select:focus { border-bottom-color: rgba(128, 128, 128, 0.55); }
.ve-preset-row .ve-hint { flex: 1; min-width: 220px; }

/* ── Monte Carlo card specifics ────────────────────────────── */
#mc-inputs-table td:first-child {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: 0.02em;
}
.ve-mc-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 4px 0;
    flex-wrap: wrap;
}
.ve-mc-results {
    margin-top: 8px;
}
.ve-chart-container {
    width: 100%;
    margin: 8px 0 24px 0;
    overflow: hidden;
}
.ve-chart-container svg {
    display: block;
}
.ve-mc-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 12px 0 28px 0;
    padding: 16px 18px;
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-radius: 2px;
    background: rgba(44, 44, 44, 0.02);
}
body.dark-mode .ve-mc-stats { background: rgba(232, 230, 227, 0.03); }
.ve-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}
.ve-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.5;
}
.ve-stat-val {
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: background-color 700ms ease;
}

/* ── Multiples table: inherit .ve-table styling, just polish ── */
#multiples-table td:first-child {
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ve-page { padding: 80px 28px 90px; }
    .ve-card { padding: 32px 24px; }
    .ve-buyer-stack { grid-template-columns: 1fr; gap: 14px; }
    .ve-grid-3 { grid-template-columns: 1fr 1fr; }
    .ve-summary-inner { padding: 0 28px; gap: 20px; }
    .ve-mc-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .ve-page { padding: 72px 20px 80px; }
    .ve-card { padding: 26px 18px; margin-bottom: 22px; }
    .ve-grid-2, .ve-grid-3, .ve-grid-year, .ve-ramp-row { grid-template-columns: 1fr 1fr; gap: 14px; }
    .ve-ticker-input { flex-direction: column; align-items: stretch; }
    .ve-ticker-input .ve-field { max-width: none; }
    .ve-heatmap { grid-template-columns: minmax(56px, auto) repeat(5, 1fr); }
    .ve-heatmap-cell[data-col="5"], .ve-heatmap-cell[data-col="6"],
    .ve-heatmap-axis.col[data-col="5"], .ve-heatmap-axis.col[data-col="6"] { display: none; }
    .ve-actions { flex-direction: column; align-items: stretch; }
    .ve-table { font-size: 11.5px; }
    .ve-table th, .ve-table td { padding: 8px 6px; }
    .ve-summary-inner { padding: 0 20px; gap: 16px; }
    .ve-summary-v { font-size: 12.5px; }
    .ve-mc-stats { grid-template-columns: repeat(2, 1fr); padding: 14px; }
    .ve-select { min-width: 100%; max-width: 100%; }
    .ve-preset-row { flex-direction: column; align-items: stretch; gap: 8px; }
}
