/* =========================================================
   메인 페이지 리디자인
   파일 위치: static/css/pages/main.css
========================================================= */

.main-home,
.main-home * {
    box-sizing: border-box;
}

.main-home {
    --main-navy-950: #071a38;
    --main-navy-900: #0b2348;
    --main-navy-800: #123966;
    --main-blue-700: #1d4ed8;
    --main-blue-600: #2563eb;
    --main-blue-500: #3b82f6;
    --main-slate-950: #0f172a;
    --main-slate-800: #1e293b;
    --main-slate-700: #334155;
    --main-slate-600: #475569;
    --main-slate-500: #64748b;
    --main-slate-400: #94a3b8;
    --main-slate-300: #cbd5e1;
    --main-slate-200: #e2e8f0;
    --main-slate-100: #f1f5f9;
    --main-slate-50: #f8fafc;
    min-height: calc(100vh - 120px);
    padding: 24px 16px 52px;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(37, 99, 235, 0.06),
            transparent 24%
        ),
        #f4f7fb;
    color: var(--main-slate-950);
}

.main-home a {
    color: inherit;
    text-decoration: none;
}

.main-home button,
.main-home input,
.main-home select {
    font: inherit;
}

.main-home__shell {
    display: grid;
    grid-template-columns:
        minmax(190px, 220px)
        minmax(0, 1fr)
        minmax(260px, 310px);
    gap: 18px;
    width: min(1500px, 100%);
    margin: 0 auto;
    align-items: start;
}

.main-sidebar-toggle {
    display: none;
}

.main-sidebar,
.main-home__right {
    position: sticky;
    top: 18px;
}

.main-sidebar {
    min-height: calc(100vh - 155px);
    padding: 24px 18px 18px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 20px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 110% 100%,
            rgba(37, 99, 235, 0.38),
            transparent 42%
        ),
        linear-gradient(
            155deg,
            #0a1d3c 0%,
            #102f58 56%,
            #0b2447 100%
        );
    box-shadow: 0 16px 38px rgba(15, 35, 70, 0.2);
}

.main-sidebar__header {
    padding: 2px 5px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.main-sidebar__eyebrow,
.main-profile-card__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #93c5fd;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.main-sidebar__header strong {
    display: block;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.main-sidebar__header p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    line-height: 1.55;
}

.main-sidebar__nav {
    display: grid;
    gap: 22px;
    padding: 23px 0;
}

.main-sidebar__section h2 {
    margin: 0 0 8px;
    padding: 0 5px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.82rem;
    font-weight: 800;
}

.main-sidebar__section a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 35px;
    padding: 8px 7px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.79rem;
    font-weight: 650;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.main-sidebar__section a:hover,
.main-sidebar__section a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
    outline: none;
}

.main-sidebar__icon {
    display: grid;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    color: #bfdbfe;
    font-size: 0.67rem;
}

.main-sidebar__quote {
    margin-top: 8px;
    padding: 17px 15px;
    border: 1px solid rgba(147, 197, 253, 0.17);
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.18);
}

.main-sidebar__quote span {
    color: #bfdbfe;
    font-size: 0.7rem;
    font-weight: 800;
}

.main-sidebar__quote p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.77rem;
    font-weight: 650;
    line-height: 1.75;
}

.main-home__center,
.main-home__right {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.main-panel {
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.045),
        0 2px 7px rgba(15, 23, 42, 0.025);
}

.main-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 20px 14px;
}

.main-panel__heading > div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.main-panel__heading h2 {
    margin: 0;
    color: #10203d;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.main-panel__heading p {
    margin: 4px 0 0;
    color: var(--main-slate-500);
    font-size: 0.73rem;
    line-height: 1.45;
}

.main-panel__heading--link > a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 2px;
    color: var(--main-blue-600);
    font-size: 0.72rem;
    font-weight: 750;
}

.main-panel__heading--link > a:hover,
.main-panel__heading--link > a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.main-heading-icon {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: #eff6ff;
    font-size: 1rem;
}

.main-hero {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 20px;
    color: #ffffff;
    background:
        linear-gradient(
            115deg,
            rgba(11, 42, 93, 0.98) 0%,
            rgba(21, 75, 156, 0.96) 57%,
            rgba(29, 100, 198, 0.9) 100%
        );
    box-shadow: 0 18px 42px rgba(20, 71, 150, 0.2);
}

.main-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 26, 56, 0.16),
            transparent 62%
        ),
        repeating-linear-gradient(
            115deg,
            transparent 0 34px,
            rgba(255, 255, 255, 0.025) 35px 36px
        );
    content: "";
    pointer-events: none;
}

.main-hero__content {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    padding: 30px 34px 27px;
}

.main-hero__badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #dbeafe;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.main-hero h1 {
    margin: 14px 0 7px;
    font-size: clamp(1.68rem, 3vw, 2.28rem);
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.main-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.83rem;
}

.main-search {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 84px;
    margin-top: 24px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 28px rgba(7, 26, 56, 0.22);
}

