/* ===========================================================================
   SkillLink Campus — 디자인 시스템
   브랜드: 연결/성장/신뢰/협업/발견. 네이비 + 블루, 화이트 배경.
   =========================================================================== */
:root {
  /* 브랜드: 로즈를 '포인트'로만, 배경·테두리는 깔끔한 중립색으로 */
  --navy: #3a2b35;        /* 제목·중요 텍스트 — 차분한 플럼 그레이 */
  --navy-2: #5c4650;
  --blue: #ec6487;        /* Primary 포인트 — 로즈 */
  --blue-dark: #d94f73;   /* hover/pressed */
  --blue-deep: #c43f66;   /* 더 진한 강조(그라데이션 끝) */
  --blue-soft: #fdeef2;   /* 활성 칩·연한 강조 */
  --blue-softer: #fbf4f6; /* 아주 옅은 강조 배경 */
  --ink: #1c1a1d;
  --ink-2: #5a555c;
  --ink-3: #9a949c;
  --line: #efedf0;
  --line-2: #e4dfe4;
  --bg: #f7f5f7;          /* 거의 흰색의 중립 배경 */
  --card: #ffffff;
  --ok: #1aa66b;
  --ok-soft: #e7f6ef;
  --warn: #e0a200;
  --warn-soft: #fdf6e3;
  --danger: #d4342f;
  --danger-soft: #fce9e8;
  /* 로즈 그라데이션(히어로·브랜드 전용, 절제 사용) */
  --grad-rose: linear-gradient(135deg, #f78aa5 0%, #ec6487 52%, #d94f73 100%);
  /* 라디우스 스케일 */
  --radius-xs: 8px;
  --radius-sm: 11px;
  --radius: 15px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  /* 그림자 — 로즈 틴트 + 레이어(제품감) */
  --shadow-xs: 0 1px 2px rgba(60, 30, 45, 0.05);
  --shadow: 0 1px 2px rgba(60, 30, 45, 0.03), 0 1px 3px rgba(60, 30, 45, 0.04);
  --shadow-md: 0 3px 10px rgba(60, 30, 45, 0.06), 0 1px 3px rgba(60, 30, 45, 0.04);
  --shadow-pop: 0 12px 36px rgba(50, 20, 38, 0.14);
  --shadow-rose: 0 2px 8px rgba(236, 100, 135, 0.18);
  /* 간격 스케일 (4px 기반) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  /* 타이포 스케일 */
  --fs-title: 1.3rem;    /* 페이지 제목 */
  --fs-section: 1.08rem; /* 섹션 제목 */
  --fs-card: 0.98rem;    /* 카드 제목 */
  --fs-body: 0.9rem;     /* 본문 */
  --fs-cap: 0.78rem;     /* 보조 텍스트 */
  /* 컨트롤 높이 (버튼·입력 통일) */
  --control-h: 46px; --control-h-sm: 38px;
  /* 전환 */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --maxw: 760px;
  --nav-h: 62px;
  --header-h: 58px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: 1rem; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 화면 등장 — 아주 절제된 페이드 */
main.page > * { animation: rise .24s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main.page > * { animation: none; } }

#app { min-height: 100vh; }

/* 헤더 */
.app-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(255,255,255,0.9); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
}
.app-header .inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.1rem;
  letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; flex-shrink: 0; }
.brand span, .brand small { white-space: nowrap; }
.logo-img { flex-shrink: 0; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 0.95rem; font-weight: 900; }
.brand small { font-size: 0.7rem; color: var(--ink-3); font-weight: 600; margin-left: -4px; }
.logo-img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; display: block; }
.header-spacer { flex: 1; }
.icon-btn { position: relative; width: 38px; height: 38px; border: 0; background: transparent;
  border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--line); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 5px; right: 5px; min-width: 15px; height: 15px;
  background: var(--danger); color: #fff; border-radius: 999px; font-size: 0.56rem; font-weight: 800;
  display: grid; place-items: center; padding: 0 3px; border: 1.5px solid #fff; }
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--blue-soft);
  display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; overflow: hidden; padding: 0; transition: border-color .12s; }
