:root {
    --portal-border: #dde3ea;
    --portal-muted: #667085;
    --portal-soft: #f6f8fb;
}

body {
    background: #f7f9fc;
    color: #172033;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #eef3f8;
}

.auth-shell {
    width: min(440px, calc(100vw - 32px));
}

.auth-card,
.panel {
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

.auth-card {
    padding: 28px;
}

.auth-brand {
    display: grid;
    gap: 16px;
}

.auth-brand img {
    width: min(260px, 100%);
    height: auto;
    display: block;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.portal-brand img {
    width: 150px;
    height: auto;
    display: block;
}

.panel {
    padding: 20px;
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    background: #0d6efd;
}

.case-table td,
.case-table th {
    vertical-align: middle;
}

.case-title {
    font-weight: 650;
    color: #172033;
}

.muted {
    color: var(--portal-muted);
}

.portal-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.customer-hero {
    background: #fff;
    border-bottom: 1px solid var(--portal-border);
}

.customer-brand-block {
    min-width: 0;
}

.customer-logo {
    width: min(260px, 100%);
    height: auto;
    display: block;
    margin-bottom: 14px;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-item {
    border-left: 3px solid #d0d8e2;
    padding-left: 12px;
}

.file-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}

.proof-preview {
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--portal-soft);
}

.proof-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.comment {
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

@media (max-width: 768px) {
    .page-title {
        display: block;
    }

    .panel {
        padding: 16px;
    }

    .portal-brand {
        max-width: 160px;
    }

    .portal-brand img {
        width: 132px;
    }

    .file-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
