.oebk-dashboard-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.oebk-dashboard-page > .oebk-member-dashboard {
    width: min(1180px, calc(100% - 48px));
    max-width: none;
}

.oebk-member-dashboard {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 48px));
    max-width: none;
    margin: 48px auto 72px;
}

.oebk-dashboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 32px;
    align-items: center;
    margin-bottom: 28px;
    padding: 32px 36px;
    border: 1px solid #d7e3e7;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef6f8, #ffffff);
}

.oebk-dashboard-header h1,
.oebk-login-panel h1 {
    margin: 0 0 8px;
}

.oebk-dashboard-kicker {
    margin: 0 0 5px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #486875;
}

.oebk-dashboard-avatar {
    width: 128px;
    height: 128px;
    overflow: hidden;
    border-radius: 50%;
    background: #dce9ee;
}

.oebk-dashboard-avatar img,
.oebk-dashboard-avatar .oebk-profile-placeholder {
    width: 100%;
    height: 100%;
}

.oebk-dashboard-avatar img {
    display: block;
    object-fit: cover;
}

.oebk-dashboard-avatar .oebk-profile-placeholder {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #2d5968;
}

.oebk-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.oebk-dashboard-card,
.oebk-dashboard-message,
.oebk-login-panel {
    box-sizing: border-box;
    min-width: 0;
    padding: 28px 30px;
    border: 1px solid #dcdcde;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.oebk-dashboard-card h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.oebk-dashboard-card dl {
    margin: 0;
}

.oebk-dashboard-card dl div {
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
    gap: 22px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
}

.oebk-dashboard-card dl div:last-child {
    border-bottom: 0;
}

.oebk-dashboard-card dt {
    font-weight: 600;
}

.oebk-dashboard-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.oebk-dashboard-button,
.oebk-login-panel input[type="submit"] {
    display: inline-flex;
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    background: #1f6075;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.oebk-dashboard-actions {
    margin: 22px 0 0;
}

.oebk-dashboard-next {
    background: #f7fafb;
}

.oebk-dashboard-footer {
    margin-top: 22px;
    text-align: right;
}

.oebk-login-panel {
    max-width: 620px;
}

.oebk-login-panel label {
    display: block;
    margin: 14px 0 5px;
    font-weight: 600;
}

.oebk-login-panel input[type="text"],
.oebk-login-panel input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
}

@media (max-width: 900px) {
    .oebk-member-dashboard,
    .oebk-dashboard-page > .oebk-member-dashboard {
        width: min(100% - 32px, 760px);
    }

    .oebk-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .oebk-member-dashboard,
    .oebk-dashboard-page > .oebk-member-dashboard {
        width: calc(100% - 24px);
        margin-top: 24px;
    }

    .oebk-dashboard-header {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .oebk-dashboard-avatar {
        grid-row: 1;
        width: 96px;
        height: 96px;
    }

    .oebk-dashboard-card,
    .oebk-dashboard-message,
    .oebk-login-panel {
        padding: 22px;
    }

    .oebk-dashboard-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


.oebk-dashboard-notice {
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: 10px;
}

.oebk-dashboard-notice-success {
    border: 1px solid #77b98d;
    background: #eff9f2;
}

.oebk-dashboard-notice-error {
    border: 1px solid #d98d8d;
    background: #fff1f1;
}

.oebk-dashboard-edit-section {
    margin-top: 26px;
    padding: 30px;
    border: 1px solid #dcdcde;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.oebk-dashboard-edit-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 32px;
    align-items: start;
    margin-bottom: 24px;
}

.oebk-dashboard-edit-heading h2 {
    margin: 0;
}

.oebk-dashboard-edit-heading > p {
    margin: 0;
    padding: 14px 16px;
    border-left: 4px solid #1f6075;
    background: #f2f7f9;
}

.oebk-member-edit-form fieldset {
    margin: 0 0 26px;
    padding: 24px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
}

.oebk-member-edit-form legend {
    padding: 0 8px;
    font-size: 1.08rem;
    font-weight: 700;
}

.oebk-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.oebk-form-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.oebk-form-field label {
    font-weight: 600;
}

.oebk-form-field input,
.oebk-form-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #8c8f94;
    border-radius: 7px;
    background: #fff;
    font: inherit;
}

.oebk-form-span-2 {
    grid-column: span 2;
}

.oebk-form-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .oebk-dashboard-edit-heading {
        grid-template-columns: 1fr;
    }

    .oebk-form-grid {
        grid-template-columns: 1fr;
    }

    .oebk-form-span-2 {
        grid-column: auto;
    }

    .oebk-dashboard-edit-section {
        padding: 22px;
    }

    .oebk-member-edit-form fieldset {
        padding: 18px;
    }
}


.oebk-form-field[hidden] {
    display: none !important;
}


.oebk-dashboard-photo-section {
    margin-top: 26px;
    padding: 30px;
    border: 1px solid #dcdcde;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.oebk-photo-layout {
    display: grid;
    grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1.45fr);
    gap: 28px;
    align-items: start;
}

.oebk-photo-current,
.oebk-photo-pending {
    min-width: 0;
}

.oebk-photo-current h3,
.oebk-photo-pending h3 {
    margin-top: 0;
    font-size: 1rem;
}

.oebk-photo-circle {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    background: #dce9ee;
}

.oebk-photo-circle img,
.oebk-photo-circle .oebk-profile-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    object-fit: cover;
}

.oebk-photo-pending {
    grid-column: 1;
}

.oebk-profile-photo-form {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
}

.oebk-photo-cropper {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(180px, 1fr);
    gap: 22px;
    align-items: center;
    margin-top: 18px;
}

.oebk-photo-cropper canvas {
    width: min(100%, 360px);
    height: auto;
    border-radius: 50%;
    background: #eef3f5;
}

.oebk-photo-controls {
    display: grid;
    gap: 20px;
}

.oebk-photo-controls label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.oebk-photo-controls input[type="range"] {
    width: 100%;
}

.oebk-form-help {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #50575e;
}

.oebk-photo-error {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff1f1;
    color: #8a2424;
}

.oebk-photo-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff3cd;
    font-size: 0.86rem;
    font-weight: 600;
}

@media (max-width: 850px) {
    .oebk-photo-layout {
        grid-template-columns: 1fr;
    }

    .oebk-profile-photo-form,
    .oebk-photo-pending {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 620px) {
    .oebk-dashboard-photo-section {
        padding: 22px;
    }

    .oebk-photo-cropper {
        grid-template-columns: 1fr;
    }
}
