body {
    margin: 0;
    padding: 70px 0 0;
    background: #f4f7fb;
    color: #1f2937;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page-wrap {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 22px 16px 40px;
    flex: 1;
}
.panel {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    padding: 16px;
    margin-bottom: 16px;
}
.controls {
    display: grid;
    grid-template-columns: repeat(7, minmax(100px, 1fr));
    gap: 10px;
    align-items: end;
}
.table-wrap {
    max-height: 62vh;
    overflow: auto;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border-bottom: 1px solid #e6ebf2;
    padding: 9px 8px;
    font-size: 0.88rem;
    text-align: left;
}
th { background: #f8fafc; }
.pill {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}
.sig-long { background: #e9f9ef; color: #0f8a43; }
.sig-short { background: #fff0f0; color: #b42318; }
.sig-neutral { background: #eef2f7; color: #475569; }
.div-pill {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
}
.div-bull { background: #e9f9ef; color: #0f8a43; }
.div-bear { background: #fff0f0; color: #b42318; }
.div-none { background: #eef2f7; color: #475569; }
.hint-box {
    margin-top: 8px;
    font-size: 0.83rem;
    color: #64748b;
    background: #f8fbff;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 8px 10px;
}
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.page-title {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.page-subtitle {
    margin: 0 0 10px;
    color: #64748b;
}

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.meta-muted {
    color: #64748b;
    font-size: 0.82rem;
}

.empty-cell {
    text-align: center;
    color: #64748b;
}

@media (max-width: 980px) {
    .controls { grid-template-columns: 1fr 1fr; }
}