.main-search label {
    min-width: 0;
}

.main-search select,
.main-search input,
.main-search button {
    width: 100%;
    height: 47px;
    border: 0;
}

.main-search select {
    padding: 0 35px 0 17px;
    color: var(--main-slate-800);
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.main-search__select {
    border-right: 1px solid var(--main-slate-200);
}

.main-search input {
    padding: 0 16px;
    color: var(--main-slate-800);
    outline: none;
}

.main-search input::placeholder {
    color: var(--main-slate-400);
    font-size: 0.78rem;
}

.main-search button {
    color: #ffffff;
    background: #102f5d;
    font-size: 0.79rem;
    font-weight: 850;
    cursor: pointer;
    transition: background 0.18s ease;
}

.main-search button:hover,
.main-search button:focus-visible {
    background: var(--main-blue-600);
    outline: none;
}

.main-search:focus-within {
    box-shadow:
        0 0 0 3px rgba(147, 197, 253, 0.45),
        0 16px 28px rgba(7, 26, 56, 0.22);
}

.main-search-keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.main-search-keywords strong {
    margin-right: 2px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.69rem;
}

.main-search-keywords button {
    min-height: 27px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.65rem;
    cursor: pointer;
}

.main-search-keywords button:hover,
.main-search-keywords button:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.main-hero__visual {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    width: 41%;
    height: 100%;
    opacity: 0.46;
}

.main-hero__bridge {
    position: absolute;
    right: 42px;
    bottom: 22px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 10rem;
    line-height: 1;
    transform: rotate(-7deg);
}

.main-hero__line {
    position: absolute;
    right: 18px;
    bottom: 35px;
    height: 1px;
    transform-origin: right center;
    background: rgba(255, 255, 255, 0.24);
}

.main-hero__line--one {
    width: 240px;
    transform: rotate(-14deg);
}

.main-hero__line--two {
    width: 195px;
    bottom: 72px;
    transform: rotate(-24deg);
}

.main-hero__line--three {
    width: 165px;
    bottom: 110px;
    transform: rotate(-36deg);
}

.main-grade-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 2px 20px 20px;
}

.main-grade-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.main-grade-card:hover,
.main-grade-card:focus-visible {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 12px 23px rgba(37, 99, 235, 0.11);
    outline: none;
}

.main-grade-card__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    font-size: 1rem;
    font-weight: 900;
}

.main-grade-card--1 .main-grade-card__icon {
    color: #2563eb;
    background: #dbeafe;
}

.main-grade-card--2 .main-grade-card__icon {
    color: #16a34a;
    background: #dcfce7;
}

.main-grade-card--3 .main-grade-card__icon {
    color: #ca8a04;
    background: #fef3c7;
}

.main-grade-card--4 .main-grade-card__icon {
    color: #7c3aed;
    background: #ede9fe;
}

.main-grade-card strong,
.main-grade-card small {
    display: block;
}

.main-grade-card strong {
    color: #14213d;
    font-size: 0.88rem;
}

.main-grade-card small {
    margin-top: 4px;
    color: var(--main-slate-500);
    font-size: 0.68rem;
}

.main-grade-card em {
    color: var(--main-slate-400);
    font-size: 1.15rem;
    font-style: normal;
}

.main-home__middle-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 16px;
}

.main-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 2px 20px 20px;
}

.main-feature-grid > a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 64px;
    padding: 11px 12px;
    border: 1px solid var(--main-slate-200);
    border-radius: 12px;
    background: #ffffff;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.main-feature-grid > a:hover,
.main-feature-grid > a:focus-visible {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    background: #f8fbff;
    outline: none;
}

.main-feature-grid strong,
.main-feature-grid small {
    display: block;
}

.main-feature-grid strong {
    color: #17233e;
    font-size: 0.79rem;
}

.main-feature-grid small {
    margin-top: 3px;
    color: var(--main-slate-500);
    font-size: 0.66rem;
}

.main-feature-icon {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 900;
}

.main-feature-icon--blue {
    color: #2563eb;
    background: #dbeafe;
}

.main-feature-icon--green {
    color: #16a34a;
    background: #dcfce7;
}

.main-feature-icon--violet {
    color: #7c3aed;
    background: #ede9fe;
}

.main-feature-icon--orange {
    color: #ea580c;
    background: #ffedd5;
}

.main-feature-icon--pink {
    color: #db2777;
    background: #fce7f3;
}

.main-feature-icon--navy {
    color: #1d4ed8;
    background: #e0e7ff;
}

.main-notice-list,
.main-board-list {
    margin: 0;
    padding: 0 20px 20px;
    list-style: none;
}

.main-notice-list li + li,
.main-board-list li + li {
    border-top: 1px solid #edf1f6;
}

.main-notice-list a,
.main-board-list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 43px;
    padding: 7px 0;
}

.main-notice-list a:hover strong,
.main-notice-list a:focus-visible strong,
.main-board-list a:hover strong,
.main-board-list a:focus-visible strong {
    color: var(--main-blue-600);
}

