/*
 * 커뮤니티 페이지 전용 스타일
 * 참고: pudufu-course community-board 색감
 * 기존 main.css .btn-primary 등과 충돌하지 않도록 .community-board 하위로 스코프
 */

.community-board {
    --community-primary: #1F5AF2;
    --community-primary-hover: #1648D8;
    --community-primary-light: #EAF2FF;
    --community-text-main: #111827;
    --community-text-sub: #6B7280;
    --community-gray-50: #F9FAFB;
    --community-gray-100: #F3F4F6;
    --community-gray-200: #E5E7EB;
    --community-gray-300: #D1D5DB;
    --community-gray-400: #9CA3AF;
    --community-radius-sm: 8px;
    --community-radius-md: 12px;
    --community-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
    --community-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
    --community-sidebar-width: 280px;
    --community-header-offset: 102px;
    max-width: none;
    margin: 0;
    padding: 0 0 2rem;
}

.main-content:has(.community-board__feed) {
    padding-top: 10px;
}

@media (min-width: 1025px) {
    .main-content:has(.community-board__feed) {
        padding-top: 1.5rem;
    }
}

.community-board__layout {
    display: grid;
    grid-template-columns: minmax(0, 800px) var(--community-sidebar-width);
    justify-content: start;
    gap: 1.5rem;
    align-items: start;
}

.community-board__layout:has(.community-board__content--wide) {
    grid-template-columns: minmax(0, 1fr) var(--community-sidebar-width);
}

.community-board__layout:not(:has(.community-board__sidebar)) {
    grid-template-columns: minmax(0, 800px);
}

.community-board__layout:has(.community-board__content--wide):not(:has(.community-board__sidebar)) {
    grid-template-columns: minmax(0, 1fr);
}

.community-board__sidebar {
    position: sticky;
    top: calc(var(--community-header-offset) + 1.5rem);
    padding-left: 0.75rem;
    /* border-left: 1px solid var(--community-gray-200); */
}

.community-board__sidebar-nav {
    background: transparent;
}

.community-board__nav-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
}

.community-board__sidebar-divider {
    height: 0;
    border-top: 1px solid var(--community-gray-200);
    margin: 0.5rem 0;
}

.community-board__nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: var(--community-text-sub);
    border-radius: var(--community-radius-sm);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.community-board__nav-link:hover {
    background-color: var(--community-gray-50);
    color: var(--community-text-main);
}

.community-board__nav-link.is-active {
    background-color: var(--community-primary-light);
    color: var(--community-primary);
    font-weight: 500;
}

.community-board__sidebar-cta {
    margin-top: 1rem;
}

.community-board__sidebar-write {
    display: flex;
    gap: 0.375rem;
    width: 100%;
    text-align: center;
    padding: 0.625rem 1rem;
}

.community-learn {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* 이어보기·과제 진행률 카드 스켈레톤: 행 높이는 실제 카드의 글자 줄 높이에 맞춘다. */
.community-learn--skeleton .community-learn-skeleton__label {
    height: 1.125rem;
}

.community-learn--skeleton .community-learn-skeleton__title {
    height: 1.375rem;
    margin: 0.625rem 0 0.25rem;
}

.community-learn--skeleton .community-learn-skeleton__title .community-skeleton {
    height: 1rem;
}

.community-learn--skeleton .community-learn-skeleton__meta,
.community-learn--skeleton .community-learn-skeleton__sub {
    height: 1.125rem;
}

.community-learn--skeleton .community-learn-skeleton__sub {
    margin-top: 0.5rem;
}

.community-learn--skeleton .community-learn-skeleton__bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
}

.community-learn--skeleton .community-learn__progress,
.community-learn--skeleton .community-learn__row {
    height: 19.5px;
}

.community-learn--skeleton .community-learn-skeleton__steps {
    height: 18px;
    margin-top: 0.75rem;
    border-radius: 4px;
}

.community-learn--skeleton .community-learn-skeleton__btn {
    height: 2.5rem;
    margin-top: 0.875rem;
    border-radius: 10px;
}

.community-learn__card {
    display: block;
    padding: 1rem;
    border: 1px solid var(--community-gray-200);
    border-radius: var(--community-radius-md);
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    color: inherit;
    text-decoration: none;
}

.community-learn__label {
    margin: 0;
    color: var(--community-gray-400);
    font-size: 0.75rem;
    font-weight: 700;
}

.community-learn__title {
    display: -webkit-box;
    margin: 0.625rem 0 0.25rem;
    overflow: hidden;
    color: var(--community-text-main);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.community-learn__meta {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--community-text-sub);
    font-size: 0.75rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.community-learn__progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.community-learn__bar {
    flex: 1;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--community-gray-100);
}

.community-learn__tasks .community-learn__bar {
    margin-top: 0.75rem;
}

.community-learn__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--community-primary);
}

.community-learn__progress strong {
    flex: none;
    color: var(--community-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.community-learn__progress strong.is-zero {
    color: var(--community-gray-400);
}

.community-learn__sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin: 0.5rem 0 0;
    color: var(--community-gray-400);
    font-size: 0.75rem;
}

.community-learn__sub--split {
    justify-content: space-between;
}

.community-learn__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    margin-top: 0.875rem;
    border-radius: 10px;
    background: var(--community-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.community-learn__btn:hover {
    background: var(--community-primary-hover);
    color: #fff;
}

.community-learn__tasks:hover {
    border-color: var(--community-gray-300);
}

.community-learn__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.community-learn__count {
    color: var(--community-text-sub);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}

.community-learn__steps {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    margin-top: 0.75rem;
}

.community-learn__steps span {
    height: 18px;
    border: 1px solid var(--community-gray-200);
    border-radius: 4px;
    background: var(--community-gray-100);
}

.community-learn__steps span.is-done {
    border-color: var(--community-primary);
    background: var(--community-primary);
}

.community-learn__steps span.is-overdue {
    border-color: #f5b5ae;
    background: #fdecec;
}

.community-learn__overdue {
    color: #d92d20;
    font-weight: 700;
}

.community-board__main {
    min-width: 0;
}

.community-board__content {
    width: min(100%, 800px);
}

.community-board__content--wide {
    width: 100%;
}

.community-board .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background-color: var(--community-primary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--community-radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.community-board .btn-primary:hover {
    background-color: var(--community-primary-hover);
    color: white;
}

.community-board .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: white;
    color: var(--community-text-main);
    font-size: 0.875rem;
    border: 1.5px solid var(--community-gray-200);
    border-radius: var(--community-radius-md);
    transition: all 0.2s ease;
}

.community-board .btn-primary--sm {
    padding: 0.3125rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

.community-board .btn-outline--sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    border-width: 1px;
    border-radius: 0.5rem;
}

.community-board .btn-outline:hover {
    border-color: var(--community-primary);
    color: var(--community-primary);
}

.community-board .input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--community-gray-200);
    border-radius: var(--community-radius-sm);
    font-size: 0.875rem;
    color: var(--community-text-main);
    background: white;
}

