:root {
    --pico-blue: #1769df;
    --pico-dark: #0f2747;
    --pico-bg: #f3f7fd;
    --pico-border: #d7e0ec;
}

body.portal-body {
    background: var(--pico-bg);
    color: var(--pico-dark);
    min-height: 100vh;
}

.portal-header {
    background: #fff;
    border-top: 4px solid var(--pico-dark);
    border-bottom: 1px solid var(--pico-border);
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--pico-dark);
    letter-spacing: .03em;
}

.portal-brand small {
    color: #ff8700;
    font-size: .55em;
}

.portal-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: inline-grid;
    place-items: center;
    color: white;
    background: var(--pico-blue);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}

.portal-kicker {
    color: var(--pico-blue);
    letter-spacing: .16em;
    font-weight: 800;
    font-size: .78rem;
    margin-bottom: .4rem;
}

.portal-card {
    background: white;
    border: 1px solid var(--pico-border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(15,39,71,.04);
}

.step-number {
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e9f2ff;
    color: var(--pico-blue);
    font-weight: 800;
}

.agreement-ok {
    border: 1px solid #a8dfcb;
    background: #f0fbf7;
    border-radius: 14px;
    padding: 20px;
}

.data-label {
    display: block;
    color: #6e7f97;
    font-size: .72rem;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.drop-zone {
    min-height: 130px;
    border: 2px dashed #b8c8df;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #536981;
    background: #fafcff;
    text-align: center;
    padding: 20px;
}

.drop-zone.dragging {
    background: #eef5ff;
    border-color: var(--pico-blue);
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8f8f2;
    color: #0b9a6d;
    font-size: 2rem;
    margin: 0 auto;
}

.case-code {
    background: #f2f6fc;
    border: 1px solid var(--pico-border);
    border-radius: 14px;
    padding: 18px;
}

.case-code small {
    display: block;
    color: #6e7f97;
    letter-spacing: .12em;
    font-weight: 700;
}

.case-code strong {
    display: block;
    color: var(--pico-blue);
    font-size: 1.8rem;
    letter-spacing: .05em;
}

.status-pill {
    background: #fff5e8;
    border: 1px solid #ffd29c;
    color: #b66500;
    border-radius: 999px;
    padding: .5rem .9rem;
    font-weight: 700;
    height: fit-content;
}

.timeline {
    position: relative;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding-bottom: 24px;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: 7px;
    top: 16px;
    width: 2px;
    height: calc(100% - 2px);
    background: #dce5f1;
}

.timeline-item:last-child:before {
    display: none;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pico-blue);
    margin-top: 4px;
    z-index: 1;
}

.public-message {
    background: #edf5ff;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 10px;
}

@media (max-width: 767px) {
    .portal-card { padding: 20px; }
}