.main-notice-list a:focus-visible,
.main-board-list a:focus-visible {
    outline: none;
}

.main-notice-list strong,
.main-board-list strong {
    overflow: hidden;
    color: var(--main-slate-700);
    font-size: 0.73rem;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.main-notice-list em,
.main-board-list em {
    color: var(--main-slate-400);
    font-style: normal;
}

.main-notice-badge {
    display: inline-grid;
    min-width: 37px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    color: var(--main-blue-700);
    background: #eff6ff;
    font-size: 0.62rem;
    font-weight: 850;
}

.main-notice-badge.is-important {
    color: #c2410c;
    background: #fff7ed;
}

.main-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    padding: 0 20px 18px;
}

.main-recent-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 74px;
    padding: 11px 0;
    border-top: 1px solid #edf1f6;
}

.main-recent-item:nth-child(-n + 2) {
    border-top: 0;
}

.main-recent-item:hover .main-recent-item__content strong,
.main-recent-item:focus-visible .main-recent-item__content strong {
    color: var(--main-blue-600);
}

.main-recent-item:focus-visible {
    outline: none;
}

.main-file-badge {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    background: #fff1f2;
    font-size: 0.63rem;
    font-weight: 900;
}

.main-file-badge[data-extension="PPT"],
.main-file-badge[data-extension="PPTX"] {
    border-color: #fed7aa;
    color: #ea580c;
    background: #fff7ed;
}

.main-file-badge[data-extension="DOC"],
.main-file-badge[data-extension="DOCX"],
.main-file-badge[data-extension="HWP"] {
    border-color: #bfdbfe;
    color: #2563eb;
    background: #eff6ff;
}

.main-file-badge[data-extension="ZIP"] {
    border-color: #ddd6fe;
    color: #7c3aed;
    background: #f5f3ff;
}

.main-file-badge[data-extension="TXT"] {
    border-color: #cbd5e1;
    color: #475569;
    background: #f8fafc;
}

.main-recent-item__content,
.main-recent-item__content strong,
.main-recent-item__content small {
    min-width: 0;
}

.main-recent-item__content strong,
.main-recent-item__content small {
    display: block;
}

.main-recent-item__content strong {
    overflow: hidden;
    color: #17233e;
    font-size: 0.77rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.main-recent-item__content small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--main-slate-500);
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-recent-item__meta {
    text-align: right;
}

.main-recent-item__meta small,
.main-recent-item__meta em {
    display: block;
}

.main-recent-item__meta small {
    color: var(--main-slate-400);
    font-size: 0.61rem;
    white-space: nowrap;
}

.main-recent-item__meta em {
    margin-top: 4px;
    color: var(--main-blue-600);
    font-size: 0.9rem;
    font-style: normal;
}

.main-profile-card {
    padding: 20px;
}

.main-profile-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.main-profile-card h2 {
    margin: 0;
    color: #10203d;
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.main-profile-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 7px solid #eff6ff;
    border-radius: 50%;
    color: var(--main-blue-600);
    background: #dbeafe;
    font-size: 1.05rem;
    font-weight: 900;
}

.main-profile-card__description {
    margin: 7px 0 0;
    color: var(--main-slate-500);
    font-size: 0.73rem;
    line-height: 1.6;
}

.main-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.main-profile-tags span {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--main-blue-700);
    background: #eff6ff;
    font-size: 0.65rem;
    font-weight: 800;
}

.main-profile-tags span.is-admin {
    color: #6d28d9;
    background: #f5f3ff;
}

.main-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 16px;
    padding: 15px 0;
    border-top: 1px solid var(--main-slate-200);
    border-bottom: 1px solid var(--main-slate-200);
}

.main-profile-stats div {
    text-align: center;
}

.main-profile-stats div + div {
    border-left: 1px solid var(--main-slate-200);
}

.main-profile-stats span,
.main-profile-stats strong {
    display: block;
}

.main-profile-stats span {
    color: var(--main-slate-500);
    font-size: 0.62rem;
}

.main-profile-stats strong {
    margin-top: 4px;
    color: #10203d;
    font-size: 1rem;
}

.main-profile-actions {
    display: grid;
    gap: 8px;
    margin-top: 15px;
}

.main-primary-button,
.main-secondary-button {
    display: grid;
    min-height: 40px;
    place-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 850;
}

