:root {
    color-scheme: light dark;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f6f6f6;
    color: #1f2933;
}

body {
    margin: 0;
    background: #f6f6f6;
}

.app-header {
    background: #224b8f;
    color: #fff;
    padding: 1.5rem;
}

.app-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.app-main {
    max-width: 1080px;
    margin: 1.5rem auto 3rem auto;
    padding: 0 1rem;
}

.panel {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group--full {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.75rem;
}

label {
    font-weight: 600;
}

input[type="text"],
input[type="number"],
textarea {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #d2d6dc;
    font-size: 1rem;
}

button {
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    background: #224b8f;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

button.secondary {
    background: #6b7280;
}

.button-row {
    display: flex;
    justify-content: flex-end;
}

.store-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.store-card {
    display: flex;
    gap: 0.75rem;
    border: 1px solid #d2d6dc;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    align-items: flex-start;
}

.store-card input {
    margin-top: 0.4rem;
}

.store-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.store-card p {
    margin: 0.3rem 0;
    color: #52606d;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.badge.warning {
    background: #facc15;
    color: #513c06;
}

.results-table {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.results-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(90px, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f9fafb;
}

.results-row--header {
    font-weight: 600;
    background: #e5efff;
}

.alternative-list {
    list-style: disc;
    margin: 0 0 0.75rem 2rem;
    padding: 0;
    color: #1f2933;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
}

.panel-actions form {
    margin: 0;
}

.timestamp {
    color: #52606d;
    margin-top: 0;
}

.app-footer {
    text-align: center;
    padding: 1.5rem;
    color: #52606d;
}

@media (max-width: 900px) {
    .results-row {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}