.avatar-btn:hover { border-color: var(--blue); }
.avatar-btn .avatar-photo { width: 100%; height: 100%; object-fit: cover; }
.avatar-btn .avatar-ini { font-size: 0.9rem; font-weight: 800; color: var(--blue-dark); }
.ic-svg { display: block; flex-shrink: 0; }

.desktop-nav { display: none; gap: 2px; }
.desktop-nav a { padding: 8px 13px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; color: var(--ink-2); white-space: nowrap; transition: background .12s, color .12s; }
.desktop-nav a:hover { background: var(--blue-softer); color: var(--blue-dark); }
.desktop-nav a.active { background: var(--blue-soft); color: var(--blue-dark); }

main.page { max-width: var(--maxw); margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 24px);
  min-height: calc(100vh - var(--header-h)); }
/* 고정 하단 액션바가 있는 페이지는 액션바 높이(약 64px)만큼 더 확보 */
main.page:has(.action-bar), main.page.has-action-bar {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 64px + 24px); }

/* 하단 내비 (모바일) */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,0.96); backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--line); display: flex; }
.bottom-nav a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: var(--ink-3); font-size: 0.63rem; font-weight: 600; transition: color .18s var(--ease); }
.bottom-nav a .ic { position: relative; display: grid; place-items: center; width: 40px; height: 26px;
  border-radius: var(--radius-pill); transition: background .2s var(--ease); }
.bottom-nav a .ic .ic-svg { width: 21px; height: 21px; transition: transform .2s var(--ease); }
.bottom-nav a .lbl { line-height: 1; white-space: nowrap; }
.bottom-nav a.active { color: var(--blue-dark); }
.bottom-nav a.active .ic { color: var(--blue-dark); background: var(--blue-soft); }
.bottom-nav a.active .ic .ic-svg { transform: translateY(-1px); }
@media (max-width: 360px) { .bottom-nav a { font-size: 0.58rem; } .bottom-nav a .ic .ic-svg { width: 19px; height: 19px; } }
.nav-badge { position: absolute; transform: translate(10px, -9px); background: var(--danger);
  color: #fff; border-radius: 999px; min-width: 16px; height: 16px; font-size: 0.56rem; font-weight: 800;
  display: grid; place-items: center; padding: 0 4px; border: 1.5px solid #fff; }

/* 버튼 — 통일된 높이(min-height)로 클릭 영역 확보 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 16px; min-height: var(--control-h); border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.94rem; background: var(--line); color: var(--ink); white-space: nowrap;
  transition: background .15s var(--ease), transform .08s var(--ease), box-shadow .15s var(--ease), opacity .12s; }
.btn:hover { background: var(--line-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.primary:active { transform: translateY(1px) scale(.99); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); }
.btn.outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn.outline:hover { background: var(--blue-softer); border-color: var(--blue); color: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.danger:hover { background: #fbdcdc; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: var(--control-h-sm); padding: 0 12px; font-size: 0.84rem; }
.btn.lg { min-height: 50px; padding: 0 18px; font-size: 1rem; }

/* 폼 */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; }
.field .hint { font-size: 0.78rem; color: var(--ink-3); margin-top: 5px; }
.input, .textarea, .select { width: 100%; padding: 12px 13px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color 0.12s, box-shadow 0.12s; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3.5px var(--blue-soft); }
.input:disabled { background: #f4f5f7; color: var(--ink-3); }
.textarea { min-height: 110px; resize: vertical; }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 6px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  color: var(--ink-2); font-size: 0.86rem; font-weight: 600; transition: 0.1s; white-space: nowrap; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }

/* 검색바 */
.searchbar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 11px 16px; }
.searchbar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.searchbar input { flex: 1; border: 0; outline: none; background: transparent; }
.searchbar .ic { color: var(--ink-3); }

/* 섹션 */
.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { font-size: 1.08rem; font-weight: 800; margin: 0; letter-spacing: -0.02em; white-space: nowrap;
  display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--blue); flex-shrink: 0; }
.section-head .more { font-size: 0.84rem; color: var(--blue-dark); font-weight: 700; white-space: nowrap; flex-shrink: 0;
  transition: opacity .12s; }
.section-head .more:hover { opacity: .65; }

