/* OpenFES shared navigation. Keep the existing 200px / 57px layout contract. */
nav.openfes-sidebar {
    background: #fff;
    color: #263343;
    border-right: 1px solid #e4e8ed;
    padding: 16px 10px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.openfes-sidebar .navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #24364b;
    padding: 10px 12px 14px;
    margin: 0 0 12px;
}
.openfes-sidebar .openfes-nav-label {
    padding: 5px 12px 4px;
    color: #64748b;
    font-size: .75rem;
    font-weight: 600;
}
.openfes-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 1px 0;
    border-radius: 8px;
    font-size: .9rem;
    color: #39495a;
    line-height: 1.45;
}
.openfes-sidebar .nav-link i {
    flex: 0 0 19px;
    text-align: center;
    color: #62748a;
}
.openfes-sidebar a:hover,
.openfes-sidebar .nav-link:hover {
    background: #f1f5f9;
    color: #254d7d;
}
.openfes-sidebar .nav-link.active {
    background: #e8f1fb;
    color: #245b9b;
    font-weight: 600;
}
.openfes-sidebar .nav-link.active i {
    color: #245b9b;
}
.openfes-sidebar .openfes-nav-separator {
    margin: 12px 8px;
    border-top: 1px solid #e4e8ed;
}
.openfes-sidebar .openfes-nav-subitem {
    padding-left: 28px;
    font-size: .8rem;
}
.openfes-sidebar .sidebar-auth {
    padding-bottom: 4px;
}
.openfes-sidebar .nav-link:focus-visible,
.openfes-mobile-nav .nav-link:focus-visible,
.openfes-mypage a:focus-visible {
    outline: 2px solid #2b6cb0;
    outline-offset: -2px;
}
.navbar.openfes-mobile-nav {
    background: #fff !important;
    border-top: 1px solid #e4e8ed;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    min-height: calc(57px + env(safe-area-inset-bottom, 0px));
    z-index: 2000;
}
.openfes-mobile-nav .navbar-nav {
    flex-direction: row;
}
.openfes-mobile-nav .nav-item {
    flex: 1 1 0;
    min-width: 0;
}
.openfes-mobile-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    padding: 4px 2px;
    color: #596b7e;
    line-height: 1.1;
    font-size: 11px;
    white-space: nowrap;
    position: relative;
}
.openfes-mobile-nav .nav-link i {
    font-size: 19px;
}
.openfes-mobile-nav .nav-link.active {
    color: #245b9b;
    font-weight: 700;
    background: #edf4fc;
}
.openfes-mobile-nav .nav-link.active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 22px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: #245b9b;
}
/* Match the existing timetable/cheki breakpoints, including exactly 768px. */
@media (width: 768px) {
    .navbar.openfes-mobile-nav.d-md-none {
        display: block !important;
    }
}
@media (min-width: 769px) {
    .navbar.openfes-mobile-nav {
        display: none !important;
    }
}
.openfes-mypage {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px 28px;
}
.openfes-mypage h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.openfes-mypage .mypage-section {
    margin-bottom: 20px;
}
.openfes-mypage .mypage-heading {
    font-size: .82rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 8px 3px;
}
.openfes-mypage .list-group {
    border-radius: 12px;
    overflow: hidden;
}
.openfes-mypage .mypage-link {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #28394b;
    padding: 12px 15px;
}
.openfes-mypage .mypage-link > i:first-child {
    flex: 0 0 24px;
    text-align: center;
    color: #64748b;
}
.openfes-mypage .mypage-link .mypage-chevron {
    margin-left: auto;
    font-size: .8rem;
    color: #8b9bad;
}
.openfes-mypage .mypage-avatar {
    width: 54px;
    height: 54px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e8eef5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}
.openfes-mypage .mypage-profile-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
