:root {
  --bc-bg: #f4f6fa;
  --bc-card: #ffffff;
  --bc-border: #e4e8f0;
  --bc-text: #1f2733;
  --bc-muted: #7a8494;
  --bc-primary: #2f6fed;
  --bc-primary-dark: #1f52c4;
  --bc-green: #1ea34b;
  --bc-red: #e5453c;
  --bc-yellow: #f4b400;
  --bc-radius: 14px;
  --bc-shadow: 0 1px 3px rgba(20, 30, 50, .08), 0 1px 2px rgba(20, 30, 50, .04);
}

* { box-sizing: border-box; }

@font-face {
  font-family: 'S-CoreDream-3Light';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-3Light.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* 전역 nav/footer는 다른 페이지와 동일하게 브랜드 폰트를 사용 (body.bc-body의 폰트 상속 방지) */
body.bc-body header,
body.bc-body footer {
  font-family: 'S-CoreDream-3Light', sans-serif;
}

body.bc-body {
  margin: 0;
  /* 상단 고정 전역 GNB(70px) 높이만큼 여백 확보 */
  padding-top: 70px;
  background: var(--bc-bg);
  color: var(--bc-text);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.5;
}

.bc-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 96px;
}

a.bc-plain { color: inherit; text-decoration: none; }

/* 버튼 */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--bc-border);
  background: var(--bc-card);
  color: var(--bc-text);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.bc-btn:hover { border-color: #c9d3e3; background: #fafbfd; }
.bc-btn:active { transform: scale(0.98); }
.bc-btn-primary {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
  color: #fff;
}
.bc-btn-primary:hover { background: var(--bc-primary-dark); border-color: var(--bc-primary-dark); }
.bc-btn-outline-dark {
  background: #fff;
  border-color: #111318;
  color: #111318;
}
.bc-btn-outline-dark:hover { background: #f4f4f5; }
.bc-btn-ghost { background: transparent; border-color: transparent; }
.bc-btn-sm { padding: 6px 10px; font-size: 13px; }
.bc-btn-danger { color: var(--bc-red); }
.bc-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 카드 */
.bc-card {
  background: var(--bc-card);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
}

/* 입력요소 */
.bc-field { margin-bottom: 18px; }
.bc-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bc-muted);
  margin-bottom: 6px;
}
.bc-input, .bc-select, textarea.bc-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: var(--bc-text);
  font-family: inherit;
}
.bc-input:focus, .bc-select:focus {
  outline: none;
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .15);
}