.community-board .input:focus {
    outline: none;
    border-color: var(--community-primary);
    box-shadow: 0 0 0 3px rgba(31, 90, 242, 0.1);
}

.community-board .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    line-height: 1.4;
}

.community-board .badge-round {
    border-radius: 9999px;
}

.community-board .badge-primary {
    background-color: var(--community-primary-light);
    color: var(--community-primary);
}

.community-board .badge-gray {
    background-color: var(--community-gray-100);
    color: var(--community-text-sub);
}

.community-board .line-clamp-1,
.community-board .line-clamp-2,
.community-board .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-board .line-clamp-1 {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.community-board .line-clamp-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.community-board .line-clamp-3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.search-results {
    background: #fff;
    border: 1px solid var(--community-gray-200);
    border-radius: var(--community-radius-md);
    box-shadow: var(--community-shadow-card);
}

.search-results__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 0;
}

.search-results__head h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.search-results__close {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--community-gray-400);
}

.search-results__tabs {
    display: flex;
    gap: 18px;
    padding: 14px 20px 0;
    border-bottom: 1px solid var(--community-gray-200);
}

.search-results__tab {
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--community-gray-400);
}

.search-results__tab.is-active {
    color: #1F5AF2;
    border-bottom-color: #1F5AF2;
}

.search-results__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-results__list li + li {
    border-top: 1px solid var(--community-gray-200);
}

.search-results__post,
.search-results__lesson {
    display: block;
    padding: 16px 20px;
    color: inherit;
    text-decoration: none;
}

.search-results__lesson {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-results__lesson-body {
    flex: 1;
    min-width: 0;
}

.search-results__meta {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--community-gray-400);
}

.search-results h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.search-results__excerpt,
.search-results__counts {
    margin: 6px 0 0;
    font-size: 13px;
    color: #4B5563;
    line-height: 1.5;
}

.search-results__counts {
    color: var(--community-gray-400);
    font-size: 12px;
}

.search-results mark {
    background: #FEF3C7;
    color: inherit;
    padding: 0 1px;
}

.search-results__thumb {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #111827;
}

.search-results__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-results__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
}

.search-results__play::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 11px;
    border-style: solid;
    border-width: 6px 0 6px 9px;
    border-color: transparent transparent transparent #111827;
}

.search-results__empty {
    margin: 0;
    padding: 40px 20px;
    text-align: center;
    color: var(--community-gray-400);
    font-size: 14px;
}

.search-results__pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px;
}

.char-count {
    margin-top: 4px;
    font-size: 12px;
    color: var(--community-gray-400);
    text-align: right;
}

.char-count.is-over {
    color: #DC2626;
    font-weight: 700;
}

@media (max-width: 768px) {
    .search-results__thumb {
        width: 96px;
        height: 58px;
    }
}

.community-post-card a {
    text-decoration: none;
    color: inherit;
}

.community-reactions-block [hidden],
.community-reactions [hidden] {
    display: none !important;
}

.community-reactions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.community-reactions__item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 9999px;
    border: 1px solid var(--community-gray-200);
    background: white;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--community-text-sub);
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

button.community-reactions__item {
    cursor: pointer;
}

button.community-reactions__item:hover {
    border-color: var(--community-gray-400);
}

.community-reactions__item.is-active,
button.community-reactions__item.is-active:hover {
    border-color: var(--community-primary);
    background: var(--community-primary-light);
    color: var(--community-primary);
}

.community-reactions__emoji {
    font-size: 13px;
    line-height: 1;
}

.community-reactions__add {
    padding: 2px 6px;
    color: var(--community-gray-400);
    font-weight: 700;
}

.community-reactions-block.is-open .community-reactions__add {
    border-color: var(--community-gray-400);
}

.community-reactions__picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 7px;
    border-radius: 8px;
    background: var(--community-gray-100);
}

.community-reactions__option {
    padding: 4px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s;
}

.community-reactions__option:hover {
    background: white;
}

.community-board__filterbar {
    position: sticky;
    top: var(--community-header-offset);
    z-index: 25;
    background: #fff;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--community-gray-100);
}

.community-board__filterrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.community-board__categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.community-board__extra-filters {
    display: contents;
}

.community-board__extra-filters[hidden],
.community-board__filter-toggle[hidden] {
    display: none !important;
}

.community-board__filter-sep {
    align-self: stretch;
    width: 1px;
    margin: 2px 2px;
    background: var(--community-gray-200);
}

.community-board__filter-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 1px dashed var(--community-gray-200);
    border-radius: 9999px;
    background: transparent;
    color: var(--community-text-sub);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.community-board__filter-toggle:hover {
    border-color: var(--community-gray-400);
    color: var(--community-text-main);
}

.community-board__filter-toggle:focus-visible {
    outline: 2px solid var(--community-primary);
    outline-offset: 2px;
}

.community-board__filter-meta {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: var(--community-text-sub);
}

.community-board__result-count {
    font-weight: 700;
    color: var(--community-primary);
    font-variant-numeric: tabular-nums;
}

.community-board__sort {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    padding: 2px;
    background: var(--community-gray-100);
    border-radius: 9999px;
}

.community-board a.community-board__sort-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.625rem;
    border-radius: 9999px;
    background: transparent;
    color: var(--community-text-sub);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    text-decoration: none;
}

