* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f7f8;
    color: #222;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

h1 {
    margin: 0 0 8px;
    text-align: center;
}

.subtitle {
    margin: 0 0 24px;
    text-align: center;
    color: #555;
}

.input-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

button {
    grid-column: 1 / -1;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
}

button:hover {
    background: #1d4ed8;
}

.summary-panel {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.summary-header h2 {
    margin: 0;
    font-size: 18px;
}

.summary-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.summary-status.neutral {
    background: #e5e7eb;
    color: #374151;
}

.summary-status.positive {
    background: #dcfce7;
    color: #166534;
}

.summary-status.negative {
    background: #fee2e2;
    color: #991b1b;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.summary-card {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
}

.summary-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.summary-note {
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.chart {
    width: 100%;
    height: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
