:root {
  color-scheme: light;
  --bg: #fffef2;
  --paper: rgba(255, 255, 255, 0.98);
  --paper-soft: #fffde7;
  --border: rgba(255, 224, 90, 0.248);
  --accent: #76a6ff;
  --text: #273043;
  --muted: #5a6875;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.044);
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: #fffffc;
  background-image:
    radial-gradient(circle at 16% 12%, rgba(255, 241, 118, 0.16), transparent 18%),
    radial-gradient(circle at 86% 18%, rgba(255, 249, 196, 0.2), transparent 20%),
    radial-gradient(circle at 80% 78%, rgba(255, 238, 122, 0.12), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fffef6 40%, #fffdf0 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.75;
}
.container {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 18px 48px;
}
.header-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 231, 0.95));
  border: 1px solid rgba(255, 224, 90, 0.22);
  border-radius: 32px;
  padding: 30px 32px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.header-card::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 241, 118, 0.3), transparent 55%);
  pointer-events: none;
}
.header-card::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 249, 196, 0.32), transparent 45%);
  pointer-events: none;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 18px;
}
.topbar-title {
  display: grid;
  gap: 8px;
}
.topbar-title h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.4rem);
  letter-spacing: -0.04em;
}
.topbar-title p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 224, 90, 0.248);
  border-radius: 999px;
  padding: 12px 16px;
  width: 100%;
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), 0 14px 28px rgba(15, 23, 42, 0.033);
}
.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
}
.search-clear {
  border: none;
  background: rgba(255, 213, 79, 0.28);
  color: #8a7000;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 150ms ease;
  white-space: nowrap;
}
.search-clear:hover {
  background: rgba(255, 213, 79, 0.45);
}
.topbar {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 24px;
  width: 100%;
  margin-bottom: 18px;
}
.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.topbar-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-widget {
  background: rgba(255, 253, 231, 0.95);
  border: 1px solid rgba(255, 224, 90, 0.193);
  border-radius: 26px;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
}
.widget-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.widget-line strong {
  color: #0f172a;
  font-weight: 700;
}
.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 213, 79, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #fff176, #fbc02d);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.float-nav {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 20;
}
.float-nav.hidden { display: none; }
.nav-arrow {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.066);
  color: #183153;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 150ms ease, background 150ms ease;
}
.nav-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #fff;
}
.nav-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.highlight {
  background: rgba(255, 235, 59, 0.45);
  padding: 0 2px;
  border-radius: 4px;
}
.section-card {
  margin-top: 24px;
  background: rgba(255, 253, 231, 0.96);
  border: 1px solid rgba(255, 224, 90, 0.154);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.64), transparent 60%);
}
.section-title {
  margin: 0;
  padding: 28px 30px 8px;
  font-size: 1.45rem;
  border-bottom: 1px solid rgba(229, 214, 155, 0.7);
  color: #0f172a;
}
.accordion {
  display: grid;
  gap: 12px;
  padding: 20px 20px 28px;
}
.toggle-item {
  border: 1px solid rgba(181, 197, 214, 0.4);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.028);
}
.toggle-button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  color: var(--text);
  transition: background 150ms ease, border-color 150ms ease;
}
.toggle-button:hover {
  background: #fff9c4;
}
.toggle-button.active {
  background: rgba(255, 235, 59, 0.18);
}
.toggle-label {
  display: grid;
  gap: 6px;
  align-items: flex-start;
}
.toggle-label strong {
  font-size: 1.1rem;
  color: #0f172a;
  display: block;
}
.toggle-label span {
  color: var(--muted);
  font-size: 0.95rem;
}
.toggle-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 213, 79, 0.25);
  color: #9c8a00;
  font-weight: 700;
  transition: transform 150ms ease;
}
.toggle-icon.open {
  transform: rotate(45deg);
}
.panel {
  max-height: 0;
  overflow: hidden;
}
.panel.open {
  max-height: none;
  height: auto;
}
.panel-body {
  padding: 10px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
}
.panel-body h3, .panel-body h4 {
  margin: 0.6em 0 0.3em;
  color: #0f172a;
}
.panel-body p {
  margin: 4px 0;
}
.panel-body .muted {
  color: var(--muted);
  font-size: 0.95rem;
}
.panel-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  margin: 12px 0;
  display: block;
}
.panel-body pre {
  background: #0b1020;
  color: #e6e6e6;
  padding: 16px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  border: 1px solid rgba(0,0,0,0.05);
  margin: 12px 0;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.panel-body code {
  font-family: monospace;
  background: rgba(135, 131, 120, 0.15);
  padding: 2px 4px;
  border-radius: 3px;
  color: #eb5757;
}
.panel-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.panel-body details {
  background: #fffde7;
  border: 1px solid #ffe082;
  padding: 14px 18px;
  border-radius: 12px;
  margin: 12px 0;
}
.panel-body summary {
  font-weight: 700;
  cursor: pointer;
  outline: none;
  font-size: 1.05rem;
}
.panel-body ul {
  padding-left: 20px;
  margin: 8px 0;
}
.panel-body ol {
  padding-left: 22px;
  margin: 8px 0;
}
.panel-body hr {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 18px 0;
}
.panel-body figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: -8px;
  margin-bottom: 12px;
}
.callout {
  background: #f8fafc;
  border-left: 4px solid #74a9ff;
  padding: 16px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}
