/* ===== Codemaru Family — family.css ===== */

/* ── 기본 리셋 & 폰트 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --fa-primary: #f97316;
    --fa-primary-light: #fed7aa;
    --fa-bg: #fffdf8;
    --fa-surface: #ffffff;
    --fa-border: #e5e7eb;
    --fa-text: #1f2937;
    --fa-text-muted: #6b7280;
    --fa-radius: 12px;
    --fa-shadow: 0 2px 12px rgba(0,0,0,.08);
    --fa-font: 'Noto Sans KR', sans-serif;
}

/* ── 테마 ── */
.fa-theme-warm  { --fa-primary: #f97316; --fa-primary-light: #fed7aa; }
.fa-theme-mint  { --fa-primary: #10b981; --fa-primary-light: #a7f3d0; }
.fa-theme-lavender { --fa-primary: #8b5cf6; --fa-primary-light: #ddd6fe; }
.fa-theme-sky   { --fa-primary: #0ea5e9; --fa-primary-light: #bae6fd; }
.fa-theme-peach { --fa-primary: #ec4899; --fa-primary-light: #fbcfe8; }

body {
    font-family: var(--fa-font);
    background: var(--fa-bg);
    color: var(--fa-text);
    font-size: 15px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── #main-content 포커스 outline 제거 ── */
#main-content { outline: none; }

/* ── CodeMaru 공통 Nav ── */
/* ── CodeMaru 공통 Nav (통일 규격, 라이트 테마) ── */
.fa-topnav {
    position: sticky;
    top: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    background: rgba(255, 250, 240, .88);
    border-bottom: 1px solid rgba(124, 74, 3, .12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.fa-topnav a {
    color: #7c4a03;
    text-decoration: none;
}
.fa-topnav__brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
    font-weight: 800;
    color: #1f2937;
}
.fa-topnav__mark {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}
.fa-topnav__links {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.fa-topnav__links::-webkit-scrollbar { display: none; }
.fa-topnav__links a,
.fa-topnav__auth {
    flex: 0 0 auto;
    padding: .35rem .6rem;
    border-radius: .5rem;
    font-weight: 650;
    white-space: nowrap;
    color: #7c4a03;
}
.fa-topnav__links a:hover,
.fa-topnav__links a.active {
    background: rgba(124, 74, 3, .08);
    color: #431407;
}
.fa-topnav__auth {
    border: 1px solid rgba(124, 74, 3, .2);
    color: #9a3412;
}
.fa-topnav__auth:hover { background: rgba(124, 74, 3, .08); }
.fa-topnav__auth--pending {
    width: 4rem;
    min-height: 2rem;
    visibility: hidden;
}
.fa-topnav__burger {
    display: none;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.fa-topnav__burger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #7c4a03;
}

/* ── 상단 Nav ── */
.fa-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,253,248,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--fa-border);
}
.fa-nav__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fa-nav__logo {
    font-weight: 700;
    font-size: 15px;
    color: var(--fa-primary);
}
.fa-nav__links { display: flex; gap: 6px; }
.fa-nav__link {
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fa-text-muted);
    transition: .15s;
}
.fa-nav__link:hover { color: var(--fa-primary); }
.fa-nav__link--active {
    background: var(--fa-primary);
    color: #fff;
}

/* ── 레이아웃 ── */
.fa-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ── 로딩 / 404 ── */
.fa-loading, .fa-notfound, .fa-empty {
    text-align: center;
    padding: 60px 16px;
    color: var(--fa-text-muted);
}

/* ── 버튼 ── */
.fa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 99px;
    font-family: var(--fa-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}
.fa-btn--primary { background: var(--fa-primary); color: #fff; }
.fa-btn--primary:hover { filter: brightness(1.1); }
.fa-btn--secondary { background: #fff; border-color: rgba(255,255,255,.75); color: #9a3412; }
.fa-btn--secondary:hover { filter: brightness(.98); }
.fa-btn--ghost { background: transparent; border-color: var(--fa-border); color: var(--fa-text); }
.fa-btn--ghost:hover { border-color: var(--fa-primary); color: var(--fa-primary); }
.fa-btn--danger { background: #ef4444; color: #fff; }
.fa-btn--full { width: 100%; justify-content: center; }
.fa-btn--sm { padding: 5px 12px; font-size: 12px; }

/* ── 입력 ── */
.fa-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--fa-border);
    border-radius: 8px;
    font-family: var(--fa-font);
    font-size: 14px;
    background: #fff;
    transition: border-color .15s;
}
.fa-input:focus { outline: none; border-color: var(--fa-primary); }
.fa-textarea { resize: vertical; min-height: 80px; }
.fa-textarea--tall { min-height: 200px; }
.fa-input-file { padding: 6px 0; }

/* ── 폼 ── */
.fa-form__row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.fa-form__row--inline { flex-direction: row; flex-wrap: wrap; }
.fa-form__row--inline .fa-input { flex: 1; min-width: 160px; }
.fa-form__row--check label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.fa-form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fa-label { font-size: 13px; font-weight: 600; color: var(--fa-text-muted); }
.fa-label__hint { font-weight: 400; margin-left: 6px; }

/* ── 상태 메시지 ── */
.fa-status {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}
.fa-status--ok { background: #d1fae5; color: #065f46; }
.fa-status--err { background: #fee2e2; color: #b91c1c; }

/* ── 히어로 배너 (홈) ── */
.fa-hero {
    background: linear-gradient(135deg, var(--fa-primary) 0%, #fbbf24 100%);
    color: #fff;
    padding: 64px 20px;
    text-align: center;
    border-radius: 0 0 24px 24px;
    margin: 0 -16px 32px;
}
.fa-hero__badge { font-size: 13px; opacity: .85; margin-bottom: 12px; }
.fa-hero__title { font-size: 2rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.fa-hero__sub { font-size: 1rem; opacity: .9; margin-bottom: 24px; }
.fa-hero__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── 서비스 안내 ── */
.fa-service-notice {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.fa-notice-sep { color: #d1d5db; }

/* ── 기능 소개 ── */
.fa-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.fa-feature {
    background: var(--fa-surface);
    border: 1px solid var(--fa-border);
    border-radius: var(--fa-radius);
    padding: 20px 16px;
    text-align: center;
}
.fa-feature__icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.fa-feature h3 { font-size: 14px; margin-bottom: 6px; }
.fa-feature p { font-size: 12px; color: var(--fa-text-muted); }

/* ── 가입 폼 ── */
.fa-create { margin-bottom: 40px; }
.fa-create__box {
    background: var(--fa-surface);
    border: 1.5px solid var(--fa-border);
    border-radius: var(--fa-radius);
    padding: 28px 24px;
    box-shadow: var(--fa-shadow);
}
.fa-create__title { font-size: 1.2rem; margin-bottom: 8px; }
.fa-create__desc { font-size: 13px; color: var(--fa-text-muted); margin-bottom: 20px; }
.fa-create__notice { margin-top: 14px; font-size: 12px; color: var(--fa-text-muted); }
.fa-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: .75rem .9rem;
    margin-bottom: 1.25rem;
    font-size: .85rem;
    color: #7c4a03;
}
.fa-account strong { color: #1f2937; margin-right: auto; }
.fa-account--guest { align-items: flex-start; }
.fa-account__link {
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.fa-account__link:hover { text-decoration: underline; }
.fa-input-prefix { display: flex; align-items: center; gap: 0; }
.fa-prefix {
    background: #f3f4f6;
    border: 1.5px solid var(--fa-border);
    border-right: none;
    padding: 10px 10px;
    font-size: 12px;
    color: var(--fa-text-muted);
    border-radius: 8px 0 0 8px;
    white-space: nowrap;
}
.fa-input-prefix .fa-input { border-radius: 0 8px 8px 0; }
.fa-slug-preview { font-size: 12px; color: var(--fa-primary); margin-top: 4px; }

/* ── 앨범 목록 카드 (홈) ── */
.fa-albums-list__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.fa-albums-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.fa-album-card {
    border: 1.5px solid var(--fa-border);
    border-radius: var(--fa-radius);
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
    display: block;
}
.fa-album-card:hover { transform: translateY(-3px); box-shadow: var(--fa-shadow); }
.fa-album-card__thumb {
    height: 130px;
    background: var(--fa-primary-light) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fa-album-card__no-img { font-size: 2.5rem; }
.fa-album-card__body { padding: 12px; }
.fa-album-card__name { font-weight: 700; font-size: 14px; }
.fa-album-card__bio { font-size: 12px; color: var(--fa-text-muted); margin-top: 4px; }

/* ── 커버 (앨범 페이지) ── */
.fa-cover {
    position: relative;
    height: 260px;
    background: var(--fa-primary);
    margin: 0 -16px 32px;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.fa-cover--no-img { align-items: center; justify-content: center; }
.fa-cover__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.55);
}
.fa-cover__inner {
    position: relative;
    padding: 24px;
    color: #fff;
    width: 100%;
}
.fa-cover--no-img .fa-cover__inner { text-align: center; }
.fa-cover__name { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.fa-cover__bio { font-size: 14px; opacity: .85; }

/* ── 섹션 제목 ── */
.fa-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }

/* ── 앨범 폴더 그리드 ── */
.fa-albums { margin-bottom: 36px; }
.fa-albums__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.fa-album-folder {
    border: 1.5px solid var(--fa-border);
    border-radius: var(--fa-radius);
    padding: 14px;
    text-align: center;
    transition: .15s;
    display: block;
}
.fa-album-folder:hover { border-color: var(--fa-primary); transform: translateY(-2px); }
.fa-album-folder__icon { font-size: 2.2rem; margin-bottom: 8px; }
.fa-album-folder__cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin: 0 auto 8px;
}
.fa-album-folder__name { font-size: 13px; font-weight: 600; }
.fa-album-folder__desc { font-size: 11px; color: var(--fa-text-muted); margin-top: 4px; }

/* ── 타임라인 ── */
.fa-timeline { margin-bottom: 36px; }
.fa-timeline__list { display: flex; flex-direction: column; gap: 14px; }
.fa-post-card {
    display: flex;
    border: 1.5px solid var(--fa-border);
    border-radius: var(--fa-radius);
    overflow: hidden;
    transition: .15s;
    background: var(--fa-surface);
}
.fa-post-card:hover { border-color: var(--fa-primary); box-shadow: var(--fa-shadow); }
.fa-post-card__thumb {
    width: 110px;
    flex-shrink: 0;
    background: var(--fa-primary-light) center/cover no-repeat;
}
.fa-post-card__thumb--video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    color: #fff;
}
.fa-play-icon { font-size: 1.5rem; }
.fa-post-card__body { padding: 14px 16px; flex: 1; }
.fa-post-card__title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.fa-post-card__date { font-size: 12px; color: var(--fa-text-muted); }
.fa-post-card__media-count { font-size: 12px; color: var(--fa-text-muted); margin-top: 4px; display: flex; gap: 8px; }
.fa-pin-badge { font-size: 12px; margin-right: 4px; }

/* ── 포스트 상세 ── */
.fa-post-nav { padding: 12px 0 8px; }
.fa-back-link { font-size: 13px; color: var(--fa-primary); font-weight: 600; }
.fa-post { margin-bottom: 32px; }
.fa-post__header { margin-bottom: 20px; }
.fa-post__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.fa-post__date { font-size: 13px; color: var(--fa-text-muted); }
.fa-post__content { line-height: 1.8; margin-bottom: 24px; }
.fa-post__content h1,.fa-post__content h2,.fa-post__content h3 { margin: 1em 0 .4em; }
.fa-post__content p { margin-bottom: .8em; }

/* ── 미디어 그리드 ── */
.fa-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 200px));
    gap: 8px;
    margin-bottom: 24px;
}
.fa-media-grid__item { aspect-ratio: 1; max-height: 200px; overflow: hidden; border-radius: 8px; cursor: pointer; position: relative; }
.fa-media-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: .2s; }
.fa-media-grid__item:hover img { transform: scale(1.04); }
/* 클릭 가능 힌트 오버레이 */
.fa-media-grid__item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(0,0,0,.35);
    opacity: 0;
    transition: .2s;
}
.fa-media-grid__item:hover::after { opacity: 1; }
.fa-media-grid--admin .fa-media-item { position: relative; }
.fa-media-item { aspect-ratio: 1; max-height: 200px; position: relative; }
.fa-media-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.fa-media-item__del {
    position: absolute;
    top: 4px; right: 4px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px; height: 22px;
    font-size: 11px;
    cursor: pointer;
}
.fa-media-item--video {
    aspect-ratio: unset;
    background: #1f2937;
    color: #fff;
    border-radius: 8px;
    padding: 8px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 80px;
}
.fa-media-item--video video { width: 100%; max-height: 140px; border-radius: 6px; }

/* ── 동영상 ── */
.fa-videos { margin-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.fa-video-wrap { border-radius: 10px; overflow: hidden; background: #000; max-height: 400px; }
.fa-video { width: 100%; max-height: 400px; display: block; }
.fa-video-wrap--yt { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; border-radius: 10px; max-height: none; }
.fa-video-wrap--yt iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
/* 어드민 동영상 URL 입력 */
.fa-video-url-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* ── 반응 ── */
.fa-reactions { margin-bottom: 28px; }
.fa-reactions__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.fa-emoji-btn {
    background: #f3f4f6;
    border: 1.5px solid var(--fa-border);
    border-radius: 99px;
    padding: 7px 14px;
    font-size: 18px;
    cursor: pointer;
    transition: .15s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}
.fa-emoji-btn:hover, .fa-emoji-btn--active {
    border-color: var(--fa-primary);
    background: var(--fa-primary-light);
}

/* ── 댓글 ── */
.fa-comments { margin-bottom: 32px; }
.fa-comment {
    border-bottom: 1px solid var(--fa-border);
    padding: 12px 0;
}
.fa-comment__header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.fa-comment__author { font-weight: 700; font-size: 14px; }
.fa-comment__date { font-size: 11px; color: var(--fa-text-muted); }
.fa-comment__body { font-size: 14px; white-space: pre-wrap; }
.fa-comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.fa-comment-form .fa-input { width: 100%; max-width: 240px; }

/* ── 라이트박스 ── */
.fa-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.fa-lightbox__inner { position: relative; max-width: 95vw; max-height: 95vh; }
.fa-lightbox__img { max-width: 90vw; max-height: 90vh; border-radius: 8px; display: block; }
.fa-lightbox__close, .fa-lightbox__prev, .fa-lightbox__next {
    position: absolute;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px; height: 38px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fa-lightbox__close { top: -14px; right: -14px; }
.fa-lightbox__prev { left: -18px; top: 50%; transform: translateY(-50%); }
.fa-lightbox__next { right: -18px; top: 50%; transform: translateY(-50%); }
.fa-lightbox__counter { text-align: center; color: #fff; margin-top: 8px; font-size: 13px; }

/* ── 어드민 ── */
.fa-admin { padding-top: 16px; }
.fa-admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.fa-admin-header h1 { font-size: 1.2rem; }

.fa-login-box {
    max-width: 360px;
    margin: 60px auto;
    background: var(--fa-surface);
    border: 1.5px solid var(--fa-border);
    border-radius: var(--fa-radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--fa-shadow);
}
.fa-login-box__title { font-size: 1.1rem; font-weight: 700; }
.fa-login-box__desc { font-size: 13px; color: var(--fa-text-muted); }

/* ── 탭 ── */
.fa-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; border-bottom: 2px solid var(--fa-border); padding-bottom: 10px; }
.fa-tab {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--fa-text-muted);
    transition: .15s;
}
.fa-tab--active { background: var(--fa-primary); color: #fff; }
.fa-tab-body { padding: 8px 0; }

/* ── 포스트 에디터 ── */
.fa-post-editor { max-width: 680px; }

/* ── 포스트 목록 (관리) ── */
.fa-post-list { display: flex; flex-direction: column; gap: 10px; }
.fa-post-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid var(--fa-border);
    border-radius: 8px;
    padding: 12px 14px;
}
.fa-post-list__info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fa-post-list__title { font-weight: 600; font-size: 14px; }
.fa-post-list__date, .fa-post-list__count { font-size: 12px; color: var(--fa-text-muted); }
.fa-post-list__actions { display: flex; gap: 6px; }

/* ── 앨범 관리 ── */
.fa-album-admin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.fa-album-admin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid var(--fa-border);
    border-radius: 8px;
    padding: 12px 14px;
}
.fa-album-admin-item__name { font-weight: 600; }
.fa-album-admin-item__desc { font-size: 12px; color: var(--fa-text-muted); flex: 1; }

/* ── 커버 미리보기 ── */
.fa-cover-preview { width: 180px; height: 100px; object-fit: cover; border-radius: 8px; margin-top: 8px; }

/* ── 슈퍼 관리자 ── */
.fa-superadmin-list { display: flex; flex-direction: column; gap: 10px; }

/* 카드 전체 */
.fa-sa-card {
    border: 1.5px solid var(--fa-border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--fa-surface);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .15s;
}
.fa-sa-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.1); }

/* 1행: 제목 + 버튼 */
.fa-sa-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.fa-sa-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}
.fa-sa-card__slug { font-family: monospace; font-size: 13px; font-weight: 700; color: var(--fa-primary); }
.fa-sa-card__name { font-size: 14px; font-weight: 500; }
.fa-sa-card__date { font-size: 12px; color: var(--fa-text-muted); }
.fa-sa-card__btns { display: flex; gap: 6px; flex-shrink: 0; }

/* 2행: 공개·우선순위·용량 컨트롤 */
.fa-sa-card__row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px dashed var(--fa-border);
    background: #fafafa;
    margin: 0 -16px -14px;
    padding: 10px 16px 12px;
    border-radius: 0 0 11px 11px;
}

/* 공통 컨트롤 래퍼 */
.fa-sa-ctrl {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
}

/* 레이블 텍스트 */
.fa-sa-lbl { font-size: 12px; color: var(--fa-text-muted); }

/* 공개/비공개 배지 */
.fa-sa-public {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    color: #fff; background: #059669;
    border-radius: 20px; padding: 2px 8px;
}
.fa-sa-private {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    color: #6b7280; background: #f3f4f6;
    border-radius: 20px; padding: 2px 8px;
}

/* 우선순위 숫자 입력 */
.fa-sa-num {
    width: 48px;
    padding: 3px 6px;
    border: 1px solid var(--fa-border);
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    background: var(--fa-bg);
}

/* 용량 드롭다운 */
.fa-sa-sel {
    padding: 4px 6px;
    border: 1px solid var(--fa-border);
    border-radius: 6px;
    font-size: 12px;
    background: var(--fa-bg);
    color: var(--fa-text);
    cursor: pointer;
}

.fa-badge--green { color: #059669; font-weight: 600; }

/* ── 앨범 상세 ── */
.fa-album-detail { margin-bottom: 24px; }
.fa-album-detail__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.fa-album-detail__desc { font-size: 14px; color: var(--fa-text-muted); }

/* ── 파일 목록 ── */
.fa-file-list { font-size: 12px; color: var(--fa-text-muted); margin-top: 6px; list-style: none; display: flex; flex-direction: column; gap: 2px; }

/* ── 페이지네이션 ── */
.fa-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
    padding: 4px 0;
}
.fa-pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--fa-border);
    border-radius: 8px;
    background: var(--fa-surface);
    color: var(--fa-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}
.fa-pager__btn:hover:not(:disabled) {
    border-color: var(--fa-primary);
    color: var(--fa-primary);
}
.fa-pager__btn:disabled {
    opacity: .35;
    cursor: default;
}
.fa-pager__btn--active {
    background: var(--fa-primary);
    border-color: var(--fa-primary);
    color: #fff;
    font-weight: 700;
}

/* ── 슈퍼어드민 — 용량 제한 셀렉트 ── */
.fa-superadmin-item__limits { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--fa-text-muted); }
.fa-superadmin-settings { border: 1px solid var(--fa-border); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; background: var(--fa-surface); }

/* 전체 설정 — 이미지/동영상 2열 그리드 */
.fa-gs-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-top: 10px;
}
.fa-gs-field { display: flex; flex-direction: column; gap: 4px; }
.fa-gs-field .fa-label { margin-bottom: 0; }
@media (max-width: 500px) { .fa-gs-fields { grid-template-columns: 1fr; } }
.fa-input--sm { max-width: 130px; padding: 4px 8px !important; font-size: 12px !important; }

