.fair-value-page {
    min-height: 100%;
    padding: 104px 24px 64px;
    position: relative;
}

.fair-value-container {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.fair-value-container--detail {
    width: min(1040px, 100%);
}

.fair-value-hero {
    max-width: 780px;
    margin-bottom: 32px;
}

.fair-value-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fair-value-hero h1,
.fair-value-detail-header h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.fair-value-hero > p {
    max-width: 720px;
    margin-top: 18px;
    color: #b5c0ce;
    font-size: 17px;
    line-height: 1.7;
}

.fair-value-hero .fair-value-note {
    color: #7f8b99;
    font-size: 14px;
}

.fair-value-search {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid #253242;
    border-radius: 16px;
    background: rgba(10, 16, 24, 0.84);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.fair-value-search:focus-within {
    border-color: #2f8cff;
    box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.12), 0 16px 44px rgba(0, 0, 0, 0.22);
}

.fair-value-search > svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: #718096;
    stroke-width: 2;
    stroke-linecap: round;
}

.fair-value-search input {
    min-width: 0;
    flex: 1;
    padding: 16px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fafc;
    font: inherit;
    font-size: 16px;
}

.fair-value-search input::placeholder {
    color: #687586;
}

.fair-value-search__clear {
    color: #60a5fa;
    font-size: 13px;
    text-decoration: none;
}

.fair-value-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 38px 0 18px;
}

.fair-value-heading-row h2 {
    color: #f8fafc;
    font-size: 24px;
}

.fair-value-heading-row p,
.fair-value-updated {
    color: #758293;
    font-size: 13px;
}

.fair-value-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.fair-value-sync-form {
    margin: 0;
}

.fair-value-sync-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 10px;
    background: rgba(47, 140, 255, 0.1);
    color: #79b5ff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.fair-value-sync-button:hover {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(47, 140, 255, 0.16);
    color: #a8ceff;
}

.fair-value-sync-button:active {
    transform: translateY(1px);
}

.fair-value-sync-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.fair-value-sync-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fair-value-sync-button.is-loading svg {
    animation: fair-value-sync-spin 0.8s linear infinite;
}

@keyframes fair-value-sync-spin {
    to {
        transform: rotate(360deg);
    }
}

.fair-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.fair-value-card {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #202d3b;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 23, 34, 0.96), rgba(7, 12, 19, 0.94));
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.fair-value-card:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 140, 255, 0.7);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.fair-value-catalog-editor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 10px 13px;
    border: 1px dashed rgba(96, 165, 250, 0.34);
    border-radius: 12px;
    background: rgba(47, 140, 255, 0.07);
    color: #8fa5bc;
    font-size: 12px;
    line-height: 1.45;
}

.fair-value-catalog-editor__status {
    flex: 0 0 auto;
    color: #8fbfff;
    font-weight: 700;
}

.fair-value-catalog-editor__status[data-state="success"] {
    color: #34d399;
}

.fair-value-catalog-editor__status[data-state="error"] {
    color: #f87171;
}

.fair-value-card--reorderable {
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
}

.fair-value-grid.is-reordering .fair-value-card:not(.is-dragging) {
    transition-duration: 0.14s;
}

.fair-value-card.is-dragging {
    z-index: 4;
    opacity: 0.22;
    transform: scale(0.97);
    border-color: rgba(96, 165, 250, 0.78);
    border-style: dashed;
    background: rgba(47, 140, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.fair-value-card.is-drop-target {
    border-color: #60a5fa;
    transform: translateY(-2px) scale(0.99);
    box-shadow:
        0 0 0 3px rgba(47, 140, 255, 0.13),
        0 14px 30px rgba(0, 0, 0, 0.22);
}

.fair-value-card__drag-preview {
    position: fixed !important;
    z-index: 10000;
    margin: 0;
    pointer-events: none;
    opacity: 0.96;
    cursor: grabbing;
    transform: rotate(0.7deg) scale(1.025);
    border-color: #60a5fa;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.42),
        0 0 0 3px rgba(47, 140, 255, 0.15);
    animation: fair-value-card-lift 0.16s ease-out;
}

body.fair-value-is-dragging {
    cursor: grabbing;
    user-select: none;
}

body.fair-value-is-dragging * {
    cursor: grabbing !important;
}

.fair-value-grid.is-saving-order .fair-value-card--reorderable {
    cursor: wait;
    opacity: 0.72;
    pointer-events: none;
}

@keyframes fair-value-card-lift {
    from {
        opacity: 0.72;
        transform: rotate(0deg) scale(0.98);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    }

    to {
        opacity: 0.96;
        transform: rotate(0.7deg) scale(1.025);
    }
}

.fair-value-card[hidden] {
    display: none;
}

.fair-value-card__ticker {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    background: rgba(47, 140, 255, 0.1);
    color: #79b5ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.fair-value-card strong {
    margin-top: 13px;
    color: #eef4fb;
    font-size: 17px;
    line-height: 1.3;
}

.fair-value-card__action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 14px;
    color: #8291a3;
    font-size: 12px;
    font-weight: 700;
    transition: color 0.18s ease;
}

.fair-value-card__action svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.fair-value-card:hover .fair-value-card__action {
    color: #60a5fa;
}

.fair-value-card:hover .fair-value-card__action svg {
    transform: translateX(2px);
}

.fair-value-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    border: 1px dashed #263344;
    border-radius: 16px;
    color: #7e8b9b;
    text-align: center;
}

