/* Shared "live preview" grid chart card + its layout. Extracted from
   welcome.ejs so /welcome (auth), /about, and /login render the identical
   LightweightCharts price/range preview. Colors come from CSS tokens
   (--card, --border, --foreground, --muted-foreground) declared on each page.
   Driven at runtime by public/js/welcome-chart.js. */

/* Chart card — self-contained (does NOT depend on welcome's .wel-card, which
   only exists on /welcome). Same tokens, so /welcome looks unchanged. */
.wel-chart-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 0.5rem);
    padding: 0.85rem 1rem;
    color: var(--card-foreground, var(--foreground));
}
.wel-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}
.wel-chart-title { font-size: 0.95rem; font-weight: 600; margin: 0; }
.wel-chart-sub {
    font-size: 0.74rem;
    color: var(--muted-foreground);
    line-height: 1.35;
    margin: 0.1rem 0 0;
}
.wel-chart-price {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
}
.wel-chart-price-label {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
#welcomeChart { height: 620px; }
@media (max-width: 760px) { #welcomeChart { height: 310px; } }
.wel-chart-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: var(--muted-foreground);
}
.wel-chart-footer .label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-right: 0.3rem;
}
.wel-chart-footer .value { color: var(--foreground); font-weight: 600; }
.wel-chart-legend { display: inline-flex; align-items: center; gap: 0.35rem; }
.wel-chart-legend .dot { width: 0.65rem; height: 0.65rem; border-radius: 2px; display: inline-block; }
.wel-chart-legend .dot-buy  { background: rgba(34, 197, 94, 0.85); }
.wel-chart-legend .dot-sell { background: rgba(59, 130, 246, 0.85); }

/* Two-column chart + simulator layout for the public mounts (about/login).
   /welcome uses its own .wel-grid; this mirrors it for the standalone pages. */
.gpc-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.1rem;
    align-items: start;
}
@media (max-width: 900px) {
    .gpc-split { grid-template-columns: 1fr; }
}
