* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0b0f14;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
    padding: 28px 36px;
    border-bottom: 1px solid #26303b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
}

.topbar p {
    margin: 6px 0 0;
    color: #8b98a7;
}

.mode-switch {
    display: flex;
    gap: 8px;
}

.mode {
    background: #151c24;
    border: 1px solid #2a3440;
    color: #aeb9c5;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.mode.active {
    background: #213248;
    color: #ffffff;
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 50px;
    display: grid;
    gap: 18px;
}

.card {
    background: #111821;
    border: 1px solid #25303b;
    border-radius: 14px;
    padding: 22px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;
    font-size: 18px;
}

.status {
    font-size: 12px;
    color: #8b98a7;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.metric {
    background: #0d131a;
    border: 1px solid #222c37;
    border-radius: 10px;
    padding: 16px;
}

.metric span {
    display: block;
    color: #8b98a7;
    font-size: 12px;
    margin-bottom: 8px;
}

.metric strong {
    font-size: 20px;
}

.secondary-button,
.analyze-button {
    margin-top: 16px;
    padding: 11px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.secondary-button {
    background: #1d2a38;
    color: white;
}

.analyze-button {
    width: 100%;
    background: #315fb4;
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.upload-box {
    display: block;
    background: #0d131a;
    border: 1px dashed #354352;
    border-radius: 10px;
    padding: 18px;
    cursor: pointer;
}

.upload-box span {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-box small {
    color: #7f8d9d;
}

.upload-box input {
    margin-top: 12px;
    width: 100%;
}

.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eyebrow {
    color: #7f8d9d;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.asset-header h2 {
    margin: 5px 0 0;
    font-size: 30px;
}

.asset-price {
    text-align: right;
}

.asset-price strong {
    display: block;
    font-size: 24px;
}

.asset-price span {
    color: #7f8d9d;
    font-size: 12px;
}

.chart-placeholder {
    height: 340px;
    margin: 20px 0;
    border: 1px solid #25303b;
    border-radius: 12px;
    background:
        linear-gradient(
            to bottom,
            transparent 24%,
            #1b2530 25%,
            transparent 26%,
            transparent 49%,
            #1b2530 50%,
            transparent 51%,
            transparent 74%,
            #1b2530 75%,
            transparent 76%
        ),
        #0c1218;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chart-placeholder span {
    color: #7f8d9d;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.chart-placeholder p {
    color: #c3ccd6;
}

.levels-table {
    border: 1px solid #25303b;
    border-radius: 10px;
    overflow: hidden;
}

.levels-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    padding: 12px 14px;
    border-top: 1px solid #202a34;
}

.levels-row:first-child {
    border-top: none;
}

.levels-row.header {
    color: #8b98a7;
    background: #0d131a;
    font-size: 12px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #8b98a7;
    font-size: 12px;
}

.select,
.question-input {
    width: 100%;
    background: #0d131a;
    color: #e6edf3;
    border: 1px solid #2a3440;
    border-radius: 8px;
    padding: 12px;
}

.adm-info {
    margin: 14px 0;
    padding: 14px;
    border-radius: 8px;
    background: #0d131a;
}

.adm-info span {
    display: block;
    color: #7f8d9d;
    font-size: 12px;
    margin-bottom: 6px;
}

.research-upload {
    margin-top: 14px;
}

.question-input {
    min-height: 130px;
    resize: vertical;
    font: inherit;
}

.reasoning-placeholder {
    min-height: 250px;
    border: 1px dashed #354352;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #7f8d9d;
}

.reasoning-placeholder h3 {
    color: #d8e0e8;
    margin: 10px 0 4px;
}

.big-icon {
    font-size: 30px;
}

footer {
    padding: 18px;
    text-align: center;
    color: #647282;
    border-top: 1px solid #202a34;
}

@media (max-width: 800px) {
    .metric-grid,
    .upload-grid {
        grid-template-columns: 1fr 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 560px) {
    .metric-grid,
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .levels-row {
        grid-template-columns: 70px 1fr 1fr;
        font-size: 13px;
    }

    .dashboard {
        padding: 16px 12px 30px;
    }

    .topbar {
        padding: 22px 18px;
    }
}

.market-update-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.market-update {
    border: 1px solid #26303b;
    border-radius: 10px;
    padding: 18px;
    background: #0b1118;
}

.market-update span {
    display: block;
    color: #8b98a7;
    font-size: 13px;
    margin-bottom: 8px;
}

.market-update strong {
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .market-update-grid {
        grid-template-columns: 1fr;
    }
}

.signal-circle {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
}

.signal-circle.green {
    background: #32d583;
}

.signal-circle.orange {
    background: #f79009;
}

.signal-circle.red {
    background: #f04438;
}
.ohlcv-status {
    margin: 8px 0 18px;
    color: #8b98a7;
    font-size: 13px;
}

.ohlcv-status > div {
    margin-bottom: 4px;
}

.ohlcv-status strong {
    color: #cbd5df;
    margin-right: 8px;
}

.ohlcv-status span {
    color: #8b98a7;
}

.ticker-radio-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px 12px;
    margin-top: 8px;
}

.ticker-radio-item {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 7px 9px;

    border: 1px solid #26303b;
    border-radius: 6px;

    background: #0b1118;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;
}

.ticker-radio-item:hover {
    border-color: #536273;
}

.ticker-radio-item input {
    margin: 0;
    cursor: pointer;
}

.ticker-radio-item:has(input:checked) {
    border-color: #3b82f6;
    background: #142033;
}

@media (max-width: 900px) {
    .ticker-radio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .ticker-radio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   INPUT-SPACE ARCHITECTURE COLORS
   ========================================================= */

/* BLUE — deterministic input-space elements */
.deterministic-card {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.45);
}


/* PURPLE — analyst / intelligence input-space elements */
.intelligence-card {
    background: rgba(124, 58, 237, 0.13);
    border: 1px solid rgba(167, 139, 250, 0.50);
}


/* TEAL — inference / output space */
.question-card,
.reasoning-card {
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.50);
}


/* Structured reasoning subsections */
.reasoning-section {
    background: rgba(13, 148, 136, 0.07);
    border-left: 3px solid rgba(45, 212, 191, 0.70);
    border-radius: 5px;
    padding: 10px 14px;
    margin-top: 12px;
}

/* =========================================================
   DECISION INPUT / OUTPUT READABILITY
   ========================================================= */

/* Decision Inputs container */
.decision-input-preview {
    margin-bottom: 22px;
    padding: 18px;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 10px;
}

.decision-input-preview h3 {
    margin: 0 0 14px;
    font-size: 16px;
}


/* Normal input-space rows */
.decision-input-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    align-items: start;

    padding: 8px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.decision-input-row span {
    color: #8b98a7;
    font-size: 13px;
    font-weight: 600;
}

.decision-input-row strong {
    color: #e6edf3;
    line-height: 1.5;
}


/* QUESTION — make it a distinct input object */
#inputQuestion {
    display: block;

    background: #0d131a;
    border: 1px solid #2a4650;
    border-radius: 8px;

    padding: 12px 14px;

    font-weight: 500;
    line-height: 1.5;
}