.main-primary-button {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.main-secondary-button {
    border: 1px solid #bfdbfe;
    color: var(--main-blue-700) !important;
    background: #eff6ff;
}

.main-secondary-button.is-pending {
    border-color: #fde68a;
    color: #a16207 !important;
    background: #fffbeb;
}

.main-primary-button:hover,
.main-primary-button:focus-visible,
.main-secondary-button:hover,
.main-secondary-button:focus-visible {
    filter: brightness(0.97);
    transform: translateY(-1px);
    outline: none;
}

.main-text-button {
    display: block;
    margin-top: 13px;
    padding: 5px;
    color: var(--main-slate-500) !important;
    font-size: 0.7rem;
    font-weight: 720;
    text-align: center;
}

.main-text-button:hover,
.main-text-button:focus-visible {
    color: var(--main-blue-600) !important;
    text-decoration: underline;
    outline: none;
}

.main-login-form {
    display: grid;
    gap: 9px;
    margin-top: 17px;
}

.main-login-form input,
.main-login-form button {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
}

.main-login-form input {
    border: 1px solid var(--main-slate-300);
    padding: 0 12px;
    color: var(--main-slate-800);
    background: #ffffff;
    outline: none;
}

.main-login-form input:focus {
    border-color: var(--main-blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
}

.main-login-form button {
    border: 0;
    color: #ffffff;
    background: var(--main-blue-600);
    font-weight: 850;
    cursor: pointer;
}

.main-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    padding: 1px 16px 18px;
}

.main-quick-grid a {
    display: grid;
    min-height: 77px;
    place-items: center;
    align-content: center;
    gap: 7px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    color: var(--main-slate-600);
    background: #f8fafc;
    font-size: 0.64rem;
    font-weight: 750;
    text-align: center;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.main-quick-grid a span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--main-blue-600);
    background: #dbeafe;
    font-size: 0.9rem;
    font-weight: 900;
}

.main-quick-grid a:hover,
.main-quick-grid a:focus-visible {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    color: var(--main-blue-700);
    background: #f5f9ff;
    outline: none;
}

.main-board-list {
    padding-top: 0;
}

.main-board-list a > span {
    font-size: 0.75rem;
}

.main-support-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    padding: 18px;
    border-color: #bfdbfe;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(59, 130, 246, 0.14),
            transparent 40%
        ),
        #f8fbff;
}

.main-support-card__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--main-blue-600);
    font-size: 1rem;
    font-weight: 900;
}

.main-support-card h2 {
    margin: 1px 0 0;
    color: #10203d;
    font-size: 0.84rem;
}

.main-support-card p {
    margin: 4px 0 0;
    color: var(--main-slate-500);
    font-size: 0.67rem;
}

.main-support-card a {
    grid-column: 1 / -1;
    display: grid;
    min-height: 38px;
    place-items: center;
    margin-top: 2px;
    border-radius: 10px;
    color: #ffffff;
    background: var(--main-blue-600);
    font-size: 0.71rem;
    font-weight: 850;
}

.main-empty-state {
    padding: 18px 0;
    color: var(--main-slate-400);
    font-size: 0.72rem;
    text-align: center;
}

.main-empty-state--large {
    margin: 0 20px 20px;
    padding: 36px 15px;
    border: 1px dashed var(--main-slate-300);
    border-radius: 12px;
    background: var(--main-slate-50);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1380px) {
    .main-home__shell {
        grid-template-columns:
            minmax(180px, 190px)
            minmax(0, 1fr)
            minmax(245px, 270px);
        gap: 14px;
    }

    .main-hero__content {
        padding-right: 26px;
        padding-left: 26px;
    }

    .main-grade-grid {
        gap: 9px;
    }

    .main-grade-card {
        padding: 11px;
    }

    .main-grade-card__icon {
        width: 34px;
        height: 34px;
    }

    .main-home__middle-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .main-home__shell {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .main-home__right {
        position: static;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-home__right .main-profile-card {
        grid-row: span 2;
    }

    .main-support-card {
        align-self: stretch;
    }
}

@media (max-width: 820px) {
    .main-home {
        padding: 15px 12px 38px;
    }

    .main-home__shell {
        display: block;
    }

    .main-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
        margin-bottom: 12px;
        padding: 8px 14px;
        border: 1px solid #bfdbfe;
        border-radius: 11px;
        color: var(--main-blue-700);
        background: #ffffff;
        font-size: 0.78rem;
        font-weight: 850;
        cursor: pointer;
    }

    .main-sidebar {
        position: static;
        display: none;
        min-height: 0;
        margin-bottom: 14px;
    }

    .main-sidebar.is-open {
        display: block;
    }

    .main-home__center,
    .main-home__right {
        display: grid;
    }

    .main-home__right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 16px;
    }

    .main-home__right .main-profile-card {
        grid-row: auto;
    }

    .main-grade-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-recent-grid {
        grid-template-columns: 1fr;
    }

    .main-recent-item:nth-child(2) {
        border-top: 1px solid #edf1f6;
    }
}