.callout strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}
.toc-toggle-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 224, 90, 0.22);
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 1002;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.066);
  transition: all 150ms ease;
  font-size: 1.5rem;
}
.toc-toggle-btn:hover {
  background: #fff;
  transform: scale(1.05);
}
.toc-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: rgba(255, 253, 231, 0.98);
  border-right: 1px solid rgba(255, 224, 90, 0.22);
  padding: 64px 0 20px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.044);
  transition: transform 300ms ease;
  transform: translateX(-100%);
}
.toc-sidebar.open {
  transform: translateX(0);
}
.toc-header {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #273043;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
  border-bottom: 1px solid rgba(255, 224, 90, 0.11);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-item {
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 150ms ease;
  color: #273043;
  padding: 12px 20px;
  border-left: 3px solid transparent;
  line-height: 1.4;
}
.toc-item:hover {
  background: rgba(255, 235, 59, 0.15);
  border-left-color: #ffe082;
}
.toc-item.active {
  background: rgba(255, 235, 59, 0.25);
  border-left-color: #fbc02d;
  font-weight: 600;
}
.toc-item-day {
  display: block;
  font-size: 0.85rem;
  opacity: 0.65;
  margin-top: 2px;
}
.toc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.toc-overlay.show {
  opacity: 0.4;
  pointer-events: all;
}
@media (max-width: 720px) {
  .container { padding: 24px 14px 32px; }
  .topbar { grid-template-columns: 1fr; }
  .progress-grid { grid-template-columns: 1fr; }
  .toc-toggle-btn { top: 10px; left: 10px; }
}
/* --- 로그인 및 회원가입 전용 스타일 --- */

/* 폼 컨테이너 너비 제한 */
.auth-container {
  max-width: 460px;
  margin: 8vh auto 0;
}

/* 폼 입력창 간격 조정 (기존 .search-box 활용) */
.auth-input-group {
  margin-bottom: 16px;
}
.auth-input-group:last-of-type {
  margin-bottom: 28px;
}

/* 폼 제출 버튼 (기존 진행바의 그라데이션 컬러 활용) */
.auth-btn {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, #fff176, #fbc02d);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(251, 192, 45, 0.3);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(251, 192, 45, 0.45);
}

/* 하단 링크 텍스트 */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}
.auth-footer a {
  color: #9c8a00;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease;
}
.auth-footer a:hover {
  color: #c99a00;
}
/* --- 상단 내비게이션 바 스타일 --- */
.navbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 231, 0.92));
  border-bottom: 1px solid rgba(255, 224, 90, 0.22);
  padding: 14px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.017);
  backdrop-filter: blur(8px);
}

.navbar-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo a {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  transition: color 150ms ease;
}