/* DECISION — make the model result visually dominant */
#reasoningDecision {
    display: block;

    background: rgba(13, 148, 136, 0.13);
    border: 1px solid rgba(45, 212, 191, 0.38);
    border-radius: 8px;

    padding: 14px 16px;

    font-size: 16px;
    line-height: 1.55;
}


/* Mobile */
@media (max-width: 700px) {

    .decision-input-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.data-validity {
    margin-top: 12px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: #8b98a7;
    font-size: 12px;
    font-weight: 600;
}

/* =========================================================
   TICKER TREND STATES
   ========================================================= */

.ticker-radio-item.trend-bullish {
    background: rgba(50, 213, 131, 0.10);
    border-color: rgba(50, 213, 131, 0.45);
}


.ticker-radio-item.trend-bearish {
    background: rgba(240, 68, 56, 0.10);
    border-color: rgba(240, 68, 56, 0.45);
}


.ticker-radio-item.trend-neutral {
    background: rgba(234, 179, 8, 0.18);
    border-color: rgba(250, 204, 21, 0.75);
}

.ticker-radio-item.trend-bullish-setup {
    background: rgba(249, 115, 22, 0.24);
    border-color: rgba(251, 146, 60, 0.90);
}
/* Crypto administration */
.admin-divider { border: 0; border-top: 1px solid #354352; margin: 24px 0; }
#cryptoWorkbook { display: block; margin: 12px 0; max-width: 100%; color: #e6edf3; }
#cryptoUploadStatus { overflow-wrap: anywhere; }

#adminToken { display:block; width:100%; max-width:420px; padding:10px; margin:8px 0 18px; background:#172330; color:white; border:1px solid #536578; border-radius:6px; }