@media (max-width: 600px) {
    .main-hero {
        min-height: 0;
    }

    .main-hero__content {
        padding: 25px 18px 22px;
    }

    .main-hero__visual {
        display: none;
    }

    .main-search {
        grid-template-columns: 1fr;
        gap: 0;
        border-width: 3px;
    }

    .main-search__select {
        border-right: 0;
        border-bottom: 1px solid var(--main-slate-200);
    }

    .main-search select,
    .main-search input,
    .main-search button {
        height: 45px;
    }

    .main-search-keywords {
        gap: 6px;
    }

    .main-grade-grid,
    .main-feature-grid,
    .main-home__right {
        grid-template-columns: 1fr;
    }

    .main-grade-card {
        min-height: 68px;
    }

    .main-panel__heading,
    .main-grade-grid,
    .main-feature-grid,
    .main-notice-list,
    .main-board-list,
    .main-recent-grid {
        padding-right: 15px;
        padding-left: 15px;
    }

    .main-panel__heading {
        flex-direction: column;
    }

    .main-panel__heading--link > a {
        align-self: flex-end;
        margin-top: -35px;
    }

    .main-recent-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .main-recent-item__meta {
        grid-column: 2;
        display: flex;
        align-items: center;
        gap: 7px;
        margin-top: -4px;
        text-align: left;
    }

    .main-recent-item__meta em {
        margin: 0;
    }

    .main-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .main-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-search-keywords strong {
        width: 100%;
    }
}

/* MAIN SIDEBAR COMPACT START */

/*
   ?? ?? ????? ?? ?? ??? ???
   ?? ?? ??? ??? ????.
*/
@media (min-width: 821px) {
    .main-home__shell {
        align-items: start;
    }

    .main-sidebar {
        min-height: 0;
        height: auto;
        align-self: start;
    }
}

/* MAIN SIDEBAR COMPACT END */

/* MAIN READABILITY V2 START */

/*
   메인 메뉴 가독성 개선
   1. 작은 글자 확대
   2. 보조 글자 대비 강화
   3. 최근 자료를 한 줄 목록형으로 변경
   4. 관리자 버튼 우선순위 정리
   5. 공지/게시글/최근 자료 날짜 표시
*/

.main-sidebar__eyebrow {
    color: #bfdbfe;
    font-size: 0.73rem;
    letter-spacing: 0.07em;
}

.main-sidebar__header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.81rem;
}

.main-sidebar__nav {
    gap: 20px;
}

.main-sidebar__section h2 {
    margin-bottom: 9px;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.main-sidebar__section a {
    min-height: 38px;
    padding: 8px 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
}

.main-sidebar__icon {
    width: 24px;
    height: 24px;
    color: #dbeafe;
    font-size: 0.73rem;
}

.main-sidebar__quote span {
    font-size: 0.75rem;
}

.main-sidebar__quote p {
    font-size: 0.82rem;
}

.main-panel__heading h2 {
    font-size: 1.08rem;
}

.main-panel__heading p {
    color: #52627a;
    font-size: 0.8rem;
}

.main-panel__heading--link > a {
    font-size: 0.78rem;
}

.main-grade-card strong {
    font-size: 0.94rem;
}

.main-grade-card small {
    color: #52627a;
    font-size: 0.75rem;
}

.main-grade-card em {
    color: #64748b;
}

.main-feature-grid strong {
    font-size: 0.86rem;
}

.main-feature-grid small {
    color: #52627a;
    font-size: 0.73rem;
}

.main-notice-list a,
.main-board-list a {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 47px;
}

.main-notice-list strong,
.main-board-list strong {
    color: #334155;
    font-size: 0.8rem;
}

.main-notice-badge {
    font-size: 0.67rem;
}

.main-list-date {
    color: #64748b;
    font-size: 0.69rem;
    font-style: normal;
    white-space: nowrap;
}

.main-recent-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 18px;
}

.main-recent-item {
    min-height: 80px;
    padding: 13px 0;
}

.main-recent-item:nth-child(2) {
    border-top: 1px solid #edf1f6;
}

.main-recent-item__content strong {
    font-size: 0.86rem;
}

.main-recent-item__content small {
    color: #52627a;
    font-size: 0.73rem;
}

.main-recent-item__meta {
    min-width: 118px;
}

.main-recent-item__meta small {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    color: #64748b;
    font-size: 0.68rem;
}

.main-recent-item__meta small span + span {
    padding-left: 9px;
    border-left: 1px solid #dbe4ef;
}

.main-profile-card h2 {
    font-size: 1.07rem;
}

.main-profile-card__eyebrow {
    font-size: 0.71rem;
}

.main-profile-stats span {
    font-size: 0.68rem;
}

.main-profile-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.main-primary-button,
.main-secondary-button--upload {
    grid-column: 1 / -1;
}

.main-primary-button,
.main-secondary-button {
    min-height: 42px;
    font-size: 0.76rem;
}

.main-secondary-button--compact {
    min-height: 38px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.7rem;
}

.main-quick-grid a {
    color: #475569;
    font-size: 0.7rem;
}

.main-support-card p {
    color: #52627a;
}

@media (min-width: 821px) {
    .main-hero {
        min-height: 228px;
    }

    .main-hero__content {
        padding: 25px 30px 23px;
    }

    .main-search {
        margin-top: 18px;
    }
}