/* 홈 소개 영역 — 배너 없이 타이포만 */
.home-intro { padding: 14px 0 6px; }
.home-intro h1 { font-size: 1.42rem; line-height: 1.34; letter-spacing: -0.035em; margin: 0 0 7px; color: var(--navy); font-weight: 800; }
.home-intro p { margin: 0 0 14px; color: var(--ink-2); font-size: 0.92rem; }
/* 화면 상단 제목(인라인 스타일 대체) */
.page-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin: 4px 0 14px; }
.page-title.tight { margin: 4px 0; }
.home-search { width: 100%; }
.home-search input { flex: 1; border: 0; outline: none; background: transparent; }

/* 빠른 실행 2×2 — 낮은 높이 */
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 6px; }
.qa { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: left;
  box-shadow: var(--shadow-xs); transition: border-color .18s var(--ease), background .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease); }
.qa:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); }
.qa:active { background: var(--blue-softer); }
.qa .qa-ic { color: var(--blue-dark); margin-bottom: 8px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); }
.qa .qa-t { font-size: 0.92rem; font-weight: 700; white-space: nowrap; }
.qa .qa-s { font-size: 0.74rem; color: var(--ink-3); white-space: nowrap; }

/* 컴팩트 목록 간격 */
.list-compact { display: flex; flex-direction: column; gap: 8px; }

