/* 오늘의공모 — 목업(home v6, detail v7, list-cards v4) CSS 이식.
   목업은 .phone(폭 300px 고정 프레임) + .p-top(가짜 상태바)로 감쌌으나,
   실제 앱은 폰 프레임 없이 전체 폭을 쓴다. #app을 최대 520px 컨테이너로 사용. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 본문 가로 스크롤 금지 */
  background: #f7f7fa;
  color: #1a1a1f;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

#app {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  background: #f7f7fa;
  min-height: 100vh;
  position: relative;
}

img, .viewer, table {
  max-width: 100%;
}

/* ---- 헤더(목업 .p-head 대체: 브랜드/날짜) ---- */
.p-head { padding: 14px 16px 8px; background: #fff; }
.p-brand { font-size: 20px; font-weight: 800; color: #111; letter-spacing: -.3px; }
.p-date { font-size: 11px; color: #9a9aa2; margin-top: 2px; }

/* ---- 홈: 마감임박 히어로 ---- */
.hero { background: linear-gradient(135deg, #ff6a3d 0%, #e0322f 100%); padding: 16px 0 18px; color: #fff; }
.hero-lab { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.22); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-left: 16px; }
.hero-h { display: flex; align-items: baseline; gap: 8px; margin: 9px 0 2px; padding: 0 16px; }
.hero-num { font-size: 38px; font-weight: 900; line-height: 1; }
.hero-unit { font-size: 14px; font-weight: 700; }
.hero-sub { font-size: 12px; opacity: .95; margin-bottom: 14px; padding: 0 16px; }

/* 가로 스크롤 허용 영역: 자동 슬라이딩 캐러셀 */
.carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.track { display: flex; gap: 10px; width: max-content; padding: 0 16px; animation: slide 45s linear infinite; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 5px)); }
}
.ucard { width: 158px; flex: 0 0 auto; background: #fff; border-radius: 13px; padding: 11px 12px; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.ucard .cg { font-size: 10px; font-weight: 700; color: #e0322f; }
.ucard .cd { font-size: 11px; font-weight: 800; color: #e0322f; float: right; }
.ucard .ct { font-size: 12px; font-weight: 700; color: #1a1a1f; line-height: 1.35; margin: 5px 0 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ucard .co { font-size: 10px; color: #9a9aa2; }

/* ---- 목록 헤더 / 필터바 ---- */
.listhead { display: flex; gap: 8px; align-items: center; padding: 15px 16px 6px; background: #fff; }
.listhead .tt { font-size: 15px; font-weight: 800; color: #1a1a1f; }
.sortpill { margin-left: auto; font-size: 11px; color: #555; background: #f2f3f7; padding: 5px 10px; border-radius: 16px; }

/* 가로 스크롤 허용 영역: 필터바 */
.filterbar { display: flex; gap: 6px; padding: 6px 16px 12px; background: #fff; overflow-x: auto; }
.fchip { font-size: 11px; padding: 5px 11px; border-radius: 20px; background: #f2f3f7; color: #555; white-space: nowrap; flex: 0 0 auto; }
.fchip.on { background: #111; color: #fff; }

/* 목록 검색창 (Task 10~11에서 사용) */
.searchbar { padding: 10px 16px; background: #fff; }
.search { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid #ececf1; border-radius: 20px; font-size: 13px; background: #f2f3f7; color: #1a1a1f; }
.search:focus { outline: none; border-color: #4667ff; background: #fff; }

/* ---- 공모 카드(목록) ---- */
.card { background: #fff; border: 1px solid #ececf1; border-radius: 14px; padding: 17px 18px; margin: 0 14px 11px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.card:active { box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.c-top { display: flex; gap: 5px; align-items: center; margin-bottom: 9px; }
.g { font-size: 10px; padding: 2px 7px; border-radius: 6px; background: #eef1ff; color: #4667ff; font-weight: 700; }
.r { font-size: 10px; padding: 2px 7px; border-radius: 6px; background: #f2f3f7; color: #666; }
.dday { font-size: 11px; font-weight: 800; margin-left: auto; }
.dd2 { color: #e0483a; }
.dd3 { color: #f6a609; }
.dd8 { color: #9a9aa2; }
.star { margin-left: 7px; font-size: 15px; color: #d0d0d6; cursor: pointer; }
.star.on { color: #f6a609; }
.list { padding-top: 6px; }
.c-title { font-size: 15px; font-weight: 700; color: #1a1a1f; line-height: 1.45; margin-bottom: 7px; }
.c-org { font-size: 11.5px; color: #8a8a92; }

/* ---- 섹션 구분/장르·지역 통로 ---- */
.divider { height: 8px; background: #eeeef2; }
.sec { padding: 2px 16px 16px; }
.slab { font-size: 13px; font-weight: 800; color: #2a2a30; margin: 16px 4px 10px; display: flex; justify-content: space-between; align-items: center; }
.slab .more { font-size: 11px; color: #4667ff; font-weight: 600; }
.tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.tile { background: #fff; border: 1px solid #ececf1; border-radius: 14px; padding: 12px 6px; text-align: center; }
.tile .ic { font-size: 21px; }
.tile .nm { font-size: 11px; font-weight: 700; color: #2a2a30; margin-top: 5px; }
.tile .ct { font-size: 10px; color: #9a9aa2; margin-top: 1px; }
.rchips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.rchip { font-size: 11.5px; padding: 6px 12px; border-radius: 20px; background: #eef1ff; color: #4667ff; font-weight: 600; }

/* ---- 상세: 상단 네비 ---- */
.navbar { display: flex; align-items: center; padding: 11px 14px; border-bottom: 1px solid #f0f0f3; background: #fff; }
.back { font-size: 20px; color: #333; text-decoration: none; cursor: pointer; }
.nav-actions { margin-left: auto; display: flex; gap: 14px; font-size: 19px; color: #888; }

.body { padding: 14px 16px 88px; background: #fff; }

.chips { display: flex; gap: 6px; align-items: center; margin-bottom: 9px; flex-wrap: wrap; }
.dbadge { margin-left: auto; font-size: 11px; font-weight: 800; color: #fff; background: #e0322f; padding: 3px 9px; border-radius: 7px; }
.title { font-size: 17px; font-weight: 800; color: #141418; line-height: 1.4; margin-bottom: 5px; }
.org { font-size: 12.5px; color: #8a8a92; margin-bottom: 16px; }

.lab { font-size: 12px; font-weight: 800; color: #3a3a42; margin: 0 0 9px; display: flex; align-items: center; justify-content: space-between; }
.lab .exp { font-size: 11px; color: #4667ff; font-weight: 600; }

/* 정보 표 */
.rows { border: 1px solid #ececf1; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.row { display: flex; padding: 11px 14px; border-bottom: 1px solid #f4f4f7; font-size: 12.5px; align-items: center; }
.row:last-child { border-bottom: 0; }
.row .k { width: 66px; flex: 0 0 auto; color: #9a9aa2; font-weight: 600; }
.row .v { color: #22222a; font-weight: 600; flex: 1; }
.row.hl { background: #fafbfd; }
.row .dtag { font-size: 10px; font-weight: 800; color: #e0322f; background: #fdece9; padding: 2px 6px; border-radius: 6px; margin-left: 6px; }

/* 공고문 문서 뷰어 */
.viewer { border: 1px solid #e0e0e6; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: #525659; width: 100%; }
.vbar { display: flex; align-items: center; gap: 8px; padding: 7px 11px; color: #e8e8ea; font-size: 11px; }
.vbar .pg { margin-left: auto; background: rgba(255,255,255,.15); padding: 2px 8px; border-radius: 10px; }
.vpage { background: #fff; margin: 0 12px 12px; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.3); padding: 18px 16px; overflow-wrap: break-word; }
.vpage .dh { text-align: center; font-size: 13px; font-weight: 800; color: #111; margin-bottom: 4px; }
.vpage .dsub { text-align: center; font-size: 10px; color: #888; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #222; }
.vpage h5 { font-size: 11px; font-weight: 800; color: #222; margin: 12px 0 6px; }
.vpage p { font-size: 10px; color: #333; line-height: 1.7; margin: 0 0 4px; }
.vpage .kv { font-size: 10px; color: #333; line-height: 1.9; }
.vpage .kv b { display: inline-block; width: 58px; color: #666; }

/* 첨부파일 */
.atts { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.att { display: flex; align-items: center; gap: 9px; border: 1px solid #ececf1; border-radius: 11px; padding: 10px 12px; }
.att .fic { font-size: 15px; }
.att .fn { font-size: 11.5px; color: #2a2a30; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att .fv { font-size: 10.5px; color: #4667ff; font-weight: 700; }

/* 비슷한 공모 */
.simlab { font-size: 14px; font-weight: 800; color: #1a1a1f; margin-bottom: 11px; }
.simcard { border: 1px solid #ececf1; border-radius: 13px; padding: 12px 13px; margin-bottom: 9px; }
.sc-top { display: flex; gap: 5px; align-items: center; margin-bottom: 5px; }
.sg { font-size: 10px; padding: 2px 7px; border-radius: 6px; background: #eef1ff; color: #4667ff; font-weight: 700; }
.sd { font-size: 10.5px; font-weight: 800; color: #f6a609; margin-left: auto; }
.sc-t { font-size: 12.5px; font-weight: 700; color: #1a1a1f; line-height: 1.35; }

/* 하단 고정 액션바 — 스크롤해도 항상 화면 바닥에 붙어있게(신청/원문 늘 한 탭) */
.actions {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 520px; margin: 0 auto;
  z-index: 60;
  display: flex; gap: 9px;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid #f0f0f3;
}
.detail-body { padding-bottom: 88px; }
.btn-cal { flex: 0 0 auto; width: 52px; background: #f2f3f7; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; color: #555; font-weight: 700; gap: 2px; }
.btn-cal .ic { font-size: 17px; }
.btn-main { flex: 1; background: #111; color: #fff; border-radius: 13px; padding: 15px; text-align: center; font-size: 14px; font-weight: 800; cursor: pointer; }

/* ---- 목업에 없던 보조 클래스(Task 10~11 렌더에서 사용) ---- */
.empty { padding: 32px 16px; text-align: center; font-size: 13px; color: #9a9aa2; }
.notfound { padding: 40px 16px; text-align: center; font-size: 13px; color: #9a9aa2; }
.disclaimer { padding: 18px 16px 28px; text-align: center; font-size: 10.5px; color: #b0b0b8; line-height: 1.6; }

/* ---- 상세: 공고 원문 임베드 ---- */
.doc-frame { border: 1px solid #e0e0e6; border-radius: 12px; overflow: hidden; margin-bottom: 8px; background: #fff; }
.doc-frame iframe { width: 100%; height: 62vh; min-height: 380px; border: 0; display: block; }
.doc-open { display: inline-block; font-size: 12px; color: #4667ff; font-weight: 600; margin-bottom: 16px; }
.atts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.att { display: flex; align-items: center; gap: 10px; border: 1px solid #ececf1; border-radius: 12px; padding: 12px 13px; text-decoration: none; }
.att .fic { font-size: 16px; }
.att .fn { flex: 1; font-size: 12px; color: #2a2a30; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att .fv { font-size: 11px; color: #4667ff; font-weight: 700; }

/* ---- 장르 카테고리 배지 줄(사람인/앱형) ---- */
.cat-row { display: flex; gap: 2px; overflow-x: auto; padding: 6px 12px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-row::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 2px; cursor: pointer; }
.cat-circle { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 25px; transition: transform .12s; }
.cat:active .cat-circle { transform: scale(.92); }
.cat-name { font-size: 11.5px; font-weight: 700; color: #3a3a42; }
.cat-ct { font-size: 10px; font-weight: 600; color: #9a9aa2; }
.cat-circle.c0 { background: #ffe6de; }
.cat-circle.c1 { background: #e1ebff; }
.cat-circle.c2 { background: #e4f7ec; }
.cat-circle.c3 { background: #fff1d6; }
.cat-circle.c4 { background: #efe6ff; }
.cat-circle.c5 { background: #ffe1ee; }

/* ---- 가로 스크롤 선반(쇼핑/네이버형 홈) ---- */
.shelf { margin: 18px 0 6px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 10px; }
.shelf-title { font-size: 14px; font-weight: 800; color: #1a1a1f; letter-spacing: -.2px; }
.shelf-more { font-size: 12px; color: #4667ff; font-weight: 600; cursor: pointer; }
.shelf-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shelf-row::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 auto; width: 210px; background: #fff; border: 1px solid #ececf1; border-radius: 16px; padding: 15px 16px; cursor: pointer; transition: box-shadow .12s, transform .12s; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.hcard:active { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-2px); }
.hc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.hc-top .star { margin-left: auto; font-size: 15px; color: #d0d0d6; }
.hc-title { font-size: 14px; font-weight: 700; color: #1a1a1f; line-height: 1.45; height: 41px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hc-org { font-size: 11.5px; color: #9a9aa2; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 맞춤 추천 안내(로그인 배너, M3b에서 실제 추천으로) ---- */
.reco-cta { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #eef1ff, #f5f0ff); border: 1px solid #e2e6ff; border-radius: 16px; padding: 16px; }
.reco-ic { font-size: 26px; }
.reco-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.reco-txt b { font-size: 13.5px; color: #2a2a40; }
.reco-txt span { font-size: 11.5px; color: #7a7a92; line-height: 1.4; }
.reco-btn { flex: 0 0 auto; background: #4667ff; color: #fff; border: 0; border-radius: 10px; padding: 10px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.reco-btn:disabled { opacity: .55; cursor: default; }
.allbtn { margin: 16px; background: #111; color: #fff; text-align: center; padding: 15px; border-radius: 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; }

/* ---- 상단 검색바 ---- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; }
.searchbox { flex: 1; display: flex; align-items: center; gap: 8px; background: #f2f3f7; border-radius: 24px; padding: 12px 16px; cursor: pointer; }
.sb-ic { font-size: 15px; }
.sb-ph { font-size: 13.5px; color: #9a9aa2; font-weight: 500; }
.topbell { font-size: 22px; text-decoration: none; cursor: pointer; }

/* ---- 대표 히어로(스와이프) ---- */
.featured-wrap { margin: 4px 0 6px; }
.featured-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; }
.fh-title { font-size: 15px; font-weight: 800; color: #1a1a1f; }
.fh-count { font-size: 12px; font-weight: 700; color: #9a9aa2; }
.featured { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.featured::-webkit-scrollbar { display: none; }
.fcard { flex: 0 0 86%; scroll-snap-align: center; min-height: 168px; border-radius: 18px; padding: 18px; color: #fff; display: flex; flex-direction: column; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.fcard.fA { background: linear-gradient(135deg, #ff6a3d, #e0322f); }
.fcard.fB { background: linear-gradient(135deg, #4667ff, #6a3dff); }
.fcard.fC { background: linear-gradient(135deg, #12b886, #0ca678); }
.fcard.fD { background: linear-gradient(135deg, #f76707, #e8590c); }
.fc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fc-badge { background: rgba(255,255,255,.24); font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 20px; }
.fc-genre { font-size: 12px; font-weight: 600; opacity: .92; }
.fc-title { font-size: 19px; font-weight: 800; line-height: 1.38; letter-spacing: -.3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fc-meta { margin-top: auto; padding-top: 12px; font-size: 12px; opacity: .95; font-weight: 500; }

/* ---- 하단 탭바 ---- */
#app { padding-bottom: 72px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex;
  max-width: 520px; margin: 0 auto; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid #ececf1; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 0 8px; text-decoration: none; color: #9a9aa2; }
.tabbar a.on { color: #111; }
.tabbar .tb-ic { font-size: 20px; filter: grayscale(1); opacity: .6; }
.tabbar a.on .tb-ic { filter: none; opacity: 1; }
.tabbar .tb-lb { font-size: 10.5px; font-weight: 700; }

/* ---- 지역별 보기 타일 ---- */
.rtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
.rtile { display: flex; align-items: center; justify-content: space-between; background: #fff;
  border: 1px solid #ececf1; border-radius: 14px; padding: 16px 16px; cursor: pointer; transition: box-shadow .12s; }
.rtile:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.rt-name { font-size: 14px; font-weight: 700; color: #1a1a1f; }
.rt-count { font-size: 12px; font-weight: 700; color: #4667ff; }

/* ---- 접수상태 배지(카드) ---- */
.st { font-size: 10px; font-weight: 700; padding: 2.5px 8px; border-radius: 20px; flex: 0 0 auto; white-space: nowrap; }
.st.closing { background: #ffece8; color: #e0322f; }
.st.open { background: #e8f6ee; color: #189a53; }
.st.upcoming { background: #eef1ff; color: #4667ff; }
.st.closed { background: #f2f3f7; color: #9a9aa2; }
.dday.soon { color: #e0322f; }

/* ---- 카드 지원대상 인라인 ---- */
.c-elig { font-size: 11px; color: #6b6b7a; margin: 4px 0 3px; }

/* ---- 맞춤조건 설정 화면 ---- */
.prefs { padding: 4px 16px 40px; }
.prefs-note { font-size: 12.5px; color: #55556a; background: #fff; border-radius: 14px; padding: 14px; line-height: 1.6; margin: 10px 0 4px; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 8px; }
.pchip { font-size: 12.5px; padding: 8px 14px; cursor: pointer; }
.slab-sub { font-size: 11px; color: #9a9aa2; font-weight: 400; }
.prefs-save { display: block; width: 100%; margin-top: 20px; background: #4667ff; color: #fff; border: 0; border-radius: 13px; padding: 15px; font-size: 14px; font-weight: 800; cursor: pointer; }
.prefs-clear { display: block; width: 100%; margin-top: 8px; background: transparent; color: #9a9aa2; border: 0; padding: 10px; font-size: 12px; cursor: pointer; }

/* ---- 맞춤 선반 ---- */
.reco-empty { font-size: 12.5px; color: #7a7a92; padding: 0 16px 10px; line-height: 1.5; }
.allbtn.slim { margin: 10px 16px 0; padding: 12px; font-size: 12.5px; background: #2a2a40; }

/* ---- 검색 탭: 분야별로 보기(큰 카테고리 카드) ---- */
.scat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 4px; }
.scat { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #ececf1; border-radius: 14px; padding: 12px 12px; cursor: pointer; transition: transform .12s; }
.scat:active { transform: scale(.97); }
.scat-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.scat-ic.c0 { background: #ffe6de; } .scat-ic.c1 { background: #e1ebff; } .scat-ic.c2 { background: #e4f7ec; }
.scat-ic.c3 { background: #fff1d6; } .scat-ic.c4 { background: #efe6ff; } .scat-ic.c5 { background: #ffe1ee; }
.scat-txt { min-width: 0; }
.scat-name { font-size: 13px; font-weight: 800; color: #2a2a30; }
.scat-ct { font-size: 11px; font-weight: 600; color: #9a9aa2; margin-top: 2px; }
.scat-arrow { margin-left: auto; color: #c4c4cc; font-size: 16px; font-weight: 700; }

/* ---- 검색 탭: 지역별로 보기 ---- */
.rcat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 4px; }
.rcat { background: #fff; border: 1px solid #ececf1; border-radius: 12px; padding: 10px 8px; text-align: center; cursor: pointer; transition: transform .12s; }
.rcat:active { transform: scale(.95); }
.rcat-name { font-size: 12.5px; font-weight: 800; color: #2a2a30; }
.rcat-ct { font-size: 10.5px; font-weight: 600; color: #9a9aa2; margin-top: 2px; }

/* ---- 가운데 홈 버튼(도드라지게) ---- */
.tabbar a.tb-home { overflow: visible; }
.tb-home-circle { width: 52px; height: 52px; border-radius: 50%; margin-top: -26px;
  display: flex; align-items: center; justify-content: center; font-size: 23px;
  background: linear-gradient(135deg, #ff6a3d 0%, #e0322f 100%);
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(224, 50, 47, .35); }
.tabbar a.tb-home .tb-lb { color: #9a9aa2; }
.tabbar a.tb-home.on .tb-lb { color: #e0322f; }
.tabbar a.tb-home:active .tb-home-circle { transform: scale(.94); }

/* ---- 마감 달력 ---- */
.cal-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; }
.cal-move { width: 32px; height: 32px; border: 1px solid #ececf1; border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #2a2a30; cursor: pointer; }
.cal-title { font-size: 15px; font-weight: 800; color: #1a1a1f; min-width: 92px; text-align: center; }
.cal-starchip { margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 4px 12px; }
.cal-week { padding-top: 8px; }
.cal-w { text-align: center; font-size: 11px; font-weight: 700; color: #9a9aa2; }
.cal-w.sun { color: #e0322f; }
.cal-day { aspect-ratio: 1 / 1.1; border-radius: 10px; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; padding-top: 5px; gap: 2px; cursor: pointer; border: 1px solid transparent; }
.cal-day.empty { cursor: default; }
.cal-day.past { opacity: .45; }
.cal-day.today { background: #fff; border-color: #ececf1; }
.cal-day.sel { background: #ffe6de; border-color: #ff6a3d; opacity: 1; }
.cal-num { font-size: 12.5px; font-weight: 700; color: #2a2a30; line-height: 1; }
.cal-ct { min-width: 17px; padding: 1px 4px; border-radius: 999px; background: #e0322f; color: #fff;
  font-size: 9.5px; font-weight: 800; line-height: 1.4; text-align: center; }
.cal-listhead { padding: 0 16px; }
