/*
  사용자 화면 공통 스타일(화면 시안 U-ED-01·U-MY-01 기준).
  색은 모두 테마 변수(--p 주색, --pd 진한색, --ps 옅은색, --pl 밝은색, --acc 강조색)를 쓴다.
  테마 변수는 ThemeService 가 <head> 에 넣는다(관리자 '색상 테마'에서 바꿈).
*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: #FFFFFF; color: #111827;
    font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    font-size: 17px; line-height: 1.7; letter-spacing: -0.01em; word-break: keep-all;
    /* keep-all 은 띄어쓰기 없는 긴 글(팀명·제목·주소)을 줄바꿈하지 못해 휴대폰에서 화면 밖으로 밀어냄 → 넘칠 때만 아무 곳에서나 줄바꿈 */
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--pl); outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 4px; background: var(--p); color: #FFFFFF; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.inline { display: inline; }
.link-button { background: none; border: 0; padding: 0; color: #4B5563; cursor: pointer; font: inherit; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.skeleton-check { padding-top: 80px; padding-bottom: 80px; }
[hidden] { display: none !important; }
.flash { background: var(--ps); color: var(--pd); padding: 12px 16px; border-radius: 4px; margin-top: 20px; font-size: 16px; }
.flash-toast { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 4px; width: max-content; max-width: calc(100vw - 32px); background: var(--ps); border: 1px solid var(--pd); border-radius: 4px; transition: opacity .3s; }
.flash-toast .flash { margin: 0; padding: 12px 6px 12px 18px; background: transparent; }
.flash-toast.is-hiding { opacity: 0; }
.flash-toast[hidden] { display: none; }
.flash-close { border: 0; background: transparent; color: var(--pd); font-size: 22px; line-height: 1; padding: 6px 12px; cursor: pointer; }

/* ── 상단 ───────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: #FFFFFF; border-bottom: 1px solid #E5E7EB; }
.site-header-inner { max-width: 1400px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #111827; }
.site-logo strong { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.site-logo-mark { width: 32px; height: 32px; flex: none; display: block; }
.site-logo-mark .lm-bg { fill: var(--p); }
.site-logo-mark .lm-t { fill: #FFFFFF; }
.site-logo-mark .lm-l { fill: #FFFFFF; fill-opacity: .74; }
.site-logo-mark .lm-r { fill: #FFFFFF; fill-opacity: .52; }
.site-logo-img { display: block; height: 36px; width: auto; max-width: 240px; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.site-nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; color: #374151; font-size: 16px; font-weight: 500; }
.site-nav-link:hover { color: var(--p); }
.site-nav-link.is-current { color: var(--p); font-weight: 800; box-shadow: inset 0 -3px 0 var(--p); }
.site-tools { display: inline-flex; align-items: center; margin-left: 6px; }
.site-tool { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 4px; background: transparent; color: #374151; text-decoration: none; cursor: pointer; }
.site-tool:hover { background: #F3F4F6; color: var(--p); }
.site-account { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; margin-left: 10px; border-radius: 4px; background: var(--p); color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap; }
.site-account:hover { background: var(--pd); color: #FFFFFF; }
/* 상단 이름 옆 내 역할(11-21 Ares) */
.site-role { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 3px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; line-height: 1.5; }
.is-home .site-header:not(.is-solid) .site-role { background: var(--pd); color: #FFFFFF; }
.site-logout { display: inline; margin: 0 0 0 4px; }
.site-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid #E5E7EB; border-radius: 4px; background: #FFFFFF; color: #111827; cursor: pointer; align-items: center; justify-content: center; }

/* ── 대메뉴 상단 배경 사진 띠 ─────────── */
.sub-visual { position: relative; overflow: hidden; background: var(--pd); color: #FFFFFF; }
.sub-visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sub-visual-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--pd) 0%, var(--pd) 28%, rgba(0, 0, 0, .15) 100%); }
.sub-visual-text { position: relative; max-width: 1400px; margin: 0 auto; padding: 72px 24px 68px; display: flex; flex-direction: column; gap: 12px; }
.sub-visual-title { font-size: 46px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; }
.sub-visual-desc { max-width: 680px; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .92); }

/* ── 본문 + 왼쪽 사이드바 ─────────────── */
.site-main { flex: 1 0 auto; }
/* 안전장치: 본문·하단에서 무엇이 넘쳐도 화면 전체가 옆으로 밀리지 않게(clip 은 sticky·fixed 머리글을 깨지 않음) */
.site-main, .site-footer { overflow-x: clip; max-width: 100vw; }
.sub-body { display: flex; align-items: flex-start; gap: 48px; padding-top: 48px; padding-bottom: 96px; }
.sub-body-wide { padding-top: 48px; padding-bottom: 96px; }
.side { flex: 0 0 272px; width: 272px; position: sticky; top: 96px; }
.sub-content { flex: 1 1 auto; min-width: 0; }

/* 왼쪽 사이드바(11-21 개편: 라인형). 그림자·둥근 상자 없이 제목 아래 굵은 선 + 항목 구분선.
   본문 제목 아래 2px 선과 같은 굵기로 맞춘다. 선택 항목은 왼쪽 막대 + 글자색·굵기. */