.navbar-menu a:hover {
  color: #c99a00; /* 마우스 올렸을 때 레몬빛 강조 */
}

/* 로그인한 사용자 님 환영 문구 */
.user-welcome {
  font-size: 0.92rem;
  color: var(--muted);
  margin-right: 8px;
}
.user-welcome strong {
  color: #0f172a;
}
  .search-preview {
      margin-top: 8px;
      font-size: 0.85rem;
      color: #5a6875;
      background: rgba(0, 0, 0, 0.03);
      padding: 8px 12px;
      border-radius: 8px;
      border-left: 3px solid #ffe082;
      display: none;
      line-height: 1.5;
      word-break: break-all;
      font-weight: normal;
    }
    .search-preview mark, 
    #fileTableBody mark {
      background: rgba(255, 235, 59, 0.5);
      color: #000;
      font-weight: bold;
      padding: 0 3px;
      border-radius: 3px;
    }
    /* 포커스된 현재 검색어를 시각적으로 더 돋보이게 처리 */
    .highlight.current-match {
      background: #ff5722;
      color: #fff;
      box-shadow: 0 0 5px rgba(255, 87, 34, 0.6);
      transition: all 0.2s ease;
    }
    #fileTableBody mark {
    background: rgba(255, 235, 59, 0.5) !important;
    color: #000 !important;
    font-weight: bold !important;
}
#pagination { margin-top: 20px; display: flex; justify-content: center; gap: 5px; }
#pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
#pagination button:hover { background: #fff9c4; }/* --- 추가: 네비게이션 활성 링크 표시 --- */
.navbar-menu a.active {
  color: #c99a00;
}

/* --- 추가: 홈 히어로 섹션 --- */
.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 231, 0.95));
  border: 1px solid rgba(255, 224, 90, 0.22);
  border-radius: 32px;
  padding: 34px 32px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.05);
  margin-top: 24px;
}
.hero-eyebrow {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #9c8a00;
  font-weight: 700;
}
.hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: -0.03em;
  color: #0f172a;
}
.hero-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* --- 추가: Study / About / Projects 요약 카드 --- */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.home-card {
  display: block;
  background: rgba(255, 253, 231, 0.96);
  border: 1px solid rgba(255, 224, 90, 0.193);
  border-radius: 22px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.028);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.044);
}
.home-card-label {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9c8a00;
}
.home-card-value {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}
.home-card-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.home-card-sub {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.home-card .progress-track {
  margin-top: 0;
}

/* --- 추가: 최근 프로젝트 미리보기 (블러 처리) --- */
.recent-projects {
  margin-top: 28px;
}
.recent-projects-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #9c8a00;
  margin: 0 0 10px;
}
.recent-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-preview {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid rgba(255, 224, 90, 0.193);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
a.project-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.044);
}
.project-preview.locked {
  cursor: default;
}
.project-thumb {
  height: 100px;
  background: #fff59d;
}
.project-body {
  padding: 14px 16px;
}
.project-title {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}
.project-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.project-preview.locked .project-thumb,
.project-preview.locked .project-body {
  filter: blur(3px);
}
.project-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 253, 231, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-lock-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255, 224, 90, 0.275);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.recent-projects-hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #9c8a00;
}

/* --- 추가: 로그인 필요 안내 (Projects 비로그인 상태) --- */
.locked-notice {
  max-width: 420px;
  margin: 10vh auto 0;
  text-align: center;
  background: rgba(255, 253, 231, 0.96);
  border: 1px solid rgba(255, 224, 90, 0.193);
  border-radius: 24px;
  padding: 40px 32px;
}
.locked-notice-icon {
  font-size: 2rem;
  margin: 0 0 8px;
}
.locked-notice h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #0f172a;
}
.locked-notice p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}
.locked-notice-btn {
  display: inline-block;
  width: auto;
  padding: 12px 28px;
  text-decoration: none;
}

