.apwp-portal {
    box-sizing: border-box;
    max-width: 760px;
    margin: 24px auto;
    padding: clamp(16px, 4vw, 32px);
    border: 1px solid #d6ab4c;
    border-top: 5px solid #102541;
    border-radius: 16px;
    color: #132c49;
    background: #fff;
    box-shadow: 0 12px 30px #10254114;
}
.apwp-portal *, .apwp-portal *::before, .apwp-portal *::after { box-sizing: inherit; }
.apwp-portal h2, .apwp-portal h3 { margin: 0 0 16px; color: #102541; }
.apwp-portal nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
}
.apwp-portal nav li { margin: 0; }
.apwp-portal nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 8px;
    background: #102541;
    color: #fff;
    text-align: center;
    text-decoration: none;
}
.apwp-portal nav a[aria-current="page"], .apwp-portal button, .apwp-portal input[type="submit"] {
    background: #efc65f;
    color: #102541;
    border: 1px solid #b68b29;
    border-radius: 8px;
    padding: 10px 14px;
    min-height: 44px;
    font-weight: 700;
    cursor: pointer;
}
.apwp-portal input:not([type="hidden"], [type="checkbox"], [type="submit"]),
.apwp-portal select, .apwp-portal textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 9px 12px;
    color: #102541;
    background: #fff;
    border: 1px solid #7192b6;
    border-radius: 8px;
    font: inherit;
}
.apwp-portal textarea { min-height: 100px; resize: vertical; }
.apwp-portal details { margin-top: 14px; border: 1px solid #bccbdc; border-radius: 8px; padding: 12px; }
.apwp-portal summary { cursor: pointer; font-weight: 700; }
.apwp-portal :focus-visible { outline: 3px solid #2864a1; outline-offset: 3px; }
.apwp-portal .apwp-notice {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff4d8;
    border-left: 4px solid #b68b29;
    scroll-margin-top: 120px;
}
.apwp-portal .apwp-notice p { margin: 0; }
@media (max-width: 560px) {
    .apwp-portal nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apwp-portal { margin: 14px auto; }
}

.apwp-portal .apwp-account-switch { margin: 20px 0 0; text-align: center; }
.apwp-portal .apwp-account-switch a {
    display: inline-block; border-radius: 8px; padding: 8px 12px;
    background: #efc65f; color: #102541; font-weight: 700; text-decoration: none;
}
.apwp-portal .apwp-account-switch a:hover { background: #e3b74d; }
