:root {
    --primary:  #4f46e5;
    --danger:   #ef4444;
    --success:  #22c55e;
    --warning:  #f59e0b;
    --bg:       #f8fafc;
    --card:     #ffffff;
    --text:     #1e293b;
    --muted:    #64748b;
    --border:   #e2e8f0;
    --radius:   10px;
    --shadow:   0 2px 10px rgba(0,0,0,.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

/* ══════════════════════════
   네비게이션
══════════════════════════ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    background: #1e3a8a;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 200;
    gap: 12px;
}
.nav-logo {
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    color: #facc15;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.navbar .btn {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}
.navbar .btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.navbar .btn-primary {
    background: #facc15;
    border-color: #facc15;
    color: #1e3a8a;
}
.navbar .btn-primary:hover {
    background: #fde047;
    border-color: #fde047;
    color: #1e3a8a;
}
.nav-user {
    color: rgba(255,255,255,0.82);
    font-size: 0.83rem;
    white-space: nowrap;
}

/* ══════════════════════════
   컨테이너
══════════════════════════ */
.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ══════════════════════════
   버튼
══════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.88rem;
    text-decoration: none;
    border: none;
    background: var(--primary);
    color: white;
    transition: opacity 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.btn:hover { opacity: 0.85; }
.btn:active { opacity: 0.75; }
.btn-sm    { padding: 5px 11px; font-size: 0.8rem; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-primary { background: var(--primary); color: white; border: none; }
.btn-danger  { background: var(--danger);  color: white; border: none; }

/* ══════════════════════════
   공통 레이아웃
══════════════════════════ */
.page-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.breadcrumb-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 6px;
}
.breadcrumb-link:hover { color: var(--primary); }

/* ══════════════════════════
   홈 레이아웃 공통
══════════════════════════ */
.home-section {
    margin-bottom: 28px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
.section-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}
.section-count {
    font-size: 0.8rem;
    color: var(--muted);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ══════════════════════════
   공지사항 2-column 레이아웃
══════════════════════════ */
.notice-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.notice-board-col {
    background: #fef9ec;
    padding: 20px 18px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notice-board-col .board-card {
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 8px 4px;
    min-height: unset;
}
.notice-fixed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    text-decoration: none;
    gap: 8px;
}
.notice-fixed-icon {
    font-size: 2rem;
}
.notice-fixed-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #92400e;
    line-height: 1.4;
    word-break: keep-all;
}
.notice-posts-col {
    padding: 14px 16px;
}
.notice-posts-col .section-header {
    margin-bottom: 8px;
}

/* ══════════════════════════
   최신글 리스트 (공통)
══════════════════════════ */
.recent-list {
    list-style: none;
}
.recent-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
}
.recent-list li:last-child { border-bottom: none; }
.recent-title {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recent-title:hover { color: var(--primary); }
.recent-date {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot.hot { background: var(--danger); }
.no-posts {
    color: var(--muted);
    font-size: 0.85rem;
    padding: 16px 0;
}

/* ══════════════════════════
   학생 캐러셀 (관리자용)
══════════════════════════ */
.student-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}
.student-carousel {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px 8px;
    /* 스크롤바 숨기기 */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.student-carousel::-webkit-scrollbar { display: none; }

.student-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 6px;
    min-width: 58px;
    max-width: 58px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.18s, border-color 0.18s;
    flex-shrink: 0;
}
.student-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(79,70,229,.15);
}
.student-avatar {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
}
.student-name {
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.student-count {
    font-size: 0.62rem;
    color: var(--muted);
}
.carousel-btn {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    font-size: 1rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
    padding: 0;
}
.carousel-btn:hover { background: #f1f5f9; color: var(--text); }

/* ══════════════════════════
   공개 게시판 블록
══════════════════════════ */
.public-board-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.public-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}
.public-board-title {
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text);
}
.public-board-title:hover { color: var(--primary); }
.more-link {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.public-board-block .recent-list {
    padding: 0 16px;
}
.public-board-block .no-posts {
    padding: 16px;
}

/* ══════════════════════════
   게시판 카드 (그리드용)
══════════════════════════ */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.board-card {
    display: block;
    padding: 18px 16px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow);
}
.board-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.1);
    border-color: #c7d2fe;
}
.board-card .board-icon { font-size: 1.8rem; margin-bottom: 8px; }
.board-card .board-name { font-weight: 600; margin-bottom: 4px; font-size: 0.93rem; }
.board-card .board-desc { font-size: 0.8rem; color: var(--muted); }
.board-card.personal { border-left: 3px solid var(--primary); }
.board-card.team       { border-left: 3px solid #8b5cf6; }
.board-card.admin-board { border-left: 3px solid #ef4444; background: #fff8f8; }
.board-card.notice   { }
.board-card.public   { border-left: 3px solid var(--success); }

/* ══════════════════════════
   게시글 테이블
══════════════════════════ */
.post-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.post-table th {
    background: #f1f5f9;
    padding: 6px 14px;
    text-align: left;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}
.post-table td {
    padding: 6px 14px;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    vertical-align: middle;
}
.post-table td a { text-decoration: none; color: var(--text); }
.post-table td a:hover { color: var(--primary); }
.post-table tr.featured { background: #fffbeb; }
.post-table tr:hover td { background: #fafafa; }

/* ══════════════════════════
   뱃지
══════════════════════════ */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}
.badge.hot { background: #fee2e2; color: #dc2626; }
.attach-icon { font-size: 0.8rem; color: var(--muted); margin-left: 3px; }

/* ══════════════════════════
   게시글 상세
══════════════════════════ */
.post-detail {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.post-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}
.post-header h1 { font-size: 1.45rem; margin: 8px 0; line-height: 1.4; }
.post-meta {
    display: flex;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.post-meta a { color: var(--primary); text-decoration: none; }
.post-content { line-height: 1.85; word-break: break-word; margin-bottom: 20px; }

/* ══════════════════════════
   첨부 섹션
══════════════════════════ */
.attachment-section {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.attachment-section h3 { margin-bottom: 10px; font-size: 0.95rem; }
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.image-grid img.thumb {
    width: 100%; height: 130px;
    object-fit: cover;
    border-radius: 6px;
    transition: opacity 0.15s;
}
.image-grid img.thumb:hover { opacity: 0.85; }
.video-wrapper { margin-bottom: 14px; }
.video-wrapper video { max-width: 100%; border-radius: 8px; }
.file-name { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.file-list { list-style: none; }
.file-list li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.file-list a  { text-decoration: none; color: var(--primary); }
.file-size    { color: var(--muted); font-size: 0.78rem; margin-left: 4px; }
.pdf-item     { margin-bottom: 7px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ══════════════════════════
   게시글 액션 영역
══════════════════════════ */
.post-actions {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.share-section label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 5px;
}
.share-url-box { display: flex; gap: 7px; }
.share-url-box input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    background: #f8fafc;
    min-width: 0;
}
.edit-actions, .admin-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
}

/* ══════════════════════════
   폼
══════════════════════════ */
.form-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 720px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.form-input, .form-textarea, .form-select,
input[type="text"], input[type="password"],
textarea, select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    -webkit-appearance: none;
}
textarea { resize: vertical; }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.file-upload-section { margin: 14px 0; }
.file-upload-section label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}
.form-actions { margin-top: 18px; display: flex; gap: 9px; flex-wrap: wrap; }

/* ══════════════════════════
   기존 첨부파일 (수정 폼)
══════════════════════════ */
.existing-files {
    background: #f8fafc;
    padding: 14px;
    border-radius: 8px;
    margin: 10px 0;
}
.existing-files h3 { font-size: 0.87rem; margin-bottom: 8px; color: var(--muted); }
.existing-file-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    font-size: 0.86rem;
}
.existing-file-item a { color: var(--primary); text-decoration: none; }

/* ══════════════════════════
   삭제 확인
══════════════════════════ */
.confirm-box {
    background: var(--card);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.confirm-box h2 { margin-bottom: 12px; font-size: 1.25rem; }
.post-title-preview { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.warning { color: var(--danger); font-size: 0.86rem; margin-bottom: 22px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* ══════════════════════════
   로그인
══════════════════════════ */
.auth-container {
    max-width: 380px;
    margin: 40px auto;
    background: var(--card);
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.auth-container h1 { margin-bottom: 22px; font-size: 1.35rem; }

/* ══════════════════════════
   메시지
══════════════════════════ */
.messages { margin-bottom: 18px; }
.message {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 7px;
    font-size: 0.88rem;
}
.message-success { background: #dcfce7; color: #16a34a; }
.message-error   { background: #fee2e2; color: #dc2626; }
.message-warning { background: #fef3c7; color: #92400e; }
.message-info    { background: #dbeafe; color: #1d4ed8; }

/* ══════════════════════════
   빈 상태
══════════════════════════ */
.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 50px 0;
    font-size: 0.93rem;
}

/* ══════════════════════════
   파일탐색기
══════════════════════════ */
.breadcrumb-bar {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb-bar a { color: var(--primary); text-decoration: none; }
.sep { color: var(--border); }
.mt-20 { margin-top: 20px; }

/* ══════════════════════════
   모바일 반응형
══════════════════════════ */
@media (max-width: 600px) {
    body { font-size: 14px; }

    /* 테이블: 모바일에서 불필요한 컬럼 숨기고 화면에 맞춤 */
    .post-table-wrap { overflow-x: hidden; }
    .post-table { min-width: 0; width: 100%; }
    .col-pin, .col-hide, .col-date, .col-views { display: none; }
    .col-title { word-break: break-all; }
    .col-author { white-space: nowrap; font-size: 0.8rem; }

    .navbar {
        padding: 0 10px;
        height: 46px;
        gap: 6px;
    }
    .nav-logo { font-size: 0.78rem; }
    .nav-user  { display: none; }
    .nav-links { gap: 4px; flex-wrap: nowrap; }
    .navbar .btn { font-size: 0.7rem; padding: 3px 6px; }

    .container { padding: 16px 14px; }

    /* 공지사항: 세로로 */
    .notice-layout {
        grid-template-columns: 1fr;
    }
    .notice-board-col {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 6px 10px;
    }
    .notice-board-col .board-card {
        padding: 2px;
        min-height: unset;
    }
    .notice-fixed-card {
        flex-direction: row;
        height: auto;
        gap: 6px;
        justify-content: flex-start;
    }
    .notice-fixed-icon { font-size: 1.2rem; }
    .notice-fixed-title { font-size: 0.88rem; }
    .notice-posts-col { padding: 12px 14px; }

    /* 학생 캐러셀 버튼 */
    .carousel-btn { width: 20px; height: 20px; font-size: 0.9rem; }
    .student-card { min-width: 50px; max-width: 50px; padding: 6px 4px; }
    .student-avatar { width: 24px; height: 24px; font-size: 0.7rem; }
    .student-name { font-size: 0.62rem; max-width: 46px; }

    /* 게시글 테이블: 클래스 기반 숨김은 위에서 처리 */

    /* 게시글 상세 */
    .post-detail { padding: 18px 14px; }
    .post-header h1 { font-size: 1.2rem; }
    .post-meta { gap: 9px; font-size: 0.78rem; }

    /* 이미지 그리드 */
    .image-grid { grid-template-columns: repeat(2, 1fr); }

    /* 폼 */
    .form-card { padding: 18px 14px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { text-align: center; }

    /* 게시판 그리드 */
    .board-grid { grid-template-columns: 1fr 1fr; }

    /* 삭제 확인 */
    .confirm-box { padding: 24px 16px; }

    /* 로그인 */
    .auth-container { margin: 20px auto; padding: 24px 16px; }

    /* share URL */
    .share-url-box { flex-direction: column; }

    /* 페이지 헤더 */
    .page-header { flex-direction: column; align-items: flex-start; }

    /* 관리자 공개게시판 헤더 */
    .public-board-header { padding: 10px 12px; }
    .public-board-block .recent-list { padding: 0 12px; }
    .public-board-block .no-posts { padding: 12px; }
}

@media (max-width: 380px) {
    .board-grid { grid-template-columns: 1fr; }
    .navbar .btn { font-size: 0.65rem; padding: 2px 5px; }
    .nav-logo { font-size: 0.72rem; }
}

/* ── 공감 ── */
.like-section { margin: 20px 0; display:flex; align-items:center; gap:12px; }
.like-btn {
    display:inline-flex; align-items:center; gap:6px;
    padding:8px 18px; border-radius:20px; border:1.5px solid #e2e8f0;
    background:white; cursor:pointer; font-size:0.9rem; font-weight:600;
    transition:all .2s; color:#64748b;
}
.like-btn.liked { border-color:#f43f5e; background:#fff1f2; color:#f43f5e; }
.like-btn:hover { border-color:#f43f5e; color:#f43f5e; }
.like-names { font-size:0.82rem; color:var(--muted); }

/* ── 댓글 ── */
.comment-section { margin-top:32px; border-top:2px solid var(--border); padding-top:20px; }
.comment-section h3 { font-size:1rem; margin-bottom:16px; }
.comment-list { list-style:none; margin-bottom:20px; }
.comment-item { padding:12px 0; border-bottom:1px solid var(--border); }
.comment-item:last-child { border-bottom:none; }
.comment-reply { margin-left:32px; padding:10px 0 10px 14px;
                 border-left:3px solid #e0e7ff; border-bottom:1px solid var(--border); }
.comment-meta { display:flex; align-items:center; gap:8px; margin-bottom:4px; flex-wrap:wrap; }
.comment-author { font-weight:600; font-size:0.88rem; }
.comment-date   { font-size:0.78rem; color:var(--muted); }
.comment-secret-badge { font-size:0.72rem; background:#fef3c7; color:#b45309;
                        padding:1px 6px; border-radius:4px; }
.comment-content { font-size:0.9rem; line-height:1.6; white-space:pre-wrap; }
.comment-secret-content { font-size:0.9rem; color:#94a3b8; font-style:italic; }
.comment-actions { margin-top:4px; display:flex; gap:8px; }
.reply-form-wrap { margin-top:8px; display:none; }
.reply-form-wrap.open { display:block; }
.comment-form { display:flex; flex-direction:column; gap:8px; }
.comment-form textarea { width:100%; padding:10px 12px; border:1px solid var(--border);
                         border-radius:8px; font-size:0.88rem; resize:vertical;
                         min-height:70px; font-family:inherit; }
.comment-form-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* ── 임시저장 ── */
.draft-indicator { font-size:0.78rem; color:var(--muted); }
.draft-indicator.saved { color:#16a34a; }

/* ══════════════════════════
   최근 활동 / 접속 상태
══════════════════════════ */
.activity-section { padding: 0; }

.online-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 0.82rem;
}
.online-label {
    font-weight: 700;
    color: #15803d;
    white-space: nowrap;
    margin-right: 4px;
}
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.online-super  { background: #fee2e2; color: #dc2626; }
.online-staff  { background: #e0e7ff; color: #4f46e5; }
.online-student{ background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.desktop-only { display: flex; }

.activity-list { list-style: none; margin: 0; }
.activity-list li { border-bottom: 1px solid var(--border); }
.activity-list li:last-child { border-bottom: none; }

.activity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 4px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    transition: background 0.12s;
}
.activity-item:hover { background: #f8fafc; border-radius: 6px; }

.activity-type-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}
.badge-post    { background: #ede9fe; color: #6d28d9; }
.badge-comment { background: #fef9c3; color: #854d0e; }

.activity-author {
    flex-shrink: 0;
    font-weight: 600;
    min-width: 52px;
    font-size: 0.82rem;
}
.activity-board {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--muted);
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}
.activity-time {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .desktop-only { display: none !important; }
    .activity-board { display: none; }
    .activity-item { gap: 5px; padding: 6px 2px; font-size: 0.8rem; }
}