/* 컴팩트 사람 카드 — 세로 구성, 여백 축소로 한 화면에 더 많이 */
.pc { display: flex; flex-direction: column; padding: 13px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow-xs);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); }
.pc:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); }
.pc:active { opacity: .9; }
.pc-head { display: flex; align-items: center; gap: 11px; }
.pc .avatar { width: 42px; height: 42px; }
.pc-id { flex: 1; min-width: 0; }
.pc-top { display: flex; align-items: center; gap: 6px; }
.pc-name { font-weight: 800; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-meta { color: var(--ink-3); font-size: 0.75rem; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 기술 적합도 — 매칭 점수(평점과 다름) */
.pc-fit { flex-shrink: 0; align-self: flex-start; font-size: 0.72rem; font-weight: 800; color: var(--blue-dark);
  background: var(--blue-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
/* 협업 평점 — 실제 평가가 있을 때만 ★, 없으면 '평가 없음' */
.pc-rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: #9a7400; }
.pc-rating .ic-svg { color: #e0a200; fill: #e0a200; }
.pc-norating { color: var(--ink-3); }
.meetup-place { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 0.88rem; color: var(--ink); }
.meetup-place .ic-svg { color: var(--blue-dark); flex-shrink: 0; }
.meetup-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.meetup-actions .btn { flex: 1; min-width: 140px; }
.dist-far { background: var(--warn-soft); color: #936b00; border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 0.82rem; line-height: 1.5; margin: 0 0 10px; display: flex; align-items: flex-start; gap: 6px; }
.dist-far .ic-svg { flex-shrink: 0; margin-top: 2px; }
.dist-near { color: var(--ink-3); font-size: 0.8rem; margin: 0 0 10px; }

/* 협업 평점·후기 */
.rs-inline { display: inline-flex; align-items: center; gap: 3px; color: #9a7400; font-weight: 700; }
.rs-inline .ic-svg { color: #e0a200; fill: #e0a200; }
.rating-summary { display: flex; align-items: baseline; gap: 6px; }
.rating-summary .rs-star { color: #e0a200; display: inline-flex; align-self: center; }
.rating-summary .rs-star .ic-svg { color: #e0a200; fill: #e0a200; }
.rating-summary .rs-score { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.rating-summary .rs-count { color: var(--ink-3); font-size: 0.84rem; }
.review-item { padding: 12px 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.rv-head { display: flex; align-items: center; gap: 8px; }
.rv-name { font-weight: 700; font-size: 0.88rem; }
.rv-stars { margin-left: auto; color: #e0a200; font-size: 0.86rem; letter-spacing: 1px; }
.rv-stars .rv-dim { color: var(--line-2); }
.rv-comment { margin: 8px 0 0; font-size: 0.86rem; color: var(--ink); line-height: 1.5; word-break: break-word; }
.rv-meta { margin-top: 6px; font-size: 0.74rem; color: var(--ink-3); }
/* 별점 입력 */
.star-input { display: flex; gap: 6px; justify-content: center; margin: 4px 0 4px; }
.star-btn { border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--line-2); padding: 2px 4px; transition: color .1s; }
.star-btn:hover, .star-btn.on { color: #e0a200; }
/* 역량 4항목 평가 (외모 편향 방지) */
.rv-cats { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.rv-cat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.rv-cat-top { display: flex; align-items: baseline; justify-content: space-between; }
.rv-cat-name { font-weight: 800; font-size: 0.9rem; }
.rv-cat-hint { font-size: 0.72rem; color: var(--ink-3); }
.rv-cat .star-input { justify-content: flex-start; margin: 4px 0 0; }
.rv-cat .star-btn { font-size: 1.6rem; }
/* 프로필 역량 평점 분해 */
.rv-breakdown { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.rv-bd-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.rv-bd-label { width: 56px; flex-shrink: 0; color: var(--ink-2); font-weight: 700; }
.rv-bd-bar { flex: 1; height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.rv-bd-bar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.rv-bd-val { width: 26px; text-align: right; font-weight: 700; color: var(--blue-dark); }
.rv-anon { font-weight: 700; font-size: 0.84rem; color: var(--ink-2); }
/* 첫 사용 가이드 */
.guide-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; }
.guide-item { background: var(--blue-softer); border: 1px solid var(--blue-soft); border-radius: var(--radius-sm); padding: 11px 13px; }
.guide-item b { font-size: 0.9rem; color: var(--navy); }
.guide-item p { margin: 3px 0 0; font-size: 0.82rem; color: var(--ink-2); line-height: 1.5; }
.pc-skills { margin-top: 9px; }
.pc-skills .tag { font-size: 0.72rem; padding: 3px 8px; }
.pc-reason { margin: 8px 0 0; font-size: 0.8rem; color: var(--navy-2); line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-action { margin-top: 10px; }

/* 컴팩트 프로젝트 미리보기 — 제목·역할·상태만 */
.prc { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow-xs);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); }
.prc:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); }
.prc:active { transform: translateY(0); }
.prc-main { flex: 1; min-width: 0; }
.prc-title { font-size: 0.92rem; font-weight: 700; margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prc-roles { display: flex; align-items: center; gap: 5px; font-size: 0.76rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prc-roles .ic-svg { color: var(--ink-3); flex-shrink: 0; }

/* 아바타 */
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-soft);
  display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; overflow: hidden; }
.avatar.sm { width: 32px; height: 32px; font-size: 1rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.9rem; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--blue-soft); }
.avatar-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-ini { font-weight: 800; color: var(--blue-dark); text-transform: uppercase; }
/* 프로필 편집 — 사진 영역 */
.avatar-edit { display: flex; align-items: center; gap: 14px; }
.avatar-edit .avatar.lg { width: 72px; height: 72px; }
.avatar-edit-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* 사람 카드 */
.person-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); cursor: pointer; }
.person-card:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); }
.person-card:active { transform: translateY(0); }
.person-top { display: flex; gap: 12px; align-items: center; }
.person-top .pinfo { flex: 1; min-width: 0; }
.person-top .pname { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-top .pmeta { color: var(--ink-3); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-badge { background: var(--blue); color: #fff; border-radius: 999px; padding: 3px 10px;
  font-size: 0.78rem; font-weight: 800; flex-shrink: 0; }
.score-badge.low { background: var(--ink-3); }
.skill-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.skill-row .skill-label { flex-shrink: 0; width: 32px; font-size: 0.72rem; font-weight: 800; color: var(--ink-3); padding-top: 5px; }
.skill-row .tags { flex: 1; }
.reason-box { background: var(--blue-softer); border: 1px solid var(--blue-soft); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 0.82rem; color: var(--navy-2); margin: 12px 0 0; line-height: 1.5; }
.reason-box .rlabel { font-weight: 800; color: var(--blue-dark); margin-right: 4px; display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.reason-box .rlabel .ic-svg { vertical-align: middle; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.card-actions .btn { flex: 1; }
.card-actions .btn.block { flex: 1; }

/* 태그 */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; border-radius: 7px; background: var(--blue-soft); color: var(--blue-dark);
  font-size: 0.76rem; font-weight: 600; }
.tag.want { background: var(--warn-soft); color: #936b00; }
.tag.gray { background: var(--line); color: var(--ink-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag-label { font-size: 0.74rem; color: var(--ink-3); font-weight: 700; margin: 10px 0 5px; }

/* 프로젝트 카드 */
.proj-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); cursor: pointer; }
.proj-card:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); }
.proj-card:active { transform: translateY(0); }
.proj-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.proj-field { font-size: 0.74rem; font-weight: 800; color: var(--blue-dark); background: var(--blue-soft);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.proj-title { font-weight: 800; font-size: 1.05rem; margin: 10px 0 5px; letter-spacing: -0.02em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.proj-summary { color: var(--ink-2); font-size: 0.86rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.proj-meta { margin-top: 12px; }
.proj-meta .pm-item { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 0.8rem; }
.proj-meta .pm-item .ic-svg { color: var(--ink-3); }
.proj-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.proj-progress .pp-bar { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.proj-progress .pp-bar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .3s; }
.proj-progress .pp-txt { font-size: 0.76rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.proj-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 11px;
  padding-top: 11px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-3); }
.proj-foot .pf-item { display: inline-flex; align-items: center; gap: 5px; }
.proj-foot .pf-item .ic-svg { color: var(--ink-3); }
.status-pill { padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.st-recruiting { background: var(--ok-soft); color: var(--ok); }
.st-formed { background: var(--blue-soft); color: var(--blue-dark); }
.st-in_progress { background: var(--warn-soft); color: #936b00; }
.st-done { background: var(--line); color: var(--ink-2); }
.st-cancelled { background: var(--danger-soft); color: var(--danger); }

/* 리스트 */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 13px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.list-item .lbody { flex: 1; min-width: 0; }
.list-item .lt { font-weight: 700; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .ls { color: var(--ink-3); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .lright { text-align: right; flex-shrink: 0; }

/* 피드 게시글 */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); }
.post-card:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.78rem; margin-bottom: 8px; }
.post-cat { background: var(--navy); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }
.post-title { font-weight: 800; font-size: 1.02rem; margin: 2px 0 6px; }
.post-body { color: var(--ink-2); font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; word-break: break-word; }
.post-foot { display: flex; gap: 14px; align-items: center; margin-top: 12px; color: var(--ink-3); font-size: 0.8rem; }
.post-foot button { border: 0; background: none; color: var(--ink-3); font-size: 0.8rem; display: inline-flex; gap: 4px; align-items: center; }
.post-foot button.on { color: var(--blue); }

/* 작업 보드 (칸반) */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kanban-col { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 120px; min-width: 0; }
.kanban-col h4 { margin: 0 0 10px; font-size: 0.82rem; display: flex; justify-content: space-between; }
.task-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px; }
.task-card .tt { font-weight: 700; font-size: 0.84rem; word-break: break-word; overflow-wrap: anywhere; }
.task-card .td { color: var(--ink-3); font-size: 0.74rem; margin-top: 4px; word-break: break-word; overflow-wrap: anywhere; }
.task-card .trow { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; }
@media (max-width: 560px) { .kanban { grid-template-columns: 1fr; } }

/* 세부 */
.detail-section { margin: 16px 0; }
.detail-section h3 { font-size: 0.9rem; font-weight: 800; margin: 0 0 8px; color: var(--navy); }
.profile-bio { margin: 0 0 10px; color: var(--ink-2); font-size: 0.9rem; line-height: 1.55; }
.detail-section p { margin: 0; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; line-height: 1.7; }
.kv { display: flex; gap: 8px; padding: 7px 0; font-size: 0.88rem; border-bottom: 1px solid var(--line); }
.kv .k { color: var(--ink-3); width: 90px; flex-shrink: 0; }
.kv .v { font-weight: 600; }
.role-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); margin-bottom: 8px; }
.role-item .rbar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; width: 90px; }
.role-item .rbar i { display: block; height: 100%; background: var(--blue); }

/* 상세 하단 바 */
.action-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 46; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; }
.action-bar .inner { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 10px; align-items: center; }

/* 채팅 */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg-wrap { display: flex; gap: 6px; align-items: flex-end; max-width: 80%; }
.msg-wrap.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-wrap.theirs { align-self: flex-start; }
.msg { padding: 9px 13px; border-radius: 15px; font-size: 0.92rem; line-height: 1.45; word-break: break-word; }
.msg.mine { background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.msg.theirs { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-time { font-size: 0.64rem; color: var(--ink-3); white-space: nowrap; }
.chat-input { display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 15px; outline: none; }
.chat-input input:focus { border-color: var(--blue); }
.chat-input input:disabled { background: #f4f2f4; color: var(--ink-3); }
.chat-photo-btn { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--line-2); background: #fff;
  border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: .12s; }
.chat-photo-btn:hover { border-color: var(--blue); color: var(--blue); }
.chat-photo-btn:disabled { opacity: .4; cursor: not-allowed; }
.msg-photo { padding: 4px !important; position: relative; max-width: 220px; }
.msg-photo img { width: 100%; border-radius: 11px; display: block; }
.photo-report { position: absolute; top: 8px; right: 8px; border: 0; background: rgba(0,0,0,0.5);
  width: 26px; height: 26px; border-radius: 50%; font-size: 0.8rem; }
/* 채팅 시스템/모더레이션 안내 */
.sys-msg { align-self: center; max-width: 90%; text-align: center; font-size: 0.8rem; line-height: 1.5;
  padding: 9px 14px; border-radius: 12px; margin: 4px 0; }
.sys-warn { background: var(--warn-soft); color: #936b00; }
.sys-ban { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.ban-banner { background: var(--danger-soft); color: var(--danger); font-size: 0.82rem; font-weight: 600;
  padding: 10px 16px; text-align: center; border-bottom: 1px solid var(--danger); }

/* 상태 UI */
.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); }
.empty .emoji { font-size: 2rem; margin: 0 auto 12px; width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--blue-soft); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(236,100,135,0.14); }
.empty h3 { color: var(--ink-2); font-size: 1rem; margin: 0 0 6px; }
.empty p { margin: 0 0 16px; font-size: 0.88rem; }
.skeleton { background: linear-gradient(90deg, #f3edf0 25%, #fbf5f8 50%, #f3edf0 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-card { height: 110px; margin-bottom: 12px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--blue-soft); border-top-color: var(--blue);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.count-bar { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; font-size: 0.85rem; color: var(--ink-2); }
.count-bar b { color: var(--blue-dark); }
.sort-toggle { display: inline-flex; gap: 2px; background: var(--line); border-radius: 999px; padding: 2px; }
.sort-btn { border: 0; background: transparent; padding: 5px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); }
.sort-btn.on { background: #fff; color: var(--blue-dark); box-shadow: var(--shadow); }

/* 토스트 */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 16px); z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 0.88rem;
  font-weight: 600; box-shadow: var(--shadow-pop); animation: toastin 0.2s; max-width: 90%; }
.toast.ok { background: var(--ok); } .toast.err { background: var(--danger); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }

/* 모달 */
.modal-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(40,20,32,0.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 18px; animation: fade 0.18s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 440px; padding: 22px;
  box-shadow: var(--shadow-pop); max-height: 88vh; overflow-y: auto; animation: popin .24s var(--ease) both; }
@keyframes popin { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h3 { margin: 0 0 6px; font-size: 1.15rem; }
.modal .modal-desc { color: var(--ink-2); font-size: 0.9rem; margin: 0 0 16px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }

/* 온보딩 */
.hero { text-align: center; padding: 20px 0 26px; }
.hero .big-logo { width: 66px; height: 66px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; margin: 0 auto 14px; }
.hero .big-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1 { font-size: 1.5rem; margin: 0 0 6px; letter-spacing: -0.03em; color: var(--navy); }
.hero p { color: var(--ink-2); margin: 0; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.progress-steps { display: flex; gap: 6px; margin-bottom: 20px; }
.progress-steps .step { flex: 1; height: 5px; border-radius: 999px; background: var(--line-2); }
.progress-steps .step.on { background: var(--blue); }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.84rem; margin-bottom: 14px; line-height: 1.5; }
.notice.info { background: var(--blue-soft); color: var(--navy-2); }
.notice.warn { background: var(--warn-soft); color: #936b00; }
.notice.demo { background: var(--ok-soft); color: var(--ok); }
.text-link { color: var(--blue-dark); font-weight: 700; background: none; border: 0; padding: 0; font-size: 0.85rem; cursor: pointer; }
.text-center { text-align: center; } .mt-16 { margin-top: 16px; } .mt-8 { margin-top: 8px; }
.muted { color: var(--ink-3); font-size: 0.85rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* 마이페이지 */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 10px 0 18px; }
.profile-head .ph-info { flex: 1; min-width: 0; }
.profile-head .pname { font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.profile-head .pname .pname-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.profile-head .pname .demo-badge { flex-shrink: 0; }
.profile-head .ph-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-head .rs-inline { white-space: nowrap; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 6px; text-align: center; }
.stat b { display: block; font-size: 1.2rem; color: var(--blue-dark); }
.stat small { color: var(--ink-3); font-size: 0.72rem; }
.admin-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.menu-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-list button { width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line);
  padding: 15px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 0.94rem; }
.menu-list button:last-child { border-bottom: 0; }
.menu-list button:hover { background: var(--blue-softer); }
.menu-list .arrow { color: var(--ink-3); display: inline-flex; }
.menu-list .mi { display: inline-flex; align-items: center; gap: 10px; }
.menu-list .mi .ic-svg { color: var(--ink-3); }
.menu-list .mi.danger-tx { color: var(--danger); }
.menu-list .mi.danger-tx .ic-svg { color: var(--danger); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; padding: 11px 12px; font-weight: 700; color: var(--ink-3);
  border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--blue-dark); border-bottom-color: var(--blue); }

.cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-pick button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #fff; font-size: 1.4rem; }
.avatar-pick button.on { border-color: var(--blue); background: var(--blue-soft); }

.ai-bubble { background: var(--blue-softer); border: 1px solid var(--blue-soft); border-radius: var(--radius);
  padding: 14px 16px; color: var(--navy-2); line-height: 1.6; font-size: 0.9rem; }
.ai-src { font-size: 0.72rem; color: var(--ink-3); margin-top: 8px; }

.divider { height: 1px; background: var(--line); margin: 20px 0; }
.demo-badge { background: var(--ok-soft); color: var(--ok); font-size: 0.68rem; font-weight: 800;
  padding: 2px 7px; border-radius: 6px; }
/* 선생님 / 학교 전용 배지 */
.badge-teacher { background: #eef3ff; color: #2f5fd0; font-size: 0.68rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.badge-school { background: var(--warn-soft); color: #936b00; font-size: 0.68rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
/* 가입 역할 선택 */
.role-pick { display: flex; gap: 10px; }
.role-opt { flex: 1; border: 1.5px solid var(--line-2); background: #fff; border-radius: var(--radius-sm); padding: 12px; text-align: left; transition: .12s; }
.role-opt b { display: block; font-size: 0.95rem; }
.role-opt small { color: var(--ink-3); font-size: 0.74rem; }
.role-opt.on { border-color: var(--blue); background: var(--blue-softer); }
/* 학교 자동완성(NEIS) */
.school-pick { position: relative; }
.school-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); max-height: 240px; overflow-y: auto; }
.school-sugg .sp-item { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.school-sugg .sp-item:last-child { border-bottom: 0; }
.school-sugg .sp-item:hover { background: var(--blue-softer); }
.school-sugg .sp-item b { display: block; font-size: 0.88rem; font-weight: 700; }
.school-sugg .sp-item small { color: var(--ink-3); font-size: 0.74rem; }
.school-sugg .sp-empty { padding: 12px; color: var(--ink-3); font-size: 0.84rem; text-align: center; }

/* 섹션 보조 설명 */
.section-sub { margin: -6px 0 12px; color: var(--ink-3); font-size: 0.82rem; }

/* 비로그인 랜딩 */
.landing-hero { background: var(--grad-rose); color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-rose);
  border-radius: var(--radius-lg); padding: 34px 26px; }
.landing-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,.25), transparent 70%); pointer-events: none; }
.landing-eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; background: rgba(255,255,255,0.16); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.landing-hero h1 { margin: 0 0 10px; font-size: 1.6rem; line-height: 1.3; letter-spacing: -0.03em; }
.landing-hero p { margin: 0 0 20px; opacity: 0.92; font-size: 0.92rem; line-height: 1.6; }
.landing-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.landing-cta .btn.outline { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: #fff; }
.landing-cta .btn.outline:hover { background: rgba(255,255,255,0.22); }
/* 핵심 기능: 카드 대신 배경 위 리스트 */
.feature-list { display: flex; flex-direction: column; }
.feature-row { display: flex; gap: 13px; align-items: flex-start; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row .feat-ic { color: var(--blue-dark); flex-shrink: 0; margin-top: 1px; }
.feature-row b { font-size: 0.95rem; }
.feature-row p { margin: 2px 0 0; color: var(--ink-2); font-size: 0.84rem; line-height: 1.5; }

.muted-ic { color: var(--ink-3); }

/* 포커스 접근성 */
.btn:focus-visible, .chip:focus-visible, .input:focus-visible, .select:focus-visible,
.icon-btn:focus-visible, .avatar-btn:focus-visible, .quick-card:focus-visible, .bottom-nav a:focus-visible,
.desktop-nav a:focus-visible, .brand:focus-visible, .menu-list button:focus-visible, .searchbar:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; }

/* 데스크톱 */
@media (min-width: 820px) {
  :root { --maxw: 960px; }
  .bottom-nav { display: none; }
  .desktop-nav { display: flex; }
  main.page, main.page:has(.action-bar), main.page.has-action-bar { padding-top: 24px; padding-bottom: 48px; }
  .qa-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .feature-row:nth-last-child(2) { border-bottom: 0; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .action-bar { position: static; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 20px; padding: 14px 16px; }
  .action-bar .inner { padding: 0; }
  .chat-wrap { max-width: var(--maxw); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .landing-hero h1 { font-size: 1.8rem; }
  .home-intro h1 { font-size: 1.5rem; }
}
@media (max-width: 819px) { .desktop-nav { display: none; } .grid-2 > * { margin-bottom: 14px; } }
@media (max-width: 520px) { .kanban { grid-template-columns: 1fr; } }

/* ===== 제출 전 UX 폴리시 ===== */
/* 비동기 작업 중 버튼: 스피너 표시 + 중복 클릭 방지 */
.btn.is-busy, button.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after, button.is-busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; top: 50%; left: 50%; margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn.outline.is-busy::after, .btn.ghost.is-busy::after { border-color: rgba(236,100,135,0.35); border-top-color: var(--blue-dark); }
button[disabled] { opacity: 0.55; cursor: not-allowed; }

/* 브랜드 스크롤바 (데스크톱) */
@media (min-width: 820px) {
  * { scrollbar-width: thin; scrollbar-color: #e3b9c7 transparent; }
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-thumb { background: #e7bccb; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
  *::-webkit-scrollbar-thumb:hover { background: #d98fa8; background-clip: content-box; }
  *::-webkit-scrollbar-track { background: transparent; }
}

/* 텍스트 선택 색을 브랜드 톤으로 */
::selection { background: rgba(236,100,135,0.22); }

/* 모바일에서 긴 제목/닉네임 줄바꿈 안전장치 */
.lt, .pc-name, .person-name, .proj-title, .post-title { overflow-wrap: anywhere; }

/* 공모전·대외활동 외부 둘러보기 (올콘·위비티·링커리어) — 카드로 바로 노출 */
.ext-feed { background: var(--blue-softer); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; }
.ext-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ext-feed-title { font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.ext-feed-src { font-size: 0.72rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.ext-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.ext-card { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .12s, box-shadow .12s; min-width: 0; }
.ext-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.ext-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ext-card-cat { font-size: 0.68rem; font-weight: 800; color: var(--blue-dark); background: var(--blue-soft);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ext-card-src { font-size: 0.68rem; color: var(--ink-3); font-weight: 700; white-space: nowrap; }
.ext-card-title { font-size: 0.86rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ext-card-desc { font-size: 0.74rem; color: var(--ink-3); line-height: 1.45; overflow-wrap: anywhere; }
.ext-feed-hint { margin: 10px 0 0; font-size: 0.76rem; color: var(--ink-3); }
@media (max-width: 480px) { .ext-grid { grid-template-columns: 1fr; } }