@media (max-width: 600px) {
    .main-list-date {
        display: none;
    }

    .main-notice-list a,
    .main-board-list a {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .main-recent-item__meta {
        min-width: 0;
    }

    .main-recent-item__meta small {
        justify-content: flex-start;
    }

    .main-profile-actions {
        grid-template-columns: 1fr;
    }

    .main-primary-button,
    .main-secondary-button--upload {
        grid-column: auto;
    }
}

/* MAIN READABILITY V2 END */

/* MAIN FINAL POLISH START */

/*
   메인 페이지 최종 마무리
   - 넓은 화면에서 콘텐츠 폭 확대
   - 사이드바와 최근 자료 제목 강조
   - 카드 클릭 영역과 포커스 가시성 개선
   - 우측 회원 정보 영역의 줄바꿈 완화
*/

@media (min-width: 1381px) {
    .main-home {
        padding-right: 20px;
        padding-left: 20px;
    }

    .main-home__shell {
        width: min(1580px, 100%);
        grid-template-columns:
            220px
            minmax(0, 1fr)
            300px;
        gap: 16px;
    }
}

.main-sidebar__section h2 {
    font-weight: 850;
}

.main-sidebar__section a {
    font-weight: 730;
    line-height: 1.35;
}

.main-sidebar__section a:hover,
.main-sidebar__section a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.main-recent-item {
    border-radius: 11px;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.main-recent-item:hover,
.main-recent-item:focus-visible {
    background: #f7faff;
    transform: translateX(2px);
    outline: none;
}

.main-recent-item__content strong {
    color: #17233b;
    font-weight: 850;
    letter-spacing: -0.012em;
    line-height: 1.4;
}

.main-recent-item__content small {
    line-height: 1.5;
}

.main-panel {
    box-shadow:
        0 10px 24px rgba(15, 35, 70, 0.055);
}

.main-grade-card,
.main-feature-grid > a,
.main-quick-grid a {
    outline-offset: 3px;
}

.main-grade-card:focus-visible,
.main-feature-grid > a:focus-visible,
.main-quick-grid a:focus-visible,
.main-recent-item:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
}

.main-profile-card h2 {
    line-height: 1.35;
    word-break: keep-all;
}

.main-profile-actions {
    gap: 8px;
}

.main-primary-button,
.main-secondary-button {
    font-weight: 820;
}

.main-list-date {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1380px) and (min-width: 1081px) {
    .main-home__shell {
        grid-template-columns:
            190px
            minmax(0, 1fr)
            280px;
    }
}

@media (max-width: 600px) {
    .main-recent-item:hover,
    .main-recent-item:focus-visible {
        transform: none;
    }
}

/* MAIN FINAL POLISH END */

/* MAIN RIGHT MENU ALIGNMENT FIX START */

/*
   메인 우측 카드 정렬 보정

   1. 카드 제목과 설명을 서로 다른 행에 배치
   2. 제목의 어색한 단어 단위 줄바꿈 방지
   3. 더보기 링크는 제목 오른쪽에 고정
   4. 자주 찾는 메뉴 이름의 중앙 정렬 통일
   5. 자유게시판 글 제목과 날짜 정렬 보정
*/

.main-card--aligned-heading .main-panel__heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
}

.main-card--aligned-heading
.main-panel__heading h2 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.025em;
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: nowrap;
}

.main-card--aligned-heading
.main-panel__heading p {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    color: #64748b;
    line-height: 1.5;
    word-break: keep-all;
}

.main-card--aligned-heading
.main-panel__heading--link > a {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin: 0;
    white-space: nowrap;
}

/* 자주 찾는 바로가기 */
.main-card--aligned-heading .main-quick-grid {
    align-items: stretch;
}

.main-card--aligned-heading
.main-quick-grid a {
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 72px;
    line-height: 1.25;
    text-align: center;
    word-break: keep-all;
}

.main-card--aligned-heading
.main-quick-grid a > * {
    min-width: 0;
}

.main-card--aligned-heading
.main-quick-grid a span:last-child,
.main-card--aligned-heading
.main-quick-grid a strong:last-child {
    display: block;
    width: 100%;
    text-align: center;
    word-break: keep-all;
}

/* 자유게시판 목록 */
.main-card--aligned-heading
.main-board-list a {
    align-items: center;
}