.community-board a.community-board__sort-btn.is-active {
    background: #fff;
    color: var(--community-primary);
    box-shadow: var(--community-shadow-card);
}

.community-board a.community-board__category-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--community-gray-200);
    border-radius: 9999px;
    background: #fff;
    color: var(--community-text-sub);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.community-board a.community-board__category-tab:hover {
    border-color: var(--community-primary);
    background: var(--community-primary-light);
    color: var(--community-primary);
}

.community-board a.community-board__category-tab.is-active,
.community-board a.community-board__category-tab.is-active:hover {
    border-color: var(--community-primary);
    background: var(--community-primary);
    color: #fff;
    font-weight: 700;
}

.community-board__feed {
    padding-bottom: 1rem;
}

.community-feed__more[hidden],
.community-feed__loading[hidden],
.js-feed-sentinel[hidden] {
    display: none;
}

.community-feed__more {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--community-gray-200);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--community-text-main);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.js-feed-prev.community-feed__more {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.community-feed__more:hover {
    border-color: var(--community-primary);
    color: var(--community-primary);
}

.community-feed__more:disabled {
    cursor: wait;
    opacity: 0.6;
}

.community-feed__loading {
    display: flex;
    justify-content: center;
    padding: 1.25rem 0;
}

.community-feed__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--community-gray-200);
    border-top-color: var(--community-text-sub);
    border-radius: 50%;
    animation: community-feed-spin 0.8s linear infinite;
}

@keyframes community-feed-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .community-feed__spinner {
        animation-duration: 2.4s;
    }
}

.js-feed {
    overflow-anchor: none;
}

.js-feed-page + .js-feed-page {
    margin-top: 0.75rem;
}

.js-feed-sentinel {
    height: 1px;
}

.community-board__composer-card {
    box-sizing: border-box;
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid var(--community-gray-200);
    border-radius: var(--community-radius-md);
    box-shadow: none;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.community-board__composer-card:hover {
    border-color: var(--community-gray-300);
    color: inherit;
}

.community-board__composer-avatar,
.community-board__composer-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.community-board__composer-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: var(--community-gray-100);
    color: var(--community-gray-400);
    font-size: 0.875rem;
    font-weight: 600;
}

.community-board__composer-prompt {
    min-width: 0;
    padding: 0.625rem 0.875rem;
    background: var(--community-gray-100);
    border-radius: var(--community-radius-sm);
    color: var(--community-text-sub);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-board__composer-submit {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--community-radius-sm);
    background: var(--community-primary);
    color: white;
}

.community-composer {
    box-sizing: border-box;
    background: white;
    border: 1px solid var(--community-gray-200);
    border-radius: var(--community-radius-md);
    box-shadow: none;
}

.community-board__composer-dock {
    position: static;
    width: auto;
}

.community-board__composer-dock .community-composer,
.community-board__composer-dock .community-board__composer-card {
    position: static;
    margin-top: 0;
    box-shadow: none;
}

.community-front-notice__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.community-front-notice__head h2 {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.community-front-notice__body {
    line-height: 1.75;
    color: var(--community-text-sub);
    overflow-wrap: anywhere;
}

.community-front-notice__body p {
    margin: 0 0 0.5rem;
}

.community-front-notice__body p:last-child {
    margin-bottom: 0;
}

.community-front-notice__body ul,
.community-front-notice__body ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.community-front-notice__body ul {
    list-style: disc;
}

.community-front-notice__body ol {
    list-style: decimal;
}

.community-front-notice__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.community-front-notice__edit,
.community-front-notice__close {
    padding: 0.25rem;
    border: 0;
    background: none;
    color: var(--community-text-sub);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
}

.community-front-notice__edit:hover,
.community-front-notice__close:hover {
    color: var(--community-text-main);
    text-decoration: underline;
}

.community-front-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.community-front-notice-modal[hidden] {
    display: none;
}

.community-front-notice-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.community-front-notice-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(360px, 100%);
    padding: 1.5rem 1.25rem 1rem;
    background: #fff;
    border-radius: var(--community-radius-md);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
    text-align: center;
}

.community-front-notice-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--community-text-main);
}

.community-front-notice-modal__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.community-front-notice-modal__options .btn-outline {
    width: 100%;
    justify-content: center;
}

.community-front-notice-modal__cancel {
    color: var(--community-text-sub);
}

.community-post-modal {
    position: fixed;
    inset: 0;
    z-index: 3400;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0 !important;
    padding: 1.5rem 1rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.45);
}

.community-post-modal[hidden] {
    display: none;
}

.community-post-modal__backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

/* 세로 가운데 정렬이면 스켈레톤 → 본문으로 높이가 바뀔 때 패널 전체가 위아래로 밀린다.
   기본은 위에 고정하고, 스켈레톤과 높이가 맞을 글(.is-centered)만 가운데 둔다. */
.community-post-modal__panel {
    position: relative;
    width: min(720px, 100%);
    /* --post-modal-pin: 짧은 글 스켈레톤의 가운데 위치를 유지하는 margin-top.
       이 값을 빼지 않으면 긴 본문이 화면 아래로 밀려 댓글 입력이 잘린다. */
    max-height: calc(100dvh - 3rem - var(--post-modal-pin, 0px));
    margin: 0 auto;
    display: flex;
}

.community-post-modal.is-centered .community-post-modal__panel {
    margin: auto;
}

.community-post-modal__panel:focus {
    outline: none;
}

.community-post-modal__sheet,
.community-post-modal__panel > .community-post-modal__error {
    background: #fff;
    border: 1px solid var(--community-gray-200);
    border-radius: 0.75rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.community-post-modal__sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: inherit;
}

.community-post-modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.community-post-modal__panel > .community-post-modal__error {
    padding: 1.25rem;
}

/* 시트(흰 카드)는 스켈레톤 때부터 그대로 두고 안의 내용만 페이드인한다. 시트까지 투명해지면 모달이 닫혔다 열린 것처럼 보인다. */
.community-post-modal__sheet.is-entering > * {
    animation: community-post-modal-in 0.18s ease-out both;
}

