* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f4f6fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.hero {
    background: linear-gradient(135deg, #102a43, #243b53);
    color: #fff;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(16, 42, 67, 0.18);
    margin-bottom: 24px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.hero p {
    margin: 0;
    color: #d9e2ec;
}

.card {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

button, .button-link {
    border: 0;
    border-radius: 12px;
    background: #1f5eff;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    text-decoration: none;
    transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 8px 18px rgba(31, 94, 255, 0.22);
}

button.secondary, .button-link.secondary {
    background: #eef2ff;
    color: #1f3a8a;
    box-shadow: none;
}

button:hover, .button-link:hover {
    transform: translateY(-1px);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.file-name {
    color: #52606d;
    font-size: 14px;
}

.status-panel {
    display: none;
    align-items: center;
    gap: 14px;
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eff6ff;
    color: #0f3b74;
    border: 1px solid #bfdbfe;
}

.status-panel.show {
    display: flex;
}

.status-panel.error {
    background: #fff1f2;
    color: #9f1239;
    border-color: #fecdd3;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(15, 59, 116, 0.2);
    border-top-color: #0f3b74;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex: 0 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.table-wrap {
    overflow-x: auto;
    margin-top: 18px;
    border-radius: 14px;
    border: 1px solid #e5eaf2;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    white-space: nowrap;
}

th {
    background: #f8fafc;
    color: #334e68;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tr:hover td {
    background: #f8fbff;
}

.empty-state {
    color: #52606d;
    padding: 20px 0 0;
}

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

.summary-item {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
}

.summary-label {
    color: #627d98;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    margin-top: 4px;
}