.side-card { padding: 0; background: transparent; }
.side-head { display: flex; align-items: flex-end; gap: 10px; min-height: 64px; padding: 0 0 16px; border-bottom: 2px solid #111827; }
.side-head-icon { display: none; }
.side-head-text { display: flex; flex-direction: column; gap: 4px; }
.side-head-text strong { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.side-head-text span { font-size: 14px; color: #6B7280; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.side-list > li { border-bottom: 1px solid #E5E7EB; }
.side-link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 8px 8px 8px 18px; text-decoration: none; font-size: 17px; color: #374151; font-weight: 600; }
.side-link::after { content: "›"; font-size: 20px; line-height: 1; color: #C4C8CE; }
.side-link:hover { background: var(--ps); color: var(--p); }
.side-link-icon { display: none; }
.side-link.is-current { color: var(--p); font-weight: 800; }
.side-link.is-current::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 2px; background: var(--p); }
.side-link.is-current::after { color: var(--p); }
.side-empty { padding: 16px 4px; color: #6B7280; font-size: 15px; border-bottom: 1px solid #E5E7EB; }

/* 사이드바 머리 사진(11-21 Ares: 제목 칸에 사진). 사진 위에 어두운 그라데이션, 흰 글씨. 아래 목록은 굵은 선으로 시작 */
.side-head-en { display: none; }
.side-head.has-img { position: relative; overflow: hidden; align-items: flex-end; min-height: 180px; padding: 22px; border-radius: 4px; border-bottom: 0; margin-bottom: 14px; background: var(--pd); color: #FFFFFF; }
.side-head.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(17, 24, 39, 0) 25%, rgba(17, 24, 39, .78) 100%); }
.side-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.side-head.has-img:hover .side-head-img { transform: scale(1.04); }
.side-head.has-img .side-head-icon { position: absolute; z-index: 2; top: 18px; left: 18px; display: flex; width: 38px; height: 38px; border-radius: 4px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); color: #FFFFFF; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.side-head.has-img .side-head-text { position: relative; z-index: 2; gap: 2px; }
.side-head.has-img .side-head-en { display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: rgba(255, 255, 255, .75); }
.side-head.has-img .side-head-text strong { color: #FFFFFF; font-size: 26px; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.side-head.has-img .side-head-text > span:not(.side-head-en) { color: rgba(255, 255, 255, .85); font-size: 13px; }
.side-head.has-img ~ .side-list, .side-head.has-img ~ .side-empty { border-top: 2px solid #111827; }
@media (max-width: 1080px) {
    .side-head.has-img { min-height: 120px; }
}

/* 나의 연구실: 팀 아코디언(같은 라인형) */
.lab-team-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 64px; padding: 10px 8px 10px 18px; border: 0; background: transparent; font: inherit; color: #1F2937; text-align: left; cursor: pointer; }
.lab-team-head:hover { background: var(--ps); }
.lab-team.is-open > .lab-team-head { color: var(--p); }
.lab-team.is-open > .lab-team-head::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 2px; background: var(--p); }
.lab-team-name { display: flex; flex-direction: column; line-height: 1.4; }
.lab-team-name strong { font-size: 17px; font-weight: 800; }
.lab-team-name span { font-size: 13px; color: #6B7280; }
.lab-role { font-style: normal; font-weight: 700; color: #374151; }
.lab-role.is-leader { color: var(--p); }
.lab-team-mark { font-size: 20px; color: #9CA3AF; }
.lab-team-body { padding: 6px 0 12px; background: #F9FAFB; border-top: 1px solid #EEF0F3; }
.side-sub { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.side-sub-link { position: relative; display: block; padding: 9px 12px 9px 34px; color: #4B5563; text-decoration: none; font-size: 15px; line-height: 1.5; }
.side-sub-link::before { content: ""; position: absolute; left: 20px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #C4C8CE; }
.side-sub-link:hover { color: var(--p); }
/* 선택한 하위 메뉴는 글자색·굵기만(디자인 결정) */
.side-sub-link.is-current { color: var(--p); font-weight: 800; }
.side-sub-link.is-current::before { background: var(--p); }
.side-sub-label { margin: 10px 18px 2px; padding-top: 10px; border-top: 1px dashed #E5E7EB; font-size: 12px; font-weight: 800; color: var(--acc); letter-spacing: .02em; }

/* ── 화면 제목·준비 중 ───────────────── */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 2px solid #111827; }
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.ready-card { display: flex; gap: 18px; align-items: flex-start; padding: 28px; border-radius: 4px; background: #F9FAFB; border: 1px solid #EEF0F3; }
.ready-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 4px; background: var(--ps); color: var(--p); display: flex; align-items: center; justify-content: center; }
.ready-title { font-size: 20px; font-weight: 800; }
.ready-desc { margin-top: 6px; color: #4B5563; font-size: 16px; }
.lab-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lab-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 4px; border: 1px solid #EEF0F3; background: #FFFFFF; text-decoration: none; box-shadow: 0 12px 32px -20px rgba(17, 24, 39, .25); }
.lab-card strong { font-size: 19px; font-weight: 800; }
.lab-card span { color: #6B7280; font-size: 15px; }
.lab-card:hover strong { color: var(--p); }

/* ── 버튼 ─────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 4px; border: 1px solid #D1D5DB; background: #FFFFFF; color: #111827; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--p); border-color: var(--p); color: #FFFFFF; }
.btn-primary:hover { background: var(--pd); }

/* ── 사용자 화면 공통 부품(나의 연구실부터 사용) ── */
.page-desc { margin-top: 6px; color: #4B5563; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 4px; }
.btn-danger { color: #B91C1C; border-color: #FCA5A5; }
.btn-danger:hover { background: #FEF2F2; }
.u-muted { color: #6B7280; font-size: 15px; }
.u-help { margin-top: 10px; color: #6B7280; font-size: 15px; }
.u-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.u-link { color: var(--p); text-decoration: underline; font-weight: 700; }
.u-notice { margin-bottom: 20px; padding: 14px 18px; border-radius: 4px; background: #FFF7ED; color: #9A3412; font-size: 16px; }
.u-notice-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: var(--ps); color: var(--pd); }
.u-error { margin-bottom: 20px; padding: 14px 18px; border-radius: 4px; background: #FEF2F2; color: #B91C1C; font-size: 16px; font-weight: 600; }
.u-error-inline { margin-top: 8px; color: #B91C1C; font-size: 15px; font-weight: 600; }
.u-error-inline[hidden] { display: none; }
.u-empty { padding: 48px 20px; text-align: center; color: #6B7280; background: #F9FAFB; border-radius: 4px; }
.u-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 4px; background: #F3F4F6; color: #374151; font-size: 14px; font-weight: 700; white-space: nowrap; }
.u-badge.is-on { background: var(--ps); color: var(--p); }
/* 표에서 내 줄(11-21 Ares) */
.u-table tr.is-me td { background: #FFF7DB; }
.u-table tr.is-me td:first-child { box-shadow: inset 4px 0 0 #F59E0B; }
.u-me { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 3px; background: #F59E0B; color: #FFFFFF; font-size: 12px; font-weight: 800; line-height: 20px; vertical-align: 1px; }
.u-card { padding: 28px; border-radius: 4px; background: #FFFFFF; border: 1px solid #EEF0F3; box-shadow: 0 12px 32px -20px rgba(17, 24, 39, .25); }
.u-section { margin-top: 40px; }
.u-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.u-section-head .btn { margin-left: auto; }
.u-h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.u-dl { margin: 0; display: grid; grid-template-columns: 160px 1fr; border-top: 1px solid #E5E7EB; }
.u-dl dt, .u-dl dd { margin: 0; padding: 16px 12px; border-bottom: 1px solid #F1F2F4; }
.u-dl dt { font-weight: 700; color: #374151; background: #F9FAFB; }
.u-history { margin-top: 8px; font-size: 15px; }
.u-history summary { cursor: pointer; color: var(--p); font-weight: 700; }
.u-history ul { margin: 8px 0 0; padding-left: 18px; }
.u-table-wrap { position: relative; overflow-x: auto; border-top: 2px solid #111827; } /* relative: 안의 sr-only(absolute)가 화면 밖으로 새지 않게 */
.u-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.u-table th, .u-table td { padding: 14px 12px; border-bottom: 1px solid #E5E7EB; text-align: left; vertical-align: middle; }
.u-table th { background: #F9FAFB; font-weight: 700; color: #374151; white-space: nowrap; }
.u-table-link td a { color: #111827; text-decoration: none; font-weight: 600; }
.u-table-link td a:hover { color: var(--p); text-decoration: underline; }
.u-col-date { width: 130px; }
.u-col-who { width: 130px; }
.u-col-num { width: 80px; }
.u-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.u-list-head strong { color: var(--p); }
.u-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.u-pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border-radius: 4px; text-decoration: none; color: #374151; }
.u-pager a:hover { background: #F3F4F6; }
.u-pager a.is-current { background: var(--p); color: #FFFFFF; font-weight: 800; }
.u-form { display: flex; flex-direction: column; gap: 24px; }
.u-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.u-field label, .u-label { font-weight: 700; color: #111827; }
.u-field .u-help { margin-top: 0; }
.u-field input:not([type=checkbox]):not([type=file]), .u-field select, .u-field textarea {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #D1D5DB; border-radius: 4px; background: #FFFFFF;
    font: inherit; font-size: 16px; color: #111827;
}
.u-field textarea { line-height: 1.7; resize: vertical; }
.u-field input:focus, .u-field select:focus, .u-field textarea:focus { border-color: var(--p); }
.u-field-row { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.u-field-date { flex: 0 0 220px; }
.u-label-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.u-req { margin-left: 4px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--acc); }
.u-static { padding: 10px 14px; border-radius: 4px; background: #F3F4F6; color: #374151; }
.u-count { margin: 0; text-align: right; color: #6B7280; font-size: 14px; }
.u-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: #B91C1C; }
.u-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid #E5E7EB; }
.u-actions-split { justify-content: space-between; margin-top: 28px; }
.u-actions-right { display: inline-flex; gap: 10px; }
.u-article { border-top: 2px solid #111827; }
.u-article-head { padding: 22px 4px; border-bottom: 1px solid #E5E7EB; }
.u-article-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.u-article-body { padding: 28px 4px; min-height: 160px; }
.u-files { list-style: none; margin: 0; padding: 14px 16px; border-radius: 4px; background: #F9FAFB; display: flex; flex-direction: column; gap: 8px; }
.u-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.u-files a { color: #111827; font-weight: 600; }
.u-file-icon { color: var(--p); display: inline-flex; }
.u-file-view { font-size: 14px; color: var(--p) !important; }

.u-field[hidden] { display: none; }
.u-fieldset { border: 0; margin: 0; padding: 0; }
.u-radios { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 4px; }
.u-radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.u-radios input { width: 18px; height: 18px; accent-color: var(--p); }
.u-reject { margin-top: 4px; color: #B91C1C; font-size: 14px; }
.u-small { font-size: 14px; margin-left: 6px; }
.u-st-pending { background: #FEF3C7; color: #92400E; }
.u-st-approved { background: var(--ps); color: var(--p); }
.u-st-rejected { background: #FEE2E2; color: #B91C1C; }

.u-num { text-align: right !important; white-space: nowrap; }
.u-link-plain { color: #111827; font-weight: 600; overflow-wrap: anywhere; }
.u-link-plain:hover { color: var(--p); }
.u-del { color: #B91C1C; font-size: 14px; }
.u-head-actions { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 8px; }
.u-section-head .u-head-actions .btn { margin-left: 0; }
.u-help-top { margin: -6px 0 14px; }
.u-box { padding: 16px 18px; border-radius: 4px; background: #F9FAFB; }
.u-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.u-stats li { padding: 18px 20px; border-radius: 4px; border: 1px solid #EEF0F3; background: #FFFFFF; display: flex; flex-direction: column; gap: 4px; }
.u-stats span { color: #6B7280; font-size: 14px; }
.u-stats strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.u-stats strong.is-warn { color: #B91C1C; }
.u-meter { display: block; height: 6px; border-radius: 4px; background: #E5E7EB; overflow: hidden; margin-top: 4px; }
.u-meter span { display: block; height: 100%; background: var(--p); }
.u-field-amount { max-width: 280px; }
.u-inline-form { margin-top: 16px; padding: 18px; border-radius: 4px; background: #F9FAFB; display: flex; flex-direction: column; gap: 12px; }
.u-field-row-end { align-items: flex-end; }
.u-deliver { list-style: none; margin: 0; padding: 0; border-top: 2px solid #111827; }
.u-deliver li { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 12px 16px; padding: 14px 8px; border-bottom: 1px solid #E5E7EB; }
.u-deliver-name { display: flex; align-items: center; gap: 8px; }
.u-deliver-file { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.u-deliver-form { display: flex; align-items: center; gap: 8px; }
.u-deliver-form input[type=file] { max-width: 230px; font-size: 14px; }
.u-deliver-url { grid-column: 2 / -1; }
.u-deliver-del { margin: 0; display: inline; }
.u-deliver-text-form { grid-column: 2 / -1; align-items: flex-start; }
.u-deliver-text-form textarea { flex: 1 1 auto; min-width: 0; padding: 6px 10px; border: 1px solid #D1D5DB; border-radius: 2px; font: inherit; font-size: 14px; resize: vertical; }
.u-deliver-text { grid-column: 2 / -1; margin: 0; white-space: pre-line; color: #374151; }
.u-deliver-url input[type=url] { flex: 1 1 auto; min-width: 0; min-height: 38px; padding: 6px 10px; border: 1px solid #D1D5DB; border-radius: 2px; font: inherit; font-size: 14px; }
.u-checks { list-style: none; margin: 0 0 8px; padding: 18px 20px; border-radius: 4px; background: #F9FAFB; display: flex; flex-direction: column; gap: 8px; }
.u-checks li::before { display: inline-block; width: 22px; font-weight: 800; }
.u-checks li.is-ok::before { content: "✓"; color: #15803D; }
.u-checks li.is-no::before { content: "✕"; color: #B91C1C; }
.u-checks li.is-info::before { content: "!"; color: #B45309; }
.u-st-draft { background: #F3F4F6; color: #374151; }
.u-st-requested { background: #FEF3C7; color: #92400E; }
.u-st-canceled { background: #F3F4F6; color: #6B7280; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 900px) {
    .u-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .u-deliver li { grid-template-columns: 1fr; }
    .u-deliver-url, .u-deliver-text-form, .u-deliver-text { grid-column: auto; }
}

/* 나의 연구실: 톡방 */
.talk { border: 1px solid #E5E7EB; border-radius: 4px; overflow: hidden; background: #F8FAFC; }
.talk-scroll { height: 560px; overflow-y: auto; padding: 20px 20px 8px; }
.talk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.talk-older, .talk-empty { text-align: center; color: #6B7280; font-size: 14px; margin-bottom: 12px; }
.talk-older a { color: var(--p); font-weight: 700; }
.talk-day { display: flex; justify-content: center; margin: 8px 0; }
.talk-day span { padding: 2px 14px; border-radius: 4px; background: #E5E7EB; color: #4B5563; font-size: 13px; }
.talk-msg { display: flex; align-items: flex-start; gap: 10px; }
.talk-msg.is-mine { justify-content: flex-end; }
.talk-av { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 4px; background: linear-gradient(135deg, var(--pl), var(--p)); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.talk-body { max-width: 72%; min-width: 0; }
.talk-who { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 2px; }
.talk-line { display: flex; align-items: flex-end; gap: 6px; }
.talk-msg.is-mine .talk-line { flex-direction: row-reverse; }
.talk-bubble { padding: 10px 14px; border-radius: 2px 6px 6px 6px; background: #FFFFFF; border: 1px solid #EEF0F3; font-size: 15px; line-height: 1.6; min-width: 0; }
.talk-msg.is-mine .talk-bubble { border-radius: 6px 2px 6px 6px; background: var(--p); border-color: var(--p); color: #FFFFFF; }
.talk-bubble.is-deleted { color: #9CA3AF; font-style: italic; background: transparent; }
.talk-msg.is-mine .talk-bubble.is-deleted { background: transparent; border-color: #E5E7EB; color: #9CA3AF; }
.talk-file { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; color: inherit; font-weight: 600; }
.talk-msg.is-mine .talk-file .u-muted { color: rgba(255, 255, 255, .8); }
.talk-time { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: #9CA3AF; white-space: nowrap; }
.talk-del { font-size: 12px; color: #9CA3AF; }
.talk-del:hover { color: #B91C1C; }
.talk-form { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-top: 1px solid #E5E7EB; background: #FFFFFF; }
.talk-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #D1D5DB; border-radius: 4px; font: inherit; font-size: 15px; resize: vertical; }
.talk-form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.talk-attach { display: inline-flex; align-items: center; gap: 6px; color: #4B5563; font-size: 14px; cursor: pointer; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.talk-attach:focus-within { outline: 3px solid var(--pl); border-radius: 3px; }
.talk-readonly { padding: 14px 16px; border-top: 1px solid #E5E7EB; background: #FFFFFF; color: #6B7280; text-align: center; }
.talk-readonly a { color: var(--p); font-weight: 700; }
@media (max-width: 640px) {
    .talk-scroll { height: 460px; padding: 14px 12px 6px; }
    .talk-body { max-width: 84%; }
}

/* 나의 연구실: 산학연 기술자문 */
.cn-answers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cn-answer { padding: 22px; }
.cn-answer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cn-who { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cn-body { font-size: 16px; }
.cn-rate { margin-top: 14px; padding-top: 12px; border-top: 1px solid #F1F2F4; }
.cn-stars { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.cn-stars .u-muted:first-child { margin-right: 8px; }
.cn-stars .u-muted:last-child { margin-left: 8px; }
.cn-star { width: 36px; height: 36px; border: 0; background: none; font-size: 24px; line-height: 1; color: #D1D5DB; cursor: pointer; border-radius: 4px; }
.cn-star.is-on { color: #F59E0B; }
.cn-star:hover { color: #F59E0B; background: #FFFBEB; }

/* 나의 연구실: 팀 정보 카드(연구개요에만) */
.lab-hero { margin-bottom: 8px; background: linear-gradient(135deg, var(--ps), #FFFFFF 60%); }
.lab-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lab-hero-name { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--pd); }
.lab-hero-title { margin-top: 4px; font-size: 18px; font-weight: 600; color: #1F2937; }
.lab-hero-meta { margin-top: 14px; color: #4B5563; font-size: 15px; }
@media (max-width: 640px) {
    .u-dl { grid-template-columns: 1fr; }
    .u-dl dt { padding-bottom: 6px; border-bottom: 0; }
    .u-card { padding: 20px; }
    .u-field-date { flex-basis: 100%; }
    .u-col-who, .u-col-num { width: auto; }
}

/* ── 아래 ─────────────────────────── */
.site-footer { margin-top: auto; background: #101010; color: rgba(255, 255, 255, .75); }
.site-footer-inner { max-width: 1400px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer .footer-strong { color: #FFFFFF; font-weight: 700; }
.footer-info { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 8px; }
.footer-info .footer-org { color: #FFFFFF; font-weight: 700; }
.footer-copy { flex-basis: 100%; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ── 자동 로그아웃 안내(사용자·관리자 공통) ── */
.session-warn { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 24, 39, .45); }
.session-warn[hidden] { display: none; }
.session-warn-box { width: 100%; max-width: 420px; padding: 28px; border-radius: 4px; background: #FFFFFF; color: #111827; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .4); display: flex; flex-direction: column; gap: 12px; }
.session-warn-title { font-size: 20px; font-weight: 800; }

/* ── 좁은 화면(태블릿·휴대폰) ───────────── */
@media (max-width: 1080px) {
    .site-menu-toggle { display: inline-flex; }
    .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0; }
    .site-nav.is-open { display: flex; }
    .site-nav-link.is-current { box-shadow: inset 3px 0 0 var(--p); }
    .site-tools { margin: 8px 0 0; flex-wrap: wrap; }
    /* 세로 배치일 때 align-items:flex-start 면 본문 폭이 내용만큼 늘어나 화면 밖으로 나감 → 화면 폭에 맞춤 */
    .sub-body { flex-direction: column; align-items: stretch; gap: 24px; padding-top: 28px; }
    .sub-content { width: 100%; }
    .side { position: static; width: 100%; flex-basis: auto; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap, .site-header-inner, .sub-visual-text, .site-footer-inner { padding-left: 16px; padding-right: 16px; }
    .sub-visual-text { padding-top: 44px; padding-bottom: 40px; }
    .sub-visual-title { font-size: 32px; }
    .sub-visual-desc { font-size: 16px; }
    .page-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* ── 메인 임시본(메인 화면 묶음에서 시안대로 바꾼다) ── */
.home-hero { position: relative; overflow: hidden; background: var(--pd); color: #FFFFFF; }
.home-hero-text { padding-top: 196px; padding-bottom: 150px; gap: 18px; }
.home-kicker { align-self: flex-start; padding: 6px 16px; border-radius: 4px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-size: 15px; font-weight: 700; color: #FFFFFF; letter-spacing: .02em; backdrop-filter: blur(6px); }
.home-title { font-size: clamp(40px, 5vw, 66px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.16; max-width: 900px; white-space: pre-line; }
.home-hero .sub-visual-desc { font-size: 19px; max-width: 620px; }
.home-hero .sub-visual-shade { background: linear-gradient(180deg, rgba(6, 12, 36, .55) 0%, rgba(6, 12, 36, 0) 26%), linear-gradient(90deg, var(--pd) 0%, rgba(0, 0, 0, 0) 85%); opacity: .94; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.home-menu { padding-top: 64px; padding-bottom: 96px; }
.home-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.home-card { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 4px; border: 1px solid #EEF0F3; background: #FFFFFF; text-decoration: none; box-shadow: 0 12px 32px -20px rgba(17, 24, 39, .25); }
.home-card strong { font-size: 21px; font-weight: 800; }
.home-card > span:last-child { color: #4B5563; font-size: 15px; }
.home-card:hover strong { color: var(--p); }
@media (max-width: 640px) {
    .home-hero-text { padding-top: 64px; padding-bottom: 64px; }
    .home-title { font-size: 36px; }
}

/* 마이페이지 나의 정보(U-MY-01) */
.my-card .u-dl { grid-template-columns: 180px 1fr; }
.my-change { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: #374151; }
.my-form { max-width: 760px; }
.my-foot { margin-top: 20px; font-size: 14px; }
.u-check-plain { display: inline-flex; align-items: center; gap: 8px; font-weight: 500 !important; font-size: 15px; }
.my-team + .my-team::before, .my-team:not(:first-child)::before { content: " · "; }

/* 경력·수상 이력(U-MY-03·16) */
.cr-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.cr-new { margin-left: auto; }
.cr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cr-item { display: flex; flex-wrap: wrap; gap: 16px; padding: 22px 24px; }
.cr-main { flex: 1 1 420px; min-width: 0; }
.cr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cr-kind { display: inline-block; font-size: 14px; font-weight: 700; color: var(--p); margin-bottom: 4px; }
.cr-title { font-size: 19px; font-weight: 800; margin: 0 0 4px; overflow-wrap: anywhere; }
.cr-content { margin: 8px 0 0; white-space: pre-wrap; }
.cr-files { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; }
.cr-foot { margin-top: 20px; font-size: 14px; }

/* 마일리지(U-MY-05) */
.ml-total { display: flex; flex-direction: column; gap: 4px; }
.ml-label { margin: 0; font-weight: 700; color: #374151; }
.ml-num { margin: 0; font-size: 40px; font-weight: 800; color: var(--p); letter-spacing: -0.02em; }
.ml-plus { color: var(--p); font-weight: 700; }
.ml-minus { color: #B91C1C; font-weight: 700; }

/* ── 역량개발(U-ED-01~05, U-MY-04) ── */
.ed-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ed-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 24px; border-radius: 4px; border: 1px solid #EEF0F3; background: #FFFFFF; box-shadow: 0 12px 32px -20px rgba(17, 24, 39, .25); }
.ed-card-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.ed-card-link:hover .ed-card-title { color: var(--p); }
.ed-card-meta { color: #6B7280; font-size: 14px; font-weight: 600; }
.ed-card-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.ed-card-desc { color: #4B5563; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* 과목 목록: 대표 그림 + 제목·설명 + 오른쪽 버튼(시안 U-ED-01) */
.ed-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid #111827; }
.ed-rows .ed-card { display: grid; grid-template-columns: 232px minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 22px 8px; border: 0; border-bottom: 1px solid #E5E7EB; border-radius: 0; box-shadow: none; background: transparent; transition: background .2s ease; }
.ed-rows .ed-card:hover { background: #FAFBFD; }
.ed-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .28) 0, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, var(--pl), var(--p) 55%, var(--pd)); color: #FFFFFF; }
.ed-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ed-rows .ed-card:hover .ed-card-img img { transform: scale(1.04); }
.ed-rows .ed-card-title { font-size: 21px; }
.ed-rows .ed-card-foot { flex-direction: column; align-items: flex-end; gap: 10px; }
.ed-rows .ed-card-foot .btn { border-radius: 4px; padding: 0 20px; }
@media (max-width: 720px) {
    .ed-rows .ed-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
    .ed-rows .ed-card-foot { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
    .ed-rows .ed-card-title { font-size: 18px; }
}
.ed-help { margin-top: 24px; }
.ed-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ed-detail-side { display: flex; flex-direction: column; gap: 16px; }
.ed-facts { margin: 0; display: grid; grid-template-columns: 84px 1fr; gap: 10px 12px; font-size: 15px; }
.ed-facts dt { color: #6B7280; font-weight: 700; }
.ed-facts dd { margin: 0; }
.ed-apply { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ed-apply .u-h2, .ed-apply p { margin: 0; }
.ed-back { align-self: flex-start; }
.ed-my { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ed-my-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.ed-my-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ed-my-main .u-meter { max-width: 320px; }
.ed-my-title { font-size: 18px; font-weight: 800; color: inherit; text-decoration: none; }
.ed-my-title:hover { color: var(--p); }
.ed-my-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.ed-my-side form { margin: 0; }

/* 학습 창(새 창) */
.ln-body { margin: 0; background: #0F172A; color: #E5E7EB; min-height: 100vh; }
.ln-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: #111827; border-bottom: 1px solid #1F2937; }
.ln-crumb { margin: 0; color: #9CA3AF; font-size: 14px; }
.ln-title { margin: 2px 0 0; font-size: 20px; font-weight: 800; color: #FFFFFF; }
.ln-notice { margin: 16px 24px 0; }
.ln-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding: 20px 24px 32px; }
.ln-player { position: relative; aspect-ratio: 16 / 9; background: #000000; border-radius: 4px; overflow: hidden; }
.ln-player iframe, .ln-player video, #ln-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ln-info { margin-top: 16px; }
.ln-no { margin: 0; color: var(--pl, #93C5FD); font-weight: 700; }
.ln-video-title { margin: 4px 0 12px; font-size: 22px; color: #FFFFFF; }
.ln-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ln-progress { margin-top: 16px; padding: 16px 18px; border-radius: 4px; background: #111827; }
.ln-progress p { margin: 0 0 8px; }
.ln-progress .u-help { color: #9CA3AF; margin-top: 10px; }
.ln-progress .u-meter { background: #374151; }
.ln-side { padding: 20px; border-radius: 4px; background: #111827; align-self: start; }
.ln-side .u-h2 { color: #FFFFFF; margin: 0 0 4px; }
.ln-side .u-muted, .ln-side .u-help { color: #9CA3AF; }
.ln-h2 { margin-top: 24px !important; }
.ln-list, .ln-courses { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ln-list a { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 4px; color: #E5E7EB; text-decoration: none; }
.ln-list a:hover, .ln-list .is-current a { background: #1F2937; }
.ln-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #374151; font-size: 13px; font-weight: 700; }
.ln-list .is-done .ln-mark { background: var(--p); color: #FFFFFF; }
.ln-item { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.ln-item span { color: #9CA3AF; font-size: 13px; }
.ln-courses li { padding: 6px 10px; border-radius: 4px; font-size: 15px; }
.ln-courses li.is-current { background: #1F2937; font-weight: 700; }
.ln-courses a { color: #E5E7EB; text-decoration: none; }
.ln-courses a:hover { text-decoration: underline; }

@media (max-width: 1080px) {
    .ed-detail, .ln-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .ed-cards { grid-template-columns: 1fr; }
    .ed-my-item { flex-direction: column; align-items: flex-start; }
    .ed-my-side { justify-content: flex-start; }
    .ln-head, .ln-main { padding-left: 16px; padding-right: 16px; }
    .ln-notice { margin: 12px 16px 0; }
}

/* ── 주요행사(U-EV-01~03) ── */
.ev-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ev-tabs a { padding: 8px 16px; border-radius: 4px; border: 1px solid #E5E7EB; color: #374151; text-decoration: none; font-weight: 600; }
.ev-tabs a.is-on { background: var(--p); border-color: var(--p); color: #FFFFFF; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ev-link { display: flex; gap: 18px; padding: 20px; border-radius: 4px; border: 1px solid #EEF0F3; background: #FFFFFF; color: inherit; text-decoration: none; box-shadow: 0 12px 32px -20px rgba(17, 24, 39, .25); height: 100%; box-sizing: border-box; }
.ev-link:hover .ev-title { color: var(--p); }
.ev-thumb { flex: none; width: 120px; height: 120px; border-radius: 4px; overflow: hidden; background: var(--ps); display: flex; align-items: center; justify-content: center; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-thumb-day { display: flex; flex-direction: column; align-items: center; color: var(--pd); font-size: 14px; font-weight: 700; }
.ev-thumb-day strong { font-size: 36px; line-height: 1.1; }
.ev-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ev-meta { color: #6B7280; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ev-title { font-size: 19px; font-weight: 800; }
.ev-desc { color: #4B5563; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-facts { color: #6B7280; font-size: 14px; }
.ev-hero { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }
@media (max-width: 900px) {
    .ev-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ev-link { flex-direction: column; }
    .ev-thumb { width: 100%; height: 160px; }
}

/* ── 커뮤니티 게시판(U-CO-01~06, U-MY-14) ── */
.bd-search { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 18px; }
.bd-search select, .bd-search input { min-height: 44px; padding: 8px 12px; border: 1px solid #D1D5DB; border-radius: 4px; background: #FFFFFF; font: inherit; }
.bd-search input { width: 260px; max-width: 100%; }
.bd-col-state { width: 120px; }
.bd-pinned td { background: var(--ps); }
.bd-clip, .bd-lock { margin-left: 4px; font-size: 14px; }
.bd-lock { margin: 0 4px 0 0; }
.bd-view { margin-top: -8px; }
.bd-view-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 4px; border-bottom: 1px solid #E5E7EB; color: #6B7280; font-size: 15px; }
.bd-view-body { padding: 28px 4px; min-height: 160px; border-bottom: 1px solid #E5E7EB; }
.bd-view .u-files { margin-top: 16px; }
.bd-answer { margin-top: 32px; padding: 24px 28px; border-radius: 4px; background: var(--ps); display: flex; flex-direction: column; gap: 12px; }
.bd-answer-item { padding-top: 12px; border-top: 1px solid rgba(17, 24, 39, .08); }
.bd-near { display: flex; flex-direction: column; margin-top: 24px; border-top: 1px solid #E5E7EB; }
.bd-near a { display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px solid #E5E7EB; color: #111827; text-decoration: none; }
.bd-near a span { flex: 0 0 64px; color: #6B7280; font-size: 15px; }
.bd-near a:hover { color: var(--p); }
@media (max-width: 720px) {
    .bd-hide-sm { display: none; }
    .bd-search input { flex: 1 1 160px; }
}

/* ── 사업 안내·연구팀·연구성과(U-AB-01, U-RT-01, U-OC-01) ── */
.pb-block { margin-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.pb-lead { font-size: 18px; color: #374151; }
.pb-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.pb-facts div { padding: 18px 20px; border-radius: 4px; background: var(--ps); }
.pb-facts dt { color: #6B7280; font-size: 14px; font-weight: 700; }
.pb-facts dd { margin: 4px 0 0; font-weight: 800; color: #111827; }
.pb-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.pb-flow > li { position: relative; }
.pb-flow > li + li::before { content: "↓"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); color: #9CA3AF; font-weight: 800; }
.pb-flow strong { display: block; font-size: 18px; }
.pb-flow span { color: #6B7280; font-size: 15px; }
.pb-flow-main, .pb-flow-core { min-width: 280px; padding: 16px 24px; border-radius: 4px; border: 1px solid #E5E7EB; background: #FFFFFF; text-align: center; }
.pb-flow-core { background: var(--p); border-color: var(--p); }
.pb-flow-core strong, .pb-flow-core span { color: #FFFFFF; }
.pb-flow-team { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pb-flow-side { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pb-flow-side li { min-width: 180px; padding: 14px 18px; border-radius: 4px; background: var(--ps); text-align: center; }
.pb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pb-steps li { padding: 22px; border-radius: 4px; border: 1px solid #EEF0F3; background: #FFFFFF; box-shadow: 0 12px 32px -20px rgba(17, 24, 39, .25); }
.pb-steps strong { display: block; margin: 10px 0 6px; font-size: 18px; }
.pb-steps p { color: #4B5563; font-size: 15px; }
.pb-step-no { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 4px; background: var(--p); color: #FFFFFF; font-weight: 800; }
.pb-contact { display: flex; gap: 16px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 24px 28px; border-radius: 4px; background: var(--ps); }
.pb-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-bottom: 20px; padding: 18px 20px; border-radius: 4px; background: #F9FAFB; }
.pb-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; color: #374151; }
.pb-filter select, .pb-filter input { min-height: 44px; padding: 8px 12px; border: 1px solid #D1D5DB; border-radius: 4px; background: #FFFFFF; font: inherit; font-weight: 400; }
.pb-filter-q { flex: 1 1 200px; }
.pb-thumb-text { font-size: 40px; font-weight: 800; color: rgba(255, 255, 255, .92); }
/* 사진이 없을 때 대신 보이는 그림: 테마색 그라데이션 */
.pb-thumb, .pb-best-img { background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .28) 0, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, var(--pl), var(--p) 55%, var(--pd)); }
.ev-thumb:has(.ev-thumb-day) { background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .28) 0, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, var(--pl), var(--p) 55%, var(--pd)); }
.ev-thumb-day { color: rgba(255, 255, 255, .9) !important; }
.pb-stage { display: inline-block; padding: 2px 10px; border-radius: 4px; background: #DCFCE7; color: #166534; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pb-stage.is-done { background: #F3F4F6; color: #374151; }
.pb-best { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pb-best a { display: flex; flex-direction: column; height: 100%; border-radius: 4px; overflow: hidden; border: 1px solid #EEF0F3; background: #FFFFFF; color: inherit; text-decoration: none; box-shadow: 0 12px 32px -20px rgba(17, 24, 39, .25); }
.pb-best a:hover strong { color: var(--p); }
.pb-best-img { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.pb-best-img img { width: 100%; height: 100%; object-fit: cover; }
.pb-best-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; }
.pb-best-body strong { font-size: 19px; }
.pb-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pb-photos img { width: 100%; border-radius: 4px; display: block; }
.pb-ach { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 960px) {
    .pb-facts, .pb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pb-best { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .pb-facts, .pb-steps, .pb-photos { grid-template-columns: 1fr; }
    .pb-flow-main, .pb-flow-core { min-width: 0; width: 100%; }
}

/* ── 총학생회·동아리방(U-SC-01·02) ── */
.sc-term { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.sc-intro { font-size: 17px; color: #374151; }
.sc-officers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sc-officers li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 4px; border: 1px solid #EEF0F3; background: #FFFFFF; }
.sc-officers span { color: var(--p); font-size: 14px; font-weight: 700; }
.sc-mine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-mine li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-radius: 4px; background: #F9FAFB; }
.sc-mine a { font-weight: 700; color: #111827; }
.sc-posts, .sc-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sc-posts li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid #F3F4F6; }
.sc-posts a { font-weight: 700; color: #111827; text-decoration: none; }
.sc-posts a:hover { color: var(--p); }
.sc-members li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #F3F4F6; }
.sc-actions { display: inline-flex; gap: 6px; }
.sc-h3 { margin-top: 16px; font-size: 17px; font-weight: 800; }
.sc-write { gap: 14px; }
.sc-comments { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.sc-comments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-comments li { padding: 14px 16px; border-radius: 4px; background: #F9FAFB; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sc-comment-form { display: flex; gap: 10px; align-items: flex-end; }
.sc-comment-form textarea { flex: 1 1 auto; min-height: 56px; padding: 10px 14px; border: 1px solid #D1D5DB; border-radius: 4px; font: inherit; }
@media (max-width: 720px) {
    .sc-officers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sc-comment-form { flex-direction: column; align-items: stretch; }
}
.ed-detail-side .u-card > .btn, .ed-detail-side .u-card > form { margin-top: 12px; }

/* ── 메인 화면(U-CM-01) ── */
/* 높이는 슬라이드마다 준다. 감싸는 칸에만 주면 글이 짧은 슬라이드 아래로 바탕색(파랑) 띠가 드러남(11-23 Ares) */
.hm-slide { position: relative; min-height: 640px; display: flex; flex-direction: column; justify-content: center; }
.hm-slide[hidden] { display: none; }
.hm-slide > .sub-visual-text { width: 100%; box-sizing: border-box; }
.hm-slide.is-on { animation: hm-fade .6s ease; }
@keyframes hm-fade { from { opacity: .3; } to { opacity: 1; } }
.hm-ctrl { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); width: 100%; max-width: 1400px; padding: 0 24px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; z-index: 2; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); color: #FFFFFF; font-size: 14px; cursor: pointer; backdrop-filter: blur(6px); }
.hm-btn:hover { background: rgba(255, 255, 255, .25); }
.hm-count { color: rgba(255, 255, 255, .85); font-size: 15px; min-width: 52px; text-align: center; }
.hm-count strong { color: #FFFFFF; }
.hm-sec { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 40px; }
.hm-band { background: #F5F7FB; }
.hm-kicker { display: inline-block; align-self: flex-start; padding: 6px 14px; border-radius: 4px; background: var(--ps); color: var(--p); font-weight: 700; font-size: 15px; }
.hm-title { font-size: 44px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.25; margin-top: 16px; }
.hm-desc { margin-top: 16px; color: #374151; font-size: 19px; line-height: 1.7; max-width: 620px; }
.hm-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: 4px; background: var(--p); color: #FFFFFF; font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(37, 80, 214, .55); transition: background .2s ease, transform .2s ease; }
.hm-pill:hover { background: var(--pd); color: #FFFFFF; transform: translateY(-2px); }
.hm-pill svg { transition: transform .2s ease; }
.hm-pill:hover svg { transform: translateX(3px); }
.hm-pill-white { background: #FFFFFF; color: var(--pd); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.hm-pill-white:hover { background: #FFFFFF; color: var(--p); }
.hm-pill-line { background: transparent; border: 1.5px solid rgba(255, 255, 255, .7); color: #FFFFFF; box-shadow: none; }
.hm-pill-line:hover { background: rgba(255, 255, 255, .12); }
.hm-more { font-weight: 700; color: var(--p); text-decoration: none; white-space: nowrap; }
.hm-more:hover { text-decoration: underline; }
.home-kicker, .hm-kicker, .hm-desc, .hm-title, .hm-head > div, .pb-best-body > *, .hm-list-body > *, .hm-lead > * { max-width: 100%; min-width: 0; }
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hm-lead { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; max-width: 100%; }
.hm-lead .hm-pill { margin-top: 24px; }
.hm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.hm-stats { display: flex; flex-wrap: wrap; gap: 20px 44px; margin: 24px 0 0; }
.hm-stats div { display: flex; flex-direction: column; gap: 4px; }
.hm-stats dt { font-size: 15px; color: #4B5563; font-weight: 600; }
.hm-stats dd { margin: 0; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--p); }
.hm-stats small { font-size: 18px; margin-left: 3px; font-weight: 700; }
.hm-panel { padding: 8px 0 0; border-top: 2px solid #111827; }
.hm-panel-title { display: flex; justify-content: space-between; align-items: center; font-size: 19px; font-weight: 800; padding: 12px 0 8px; }
.hm-panel-title a { font-weight: 600; font-size: 15px; color: #6B7280; text-decoration: none; }
.hm-list { list-style: none; margin: 0; padding: 0; }
.hm-list a { display: flex; align-items: center; gap: 20px; padding: 18px 12px; border-bottom: 1px solid #E5E7EB; border-radius: 0; color: inherit; text-decoration: none; transition: background .2s ease; }
.hm-list a:hover { background: var(--ps); }
.hm-list a:hover strong { color: var(--p); }
.hm-list-img { flex: none; width: 120px; height: 80px; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--pl), var(--pd)); color: #FFFFFF; font-size: 30px; font-weight: 800; }
.hm-list-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-list-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hm-list-body strong { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.hm-list-body .u-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.hm-live { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #047857; }
.hm-live::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #10B981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }
.hm-list-go { flex: none; color: #9CA3AF; }
.hm-list a:hover .hm-list-go { color: var(--p); }
.hm-cards4, .hm-cards3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.hm-cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-cards4 a, .hm-cards3 a { display: flex; flex-direction: column; height: 100%; border-radius: 4px; overflow: hidden; border: 1px solid #EEF0F3; background: #FFFFFF; color: inherit; text-decoration: none; box-shadow: 0 12px 32px -22px rgba(17, 24, 39, .3); transition: transform .25s ease, box-shadow .25s ease; }
.hm-cards4 a:hover, .hm-cards3 a:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(17, 24, 39, .12); }
.hm-cards4 a:hover strong, .hm-cards3 a:hover strong { color: var(--p); }
.hm-cards3 a > .u-badge { margin: 24px 24px 0; align-self: flex-start; }
.hm-cards3 a > strong { margin: 10px 24px 0; font-size: 22px; }
.hm-cards3 a > span:not(.u-badge):not(.pb-best-img):not(.pb-best-body):not(.hm-edu-top) { margin: 8px 24px 0; color: #4B5563; font-size: 15px; flex: 1 1 auto; }
.hm-cards3 a > em { margin: 20px 24px 24px; padding-top: 16px; border-top: 1px solid #F1F2F4; font-style: normal; font-weight: 700; color: var(--p); font-size: 15px; }
.hm-edu-top { display: flex; align-items: center; justify-content: center; height: 200px; background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .28) 0, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, var(--pl), var(--p) 55%, var(--pd)); color: #FFFFFF; }
.hm-edu-top svg { opacity: .92; transition: transform .3s ease; }
.hm-cards3 a:hover .hm-edu-top svg { transform: scale(1.08); }
.hm-edu-2 { background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .28) 0, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, #34D399, #0E9F6E 55%, #046C4E); }
.hm-edu-3 { background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, #FBBF24, var(--acc) 55%, #B45309); }
/* 연구성과: 짙은 주색 띠 + 첫 카드 크게 */
.hm-band-dark { background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .1) 0, rgba(255, 255, 255, 0) 40%), var(--pd); color: #FFFFFF; }
.hm-band-dark .hm-kicker { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.hm-band-dark .hm-desc, .hm-band-dark .hm-stats dt { color: rgba(255, 255, 255, .8); }
.hm-band-dark .hm-stats dd { color: #FFFFFF; }
.hm-band-dark > .hm-sec > .u-muted { color: rgba(255, 255, 255, .75); }
.hm-band-dark .hm-cards4 a { border-color: transparent; color: #111827; }
.hm-band-dark .hm-cards4 .u-muted { color: #6B7280; }
.hm-band-dark .pb-best-img { background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, var(--pl), var(--p) 60%, var(--pd)); }
.hm-band-dark .pb-best-img .pb-thumb-text { color: rgba(255, 255, 255, .9); }
.hm-feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-feature li:first-child { grid-column: span 2; grid-row: span 2; }
.hm-feature li:nth-child(n+4) { display: none; }
.hm-feature li:first-child .pb-best-img { flex: 1 1 auto; min-height: 280px; }
.hm-feature li:first-child .pb-best-img .pb-thumb-text { font-size: 72px; }
.hm-feature li:first-child .pb-best-body strong { font-size: 26px; }
.hm-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hm-tile { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 4px; background: var(--ps); color: inherit; text-decoration: none; }
.hm-tile strong { font-size: 21px; }
.hm-tile:hover strong { color: var(--p); }
.hm-tile > span { color: #4B5563; font-size: 15px; }
.hm-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-big { font-size: 34px !important; font-weight: 800; color: var(--pd) !important; }
.hm-big small { font-size: 15px; font-weight: 600; margin-left: 4px; color: #4B5563; }
.hm-notice { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; }
.hm-notice > div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hm-news { list-style: none; margin: 0; padding: 0; border-top: 2px solid #111827; }
.hm-news a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 4px; border-bottom: 1px solid #E5E7EB; color: #111827; text-decoration: none; }
.hm-news a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hm-news a:hover span { color: var(--p); }
.hm-news time { flex: none; color: #6B7280; font-size: 15px; }
.hm-news li.u-muted { padding: 18px 4px; }
.hm-reveal.is-ready { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.hm-reveal.is-ready.is-in { opacity: 1; transform: none; }
@media (max-width: 1024px) {
    .hm-cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-feature li:first-child { grid-row: auto; }
    .hm-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .hm-slide { min-height: 520px; }
    .home-hero-text { padding-top: 132px; padding-bottom: 110px; }
    .home-hero .sub-visual-desc { font-size: 16px; }
    .hm-sec { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
    .hm-title { font-size: 30px; }
    .hm-desc { font-size: 16px; }
    .hm-stats dd { font-size: 34px; }
    .hm-pill { min-height: 50px; padding: 0 22px; font-size: 16px; }
    .hm-list-img { width: 72px; height: 56px; font-size: 22px; }
    .hm-list-body strong { font-size: 18px; }
    .hm-feature li:first-child { grid-column: auto; }
    .hm-feature li:first-child .pb-best-img { min-height: 200px; }
    /* 1fr 은 내용 최소 폭보다 줄지 않아 좁은 휴대폰(360px)에서 가로로 삐져나감 → minmax(0, 1fr) */
    .hm-cards4, .hm-cards3, .hm-duo, .hm-notice { grid-template-columns: minmax(0, 1fr); }
    .hm-cards4 > li, .hm-cards3 > li, .hm-notice > * { min-width: 0; }
    .hm-ctrl { padding: 0 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-slide.is-on { animation: none; }
    .hm-cards4 a, .hm-cards3 a { transition: none; }
}

/* ===== 증명서 발급(U-MY-20)·진위 확인 ===== */
.ce-help { margin: 0 0 8px; }
.ce-col-act { width: 120px; text-align: center; }
.ce-col-act form { margin: 0; }
.ce-sub { font-size: 14px; }
.ce-state { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; }
.ce-state-off { background: #FEE4E2; color: #B42318; }
.ce-verify-card { margin-bottom: 20px; }
.ce-verify-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.ce-verify-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; flex: 1 1 220px; }
.ce-verify-form input { padding: 11px 14px; border: 1px solid #D0D5DD; border-radius: 4px; font: inherit; font-weight: 400; text-transform: uppercase; }
.ce-result { border-left: 6px solid #98A2B3; }
.ce-result.is-valid { border-left-color: #12B76A; }
.ce-result.is-revoked { border-left-color: #F04438; }
.ce-result-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; margin: 16px 0; }
.ce-result-list div { display: flex; flex-direction: column; gap: 2px; }
.ce-result-list dt { font-size: 13px; color: #6B7280; }
.ce-result-list dd { margin: 0; font-weight: 700; }

/* ===== 디지털 배지(U-MY-05) ===== */
.bg-card { display: flex; gap: 20px; align-items: flex-start; }
.bg-icon { flex: none; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; background: #F3F4F6; color: #9CA3AF; }
.bg-icon.is-issued { background: linear-gradient(135deg, #FDE68A, #F59E0B); color: #fff; }
.bg-body { flex: 1; }
.bg-body p { margin: 0 0 12px; }
.bg-body form { display: inline-block; margin-right: 8px; }
.bg-state { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bg-chip { display: inline-block; padding: 3px 12px; border-radius: 4px; font-size: 13px; font-weight: 700; background: #F3F4F6; color: #374151; }
.bg-chip-applied, .bg-chip-submitted { background: #FEF3C7; color: #92400E; }
.bg-chip-issued { background: #D1FAE5; color: #065F46; }
.bg-chip-not_issued { background: #FEE4E2; color: #B42318; }

/* 머리글 알림 숫자 */
.site-tool-bell { position: relative; }
.site-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 4px; background: #D92D20; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* 알림 센터(U-MY-21) */
.nt-head { align-items: center; }
.nt-tabs { display: flex; gap: 4px; }
.nt-tabs a { padding: 8px 14px; border-radius: 4px; color: #374151; text-decoration: none; font-weight: 600; }
.nt-tabs a.is-current { background: var(--ps); color: var(--pd); }
.nt-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #E5E7EB; }
.nt-item a { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 16px 12px; border-bottom: 1px solid #E5E7EB; color: #4B5563; text-decoration: none; }
.nt-item a:hover { background: #F9FAFB; }
.nt-item.is-unread a { color: #111827; font-weight: 700; background: #FCFCFD; }
.nt-item.is-unread .nt-title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--p); vertical-align: middle; }
.nt-kind { justify-self: start; padding: 3px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; background: #F2F4F7; color: #344054; }
.nt-kind-approved { background: #ECFDF3; color: #027A48; }
.nt-kind-rejected { background: #FEF3F2; color: #B42318; }
.nt-kind-answered, .nt-kind-cert_result { background: var(--ps); color: var(--pd); }
.nt-kind-club { background: #FDF2FA; color: #C11574; }
.nt-time { font-size: 14px; color: #6B7280; font-weight: 400; white-space: nowrap; }
@media (max-width: 640px) {
    .nt-item a { grid-template-columns: 1fr; gap: 6px; }
}

/* 나의 일정(U-MY-22) */
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-title { margin: 0 8px; font-size: 24px; }
.cal-legend { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #4B5563; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #E5E7EB; border-left: 1px solid #E5E7EB; }
.cal-dow { padding: 8px; text-align: center; font-size: 14px; font-weight: 700; background: #F9FAFB; border-right: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; }
.cal-dow.is-sun { color: #D92D20; }
.cal-dow.is-sat { color: #1570EF; }
.cal-cell { min-height: 112px; padding: 6px; border-right: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell.is-out { background: #FAFAFA; }
.cal-cell.is-out .cal-date { color: #D0D5DD; }
.cal-date { font-size: 14px; font-weight: 700; color: #344054; }
.cal-cell.is-today .cal-date { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--p); color: #fff; }
.cal-item { display: block; padding: 2px 6px; border-radius: 3px; font-size: 12px; line-height: 1.5; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item b { margin-right: 4px; font-weight: 700; }
.cal-mine { background: var(--p); color: #fff; }
.cal-event { background: var(--ps); color: var(--pd); }
.cal-deadline { background: #FEF0C7; color: #93370D; }
.cal-list { margin: 0; }
.cal-list-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #E5E7EB; }
.cal-list dt { font-weight: 700; }
.cal-list dd { margin: 0; }
.cal-list ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cal-tag { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; }
.cal-feed-new { padding: 16px; margin-bottom: 12px; border-radius: 4px; background: var(--ps); }
.cal-feed-new label { display: block; font-weight: 700; margin-bottom: 6px; }
.cal-feed-input { width: 100%; padding: 10px 12px; border: 1px solid #D0D5DD; border-radius: 4px; font: inherit; font-size: 14px; background: #fff; }
.cal-feed-actions { display: flex; gap: 8px; }
.cal-feed-actions form { margin: 0; }
@media (max-width: 760px) {
    .cal-grid { display: none; }
    .cal-list-row { grid-template-columns: 1fr; gap: 4px; }
}
.cal-more { font-size: 12px; color: #6B7280; padding: 0 6px; }
.sc-invite { margin-top: 20px; padding-top: 16px; border-top: 1px solid #E5E7EB; display: flex; flex-direction: column; gap: 8px; }
.sc-invite form { margin: 0; }
.sc-invite-label { font-weight: 700; font-size: 14px; }
.sc-invite-email { display: flex; gap: 6px; }
.sc-invite-email input { flex: 1; min-width: 0; }

/* ── 통합 검색(U-CM-06)·약관·사이트맵 ── */
.page-plain { padding-top: 40px; padding-bottom: 72px; }
.sr-form { display: flex; gap: 8px; margin: 8px 0 20px; max-width: 720px; }
.sr-form input { flex: 1; min-width: 0; font-size: 18px; padding: 12px 14px; }
.sr-form .btn { display: inline-flex; align-items: center; gap: 6px; }
.sr-summary { margin: 0 0 16px; }
.sr-back { margin-left: 12px; font-size: 15px; }
.sr-group { margin-bottom: 16px; }
.sr-list { list-style: none; margin: 0 0 12px; padding: 0; }
.sr-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #F1F2F4; }
.sr-list li a { font-weight: 600; color: #111827; }
.sr-list li a:hover { color: var(--p); }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sm-sec ul { list-style: none; margin: 0; padding: 0; }
.sm-sec li { padding: 4px 0; }
.sm-sec h2 a { color: inherit; }
.policy .u-card h2 { margin-top: 28px; }
.policy .u-card h2:first-child { margin-top: 0; }
.policy-table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.policy-table th, .policy-table td { border: 1px solid #E5E7EB; padding: 8px 12px; text-align: left; vertical-align: top; }
.policy-table th { background: #F9FAFB; width: 140px; white-space: nowrap; }
@media (max-width: 640px) {
    .sr-form { flex-direction: column; }
    .policy-table th { width: auto; white-space: normal; }
}
.sr-list li a, .sm-sec a { text-decoration: none; }
.sr-list li a:hover, .sm-sec a:hover { text-decoration: underline; }
.sm-grid { align-items: start; }

/* ── 메인: 첫 화면 사진 위 투명 머리글(내리면 흰 바탕) ── */
.is-home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.is-home .site-header:not(.is-solid) .site-logo,
.is-home .site-header:not(.is-solid) .site-nav-link,
.is-home .site-header:not(.is-solid) .site-tool { color: #FFFFFF; }
.is-home .site-header:not(.is-solid) .site-nav-link.is-current { box-shadow: inset 0 -3px 0 #FFFFFF; }
.is-home .site-header:not(.is-solid) .site-tool:hover { background: rgba(255, 255, 255, .15); }
.is-home .site-header:not(.is-solid) .site-logo-mark .lm-bg { fill: #FFFFFF; }
.is-home .site-header:not(.is-solid) .site-logo-mark .lm-t,
.is-home .site-header:not(.is-solid) .site-logo-mark .lm-l,
.is-home .site-header:not(.is-solid) .site-logo-mark .lm-r { fill: var(--p); }
.is-home .site-header:not(.is-solid) .site-account { background: #FFFFFF; color: var(--pd); }
.is-home .site-header:not(.is-solid) .site-menu-toggle { background: transparent; border-color: rgba(255, 255, 255, .5); color: #FFFFFF; }
.is-home .site-header.is-solid { background: #FFFFFF; border-bottom-color: #E5E7EB; box-shadow: 0 8px 24px -18px rgba(17, 24, 39, .35); }
.ln-unmute { position: absolute; left: 16px; bottom: 16px; z-index: 3; padding: 10px 18px; border: 0; border-radius: 4px; background: rgba(17, 24, 39, .85); color: #FFFFFF; font-size: 14px; font-weight: 700; cursor: pointer; }
.ln-unmute:hover, .ln-unmute:focus-visible { background: #2550D6; outline: none; }

/* 역량개발 목록(11-21 개편): 요약 4칸(아이콘) → 과목 카드(머리: 코드·칩·제목 / 오른쪽 수강 상태·신청) → 영상 줄(번호·썸네일·재생 표시·시청 막대) → 하단 로그인 안내 */
.ed-stats { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ed-stats li { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: 4px; background: #F8FAFC; border: 1px solid #EEF1F5; }
.ed-stat-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 4px; background: #FFFFFF; color: var(--p); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px -6px rgba(17, 24, 39, .25); }
.ed-stat-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ed-stat-body > span { color: #6B7280; font-size: 13px; font-weight: 600; }
.ed-stat-body strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
.ed-stats .ed-stat-text { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.ed-stat-body .u-link { font-size: 14px; }

.ed-course { margin-top: 24px; border: 1px solid #E5E7EB; border-radius: 4px; background: #FFFFFF; overflow: hidden; scroll-margin-top: 110px; box-shadow: 0 1px 2px rgba(17, 24, 39, .04); }
.ed-course.is-done { border-color: #BBF7D0; }
.ed-course-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 28px 22px; background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%); border-bottom: 1px solid #EEF0F3; }
.ed-course-info { min-width: 0; }
.ed-course-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ed-code { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 4px; background: #111827; color: #FFFFFF; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.ed-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border-radius: 4px; background: #F3F4F6; color: #4B5563; font-size: 13px; font-weight: 700; }
.ed-chip svg { color: #9CA3AF; }
.ed-course-head .ed-card-desc { margin: 6px 0 0; max-width: 700px; }
.ed-course-title { margin: 12px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.ed-course-title a { color: inherit; text-decoration: none; }
.ed-course-title a:hover { color: var(--p); }
.ed-course-act { flex: 0 0 auto; min-width: 190px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.ed-course-act form { margin: 0; }
.ed-enroll { min-width: 150px; border-radius: 4px; }
.ed-state { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 14px; border-radius: 4px; font-size: 14px; font-weight: 800; background: #F3F4F6; color: #374151; }
.ed-state.is-done { background: #DCFCE7; color: #15803D; }
.ed-state.is-on { background: var(--ps); color: var(--p); }
.ed-state.is-wait { background: #FEF3C7; color: #B45309; }
.ed-state-sub { font-size: 13px; color: #6B7280; }
.ed-progress { width: 190px; height: 8px; border-radius: 4px; background: #EEF0F3; overflow: hidden; }
.ed-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pl), var(--p)); }

.ed-course .ed-rows { margin: 0; padding: 6px 0; border-top: 0; list-style: none; }
.ed-course .ed-rows .ed-card { display: grid; grid-template-columns: 36px 184px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 14px 28px; border: 0; border-radius: 0; box-shadow: none; background: transparent; transition: background .15s ease; }
.ed-course .ed-rows .ed-card + .ed-card { border-top: 1px dashed #E5E7EB; }
.ed-course .ed-rows .ed-card:hover { background: #F9FAFB; }
.ed-no { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #E5E7EB; background: #FFFFFF; color: #6B7280; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ed-card.is-done .ed-no { border-color: #16A34A; background: #16A34A; color: #FFFFFF; }
.ed-course .ed-card-img { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; }
.ed-play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(17, 24, 39, .55); color: #FFFFFF; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); transition: transform .2s ease, background .2s ease; }
.ed-card:hover .ed-play { transform: scale(1.1); background: var(--p); }
.ed-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 3px; background: rgba(17, 24, 39, .8); color: #FFFFFF; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ed-course .ed-card-title { font-size: 18px; line-height: 1.45; }
.ed-course .ed-card-link { gap: 6px; }
.ed-watch { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: #9CA3AF; }
.ed-watch.is-done { color: #15803D; }
.ed-watch.is-on { color: var(--p); }
.ed-mini-bar { display: block; width: 160px; height: 4px; border-radius: 4px; background: #EEF0F3; overflow: hidden; }
.ed-mini-bar span { display: block; height: 100%; background: var(--p); }
.ed-open { border-radius: 4px; padding: 0 18px; white-space: nowrap; }

.ed-foot { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.ed-foot-login { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 4px; background: #FFF7ED; border: 1px solid #FED7AA; }
.ed-foot-login p { margin: 0; flex: 1 1 auto; color: #7C2D12; font-size: 15px; line-height: 1.6; }
.ed-foot-login p strong { display: block; font-size: 16px; color: #9A3412; }
.ed-foot-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 4px; background: #FFFFFF; color: #EA580C; display: flex; align-items: center; justify-content: center; }
.ed-foot-help { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #6B7280; font-size: 14px; line-height: 1.7; }
.ed-foot-help svg { flex: 0 0 auto; margin-top: 4px; color: #9CA3AF; }
@media (max-width: 960px) {
    .ed-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ed-course-head { flex-direction: column; }
    .ed-course-act { align-items: flex-start; text-align: left; }
}
@media (max-width: 720px) {
    .ed-course-head { padding: 20px; }
    .ed-course .ed-rows .ed-card { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 14px 20px; }
    .ed-course .ed-no { display: none; }
    .ed-course .ed-open { grid-column: 1 / -1; }
    .ed-foot-login { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .ed-stats { grid-template-columns: minmax(0, 1fr); }
}

/* 공통 확인 창(data-confirm) */
.cf-dialog { width: min(420px, calc(100vw - 32px)); padding: 28px 28px 22px; border: 0; border-radius: 4px; background: #FFFFFF; color: #111827; box-shadow: 0 24px 64px -16px rgba(17, 24, 39, .45); text-align: center; }
.cf-dialog::backdrop { background: rgba(17, 24, 39, .45); }
.cf-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--ps, #E8EEFD); color: var(--p, #2550D6); display: flex; align-items: center; justify-content: center; }
.cf-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.5; letter-spacing: -0.02em; word-break: keep-all; }
.cf-detail { margin: 8px 0 0; color: #4B5563; font-size: 15px; line-height: 1.6; word-break: keep-all; white-space: pre-line; }
.cf-actions { display: flex; gap: 8px; margin-top: 24px; }
.cf-btn { flex: 1 1 0; min-height: 48px; border: 1px solid #D1D5DB; border-radius: 4px; background: #FFFFFF; color: #111827; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.cf-btn:hover { background: #F9FAFB; }
.cf-btn-ok { border-color: var(--p, #2550D6); background: var(--p, #2550D6); color: #FFFFFF; }
.cf-btn-ok:hover { background: var(--pd, #1D3FAF); }

/* 오류 화면(404·403·500). 서버 정보는 보이지 않는다 */
.err-page { padding-top: 96px; padding-bottom: 120px; }
.err-box { max-width: 640px; padding: 40px 0 0; border-top: 4px solid var(--p); }
.err-code { margin: 0; font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--p); font-variant-numeric: tabular-nums; }
.err-title { margin: 18px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.err-desc { margin: 12px 0 0; color: #4B5563; font-size: 17px; line-height: 1.7; }
.err-req { margin: 16px 0 0; color: #6B7280; font-size: 14px; }
.err-req code { padding: 2px 8px; border-radius: 3px; background: #F3F4F6; color: #111827; }
.err-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* 동아리방 대표 이미지(밴드형 카드). 올린 이미지가 없으면 기본 이미지 + 방 이름 첫 글자 */
.sc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sc-card { border: 1px solid #E5E7EB; border-radius: 4px; background: #FFFFFF; overflow: hidden; }
.sc-card-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; padding: 0 0 20px; }
.sc-card-link > .ed-card-meta, .sc-card-link > .ed-card-title, .sc-card-link > .ed-card-desc { padding: 0 20px; }
.sc-card-link > .ed-card-meta { padding-top: 14px; }
.sc-card-link:hover .ed-card-title { color: var(--p); }
.sc-card-link:hover .sc-cover img { transform: scale(1.03); }
.sc-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #E5E7EB; }
.sc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.sc-cover-initial { position: absolute; left: 20px; bottom: 14px; font-size: 44px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .92); letter-spacing: -0.02em; }
.sc-room-cover { position: relative; aspect-ratio: 32 / 9; max-height: 260px; width: 100%; overflow: hidden; border-radius: 4px; margin-bottom: 24px; background: #E5E7EB; }
.sc-room-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-room-cover .sc-cover-initial { font-size: 64px; left: 28px; bottom: 22px; }
.sc-cover-now { width: 320px; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #E5E7EB; border-radius: 4px; margin-bottom: 8px; }
.sc-cover-now img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1100px) { .sc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sc-cards { grid-template-columns: 1fr; } .sc-room-cover { aspect-ratio: 16 / 9; } }

/* 처리 중 창(data-loading) */
.ld-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .45); }
.ld-overlay[hidden] { display: none; }
.ld-box { min-width: 280px; max-width: 90vw; padding: 26px 30px; background: #FFFFFF; border: 1px solid #D0D5DD; border-radius: 4px; text-align: center; }
.ld-spin { display: inline-block; width: 34px; height: 34px; border: 3px solid #D0D5DD; border-top-color: #2550D6; border-radius: 50%; animation: ld-rotate .8s linear infinite; }
.ld-text { margin: 14px 0 4px; font-weight: 700; color: #111827; }
.ld-sub { margin: 0; font-size: 13px; color: #6B7280; }
@keyframes ld-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ld-spin { animation-duration: 2.4s; } }

/* 연구팀 대표 이미지 */
.lab-hero.has-cover { display: flex; gap: 24px; align-items: stretch; }
.lab-hero-cover { flex: none; width: 240px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid #E5E7EB; background: var(--ps); }
.lab-hero-body { flex: 1 1 auto; min-width: 0; }
@media (max-width: 720px) {
    .lab-hero.has-cover { flex-direction: column; }
    .lab-hero-cover { width: 100%; }
}
.lab-cover-now { width: 320px; max-width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #E5E7EB; border-radius: 4px; margin-bottom: 8px; }
.lab-cover-now img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-team-cover { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #E5E7EB; border-radius: 4px; margin-bottom: 16px; background: var(--ps); }
.pb-team-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 행사 소개 영상 */
.ev-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 16px; background: #000; border-radius: 4px; overflow: hidden; }
.ev-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 연구개요: 연구 진행(시작 → 활동 → 결과)·최근 활동·산출물 */
.lab-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line, #E3E8EF); border-radius: 4px; }
.lab-flow li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-left: 1px solid var(--line, #E3E8EF); position: relative; }
.lab-flow li:first-child { border-left: 0; }
.lab-flow li strong { font-size: 16px; color: #6B7280; }
.lab-flow li.is-done strong { color: var(--pd); }
.lab-flow li.is-done::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--p); }
.lab-recent { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, #E3E8EF); }
.lab-recent li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line, #E3E8EF); }
.lab-recent a { font-weight: 600; color: inherit; }
.lab-sub { margin: 20px 0 10px; font-size: 17px; }
.lab-files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, #E3E8EF); }
.lab-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line, #E3E8EF); }
.lab-files li strong { min-width: 140px; }
.lab-result { padding: 16px 18px; background: #F7F9FC; border-radius: 4px; margin: 0; }
@media (max-width: 720px) { .lab-flow { grid-template-columns: 1fr; } .lab-flow li { border-left: 0; border-top: 1px solid var(--line, #E3E8EF); } .lab-flow li:first-child { border-top: 0; } .lab-recent li { flex-direction: column; gap: 2px; } }

/* 경력·수상 이력: 이력서형 표 */
.cv-sec { margin-top: 28px; }
.cv-h2 { font-size: 18px; margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--p); display: flex; align-items: baseline; gap: 8px; }
.cv-h2 .u-muted { font-size: 14px; font-weight: 400; }
.cv-table td, .cv-table th { vertical-align: top; }
.cv-table .cv-date { white-space: nowrap; width: 130px; }
.cv-table .cv-kind { white-space: nowrap; width: 80px; }
.cv-table .cv-file { white-space: nowrap; width: 80px; }
.cv-table .cv-st { white-space: nowrap; width: 90px; }
.cv-table .cv-act { white-space: nowrap; width: 150px; text-align: right; }
.cv-table .cv-act form { display: inline; }
.cv-table .cv-empty { color: #8A93A3; text-align: center; }
.cv-note { display: block; margin-top: 4px; font-size: 14px; color: #5A6475; }
.cv-table .u-reject { display: block; margin-top: 4px; }
.cv-table .u-file-view { margin-right: 6px; }
/* 톡방 보내기 오류(11-21) */
.talk-error { margin: 8px 0 0; color: #B91C1C; font-size: 14px; }

/* PDF 쪽 미리보기(연구성과 산출물, 11-22) */
.pdf-pages { margin-top: 10px; }
.pdf-pages-strip { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 10px; }
.pdf-page { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #4B5563; font-size: 13px; text-decoration: none; }
.pdf-page img { width: 150px; height: auto; border: 1px solid #D1D5DB; background: #fff; }
.pdf-page:hover img, .pdf-page:focus img { border-color: var(--p, #2550D6); }
.pdf-thumb { display: inline-block; vertical-align: middle; margin: 0 6px; }
.pdf-thumb img { width: 56px; height: auto; border: 1px solid #D1D5DB; background: #fff; }

/* 확장자별 파일 아이콘(FileIcon.Badge): 접힌 귀퉁이가 있는 문서 모양 + 확장자 글자 */
.ft { position: relative; display: inline-flex; align-items: flex-end; justify-content: center; flex: none; width: 26px; height: 32px; padding-bottom: 4px; margin-right: 6px; vertical-align: middle; border-radius: 2px; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1; background: #6B7280; clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%); }
.ft::after { content: ""; position: absolute; top: 0; right: 0; width: 32%; height: 24%; background: rgba(255,255,255,.45); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.ft-pdf { background: #D93025; }
.ft-xls { background: #1E7B45; }
.ft-doc { background: #2B5CD6; }
.ft-hwp { background: #0E8FC6; }
.ft-ppt { background: #D35400; }
.ft-zip { background: #8D6E3F; }
.ft-img { background: #7B4FC9; }
.ft-vid { background: #C2185B; }
.ft-exe { background: #374151; }
.ft-txt { background: #64748B; }
.ft-sm { width: 20px; height: 25px; font-size: 7px; padding-bottom: 3px; margin-right: 4px; }
.u-files li, .lab-files li { align-items: center; }
.bd-clip { display: inline-flex; align-items: center; vertical-align: middle; }
.bd-clip .ft { width: 18px; height: 22px; font-size: 6.5px; padding-bottom: 3px; margin-right: 2px; }
.bd-clip-more { font-size: 12px; color: var(--muted, #6B7280); }
.yt-link { display: inline-flex; align-items: center; gap: 4px; color: #C4302B; font-weight: 600; text-decoration: underline; }
.yt-link::before { content: "▶"; font-size: 10px; }

/* 연구개요: 산출물 글 */
.lab-deliver-text { display: block; flex-basis: 100%; margin-top: 4px; color: #374151; }