/* 랜딩 */
/* 히어로: 다크 풀폭 배경 + 도트 그리드 + 보라색 글로우 */
.bc-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 16px 64px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(99, 76, 230, .28), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 90%, rgba(80, 60, 200, .18), transparent 70%),
    #0b0b1f;
}
.bc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}
.bc-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.bc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 12px;
  font-weight: 600;
  color: #e6e6f0;
}
.bc-hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.bc-hero h1 {
  margin: 22px 0 18px;
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.bc-hero-accent {
  background: linear-gradient(90deg, #9d8cff, #b794f6 55%, #c4a1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bc-hero p { color: #b4b6c8; margin: 0 0 32px; font-size: 16px; line-height: 1.65; word-break: keep-all; }
.bc-hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 40px; }
.bc-hero-input {
  max-width: 400px;
  text-align: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.bc-hero-input::placeholder { color: #8a8ca3; }
.bc-hero-input:focus { border-color: #7c6cf0; box-shadow: 0 0 0 3px rgba(124, 108, 240, .3); }
.bc-hero-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.bc-hero-cta .bc-btn { padding: 14px 24px; font-size: 15px; border-radius: 12px; gap: 8px; }
.bc-hero-btn-primary {
  background: #5b4be8;
  border-color: #6f60f5;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(91, 75, 232, .7);
}
.bc-hero-btn-primary:hover { background: #4d3dde; border-color: #6f60f5; }
.bc-hero-btn-secondary {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.bc-hero-btn-secondary:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); }
.bc-hero-btn-secondary svg { color: #a99cff; }
/* '체크리스트 무료 생성하기'는 강조 없는 보조 버튼 — 아이콘 보라색 틴트도 빼서 색상 없이 표시 */
#bcCreateBtn svg { color: inherit; }
.bc-hero-error { color: #ff7b73; font-size: 13px; }
.bc-hero-features {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 10px 18px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  color: #c9cadb;
}
.bc-hero-features li { display: inline-flex; align-items: center; gap: 6px; padding: 2px 16px; }
.bc-hero-features li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
.bc-hero-features li:nth-child(1) svg { color: #a99cff; }
.bc-hero-features li:nth-child(2) svg { color: #7c9cff; }
.bc-hero-features li:nth-child(3) svg { color: #fbbf24; }

.bc-enter-row { display: flex; gap: 8px; max-width: 360px; margin: 0 auto 40px; }
.bc-enter-row input { flex: 1; }

.bc-section-title { font-size: 14px; font-weight: 700; color: var(--bc-muted); margin: 28px 0 10px; }

.bc-recent-list { display: flex; flex-direction: column; gap: 8px; }
.bc-recent-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; gap: 10px;
}
.bc-recent-item .bc-recent-name { font-weight: 700; }
.bc-recent-item .bc-recent-meta { font-size: 12.5px; color: var(--bc-muted); }
.bc-recent-link { flex: 1; min-width: 0; }
.bc-recent-link .bc-recent-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-recent-del {
  flex: none; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; font-size: 15px; cursor: pointer; opacity: .55; transition: opacity .15s, background .15s, border-color .15s;
}
.bc-recent-del:hover { opacity: 1; background: #fff1f0; border-color: #ffd4d1; }
.bc-empty-note { color: var(--bc-muted); font-size: 14px; padding: 10px 2px; }

.bc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.bc-step { padding: 16px 12px; text-align: center; }
.bc-step .bc-step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--bc-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 13px; font-weight: 700;
}
.bc-step .bc-step-label { font-size: 13.5px; font-weight: 600; }

/* /new 페이지 */
.bc-new-card { padding: 22px; margin-top: 18px; }
.bc-template-preview {
  margin-top: -6px; margin-bottom: 18px;
  font-size: 13px; color: var(--bc-muted);
  background: #f6f8fc; border-radius: 8px; padding: 8px 12px;
}
.bc-preview-cats { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.bc-preview-chip {
  font-size: 12px; background: #fff; border: 1px solid var(--bc-border);
  border-radius: 999px; padding: 3px 10px; color: var(--bc-text);
}

/* 메인 리스트 페이지 헤더 */
.bc-header { padding: 18px 18px 16px; margin-bottom: 16px; }
.bc-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bc-event-name {
  font-size: 20px; font-weight: 800; cursor: text;
  border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; margin: -2px -6px;
}
.bc-event-name:hover { border-color: var(--bc-border); background: #f8f9fc; }
.bc-event-name[contenteditable="true"] { outline: none; border-color: var(--bc-primary); background: #fff; }

.bc-header-actions { display: flex; gap: 6px; position: relative; flex-wrap: wrap; }

.bc-meta-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.bc-dday {
  font-size: 13px; font-weight: 700; color: var(--bc-primary-dark);
  background: #eaf1ff; border-radius: 999px; padding: 3px 10px;
}
.bc-dday.bc-dday-past { color: var(--bc-muted); background: #eef0f4; }
.bc-progress-wrap { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 10px; }
.bc-progress-bar { flex: 1; height: 9px; background: #eef1f6; border-radius: 999px; overflow: hidden; }
.bc-progress-fill { height: 100%; background: linear-gradient(90deg, var(--bc-primary), #59a2ff); border-radius: 999px; transition: width .25s ease; }
.bc-progress-text { font-size: 13px; font-weight: 700; color: var(--bc-muted); white-space: nowrap; }

/* 드롭다운 메뉴(공유/저장) */
.bc-dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  background: #fff; border: 1px solid var(--bc-border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 30, 50, .14); min-width: 200px; overflow: hidden;
  display: none;
}
.bc-dropdown-menu.bc-open { display: block; }
.bc-dropdown-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  background: none; border: none; font-size: 14px; cursor: pointer; color: var(--bc-text);
}
.bc-dropdown-menu button:hover { background: #f4f6fa; }
.bc-dropdown-menu button:disabled { color: var(--bc-muted); cursor: not-allowed; }

/* 필터 바 */
.bc-filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px;
}
.bc-toggle-group { display: flex; gap: 4px; background: #eef1f6; border-radius: 10px; padding: 3px; }
.bc-toggle-group button {
  border: none; background: none; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--bc-muted); cursor: pointer;
}
.bc-toggle-group button.bc-active { background: #fff; color: var(--bc-text); box-shadow: var(--bc-shadow); }
.bc-filter-sep { width: 1px; height: 18px; background: var(--bc-border); }
.bc-select-sm { font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--bc-border); background: #fff; }
.bc-sort-label { font-size: 13px; color: var(--bc-muted); }

/* 카테고리 아코디언 */
.bc-category { margin-bottom: 12px; overflow: hidden; }
.bc-category-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; cursor: pointer;
}
.bc-category-header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bc-caret { transition: transform .15s; color: var(--bc-muted); flex-shrink: 0; }
.bc-category.bc-collapsed .bc-caret { transform: rotate(-90deg); }
.bc-category-title { font-weight: 700; font-size: 15px; }
.bc-category-subtitle { color: var(--bc-muted); font-size: 12.5px; margin-left: 6px; }
.bc-category-badge { font-size: 12.5px; font-weight: 700; color: var(--bc-muted); flex-shrink: 0; }
.bc-category-del {
  opacity: 0; transition: opacity .1s; color: var(--bc-muted); background: none; border: none; cursor: pointer; padding: 4px;
}
.bc-category-header:hover .bc-category-del { opacity: 1; }

.bc-items { border-top: 1px solid var(--bc-border); }
.bc-category.bc-collapsed .bc-items { display: none; }

.bc-item-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid #f0f2f6;
}
.bc-item-row:last-child { border-bottom: none; }
.bc-item-row.bc-item-done .bc-item-name { text-decoration: line-through; color: var(--bc-muted); }
.bc-item-row.bc-item-hidden { display: none; }

.bc-item-checkbox { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; cursor: pointer; accent-color: var(--bc-primary); }

.bc-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bc-item-line1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bc-item-name { font-size: 14.5px; font-weight: 600; cursor: text; border-radius: 4px; padding: 1px 3px; margin: -1px -3px; }
.bc-item-name:hover, .bc-item-qty:hover, .bc-item-note:hover, .bc-item-assignee:hover { background: #f4f6fa; }
.bc-item-qty { font-size: 12.5px; color: var(--bc-muted); cursor: text; border-radius: 4px; padding: 1px 4px; }
.bc-item-note { font-size: 12.5px; color: var(--bc-muted); cursor: text; border-radius: 4px; padding: 1px 3px; margin: -1px -3px; }
.bc-item-note:empty::before { content: "비고 추가"; color: #b7c0cf; }
.bc-item-line2 { display: flex; align-items: center; gap: 8px; }
.bc-item-assignee {
  font-size: 11.5px; font-weight: 700; color: var(--bc-primary-dark); background: #eaf1ff;
  border-radius: 999px; padding: 2px 9px; cursor: text; min-width: 30px; display: inline-block;
}
.bc-item-assignee:empty::before { content: "담당자 지정"; color: #9db6e6; font-weight: 600; }

.bc-item-del {
  opacity: 0; transition: opacity .1s; color: var(--bc-muted); background: none; border: none; cursor: pointer;
  padding: 8px; flex-shrink: 0; margin-top: 2px; font-size: 28px; line-height: 1;
}
.bc-item-row:hover .bc-item-del { opacity: 1; }
.bc-item-del:hover { color: var(--bc-red); }

.bc-add-item-btn, .bc-add-category-btn {
  width: 100%; text-align: left; padding: 11px 14px; background: none; border: none;
  color: var(--bc-primary); font-size: 13.5px; font-weight: 700; cursor: pointer; border-top: 1px solid #f0f2f6;
}
.bc-add-item-btn:hover, .bc-add-category-btn:hover { background: #f6f8fc; }
.bc-add-category-btn { border-top: none; border-radius: var(--bc-radius); border: 1px dashed var(--bc-border); margin-top: 4px; }

/* 인라인 추가 폼 */
.bc-inline-form { padding: 10px 14px; border-top: 1px solid #f0f2f6; display: flex; flex-direction: column; gap: 8px; }
.bc-inline-form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-inline-form-row input { flex: 1; min-width: 90px; }
.bc-inline-form-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* 플로팅 버튼 */
.bc-fab-group { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 30; }
.bc-fab {
  width: 52px; height: 52px; border-radius: 50%; background: var(--bc-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 21px; border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(47, 111, 237, .35);
}
.bc-fab.bc-fab-secondary { background: #fff; color: var(--bc-text); border: 1px solid var(--bc-border); box-shadow: var(--bc-shadow); }

/* 토스트 */
.bc-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
  background: #222933; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13.5px;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50; white-space: nowrap;
}
.bc-toast.bc-show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* 우측 하단 토스트 — 플로팅 버튼(.bc-fab-group) 왼쪽에 띄운다 */
.bc-toast.bc-toast-corner { left: auto; right: 88px; transform: translateY(12px); border-radius: 10px; }
.bc-toast.bc-toast-corner.bc-show { transform: translateY(0); }

/* 모달 */
.bc-modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 26, 38, .45); display: none;
  align-items: center; justify-content: center; z-index: 60; padding: 16px;
}
.bc-modal-backdrop.bc-open { display: flex; }
.bc-modal { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 360px; }
.bc-modal h3 { margin: 0 0 14px; font-size: 16px; }
.bc-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* 404 */
.bc-notfound { text-align: center; padding: 80px 16px; }
.bc-notfound .bc-emoji { font-size: 48px; }

/* 인쇄 뷰 */
.bc-print-body { background: #fff; color: #111; font-family: -apple-system, "Malgun Gothic", sans-serif; }
.bc-print-wrap { max-width: 780px; margin: 0 auto; padding: 24px; }
.bc-print-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 16px; }
.bc-print-header h1 { font-size: 20px; margin: 0; }
.bc-print-header .bc-print-date { font-size: 13px; color: #555; }
.bc-print-toolbar { text-align: right; margin-bottom: 14px; }
.bc-print-category { margin-bottom: 16px; break-inside: avoid; }
.bc-print-category h2 { font-size: 15px; margin: 0 0 6px; border-bottom: 1px solid #ccc; padding-bottom: 4px; }
.bc-print-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bc-print-table th, .bc-print-table td { border: 1px solid #ccc; padding: 6px 8px; text-align: left; }
.bc-print-table th { background: #f4f4f4; }
.bc-print-check { width: 28px; text-align: center; font-size: 15px; }
@media print {
  .bc-print-toolbar { display: none; }
  .bc-print-wrap { padding: 0; max-width: none; }
  .bc-print-category { break-inside: avoid; }
}

@media (max-width: 560px) {
  .bc-hero { padding: 48px 16px 44px; }
  .bc-hero h1 { font-size: 30px; }
  .bc-hero p { font-size: 14px; }
  .bc-hero-br { display: none; }
  .bc-hero-cta .bc-btn { flex: 1 1 100%; }
  .bc-hero-features { gap: 4px 0; }
  .bc-hero-features li { padding: 2px 10px; }
  .bc-hero-features li + li { border-left: 0; }
  .bc-steps { grid-template-columns: 1fr; }
  .bc-header-actions .bc-btn span.bc-btn-label { display: none; }
}