@keyframes community-post-modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 스켈레톤: 행 높이는 실제 글의 line-height 와 같고, 회색 막대만 그 안에서 가운데에 둔다. */
.community-skeleton {
    display: block;
    flex-shrink: 0;
    height: 0.75rem;
    border-radius: 6px;
    background: linear-gradient(90deg, #ECEEF1 25%, #F7F8FA 37%, #ECEEF1 63%);
    background-size: 400% 100%;
    animation: community-skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes community-skeleton-shimmer {
    from { background-position: 100% 50%; }
    to { background-position: 0 50%; }
}

.community-skeleton-row {
    display: flex;
    align-items: center;
    height: 1.75rem;
}

.community-skeleton-row--title .community-skeleton {
    height: 1.125rem;
}

.community-skeleton-row--heading,
.community-skeleton-row--sm,
.community-skeleton-body .community-skeleton-row {
    height: 1.25rem;
}

.community-skeleton-row--xs {
    height: 1rem;
}

.community-skeleton-row--xs .community-skeleton {
    height: 0.625rem;
}

.community-skeleton--avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
}

.community-skeleton--name {
    width: 4.5rem;
}

.community-skeleton--meta {
    width: 3rem;
    height: 0.625rem;
}

.community-skeleton--chip {
    width: 2.75rem;
    height: 24px;
    border-radius: 9999px;
}

.community-skeleton--chip-sm {
    width: 1.75rem;
}

.community-skeleton--stat {
    width: 2.25rem;
    height: 1rem;
}

.community-skeleton--compose {
    flex: 1;
    min-width: 0;
    height: 2.5rem;
    border-radius: 0.75rem;
}

.community-skeleton-gallery {
    display: flex;
    gap: 10px;
    overflow: hidden;
}

.community-skeleton--image {
    width: 268px;
    height: 190px;
    border-radius: 12px;
}

.community-skeleton-gallery--single .community-skeleton--image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 480px;
}

.community-skeleton-gallery--single .community-skeleton--image + .community-skeleton--image {
    display: none;
}

.community-skeleton--link {
    height: 82px;
    margin-top: 1rem;
    border-radius: 12px;
}

.community-skeleton--link-text {
    height: 63px;
}

.community-skeleton-gallery[hidden],
.community-skeleton--link[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .community-skeleton {
        animation: none;
        background: #ECEEF1;
    }

    .community-post-modal__sheet.is-entering > * {
        animation: none;
    }
}

.community-post-modal__head {
    flex: 0 0 auto;
    padding: 1.5rem 1.5rem 0.75rem;
    border-bottom: 1px solid transparent;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.community-post-modal__sheet.is-scrolled .community-post-modal__head {
    border-bottom-color: var(--community-gray-200);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.community-post-modal__post {
    padding: 0 1.5rem 1.5rem;
}

.community-post-modal__comments {
    padding: 1.5rem;
    border-top: 1px solid var(--community-gray-200);
}

.community-post-modal__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    align-self: flex-start;
}

.community-post-modal__action {
    padding: 0.25rem;
    border: 0;
    background: none;
    color: var(--community-text-sub);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
}

.community-post-modal__action:hover {
    color: var(--community-text-main);
    text-decoration: underline;
}

.community-post-more {
    position: relative;
    display: flex;
    flex-shrink: 0;
}

.community-post-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: none;
    color: var(--community-text-sub);
    cursor: pointer;
}

.community-post-more__btn:hover,
.community-post-more__btn[aria-expanded="true"] {
    background: var(--community-gray-100);
    color: var(--community-text-main);
}

.community-post-more__menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    z-index: 20;
    min-width: 7.5rem;
    padding: 0.375rem;
    border: 1px solid var(--community-gray-200);
    border-radius: 0.625rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.community-post-more__menu[hidden] {
    display: none;
}

.community-post-more__menu form {
    margin: 0;
}

.community-post-more__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 0;
    border-radius: 0.375rem;
    background: none;
    color: var(--community-text-main);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.community-post-more__item:hover {
    background: var(--community-gray-100);
}

.community-post-more__item--danger {
    color: #dc2626;
}

.community-post-more__item--danger:hover {
    background: #fef2f2;
}

.community-post-modal__body {
    line-height: 2;
    overflow-wrap: anywhere;
}

.community-post-modal__body p {
    margin: 0;
}

.community-post-modal__body ul,
.community-post-modal__body ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.community-post-modal__body ul {
    list-style: disc;
}

.community-post-modal__body ol {
    list-style: decimal;
}

.community-post-modal__link.community-post-card__att--link {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin-top: 1rem;
    border-color: var(--community-gray-200);
}

.community-post-modal__link .community-post-card__link-thumb {
    flex: 0 0 140px;
    border-bottom: 0;
    border-right: 1px solid var(--community-gray-100);
}

.community-post-modal__link .community-post-card__link-thumb img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 80px;
}

.community-post-modal__link .community-post-card__link-body {
    flex: 1;
    min-width: 0;
    align-content: center;
}

.community-post-modal__compose {
    flex: 0 0 auto;
    padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--community-gray-200);
    background: #fff;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.06);
}

