.portal-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
}

.portal-side,
.portal-main,
.portal-block,
.stat-tile {
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.portal-side,
.portal-main {
    padding: 24px;
}

.portal-main {
    min-height: 720px;
}

.portal-block {
    padding: 20px;
    margin-bottom: 18px;
}

.side-icon,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.side-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 1.5rem;
}

.step-list {
    display: grid;
    gap: 14px;
}

.step-item,
.auth-card {
    border-radius: 18px;
    background: #f8fafc;
}

.step-item {
    padding: 16px;
}

.auth-card {
    border: 1px dashed #cbd5e1;
    padding: 18px;
}

.auth-card + .auth-card {
    margin-top: 16px;
}

.status-chip {
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 600;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.code-banner {
    font-family: Consolas, Monaco, monospace;
    font-size: 1.35rem;
    color: #4338ca;
    word-break: break-all;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.stat-tile {
    padding: 18px;
}

.stat-tile .label {
    color: #64748b;
    font-size: 0.9rem;
}

.stat-tile .value {
    margin-top: 8px;
    font-size: 1.4rem;
    font-weight: 700;
}

.progress-shell {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.progress-shell .bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6366f1, #4338ca);
    transition: width 0.3s ease;
}

.detail-table td {
    padding: 12px 8px;
}

@media (max-width: 992px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portal-side,
    .portal-main,
    .portal-block,
    .auth-card,
    .stat-tile {
        padding: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}