.main-card--aligned-heading
.main-board-list strong {
    min-width: 0;
    overflow: hidden;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-card--aligned-heading
.main-board-list .main-list-date {
    justify-self: end;
    margin-left: 4px;
}

/* 좁은 우측 영역에서 제목 크기 미세 조정 */
@media (min-width: 1001px) and (max-width: 1240px) {
    .main-card--aligned-heading
    .main-panel__heading h2 {
        font-size: 1rem;
    }

    .main-card--aligned-heading
    .main-panel__heading p {
        font-size: 0.72rem;
    }
}

@media (max-width: 600px) {
    .main-card--aligned-heading
    .main-panel__heading h2 {
        white-space: normal;
    }

    .main-card--aligned-heading
    .main-quick-grid a {
        min-height: 68px;
    }
}

/* MAIN RIGHT MENU ALIGNMENT FIX END */

/* MAIN SIDE HEADING OVERLAP FIX START */

/*
  메인 우측 카드 제목/설명 겹침 보정
  - 제목과 설명을 반드시 서로 다른 줄에 배치
  - 자유게시판의 더보기 링크는 우측 상단 고정
  - 좁은 카드에서도 문구가 겹치지 않도록 폭과 줄바꿈 보정
*/

.main-side-heading--quick-fix,
.main-side-heading--board-fix {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 14px !important;
}

.main-side-heading--quick-fix > *,
.main-side-heading--board-fix > * {
  min-width: 0 !important;
}

.main-side-heading--quick-fix > div,
.main-side-heading--board-fix > div {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

.main-side-heading--quick-fix h2,
.main-side-heading--board-fix h2 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.025em !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

.main-side-heading--quick-fix p,
.main-side-heading--board-fix p {
  position: static !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #64748b !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

/* 자유게시판 카드: 더보기 공간을 미리 확보 */
.main-side-heading--board-fix {
  padding-right: 58px !important;
}

.main-side-heading--board-fix a {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

/* 기존 정렬 패치보다 우선 적용 */
.main-card--aligned-heading .main-side-heading--quick-fix,
.main-card--aligned-heading .main-side-heading--board-fix {
  display: block !important;
  grid-template-columns: none !important;
}

.main-card--aligned-heading
.main-side-heading--quick-fix h2,
.main-card--aligned-heading
.main-side-heading--board-fix h2 {
  grid-column: auto !important;
  grid-row: auto !important;
}

.main-card--aligned-heading
.main-side-heading--quick-fix p,
.main-card--aligned-heading
.main-side-heading--board-fix p {
  grid-column: auto !important;
  grid-row: auto !important;
}

/* 우측 카드 내부 여백과 가독성 */
.main-side-card--quick-fix .main-quick-grid {
  margin-top: 2px !important;
}

.main-side-card--board-fix .main-board-list {
  margin-top: 2px !important;
}

@media (max-width: 1240px) {
  .main-side-heading--quick-fix h2,
  .main-side-heading--board-fix h2 {
    font-size: 0.98rem !important;
  }

  .main-side-heading--quick-fix p,
  .main-side-heading--board-fix p {
    font-size: 0.69rem !important;
  }
}

@media (max-width: 600px) {
  .main-side-heading--board-fix {
    padding-right: 52px !important;
  }
}

/* MAIN SIDE HEADING OVERLAP FIX END */

/* MAIN BOARD MORE LINK POSITION FIX START */

/*
  자유게시판 카드의 '더보기' 위치 보정
  - absolute 배치를 해제하여 카드 테두리와 분리
  - 제목과 같은 행의 오른쪽에 자연스럽게 정렬
  - 설명은 제목 아래 한 줄로 유지
*/

.main-side-heading--board-fix {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  column-gap: 12px !important;
  row-gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding-right: 0 !important;
  margin: 0 0 14px !important;
}

/* 제목과 설명이 별도 래퍼 안에 있는 경우 */
.main-side-heading--board-fix > div {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* 제목과 설명이 직접 자식인 경우 */
.main-side-heading--board-fix > h2 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
}

.main-side-heading--board-fix > p {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  margin: 0 !important;
}

/* 더보기 링크 */
.main-side-heading--board-fix > a {
  position: static !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: start !important;
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  margin: 1px 0 0 !important;
  padding: 2px 2px 2px 8px !important;
  color: #2563eb !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

/* 래퍼 내부 제목/설명 간격 */
.main-side-heading--board-fix > div h2 {
  margin: 0 0 6px !important;
}

.main-side-heading--board-fix > div p {
  margin: 0 !important;
}

/* 기존 absolute 규칙보다 우선 적용 */
.main-card--aligned-heading
.main-side-heading--board-fix
> a {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: auto !important;
}

/* 중간 폭에서는 링크와 제목 사이 간격을 조금 줄임 */
@media (max-width: 1240px) {
  .main-side-heading--board-fix {
    column-gap: 9px !important;
  }

  .main-side-heading--board-fix > a {
    font-size: 0.7rem !important;
  }
}

/* 모바일에서는 설명과 링크가 겹치지 않도록 제목 행 유지 */
@media (max-width: 600px) {
  .main-side-heading--board-fix {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .main-side-heading--board-fix > a {
    margin-top: 0 !important;
  }
}

/* MAIN BOARD MORE LINK POSITION FIX END */

/* MAIN BOARD MORE TOP RIGHT FIX START */

/*
  메인 자유게시판 카드의 '더보기' 링크를
  카드 제목 영역 오른쪽 상단에 고정합니다.
*/

.main-side-card--board-fix .main-panel__heading,
.main-side-card--board-fix .main-panel__heading--link,
.main-side-heading--board-fix {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding-right: 62px !important;
  margin-bottom: 15px !important;
}

.main-side-card--board-fix .main-panel__heading h2,
.main-side-card--board-fix .main-panel__heading--link h2,
.main-side-heading--board-fix h2 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

.main-side-card--board-fix .main-panel__heading p,
.main-side-card--board-fix .main-panel__heading--link p,
.main-side-heading--board-fix p {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #64748b !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

.main-side-card--board-fix
.main-panel__heading--link > a,
.main-side-card--board-fix
.main-panel__heading > a,
.main-side-heading--board-fix > a {
  position: absolute !important;
  top: 1px !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  display: inline-flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: auto !important;
  min-width: auto !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 1px 0 1px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #2563eb !important;
  background: transparent !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transform: none !important;
}

.main-side-card--board-fix
.main-panel__heading--link > a:hover,
.main-side-card--board-fix
.main-panel__heading > a:hover,
.main-side-heading--board-fix > a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

/* 기존 grid 배치 규칙 무효화 */
.main-card--aligned-heading
.main-side-card--board-fix
.main-panel__heading,
.main-card--aligned-heading
.main-side-card--board-fix
.main-panel__heading--link,
.main-card--aligned-heading
.main-side-heading--board-fix {
  display: block !important;
  grid-template-columns: none !important;
}

.main-card--aligned-heading
.main-side-card--board-fix
.main-panel__heading--link > a,
.main-card--aligned-heading
.main-side-heading--board-fix > a {
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: auto !important;
  align-self: auto !important;
}

@media (max-width: 600px) {
  .main-side-card--board-fix .main-panel__heading,
  .main-side-card--board-fix .main-panel__heading--link,
  .main-side-heading--board-fix {
    padding-right: 56px !important;
  }

  .main-side-card--board-fix
  .main-panel__heading--link > a,
  .main-side-card--board-fix
  .main-panel__heading > a,
  .main-side-heading--board-fix > a {
    font-size: 0.69rem !important;
  }
}

/* MAIN BOARD MORE TOP RIGHT FIX END */

/* MAIN BOARD MORE VERTICAL ALIGN FIX START */

/*
  자유게시판 제목과 '더보기'의 세로 높이를 맞춥니다.
  기존 우측 상단 고정은 유지하되 카드 테두리에서 안쪽으로 이동합니다.
*/

.main-side-card--board-fix
.main-panel__heading--link > a,
.main-side-card--board-fix
.main-panel__heading > a,
.main-side-heading--board-fix > a {
  top: 20px !important;
  right: 18px !important;
  min-height: 22px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  transform: none !important;
}

/* 제목 줄 높이와 더보기 링크 높이를 통일 */
.main-side-card--board-fix
.main-panel__heading h2,
.main-side-card--board-fix
.main-panel__heading--link h2,
.main-side-heading--board-fix h2 {
  min-height: 22px !important;
  line-height: 1.3 !important;
}

/* 중간 폭 */
@media (max-width: 1240px) {
  .main-side-card--board-fix
  .main-panel__heading--link > a,
  .main-side-card--board-fix
  .main-panel__heading > a,
  .main-side-heading--board-fix > a {
    top: 19px !important;
    right: 16px !important;
  }
}

/* 모바일 */
@media (max-width: 600px) {
  .main-side-card--board-fix
  .main-panel__heading--link > a,
  .main-side-card--board-fix
  .main-panel__heading > a,
  .main-side-heading--board-fix > a {
    top: 17px !important;
    right: 14px !important;
  }
}

/* MAIN BOARD MORE VERTICAL ALIGN FIX END */

/* MAIN ROLE-AWARE RESTORE FINAL START */

.main-sidebar__learning {
    padding: 15px;
}

.main-sidebar__learning-list {
    display: grid;
    gap: 8px;
    margin-top: 11px;
}

.main-sidebar__learning-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(191, 219, 254, 0.15);
    border-radius: 10px;
    color: #ffffff;
    background: rgba(15, 35, 70, 0.28);
}

.main-sidebar__learning-item b {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 8px;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.28);
    font-size: 0.64rem;
    font-weight: 850;
}

.main-sidebar__learning-item strong {
    min-width: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
    word-break: keep-all;
}

.main-profile-stats--single {
    grid-template-columns: minmax(0, 1fr) !important;
}

.main-profile-stats--student {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.main-profile-stat-value--text {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    word-break: keep-all;
}

@media (max-width: 600px) {
    .main-profile-stats--student {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* MAIN ROLE-AWARE RESTORE FINAL END */

/* LEARNING DETAIL RESTORE START */

.main-sidebar__learning-item {
    min-height: 62px;
    align-items: start;
}

.main-sidebar__learning-item b {
    margin-top: 2px;
}

.main-sidebar__learning-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.main-sidebar__learning-copy strong {
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.35;
    word-break: keep-all;
}

.main-sidebar__learning-copy small {
    color: rgba(219, 234, 254, 0.76);
    font-size: 0.63rem;
    font-weight: 620;
    line-height: 1.5;
    word-break: keep-all;
}

/* LEARNING DETAIL RESTORE END */