.community-post-modal__compose-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.community-post-modal__compose-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: var(--community-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.community-post-modal__compose-box {
    position: relative;
    flex: 1;
    min-width: 0;
}

.community-post-modal__compose-input {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0.5rem 4rem 0.5rem 0.875rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    background: var(--community-gray-100);
    color: var(--community-text-main);
    font-size: 0.875rem;
    line-height: 1.5;
    resize: none;
}

.community-post-modal__compose-input:focus {
    outline: none;
    border-color: var(--community-primary);
    background: #fff;
}

.community-post-modal__compose-submit {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    padding: 0.375rem 0.75rem;
    border: 0;
    border-radius: 9999px;
    background: var(--community-primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.community-post-modal__compose-submit:hover {
    background: var(--community-primary-hover);
}

.community-post-modal__error {
    margin: 0 0 0.75rem;
    color: #dc2626;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .community-post-modal {
        padding: 0.75rem 0.5rem;
    }

    .community-post-modal__panel {
        max-height: calc(100dvh - 1.5rem - var(--post-modal-pin, 0px));
    }

    .community-post-modal__head {
        padding: 1rem 1rem 0.75rem;
    }

    .community-post-modal__post {
        padding: 0 1rem 1rem;
    }

    .community-post-modal__comments {
        padding: 1rem;
    }

    .community-post-modal__compose {
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .community-post-modal__body {
        font-size: 12px;
    }

    .community-skeleton--image {
        width: 78%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .community-post-modal__link .community-post-card__link-thumb {
        flex-basis: 96px;
    }
}

.community-compose-fab {
    display: none;
}

@media (max-width: 1024px) {
    .community-compose-fab {
        position: fixed;
        right: 16px;
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        z-index: 1100;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--community-primary);
        color: #fff;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
        cursor: pointer;
    }
}

.community-composer__backdrop {
    display: none;
}

.community-composer.is-open .community-composer__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 3100;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.community-composer.is-open .community-composer__form {
    position: fixed;
    z-index: 3101;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(640px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid var(--community-gray-200);
    border-radius: var(--community-radius-md);
    border-top: 0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.community-composer__trigger {
    box-sizing: border-box;
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease;
}

.community-composer__trigger:hover {
    border-color: var(--community-gray-300);
}

.community-composer__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--community-gray-100);
}

.community-composer__author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.community-composer__author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--community-primary-light);
    color: var(--community-primary);
    font-size: 0.8125rem;
    font-weight: 700;
}

.community-composer__author-text {
    margin: 0;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--community-text-sub);
    overflow-wrap: anywhere;
}

.community-composer__author-text strong {
    color: var(--community-text-main);
    font-weight: 700;
}

.community-comments {
    scroll-margin-top: calc(var(--community-header-offset) + 1rem);
}

.community-comments__more {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    border: 0;
    background: none;
    color: var(--community-gray-600, #4b5563);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.community-comments__more:hover {
    color: var(--color-primary);
}

.community-comments__more:disabled {
    cursor: wait;
    opacity: 0.6;
}

.community-composer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--community-gray-400);
    cursor: pointer;
}

.community-composer__close:hover {
    background: var(--community-gray-100);
    color: var(--community-text-main);
}

.community-composer__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.community-composer__fields > .community-category-picker {
    flex: 1 1 100%;
}

.community-category-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.community-category-picker__item {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.community-category-picker__input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.community-category-picker__label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 14px;
    border-radius: 9999px;
    border: 1px solid var(--community-gray-200);
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: var(--community-text-sub);
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.community-category-picker__item:hover .community-category-picker__label {
    border-color: var(--community-gray-400);
}

.community-category-picker__input:checked + .community-category-picker__label {
    border-color: var(--community-primary);
    background: var(--community-primary-light);
    color: var(--community-primary);
}

.community-category-picker__input:focus-visible + .community-category-picker__label {
    outline: 2px solid var(--community-primary);
    outline-offset: 2px;
}

.community-category-picker__item.is-disabled {
    cursor: not-allowed;
}

.community-category-picker__item.is-disabled .community-category-picker__label {
    opacity: 0.45;
}

.community-feedback-hint {
    margin: 0.5rem 0 0;
    color: var(--community-text-sub);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* 내 피드백권 */
.my-feedback {
    --mf-blue: #2F6BF2;
    --mf-blue-soft: #EEF4FF;
    --mf-line: #E8EEF8;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
}

.my-feedback__hero {
    position: relative;
    padding: 0.5rem 0 0.25rem;
    min-height: 150px;
}

.my-feedback__hero > :not(.my-feedback__deco) {
    position: relative;
    z-index: 1;
}

.my-feedback__deco {
    position: absolute;
    top: -1.5rem;
    right: -1rem;
    width: 260px;
    height: 200px;
    pointer-events: none;
}

.my-feedback__deco-blob {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 280px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(closest-side, #E3EDFF, rgba(227, 237, 255, 0));
}

.my-feedback__deco-doc {
    position: absolute;
    right: 40px;
    top: 30px;
    width: 104px;
    height: 128px;
    padding: 22px 16px;
    border-radius: 16px;
    background: linear-gradient(160deg, #FFFFFF, #EEF4FF);
    box-shadow: 0 18px 40px rgba(47, 107, 242, 0.12);
    transform: rotate(-8deg);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-feedback__deco-doc i {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: #D6E3FB;
}

.my-feedback__deco-doc i:nth-child(2) { width: 80%; }
.my-feedback__deco-doc i:nth-child(3) { width: 60%; }

.my-feedback__deco-chat {
    position: absolute;
    right: 0;
    top: 92px;
    width: 76px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7FB2FF, #2F6BF2);
    box-shadow: 0 14px 28px rgba(47, 107, 242, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transform: rotate(-6deg);
}

.my-feedback__deco-chat::after {
    content: '';
    position: absolute;
    left: 12px;
    bottom: -9px;
    border-width: 10px 8px 0 0;
    border-style: solid;
    border-color: #4F86F7 transparent transparent transparent;
}

.my-feedback__deco-chat i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.my-feedback__deco-spark {
    position: absolute;
    right: 18px;
    top: 14px;
    width: 30px;
    height: 30px;
}

.my-feedback__deco-spark i {
    position: absolute;
    width: 4px;
    height: 12px;
    border-radius: 2px;
    background: #7FB2FF;
}

.my-feedback__deco-spark i:nth-child(1) { left: 0; top: 6px; }
.my-feedback__deco-spark i:nth-child(2) { left: 12px; top: 0; transform: rotate(40deg); }
.my-feedback__deco-spark i:nth-child(3) { left: 20px; top: 12px; transform: rotate(80deg); }

.my-feedback__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--community-text-sub);
}

.my-feedback__back:hover {
    color: var(--community-primary);
}

.my-feedback__title {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--community-text-main);
}

.my-feedback__desc {
    max-width: 560px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--community-text-sub);
}

.my-feedback__card {
    background: #fff;
    border: 1px solid var(--mf-line);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(31, 61, 130, 0.06);
}

.my-feedback__card--flush {
    padding: 0;
    overflow: hidden;
}

.my-feedback__empty {
    color: var(--community-text-sub);
    font-size: 0.9375rem;
    text-align: center;
    padding: 2rem 1.5rem;
}

.my-feedback__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.5rem;
}

.my-feedback__thumb {
    width: 128px;
    height: 128px;
    border-radius: 16px;
    background: linear-gradient(160deg, #EAF2FF, #DCE8FF);
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-feedback__course {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--community-text-main);
}

.my-feedback__verdict {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.875rem 1.125rem;
    border-radius: 12px;
}

.my-feedback__verdict-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.my-feedback__verdict-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
}

.my-feedback__verdict-desc {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0.85;
}

.my-feedback__verdict--ok { background: #ECF8F0; color: #166534; }
.my-feedback__verdict--ok .my-feedback__verdict-icon { color: #16A34A; }
.my-feedback__verdict--wait { background: #FFF7E6; color: #92400E; }
.my-feedback__verdict--wait .my-feedback__verdict-icon { color: #D97706; }
.my-feedback__verdict--off { background: var(--community-gray-100); color: var(--community-text-sub); }
.my-feedback__verdict--off .my-feedback__verdict-icon { color: var(--community-gray-400); }

.my-feedback__status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.my-feedback__status--ok { background: #E8F8EE; color: #15803D; }
.my-feedback__status--blocked { background: #FFF4E5; color: #B45309; }
.my-feedback__status--revoked { background: var(--community-gray-100); color: var(--community-text-sub); }

.my-feedback__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.875rem;
    margin-top: 1.5rem;
}

.my-feedback__stat {
    border: 1px solid var(--mf-line);
    border-radius: 14px;
    padding: 1.125rem;
    background: #fff;
}

.my-feedback__stat-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "icon title value"
        "icon desc desc";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.125rem;
}

.my-feedback__stat-icon { grid-area: icon; align-self: start; }
.my-feedback__stat-title { grid-area: title; word-break: keep-all; }
.my-feedback__stat-value { grid-area: value; }
.my-feedback__stat-desc { grid-area: desc; }

.my-feedback__stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mf-blue-soft);
    color: var(--mf-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.my-feedback__stat-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--community-text-main);
}

.my-feedback__stat-desc {
    font-size: 0.8125rem;
    color: var(--community-text-sub);
}

.my-feedback__stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--community-gray-400);
    white-space: nowrap;
}

.my-feedback__stat-value strong {
    color: var(--mf-blue);
    font-weight: 700;
}

.my-feedback__progress {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.125rem;
}

.my-feedback__percent {
    flex-shrink: 0;
    min-width: 2.5rem;
    text-align: right;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--community-text-sub);
}

