* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f7f9;
    color: #1f2937;
}

.app-shell {
    min-height: 100vh;
}

.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
}

.section-select {
    width: 100%;
    max-width: 360px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    background: #ffffff;
}

.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
}

.summary-title {
    margin: 0 0 12px;
}

.summary-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.summary-description {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-line;
}

.summary-table-wrap {
    margin-top: 10px;
    overflow-x: hidden;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.summary-table th,
.summary-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 13px;
    word-break: break-word;
}

.summary-table th {
    background: #f9fafb;
    font-weight: 600;
}

@media (max-width: 640px) {
    .summary-table th,
    .summary-table td {
        padding: 6px 6px;
        font-size: 11px;
    }
}

.chart-list-header {
    margin: 0 0 14px;
}

.stock-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .stock-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .stock-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stock-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.stock-meta {
    padding: 14px;
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.stock-name {
    font-size: 15px;
    font-weight: 600;
}

.stock-row {
    color: #374151;
}

.stock-signal {
    color: #dc2626;
    font-weight: 600;
}

.chart-img {
    display: block;
    width: 100%;
    height: auto;
    background: #f9fafb;
}

.chart-not-found {
    padding: 12px 14px 16px;
    color: #6b7280;
    font-size: 12px;
}

.status {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}