.fair-value-empty[hidden] {
    display: none;
}

.fair-value-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
    color: #8fa0b3;
    font-size: 14px;
    text-decoration: none;
}

.fair-value-back:hover {
    color: #60a5fa;
}

.fair-value-back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fair-value-detail-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.fair-value-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
    padding: 0;
    border: 0;
}

.fair-value-detail-header h1 {
    margin-top: 9px;
    font-size: clamp(34px, 5vw, 52px);
}

.fair-value-detail-header .fair-value-card__ticker {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6ea8ef;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.fair-value-detail-date {
    padding-top: 5px;
    color: #7f8c9c;
    font-size: 13px;
    white-space: nowrap;
}

.fair-value-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 28px;
    margin: 30px 0 34px;
    padding: 2px 2px 30px;
    border-bottom: 1px solid #1f2b39;
}

.fair-value-result__primary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 13px;
}

.fair-value-result__primary > span {
    max-width: 280px;
    color: #8997a8;
    font-size: 14px;
    line-height: 1.5;
}

.fair-value-result__primary > strong {
    color: #f8fafc;
    font-size: clamp(38px, 7vw, 58px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.fair-value-result__primary small {
    color: #75aef4;
    font-size: 16px;
    letter-spacing: 0.03em;
}

.fair-value-potential {
    --potential-color: #94a3b8;
    display: flex;
    min-width: 170px;
    align-self: center;
    align-items: baseline;
    justify-content: flex-end;
    padding-left: 28px;
    border-left: 1px solid #1f2b39;
}

.fair-value-potential[hidden] {
    display: none;
}

.fair-value-potential--upside {
    --potential-color: #34d399;
}

.fair-value-potential--downside {
    --potential-color: #fb7185;
}

.fair-value-potential > strong {
    color: var(--potential-color);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.fair-value-chart-panel {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.fair-value-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.fair-value-chart-header h2 {
    margin: 0;
    color: #e8eef5;
    font-size: 20px;
    line-height: 1.3;
}

.fair-value-chart-header p {
    margin: 6px 0 0;
    color: #7f8c9c;
    font-size: 13px;
}

.fair-value-tradingview {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #0b1119;
}

.fair-value-tradingview .tradingview-widget-container,
.fair-value-tradingview .tradingview-widget-container__widget {
    width: 100%;
    height: 100%;
}

.fair-value-tradingview iframe {
    border-radius: 9px;
}

.fair-value-tradingview__placeholder,
.fair-value-tradingview__error {
    color: #8795a7;
    font-size: 13px;
    text-align: center;
}

.fair-value-tradingview__placeholder {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.fair-value-tradingview__error {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    line-height: 1.55;
}

.fair-value-tradingview .tradingview-widget-copyright {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px;
    color: #64748b;
    font-size: 11px;
}

.fair-value-tradingview .tradingview-widget-copyright a {
    color: #60a5fa;
    text-decoration: none;
}

.fair-value-tradingview .tradingview-widget-copyright a:hover {
    text-decoration: underline;
}

.fair-value-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 2px;
}

.fair-value-detail-content section {
    min-width: 0;
    padding: 0 38px 0 2px;
}

.fair-value-detail-content section + section {
    padding: 0 2px 0 38px;
    border-left: 1px solid #1f2b39;
}

.fair-value-detail-content h2 {
    margin: 0 0 14px;
    color: #e8eef5;
    font-size: 18px;
    line-height: 1.3;
}

.fair-value-detail-content p {
    margin: 0;
    color: #9aa7b7;
    font-size: 15px;
    line-height: 1.72;
}

.fair-value-report-title {
    margin-top: 12px;
    color: #c6d0dc !important;
    font-weight: 700;
}

.fair-value-report-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.fair-value-report-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fair-value-disclaimer {
    margin-top: 20px;
    color: #657386;
    font-size: 12px;
    line-height: 1.6;
}

.fair-value-sync-time {
    margin-top: 14px;
    color: #617083;
    font-size: 12px;
    text-align: center;
}

.fair-value-gate {
    max-width: 610px;
    margin: 38px auto 10px;
    padding: 30px;
    text-align: center;
}

.fair-value-gate__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 16px;
    background: rgba(47, 140, 255, 0.12);
    color: #60a5fa;
}

.fair-value-gate__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fair-value-gate h2 {
    color: #f1f5f9;
    font-size: 25px;
}

.fair-value-gate p {
    max-width: 520px;
    margin: 11px auto 0;
    color: #96a4b5;
    font-size: 14px;
    line-height: 1.65;
}

.fair-value-gate__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 23px;
}

.fair-value-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid #2a394a;
    border-radius: 11px;
    color: #c5d0dc;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.fair-value-button--primary {
    border-color: #2f8cff;
    background: #2f8cff;
    color: #ffffff;
}

body[data-site-theme="white"] .fair-value-hero h1,
body[data-site-theme="white"] .fair-value-detail-header h1,
body[data-site-theme="white"] .fair-value-heading-row h2,
body[data-site-theme="white"] .fair-value-card strong,
body[data-site-theme="white"] .fair-value-result__primary > strong,
body[data-site-theme="white"] .fair-value-detail-content h2,
body[data-site-theme="white"] .fair-value-gate h2 {
    color: #111827;
}

body[data-site-theme="white"] .fair-value-hero > p,
body[data-site-theme="white"] .fair-value-detail-content p,
body[data-site-theme="white"] .fair-value-gate p {
    color: #5f6b7a;
}

body[data-site-theme="white"] .fair-value-search,
body[data-site-theme="white"] .fair-value-card {
    border-color: #dce3ec;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

body[data-site-theme="white"] .fair-value-search input {
    color: #111827;
}

body[data-site-theme="white"] .fair-value-card:hover {
    border-color: #60a5fa;
}

body[data-site-theme="white"] .fair-value-card__action {
    color: #64748b;
}

body[data-site-theme="white"] .fair-value-card:hover .fair-value-card__action {
    color: #2563eb;
}

body[data-site-theme="white"] .fair-value-detail-header {
    border-color: #e2e8f0;
}

body[data-site-theme="white"] .fair-value-detail-content section + section {
    border-color: #e2e8f0;
}

body[data-site-theme="white"] .fair-value-result {
    border-color: #e2e8f0;
}

body[data-site-theme="white"] .fair-value-page {
    background:
        radial-gradient(circle at 50% 0%, rgba(219, 232, 249, 0.65), transparent 42%),
        #f8fafc;
}

body[data-site-theme="white"] .fair-value-detail-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

body[data-site-theme="white"] .fair-value-detail-header {
    border: 0;
}

body[data-site-theme="white"] .fair-value-result__primary > span {
    color: #8492a5;
}

body[data-site-theme="white"] .fair-value-result__primary > strong {
    color: #111827;
}

body[data-site-theme="white"] .fair-value-result__primary small {
    color: #6b9bd6;
}

body[data-site-theme="white"] .fair-value-potential {
    border-left-color: #e2e8f0;
}

body[data-site-theme="white"] .fair-value-potential--upside {
    --potential-color: #059669;
}

body[data-site-theme="white"] .fair-value-potential--downside {
    --potential-color: #dc2626;
}

body[data-site-theme="white"] .fair-value-card__ticker {
    border-color: #d7e7fa;
    background: #f4f9ff;
    color: #6095d2;
}

body[data-site-theme="white"] .fair-value-detail-header .fair-value-card__ticker {
    border: 0;
    background: transparent;
    color: #4f86c6;
}

body[data-site-theme="white"] .fair-value-back {
    color: #8a99ac;
}

body[data-site-theme="white"] .fair-value-back:hover {
    color: #2563eb;
}

body[data-site-theme="white"] .fair-value-detail-content h2 {
    color: #243044;
}

body[data-site-theme="white"] .fair-value-chart-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
}

body[data-site-theme="white"] .fair-value-chart-header h2 {
    color: #243044;
}

body[data-site-theme="white"] .fair-value-chart-header p {
    color: #8492a5;
}

body[data-site-theme="white"] .fair-value-tradingview {
    border: 0;
    background: #f8fafc;
}

body[data-site-theme="white"] .fair-value-page--detail {
    background: #f8fafc;
}

body[data-site-theme="white"] .fair-value-tradingview__placeholder,
body[data-site-theme="white"] .fair-value-tradingview__error {
    color: #69778a;
}

body[data-site-theme="white"] .fair-value-detail-content p {
    color: #69778a;
}

body[data-site-theme="white"] .fair-value-catalog-editor {
    border-color: #d4e4f7;
    background: #f4f9ff;
    color: #718096;
}

body[data-site-theme="white"] .fair-value-catalog-editor__status {
    color: #3b82f6;
}

body[data-site-theme="white"] .fair-value-catalog-editor__status[data-state="success"] {
    color: #059669;
}

body[data-site-theme="white"] .fair-value-catalog-editor__status[data-state="error"] {
    color: #dc2626;
}

body[data-site-theme="white"] .fair-value-card.is-dragging {
    background: rgba(59, 130, 246, 0.04);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
}

body[data-site-theme="white"] .fair-value-card__drag-preview {
    border-color: #79adf1;
    box-shadow:
        0 24px 58px rgba(75, 99, 128, 0.24),
        0 0 0 3px rgba(59, 130, 246, 0.11);
}

@media (max-width: 900px) {
    .fair-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .fair-value-heading-actions {
        width: 100%;
        align-items: flex-start;
        justify-content: space-between;
    }

    .fair-value-page {
        padding: calc(var(--app-mobile-header-total-height) + 24px) 14px 34px;
    }

    .fair-value-hero {
        margin-bottom: 24px;
    }

    .fair-value-hero h1 {
        font-size: 34px;
    }

    .fair-value-hero > p {
        margin-top: 14px;
        font-size: 15px;
    }

    .fair-value-search {
        min-height: 54px;
        padding: 0 14px;
        border-radius: 14px;
    }

    .fair-value-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        margin-top: 30px;
    }

    .fair-value-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .fair-value-card {
        min-height: 118px;
        padding: 17px;
    }

    .fair-value-detail-card {
        padding: 0;
        border-radius: 0;
    }

    .fair-value-detail-header {
        flex-direction: column;
        gap: 13px;
    }

    .fair-value-detail-date {
        padding-top: 0;
    }

    .fair-value-result {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 25px 0 29px;
        padding: 0 0 25px;
    }

    .fair-value-result__primary > span {
        max-width: none;
    }

    .fair-value-potential {
        min-width: 0;
        align-self: flex-start;
        justify-content: flex-start;
        padding-left: 0;
        border-left: 0;
    }

    .fair-value-chart-panel {
        padding: 0;
    }

    .fair-value-tradingview {
        height: 390px;
        border-radius: 8px;
    }

    .fair-value-tradingview iframe {
        border-radius: 7px;
    }

    .fair-value-catalog-editor {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .fair-value-detail-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fair-value-detail-content section {
        padding: 0;
    }

    .fair-value-detail-content section + section {
        margin-top: 27px;
        padding: 27px 0 0;
        border-top: 1px solid #1f2b39;
        border-left: 0;
    }

    body[data-site-theme="white"] .fair-value-detail-content section + section {
        border-top-color: #e2e8f0;
    }

    .fair-value-gate {
        margin-top: 20px;
        padding: 20px 0 8px;
    }

    .fair-value-gate__actions {
        flex-direction: column;
    }

    .fair-value-button {
        width: 100%;
    }
}


body[data-site-theme="white"] .fair-value-sync-button {
    border-color: rgba(37, 99, 235, 0.22);
    background: rgba(37, 99, 235, 0.07);
    color: #2563eb;
}

body[data-site-theme="white"] .fair-value-sync-button:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.11);
    color: #1d4ed8;
}