/* --- 추가: 로그인 후 프로젝트 목차 리스트 --- */
.project-list {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.project-list-item {
  display: block;
  background: #fff;
  border: 1px solid rgba(181, 197, 214, 0.4);
  border-radius: 16px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease, transform 150ms ease;
}
.project-list-item:hover {
  background: #fff9c4;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .home-grid { grid-template-columns: 1fr; }
  .recent-projects-grid { grid-template-columns: 1fr; }
}

/* --- 추가: About 페이지 (자격증 / 경력·수상 / 대외활동) --- */
.section-title-en {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  vertical-align: middle;
}
.subgroup {
  padding: 4px 30px 8px;
}
.subgroup-title {
  margin: 22px 0 10px;
  font-size: 1.02rem;
  color: #0f172a;
  font-weight: 700;
}
.subgroup:first-of-type .subgroup-title {
  margin-top: 18px;
}
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.section-card > .info-list {
  padding: 14px 30px 28px;
}
.info-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  background: #fff;
  border: 1px solid rgba(255, 224, 90, 0.2);
  border-radius: 14px;
  padding: 14px 18px;
}
.info-item-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
}
.info-item-role {
  margin-left: 8px;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}
.info-item-note {
  font-size: 0.85rem;
  color: var(--muted);
}
.badge-date {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #9c8a00;
  background: rgba(255, 235, 59, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .info-item { flex-direction: column; align-items: flex-start; }
}

/* --- 추가: Study 페이지 상단 박스 - 수업내용/훈련일지 탭 --- */
.content-tabs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.content-tab {
  border: 1px solid rgba(255, 224, 90, 0.22);
  background: #fff;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.content-tab:hover {
  background: #fff9c4;
  color: #0f172a;
}
.content-tab.active {
  background: linear-gradient(90deg, #fff176, #fbc02d);
  border-color: transparent;
  color: #4a3b00;
  box-shadow: 0 6px 14px rgba(251, 192, 45, 0.25);
}

/* --- 추가: Projects 페이지 - 목록은 보이되 클릭 시 로그인 안내 --- */
.locked-inline-notice {
  margin: 0;
  padding: 14px 30px;
  font-size: 0.92rem;
  color: #9c8a00;
  background: rgba(255, 235, 59, 0.15);
  border-bottom: 1px solid rgba(255, 224, 90, 0.2);
}
.locked-inline-notice a {
  color: #c99a00;
  font-weight: 700;
  text-decoration: none;
}
.locked-inline-notice a:hover {
  text-decoration: underline;
}


/* --- 추가: Study 페이지 - 구조화된 요약 카드 (제목 + 주요 단어 + 요약 + 노션 링크) --- */
.notion-summary-card {
  background: linear-gradient(180deg, #fffdf2, #ffffff 60px);
  border: 1px solid rgba(255, 224, 90, 0.3);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.notion-summary-card-inner {
  padding: 22px 26px 26px;
}
.notion-summary-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.notion-summary-heading::before {
  content: "📖";
  font-size: 1rem;
}
.notion-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.notion-keyword {
  background: rgba(255, 235, 59, 0.16);
  border: 1px solid rgba(251, 192, 45, 0.35);
  color: #8a7000;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
}
.notion-summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #b08a00;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.notion-summary-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 224, 90, 0.35);
}
.notion-summary {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.8;
}
.notion-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #fff176, #fbc02d);
  color: #4a3b00;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(251, 192, 45, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.notion-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(251, 192, 45, 0.35);
}
.notion-link-btn::after {
  content: "→";
  transition: transform 150ms ease;
}
.notion-link-btn:hover::after {
  transform: translateX(3px);
}

/* --- 추가: 보고서 탭 - 클릭 시 바로 이동하는 카드형 버튼 --- */
.accordion.report-mode {
  gap: 12px;
}
.report-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(255, 224, 90, 0.28);
  border-radius: 18px;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
  border-color: rgba(251, 192, 45, 0.5);
}
.report-card-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.report-card-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.report-card-arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #fbc02d;
  font-weight: 700;
  transition: transform 150ms ease;
}
.report-card:hover .report-card-arrow {
  transform: translateX(4px);
}