* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--palette-surface-muted, #f3f6fb);
    color: #18314d;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
}
.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px max(24px, calc((100vw - 1100px) / 2));
    background: white;
    border-bottom: 1px solid var(--palette-border, #dce5ef);
}
.portal-header img {
    display: block;
    width: auto;
    height: 72px;
}
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}
.card {
    padding: 32px;
    background: white;
    border: 1px solid var(--palette-border, #dce5ef);
    border-radius: 18px;
    box-shadow: 0 12px 30px #18314d08;
}
.intro {
    max-width: 640px;
    margin: 0 auto;
}
h1, h2 {
    line-height: 1.25;
    margin-top: 0;
}
h1 {
    font-size: 30px;
}
h2 {
    font-size: 23px;
}
p, .muted {
    color: #586c81;
}
a {
    color: var(--palette-primary, #1d5d98);
}
.wizard {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.steps {
    padding: 0;
    list-style: none;
}
.steps a {
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    text-decoration: none;
}
.steps a[aria-current="step"] {
    color: white;
    background: var(--palette-primary, #205f9a);
}
.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.field-wide {
    grid-column: 1 / -1;
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c8d6e6;
    border-radius: 9px;
    color: #18314d;
    background: white;
    font: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--palette-accent-light, #d7eafa);
    border-color: var(--palette-primary, #205f9a);
}
.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
button, .button {
    display: inline-block;
    padding: 11px 17px;
    border: 1px solid var(--palette-primary, #205f9a);
    border-radius: 9px;
    background: var(--palette-primary, #205f9a);
    color: white;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.secondary {
    background: white;
    color: var(--palette-primary, #205f9a);
}
.notice {
    padding: 18px 22px;
    border-radius: 10px;
    background: #eaf2fb;
    margin-bottom: 24px;
}
.success {
    background: #e9f7ef;
    color: #256442;
}
.error {
    background: #fff0ef;
    color: #96392e;
}
dl {
    margin: 0;
}
.detail {
    padding: 12px 0;
    border-bottom: 1px solid #e3ebf3;
}
dt {
    font-size: 14px;
    color: #586c81;
}
dd {
    margin: 2px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
footer {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #586c81;
}
[hidden] {
    display: none !important;
}
@media (max-width: 700px) {
    .wizard, .fields {
        grid-template-columns: 1fr;
    }
    main {
        margin: 24px auto;
        padding: 0 16px;
    }
    .card {
        padding: 24px;
    }
    .portal-header span {
        font-size: 13px;
    }
}

.prc-review-previews {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prc-review-preview {
    min-width: 0;
}

.prc-image-preview {
    display: block;
    width: 100%;
    max-width: 240px;
    height: 150px;
    margin-inline: auto;
    object-fit: contain;
    border: 1px solid #dce3ec;
    border-radius: 8px;
}

.prc-pdf-preview {
    width: 100%;
    max-width: 240px;
    height: 200px;
    display: block;
    margin-inline: auto;
    border: 1px solid #dce3ec;
    border-radius: 8px;
}

.prc-review-preview h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.prc-review-preview p {
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}

@media (max-width: 480px) {
    .prc-review-previews {
        grid-template-columns: 1fr;
    }
}