/* ── 푸터 ── */
.fa-footer { text-align: center; padding: 30px 0 10px; font-size: 12px; color: var(--fa-text-muted); }
.fa-footer a { color: var(--fa-primary); }
.fa-admin-link { display: block; margin-top: 6px; font-size: 11px; color: #d1d5db; }

/* ── Divider & Danger Zone ── */
.fa-divider { border: none; border-top: 1px solid var(--fa-border); margin: 28px 0; }
.fa-danger-zone {
    border: 1.5px solid #fca5a5;
    border-radius: var(--fa-radius);
    padding: 18px 20px;
    background: #fff5f5;
}
.fa-danger-zone h3 { font-size: 14px; font-weight: 700; color: #b91c1c; margin-bottom: 6px; }
.fa-danger-zone p { font-size: 13px; color: #7f1d1d; margin-bottom: 12px; }
.fa-delete-confirm p { font-size: 13px; color: #7f1d1d; margin-bottom: 12px; }

/* ── 가이드 페이지 ── */
.fa-guide { padding-top: 8px; }
.fa-guide__hero {
    text-align: center;
    padding: 36px 0 28px;
    margin-bottom: 12px;
}
.fa-guide__hero h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.fa-guide__hero p { font-size: 14px; color: var(--fa-text-muted); }

.fa-guide__step {
    display: flex;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--fa-border);
}
.fa-guide__step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fa-primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.fa-guide__step-body { flex: 1; }
.fa-guide__step-body h2 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.fa-guide__step-body p { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.fa-guide__list { font-size: 13px; line-height: 1.8; padding-left: 18px; color: var(--fa-text); }
.fa-guide__list li { margin-bottom: 4px; }
.fa-guide__tip {
    margin-top: 12px;
    background: #fffbeb;
    border-left: 3px solid #fbbf24;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #92400e;
}
.fa-guide__tabs-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.fa-guide__tabs-preview span {
    background: #f3f4f6;
    border: 1px solid var(--fa-border);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.fa-guide__faq {
    padding: 28px 0;
    border-bottom: 1px solid var(--fa-border);
}
.fa-guide__faq h2 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.fa-faq-item { margin-bottom: 16px; }
.fa-faq-item__q { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.fa-faq-item__a { font-size: 13px; color: var(--fa-text-muted); line-height: 1.6; }
.fa-guide__cta { text-align: center; padding: 36px 0; }
.fa-link { color: var(--fa-primary); text-decoration: underline; }

/* ── 반응형 ── */
@media (max-width: 960px) {
    .fa-topnav__burger { display: flex; }
    .fa-topnav__links {
        display: none;
        position: absolute;
        top: 60px;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: .35rem;
        min-width: 200px;
        max-height: calc(100vh - 80px);
        margin-left: 0;
        padding: 1rem;
        overflow-x: visible;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid rgba(124, 74, 3, .12);
        border-radius: 12px;
        background: rgba(255, 250, 240, .98);
        box-shadow: 0 10px 30px rgba(124, 74, 3, .18);
    }
    .fa-topnav__links.open {
        display: flex;
    }
}
@media (max-width: 600px) {
    .fa-account { flex-direction: column; align-items: flex-start; }
    .fa-hero__title { font-size: 1.5rem; }
    .fa-post-card__thumb { width: 80px; }
    .fa-lightbox__prev { left: 4px; }
    .fa-lightbox__next { right: 4px; }
}