.my-feedback__bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #EEF1F6;
    overflow: hidden;
}

.my-feedback__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7FB2FF, var(--mf-blue));
    transition: width 0.4s ease;
}

.my-feedback__bar.is-full span {
    background: linear-gradient(90deg, #FDBA74, #F59E0B);
}

.my-feedback__section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.my-feedback__section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--community-text-main);
}

.my-feedback__count {
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    background: var(--mf-blue-soft);
    color: var(--mf-blue);
    font-size: 0.8125rem;
    font-weight: 700;
}

.my-feedback__history-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    color: inherit;
    transition: background-color 0.15s ease;
}

.my-feedback__history-row + .my-feedback__history-row {
    border-top: 1px solid var(--mf-line);
}

.my-feedback__history-row.is-link:hover {
    background: #F7FAFF;
}

.my-feedback__history-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.my-feedback__history-icon--answered { background: #E8F8EE; color: #16A34A; }
.my-feedback__history-icon--pending { background: var(--mf-blue-soft); color: var(--mf-blue); }
.my-feedback__history-icon--refunded { background: var(--community-gray-100); color: var(--community-gray-400); }

.my-feedback__history-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.my-feedback__history-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    color: var(--community-text-main);
}

.my-feedback__history-row.is-link:hover .my-feedback__history-title {
    color: var(--mf-blue);
}

.my-feedback__history-title.is-deleted {
    color: var(--community-text-sub);
    font-weight: 500;
}

.my-feedback__history-meta {
    font-size: 0.8125rem;
    color: var(--community-text-sub);
}

.my-feedback__history-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.my-feedback__history-status svg {
    flex-shrink: 0;
}

