* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #21262d;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar h1 {
    font-size: 1.3rem;
    color: #58a6ff;
    white-space: nowrap;
}

.controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

select {
    background: #161b22;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
}

.btn-primary {
    background: #238636;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover { background: #2ea043; }
.btn-primary:disabled { background: #21262d; color: #484f58; cursor: not-allowed; }

.run-status {
    font-size: 13px;
    color: #8b949e;
}

.run-status.running { color: #d29922; }
.run-status.success { color: #3fb950; }
.run-status.error { color: #f85149; }

.card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1rem;
    color: #8b949e;
    margin-bottom: 16px;
    font-weight: 600;
}

.date-badge {
    background: #1f6feb;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.empty-state {
    color: #484f58;
    text-align: center;
    padding: 32px 0;
}

.pred-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #21262d;
}

.round-tag {
    background: #30363d;
    color: #8b949e;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.full-report {
    white-space: pre-wrap;
    background: #0d1117;
    padding: 20px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.8;
    color: #c9d1d9;
    border: 1px solid #21262d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.prediction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pred-field {
    display: flex;
    flex-direction: column;
}

.pred-field .label {
    font-size: 0.8rem;
    color: #8b949e;
}

.pred-field .value {
    font-size: 1.1rem;
    font-weight: 600;
}

.value.up { color: #3fb950; }
.value.down { color: #f85149; }
.value.neutral { color: #d29922; }

.timeline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.timeline-item {
    flex: 1;
    min-width: 180px;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 6px;
    padding: 12px;
}

.timeline-item .round-label {
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 4px;
}

.timeline-item .round-dir {
    font-size: 1rem;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #21262d;
    font-size: 0.85rem;
}

th {
    color: #8b949e;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #58a6ff;
}

.stat-label {
    font-size: 0.8rem;
    color: #8b949e;
}

@media (max-width: 600px) {
    .top-bar { flex-direction: column; align-items: flex-start; }
    .controls { width: 100%; }
    .prediction-grid { grid-template-columns: 1fr 1fr; }
}
