@charset "utf-8";

.grid-container.home-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 16px;
    row-gap: 40px;
    align-items: start;
}
.home-dashboard > .home-feed-row { grid-column: 1; min-width: 0; }
.home-dashboard > .home-wide-row { grid-column: 1 / -1; min-width: 0; }
.home-dashboard > .edit-mode { grid-column: 1 / -1; }
.home-dashboard .home-feed-row .uxc_gallery_box > ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-dashboard .home-feed-row .uxc_gallery_box li { min-width: 0; }
.home-dashboard .home-feed-row .uxc_gallery_box .lt_img { aspect-ratio: 16 / 9; min-height: 0; }
.home-dashboard .home-feed-row .uxc_gallery_box .lt_img img { width: 100%; height: 100%; object-fit: cover; }

.study-sidebar {
    --study-accent: var(--color-prime, #6546ff);
    --study-surface: var(--board-white, #fff);
    --study-text: var(--board-gray-900, #172033);
    --study-muted: var(--board-gray-500, #8b95a7);
    --study-border: var(--board-gray-200, #e9ebf1);
    grid-column: 2;
    grid-row: 1 / span var(--study-feed-rows, 2);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    width: 100%;
    margin-top: 36px;
    color: var(--study-text);
    scroll-margin-top: 110px;
}
.study-sidebar, .study-sidebar * { box-sizing: border-box; }
.study-card { padding: 20px 18px; background: var(--study-surface); border: 1px solid var(--study-border); border-radius: 12px; box-shadow: 0 1px 3px rgb(20 25 45 / 3%); }
.study-card__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.study-card__header h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -.5px; }
.study-card__header h2 > .bx { flex-shrink: 0; font-size: 26px; font-weight: 400; color: var(--study-accent); }
.study-calendar__nav { display: flex; gap: 2px; }
.study-calendar__nav a { display: grid; place-items: center; width: 28px; height: 30px; border-radius: 6px; color: var(--study-muted); font-size: 20px; }
.study-calendar__nav a:hover { color: var(--study-accent); background: var(--board-gray-100, #f6f6fa); }
.study-calendar__month { display: flex; align-items: center; justify-content: space-between; margin: 22px 4px 18px; }
.study-calendar__month strong { font-size: 18px; line-height: 1.4; }
.study-calendar__month > a { font-size: 12px; color: var(--study-accent); }
.study-calendar__weekdays, .study-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.study-calendar__weekdays { padding-bottom: 12px; border-bottom: 1px solid var(--study-border); color: var(--study-muted); font-size: 12px; }
.study-calendar__days { padding-top: 6px; row-gap: 4px; }
.study-calendar__day { position: relative; display: grid; place-items: center; justify-self: center; width: 34px; height: 38px; font-size: 13px; font-weight: 500; color: var(--study-text); border-radius: 50%; }
.study-calendar__day:hover { background: var(--board-gray-100, #f6f6fa); color: var(--study-accent); }
.study-calendar__day.is-outside { color: var(--study-muted); opacity: .65; }
.study-calendar__day.is-selected { background: var(--study-accent); color: #fff; width: 36px; height: 36px; margin-top: 1px; opacity: 1; }
.study-calendar__day.has-record::after { content: ''; position: absolute; bottom: 2px; width: 3px; height: 3px; background: var(--study-accent); border-radius: 50%; }
.study-calendar__day.is-selected::after { background: #fff; }
.study-calendar__day[aria-current="date"]:not(.is-selected) { color: var(--study-accent); font-weight: 700; }
.study-lessons__count { flex-shrink: 0; font-size: 13px; color: var(--study-muted); }
.study-lessons__list { list-style: none; margin: 18px 0 0; padding: 0; max-height: 308px; overflow-y: auto; scrollbar-width: thin; }
.study-lessons__list > li + li { border-top: 1px solid var(--study-border); }
.study-lesson { display: flex; gap: 12px; padding: 15px 0; align-items: center; color: var(--study-text); }
.study-lessons__list > li:first-child .study-lesson { padding-top: 4px; }
.study-lessons__list > li:last-child .study-lesson { padding-bottom: 4px; }
.study-lesson__thumbnail { position: relative; display: grid; place-items: center; width: 64px; height: 68px; flex-shrink: 0; border-radius: 8px; overflow: hidden; color: var(--study-accent); background: var(--board-gray-100, #f5f5fa); font-size: 26px; }
.study-lesson__thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.study-lesson__body { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.study-lesson__heading { display: flex; align-items: flex-start; gap: 6px; }
.study-lesson__heading strong { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.5; font-weight: 600; }
.study-lesson__heading > .bx { font-size: 21px; color: var(--study-accent); }
.study-lesson:hover strong { color: var(--study-accent); }
.study-lesson__category { font-size: 12px; color: var(--study-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.study-lesson__progress { display: flex; align-items: center; gap: 7px; color: var(--study-accent); font-size: 11px; }
.study-lesson__progress progress { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 10px; background: var(--board-gray-100, #f1efff); }
.study-lesson__progress progress::-webkit-progress-bar { background: var(--board-gray-100, #f1efff); border-radius: 10px; }
.study-lesson__progress progress::-webkit-progress-value { background: var(--study-accent); border-radius: 10px; }
.study-lesson__progress progress::-moz-progress-bar { background: var(--study-accent); border-radius: 10px; }
.study-lessons__more { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 18px; font-size: 12px; color: var(--study-muted); }
.study-lessons__more:hover { color: var(--study-accent); }
.study-empty { min-height: 206px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px 8px; }
.study-empty > .bx { font-size: 34px; color: var(--study-muted); opacity: .6; }
.study-empty p { margin: 0; font-size: 13px; line-height: 1.7; }
.study-empty > span { color: var(--study-muted); font-size: 12px; }
.study-empty > .study-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 184px;
    min-height: 44px;
    margin-top: 6px;
    padding: 10px 18px;
    border: 1px solid var(--study-accent);
    border-color: color-mix(in srgb, var(--study-accent) 24%, var(--study-surface));
    border-radius: 9px;
    background: var(--board-gray-100, #f6f3ff);
    background: color-mix(in srgb, var(--study-accent) 8%, var(--study-surface));
    color: var(--study-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}
.study-login-button > .bx { font-size: 20px; }
.study-empty > .study-login-button:hover,
.study-empty > .study-login-button:focus-visible { background: var(--study-accent); border-color: var(--study-accent); color: #fff; }
.study-upload { padding: 24px 18px 18px; border: 1px dashed var(--study-accent); border-radius: 12px; text-align: center; background: var(--study-surface); }
.study-upload__icon { display: block; margin-bottom: 16px; color: var(--study-accent); font-size: 54px; }
.study-upload h2 { font-size: 18px; line-height: 1.5; margin: 0 0 4px; font-weight: 700; }
.study-upload > p { margin: 0 0 20px; color: var(--study-muted); font-size: 13px; line-height: 1.6; }
.study-upload__button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 14px; border-radius: 9px; background: var(--study-accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.study-upload__button::-webkit-details-marker { display: none; }
.study-upload__button:hover { color: #fff; filter: brightness(.95); }
.study-upload__boards { margin-top: 14px; text-align: left; }
.study-upload__boards p { font-size: 12px; color: var(--study-muted); margin: 0 0 8px; }
.study-upload__boards a { display: flex; align-items: center; justify-content: space-between; padding: 9px 6px; color: var(--study-text); font-size: 13px; border-top: 1px solid var(--study-border); }
.study-upload__boards a:hover { color: var(--study-accent); }
.study-sidebar a:focus-visible, .study-sidebar summary:focus-visible { outline: 2px solid var(--study-accent); outline-offset: 3px; }
.study-sidebar[aria-busy="true"] .study-calendar__days { opacity: .5; }

@media (min-width: 861px) {
    .home-dashboard > .study-sidebar { align-self: stretch; }
    .study-sidebar > .study-calendar, .study-sidebar > .study-upload { flex-shrink: 0; }
    .study-sidebar > .study-lessons { display: flex; flex-direction: column; flex: 1; }
    .study-lessons > .study-empty { flex: 1; }
    .study-lessons > .study-lessons__more { margin-top: auto; padding-top: 18px; }
}

@media (max-width: 1279px) {
    .grid-container.home-dashboard { grid-template-columns: minmax(0, 1fr) 290px; }
    .home-dashboard .home-feed-row .uxc_gallery_box > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) and (min-width: 861px) {
    .home-dashboard .home-feed-row .uxc_gallery_box > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .grid-container.home-dashboard { display: flex; gap: 30px; }
    .home-dashboard > .home-feed-row { order: 0; }
    .home-dashboard > .home-wide-row { order: 2; }
    .home-dashboard > .study-sidebar { order: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; align-items: start; }
    .study-upload { grid-column: 1 / -1; }
    .home-dashboard .home-feed-row .uxc_gallery_box > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .home-dashboard > .study-sidebar { display: flex; align-items: stretch; }
    .home-dashboard .home-feed-row .uxc_gallery_box > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .study-calendar__day { width: 38px; height: 40px; }
    .study-calendar__day.is-selected { width: 38px; height: 38px; }
    .study-card { padding: 20px; }
    .study-lesson__heading strong { font-size: 14px; }
}