.my-feedback__history-status--answered { background: #E8F8EE; color: #15803D; }
.my-feedback__history-status--pending { background: #FFF4E5; color: #B45309; }
.my-feedback__history-status--refunded { background: var(--community-gray-100); color: var(--community-text-sub); }

.my-feedback__history-arrow {
    flex-shrink: 0;
    color: var(--community-gray-400);
}

@media (max-width: 767px) {
    .my-feedback__deco {
        width: 150px;
        height: 140px;
        right: 0;
        opacity: 0.35;
    }
    .my-feedback__deco-blob { right: 0; width: 160px; height: 160px; }
    .my-feedback__deco-doc { width: 72px; height: 92px; right: 30px; padding: 14px 10px; gap: 7px; }
    .my-feedback__deco-chat { width: 54px; height: 40px; top: 70px; }
    .my-feedback__title { font-size: 1.5rem; }
    .my-feedback__desc { font-size: 0.875rem; }
    .my-feedback__card { padding: 1.25rem; border-radius: 16px; }
    .my-feedback__head {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb status"
            "info info";
        gap: 0.875rem;
        text-align: left;
    }
    .my-feedback__thumb { grid-area: thumb; }
    .my-feedback__info { grid-area: info; }
    .my-feedback__thumb { width: 88px; height: 88px; border-radius: 14px; }
    .my-feedback__thumb svg { width: 72px; height: 72px; }
    .my-feedback__back { font-size: 0.875rem; }
    .my-feedback__course { font-size: 1.0625rem; }
    .my-feedback__status { grid-area: status; font-size: 0.75rem; padding: 0.3125rem 0.625rem; }
    .my-feedback__verdict { gap: 0.625rem; padding: 0.75rem 0.875rem; }
    .my-feedback__verdict-icon { width: 26px; height: 26px; }
    .my-feedback__verdict-icon svg { width: 14px; height: 14px; }
    .my-feedback__verdict-title { font-size: 0.875rem; }
    .my-feedback__verdict-desc { font-size: 0.75rem; }
    .my-feedback__stat { padding: 1rem 1.125rem; }
    .my-feedback__stat-top {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "icon icon"
            "title value"
            "desc desc";
        row-gap: 0.25rem;
    }
    .my-feedback__stat-icon { margin-bottom: 0.5rem; }
    .my-feedback__stat-title { font-size: 1rem; }
    .my-feedback__stat-desc { font-size: 0.8125rem; }
    .my-feedback__stat-value { font-size: 1.125rem; }
    .my-feedback__card--flush { padding: 0; }
    .my-feedback__section-title { font-size: 1.125rem; }
    .my-feedback__count { font-size: 0.75rem; }
    .my-feedback__history-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "icon main arrow"
            "icon status arrow";
        column-gap: 0.875rem;
        row-gap: 0.5rem;
        padding: 1rem 1.25rem;
    }
    .my-feedback__history-icon { grid-area: icon; align-self: start; width: 36px; height: 36px; }
    .my-feedback__history-main { grid-area: main; }
    .my-feedback__history-status { grid-area: status; justify-self: start; font-size: 0.75rem; padding: 0.25rem 0.625rem; }
    .my-feedback__history-arrow { grid-area: arrow; }
    .my-feedback__history-title { font-size: 0.9375rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .my-feedback__history-meta { font-size: 0.8125rem; }
}

.community-feedback-badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.community-feedback-badge__icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.community-feedback-badge--pending {
    background: #FEF3C7;
    color: #92400E;
}

.community-feedback-badge--answered {
    background: #DCFCE7;
    color: #166534;
}

.community-feedback-badge--refunded {
    background: var(--community-gray-100);
    color: var(--community-text-sub);
}

.community-comment__admin {
    display: inline-flex;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 9999px;
    background: #DCFCE7;
    color: #166534;
    font-size: 10px;
    font-weight: 700;
    vertical-align: 1px;
}

.community-comment__editor {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.community-comment__editor img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.community-comment__editor :is(h2, h3, h4) {
    margin: 0.5rem 0 0.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.community-comment__editor h2 { font-size: 1.0625rem; }
.community-comment__editor h3 { font-size: 1rem; }
.community-comment__editor h4 { font-size: 0.9375rem; }

.community-comment__editor p + p,
.community-comment__editor :is(ul, ol, blockquote) {
    margin-top: 0.375rem;
}

.community-comment__editor ul { list-style: disc; padding-left: 1.25rem; }
.community-comment__editor ol { list-style: decimal; padding-left: 1.25rem; }
.community-comment__editor a,
.community-comments .js-comment-text a {
    color: var(--community-primary);
    text-decoration: underline;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.community-composer__fields > #composerAssignmentField {
    flex: 1 1 12rem;
    min-width: 0;
}

@media (max-width: 767px) {
    .community-composer .community-category-picker {
        flex-wrap: nowrap;
        gap: 5px;
        margin: 0 -1.25rem;
        padding: 3px 1.25rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .community-composer .community-category-picker::-webkit-scrollbar {
        display: none;
    }

    .community-composer .community-category-picker.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    .community-composer .community-category-picker__item {
        flex-shrink: 0;
    }

    .community-composer .community-category-picker__label {
        min-height: 26px;
        padding: 2px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
}

.community-composer__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.community-post-card__body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.community-post-card__text {
    display: block;
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.community-post-card__text .community-post-card__excerpt {
    line-height: 2;
}

.community-post-card__excerpt {
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    cursor: pointer;
}

.community-post-card__excerpt a,
.community-board .tinymce-content a[href^="http"] {
    color: var(--community-primary);
    text-decoration: underline;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.community-post-card__excerpt--assignment {
    display: block;
    white-space: normal;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: 11rem;
    padding-top: 14px;
}

.community-post-card__text .community-post-card__excerpt--assignment {
    line-height: 1.55;
}

.community-post-card__qa + .community-post-card__qa {
    margin-top: 22px;
}

.community-post-card__question,
.community-post-card__answer {
    margin: 0;
}

.community-post-card__question {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: #6B7280;
}

.community-post-card__answer {
    display: block;
    line-height: 1.65;
    white-space: pre-line;
}

.community-post-card__text.is-expanded .community-post-card__excerpt {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.community-post-card__text.is-expanded .community-post-card__excerpt--assignment {
    max-height: none;
}

.community-post-card__more {
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
}

.community-post-card__more:hover {
    color: #1F5AF2;
}

.community-post-card__more[hidden] {
    display: none;
}

.community-post-card__att {
    flex: 0 0 auto;
    width: 208px;
    border: 1px solid var(--community-gray-100);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.community-post-card__att--image {
    position: relative;
    display: block;
    background: var(--community-gray-100);
}

.community-post-card__att--image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.community-post-card__att-count {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(17, 24, 39, 0.62);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.community-post-card__att--link {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.community-post-card__att--link:hover {
    background: #f9fafb;
}

.community-post-card__link-thumb {
    display: block;
    background: var(--community-gray-100);
    border-bottom: 1px solid var(--community-gray-100);
}

.community-post-card__link-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.community-post-card__link-body {
    display: grid;
    gap: 3px;
    padding: 11px 13px;
}

.community-post-card__link-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 600;
    color: var(--community-text-main);
}

.community-post-card__link-url {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
    color: var(--community-primary);
}

.community-post-card__att--link:hover .community-post-card__link-url {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .community-post-card__body {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .community-post-card__text {
        flex: 0 0 auto;
    }

    .community-post-card__text .community-post-card__excerpt {
        font-size: 12px;
    }

    .community-post-card__att {
        width: 100%;
    }
}

.community-attach {
    margin-top: 8px;
}

.community-attach__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.community-attach__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid var(--community-gray-200);
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: var(--community-text-sub);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.community-attach__button:hover {
    border-color: var(--community-gray-400);
    color: var(--community-text-main);
}

.community-attach__button:focus-visible {
    outline: 2px solid var(--community-primary);
    outline-offset: 2px;
}

.community-attach__hint {
    font-size: 12px;
    color: var(--community-gray-400);
}

.community-attach.is-uploading .community-attach__hint {
    color: var(--community-primary);
}

.community-attach__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.js-comment [hidden],
.community-attach__list[hidden] {
    display: none !important;
}

.community-attach__item {
    position: relative;
    width: 72px;
    height: 72px;
    border: 1px solid var(--community-gray-200);
    border-radius: 8px;
    overflow: hidden;
    background: var(--community-gray-100);
}

.community-attach__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.community-attach__item.is-loading img {
    opacity: 0.45;
}

.community-attach__item.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--community-gray-200);
    border-top-color: var(--community-primary);
    border-radius: 50%;
    animation: community-attach-spin 0.8s linear infinite;
}

@keyframes community-attach-spin {
    to { transform: rotate(360deg); }
}

.community-attach__remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.65);
    color: white;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}

.community-board .tinymce-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.75rem 0;
}

.community-board .tinymce-content iframe {
    max-width: 100%;
}

[data-assignment-hide][hidden],
.assignment-qa[hidden],
.assignment-qa-attach[hidden] {
    display: none !important;
}

.community-composer__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assignment-done {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.8125rem;
    font-weight: 600;
}

.assignment-done::before {
    content: '\2713';
    font-weight: 700;
}

.assignment-done[hidden] {
    display: none;
}

.assignment-qa {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #DBE7FF;
    border-radius: 12px;
    background: #F2F7FF;
}

.assignment-qa__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
    white-space: pre-line;
}

.assignment-qa__no {
    color: #1F5AF2;
}

.assignment-qa__required {
    margin-left: 4px;
    color: #EF4444;
}

.assignment-qa__optional {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
}

.assignment-qa__input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    color: #111827;
    resize: vertical;
}

.assignment-qa__input::placeholder {
    color: #9CA3AF;
}

.assignment-qa__input:focus {
    outline: none;
    border-color: #1F5AF2;
    box-shadow: 0 0 0 3px rgba(31, 90, 242, 0.12);
}

.assignment-answers {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 18px;
    list-style: none;
    border: 1px solid #DBE7FF;
    border-radius: 12px;
    background: #F2F7FF;
}

.assignment-answers__question {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
    white-space: pre-line;
}

.assignment-answers__question span {
    color: #1F5AF2;
}

.assignment-answers__answer {
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
    white-space: pre-line;
    word-break: break-word;
}

.community-gallery {
    position: relative;
}

.community-gallery__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.community-gallery__track::-webkit-scrollbar {
    display: none;
}

.community-gallery__item {
    flex: 0 0 auto;
    width: 268px;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--community-gray-100);
    scroll-snap-align: start;
}

.community-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-gallery--single .community-gallery__item {
    width: auto;
    max-width: 100%;
    height: auto;
    background: none;
}

.community-gallery--single .community-gallery__item img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
}

.community-gallery__count {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 9px;
    border-radius: 9999px;
    background: rgba(17, 24, 39, 0.62);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    pointer-events: none;
}

.community-gallery__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--community-text-main);
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.18);
    transform: translateY(-50%);
    cursor: pointer;
}

.community-gallery__nav[hidden] {
    display: none !important;
}

.community-gallery__nav:hover {
    background: #fff;
}

.community-gallery__nav:focus-visible {
    outline: 2px solid var(--community-primary);
    outline-offset: 2px;
}

.community-gallery__nav--prev {
    left: 8px;
}

.community-gallery__nav--next {
    right: 8px;
}

@media (max-width: 640px) {
    .community-gallery__item {
        width: 78%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .community-gallery__nav {
        width: 28px;
        height: 28px;
    }
}

.community-gallery__item {
    cursor: zoom-in;
}

.community-viewer-open,
.community-viewer-open body {
    overflow: hidden;
}

.community-viewer {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: grid;
    place-items: center;
    padding: 48px 56px;
    background: rgba(17, 24, 39, 0.92);
}

.community-viewer[hidden] {
    display: none !important;
}

.community-viewer__stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.community-viewer__stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    border-radius: 8px;
    user-select: none;
}

.community-viewer__close,
.community-viewer__nav {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    transition: background-color 0.15s ease;
}

.community-viewer__close:hover,
.community-viewer__nav:hover {
    background: rgba(255, 255, 255, 0.26);
}

.community-viewer__close:focus-visible,
.community-viewer__nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.community-viewer__close {
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
}

.community-viewer__count {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.community-viewer__nav {
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
}

.community-viewer__nav[hidden] {
    display: none !important;
}

.community-viewer__nav--prev {
    left: 12px;
}

.community-viewer__nav--next {
    right: 12px;
}

@media (max-width: 640px) {
    .community-viewer {
        padding: 44px 12px;
    }
}

@media (max-width: 1024px) {
    .community-board {
        --community-header-offset: 97px;
        margin-top: 0;
        padding: 0 0 1.5rem;
    }

    .community-board__layout {
        display: block;
    }

    .community-board__sidebar {
        display: none;
    }

    .community-board__content {
        width: 100%;
    }

    .community-board__filterbar {
        z-index: 30;
    }

    .community-board__composer-card {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 767px) {
    .community-composer__trigger {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .community-composer__trigger .community-board__composer-avatar,
    .community-composer__trigger .community-board__composer-submit {
        width: 2rem;
        height: 2rem;
    }

    .community-composer__trigger .community-board__composer-avatar {
        font-size: 0.75rem;
    }

    .community-composer__trigger .community-board__composer-prompt {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }

    .community-board__filterbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        row-gap: 0.5rem;
    }

    .community-board__filterrow {
        display: contents;
    }

    .community-board__categories {
        grid-column: 1 / -1;
        grid-row: 1;
        flex-wrap: nowrap;
        gap: 0.375rem;
        margin: 0 -1rem;
        padding: 2px 1rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .community-board__categories::-webkit-scrollbar {
        display: none;
    }

    .community-board__categories > *,
    .community-board__extra-filters > * {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .community-board__categories.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    .community-board__filter-meta {
        grid-column: 1;
        grid-row: 2;
        margin-top: 0;
    }

    .community-board__sort {
        grid-column: 2;
        grid-row: 2;
    }
}
