/* =========================================================
 * 개인 홈페이지 전용 스타일 — 크림 · 세이지 · 테라코타 (2026-10 개편)
 * 크림색 바탕에 세이지 그린과 테라코타를 포인트로, 명조 제목과 이탤릭 영문,
 * 아치형 사진, 잎사귀 선 그림, 녹색 숫자 띠, 테라코타 연락 영역, 짙은 올리브 푸터.
 * (style.css 다음에 불러와 색 토큰과 일부 모양을 덮어씀)
 * ※ 변수 이름(--pink-*, --lilac-*)은 강의 사이트 코드와 같이 쓰려고 그대로 두었고,
 *   실제 색은 --pink-* = 테라코타·모래 계열, --lilac-* = 세이지 그린 계열입니다.
 * ========================================================= */
:root {
  --pink-50: #fbf4ec;   /* 아주 옅은 모래 */
  --pink-100: #f4e6d8;
  --pink-200: #e9d2bd;
  --pink-400: #d29a78;
  --pink-500: #a35a38;  /* 테라코타 — 강조 글씨 */
  --lilac-100: #edf0e5; /* 옅은 세이지 */
  --lilac-200: #d5dcc7;
  --lilac-400: #98a787;
  --lilac-600: #55654a; /* 짙은 세이지 — 강조 */

  --sage: #7d8d6b;
  --clay: #b8724f;
  --olive-dark: #3c4535;
  --cream: #fbf6f0;
  --card: #fffdf9;

  --bg: var(--cream);
  --text: #2e2b26;
  --muted: #6e675d;
  --line: #ece1d4;

  --grad: linear-gradient(135deg, #8a9a76, #55654a);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(90, 60, 30, 0.04), 0 10px 30px rgba(90, 60, 30, 0.06);
  --shadow-hover: 0 4px 10px rgba(90, 60, 30, 0.07), 0 18px 40px rgba(90, 60, 30, 0.1);
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --display: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
}
::selection { background: #e9d2bd; }
body { line-height: 1.75; background: var(--cream); }

/* 강의 사이트 스타일에 직접 적힌 분홍·보라 그림자·배경을 새 톤으로 */
.btn--primary { box-shadow: none; }
.btn--primary:hover { box-shadow: 0 10px 24px rgba(85, 101, 74, 0.25); }
.to-top { background: var(--lilac-600); box-shadow: 0 10px 24px rgba(60, 70, 50, 0.3); }
.footer { padding: 0; background: none; text-align: left; }
.footer p { margin: 0; font-size: inherit; color: inherit; }

/* ── 헤더 ───────────────────────────── */
.header { background: rgba(251, 246, 240, 0.86); }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(90, 60, 30, 0.07); }
.brand { gap: 12px; }
.brand__mark { width: 30px; height: 40px; border-radius: 0; background: none; color: var(--sage); }
.brand__leaf { width: 100%; height: 100%; }
.brand__text { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: .01em; }
.brand__text small { margin-top: 2px; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 10.5px; letter-spacing: .16em; }
.nav { gap: 2px; }
.nav a { position: relative; padding: 9px 14px; border-radius: 0; font-size: 14.5px; color: var(--text); }
.nav a:hover { background: none; color: var(--pink-500); }
.nav a.is-active { background: none; color: var(--text); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--text);
}
.header-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; margin-left: 6px; border-radius: 999px;
  background: var(--lilac-600); color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; transition: background .2s;
}
.header-cta:hover { background: var(--olive-dark); }
.lock-btn { background: transparent; }
.menu-toggle { background: var(--pink-100); }

/* ── 공통: 버튼 · 섹션 제목 ───────────── */
.btn { border-radius: 6px; font-size: 14px; letter-spacing: .06em; gap: 10px; }
.btn--primary { background: var(--lilac-600); color: #fff; }
.btn--primary:hover { background: var(--olive-dark); }
.btn--ghost { border-radius: 6px; background: transparent; border-color: var(--pink-200); }
.btn--ghost:hover { background: var(--pink-50); }
.arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr, .text-link:hover .arr { transform: translateX(4px); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--text);
}
.text-link:hover { color: var(--pink-500); }

.section { padding: 100px 0; }
.section__head { text-align: center; margin: 0 auto 44px; max-width: 720px; }
.section__head h2 {
  margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.01em;
}
.section__head p { margin-top: 12px; color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--pink-500);
}
.eyebrow--light { color: #f6dccb; }
.section--tint { background: #f6ede3; }
.section--plain { background: transparent; }
.section__head.section__head--gap { margin-top: 96px; }
.sub-title { font-family: var(--serif); font-weight: 500; }
.sub-title--center { text-align: center; margin: 64px 0 24px; font-size: 22px; }

/* 잎사귀 선 그림 장식 */
.deco-leaf { position: absolute; z-index: 0; color: #d9c2ab; pointer-events: none; }
.deco-leaf--hero { left: -18px; top: 120px; width: 150px; transform: rotate(-24deg); }
.deco-leaf--about { right: -30px; top: 40px; width: 140px; transform: rotate(28deg) scaleX(-1); opacity: .8; }
.deco-leaf--foot { right: 24px; bottom: 10px; width: 90px; color: rgba(255, 255, 255, .16); }
#about { position: relative; overflow: hidden; }

/* ── 첫 화면 ─────────────────────────── */
.hero { text-align: left; padding: 64px 0 96px; background: none; overflow: hidden; }
.home-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hello { font-size: 12.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--pink-500); }
.home-hero__name {
  margin-top: 18px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(54px, 7.4vw, 92px); line-height: 1.05; letter-spacing: -0.02em;
}
.home-hero__name em {
  display: block; margin-top: 4px; font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: .8em; letter-spacing: 0; color: var(--sage);
}
.home-hero__pos { margin-top: 22px; font-size: clamp(15px, 1.7vw, 17px); font-weight: 700; letter-spacing: .04em; color: var(--text); }
.home-hero__tag { margin-top: 12px; max-width: 520px; font-size: clamp(16px, 1.8vw, 18px); line-height: 1.8; color: var(--muted); }
.home-hero__kw { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.home-hero__kw li {
  padding: 5px 14px; border-radius: 999px; border: 1px solid var(--pink-200); background: rgba(255, 253, 249, .7);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.home-hero .hero__buttons { justify-content: flex-start; align-items: center; gap: 18px; margin-top: 32px; }

/* 아치형 사진 + 세이지 원 + 선 그림 */
.home-hero__photo { position: relative; margin: 0; justify-self: center; width: min(400px, 100%); aspect-ratio: 4 / 5.2; }
.home-hero__disc {
  position: absolute; z-index: 0; right: -16%; top: 14%; width: 92%; aspect-ratio: 1; border-radius: 50%; background: var(--sage); opacity: .9;
}
.home-hero__swirl { position: absolute; z-index: 2; left: -28%; bottom: 6%; width: 70%; color: #c9a88c; }
.home-hero__leaf { position: absolute; z-index: 2; right: -10%; top: 30%; width: 26%; color: rgba(255, 255, 255, .75); transform: rotate(18deg); }
.spark { position: absolute; z-index: 2; color: #c9a88c; }
.spark--1 { left: -14%; top: 8%; width: 18px; }
.spark--2 { left: -6%; top: 16%; width: 10px; }
.home-hero__photo img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  border-radius: 999px 999px 24px 24px; box-shadow: 0 24px 60px rgba(70, 50, 30, .16);
}

/* ── 소개 ───────────────────────────── */
.about-card {
  position: relative; z-index: 1; display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center;
  padding: 48px 56px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.about-card__stamp { color: var(--pink-500); }
.stamp { display: block; width: 100%; max-width: 200px; margin: 0 auto; }
.stamp text {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; fill: currentColor;
  transform-box: view-box; transform-origin: 80px 80px; animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stamp text { animation: none; } }
.about-card__text p { font-size: 16.5px; line-height: 1.95; word-break: keep-all; }
.about__sign { margin-top: 18px !important; font-family: var(--display); font-style: italic; font-size: 30px !important; color: var(--pink-500); }
.about__sign::after { content: " ♡"; font-size: .55em; vertical-align: .2em; }
.tl-cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tl-group { padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tl-cols .tl li:has(.tl__year:empty) { grid-template-columns: 1fr; position: relative; padding-left: 16px; }
.tl-cols .tl li:has(.tl__year:empty)::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--pink-400);
}
.tl-cols .tl__year:empty { display: none; }
.tl__yr { margin-right: 4px; font-weight: 800; color: var(--pink-500); font-variant-numeric: tabular-nums; }
.tl-group h4 { margin: 0 0 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .2em; color: var(--pink-500); }
.tl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tl li { display: grid; grid-template-columns: 72px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; }
.tl__year { font-weight: 700; color: var(--lilac-600); font-variant-numeric: tabular-nums; }
/* 연도가 하나도 없는 구분은 연도 칸을 없애고 점 목록으로 */
.tl--noyear li { grid-template-columns: 1fr; position: relative; padding-left: 16px; }
.tl--noyear li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--pink-400); }
.tl--noyear .tl__year { display: none; }

/* ── 연구 ───────────────────────────── */
.statement { position: relative; max-width: 860px; margin: 0 auto; padding: 8px 0 0; text-align: center; }
.statement::before {
  content: "“"; display: block; height: 48px; font-family: var(--display); font-size: 96px; line-height: 1; color: var(--pink-400);
}
.statement p { font-family: var(--serif); font-size: 18px; line-height: 2.05; word-break: keep-all; }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* 녹색 숫자 띠 (Google Scholar) */
.band { position: relative; z-index: 1; padding: 34px 0 22px; background: var(--sage); color: #fff; }
.band__stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.band__stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; padding: 6px 12px; text-align: center; }
.band__stats div + div { border-left: 1px solid rgba(255, 255, 255, .3); }
.band__stats dd { margin: 0; font-family: var(--display); font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums; }
.band__stats dt { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .92; }
.band__note { margin-top: 18px; text-align: center; font-size: 12.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .85); }
.band__note a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 연구 주제: 한 판 안의 칸 + 둥근 잎 모양 아이콘 */
.svc {
  display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 24px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.svc__item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 22px 30px; text-align: center; }
.svc__item:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.svc__item:nth-child(n+5) { border-top: 1px solid var(--line); }
.svc__icon {
  display: grid; place-items: center; width: 64px; height: 60px; margin-bottom: 6px;
  border-radius: 58% 42% 52% 48% / 52% 58% 42% 48%;
}
.svc__icon--sage { background: var(--sage); }
.svc__icon--clay { background: var(--clay); border-radius: 46% 54% 44% 56% / 58% 44% 56% 42%; }
.svc__icon i { font-style: normal; font-size: 26px; filter: grayscale(1) brightness(0) invert(1); }
.svc__item h4 { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.45; }
.svc__item p { font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* Google Scholar 지표 */
.scholar { margin: -16px 0 48px; padding: 22px 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.scholar__head { display: flex; align-items: center; gap: 12px; }
.scholar__head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.scholar__head small { font-size: 12px; color: var(--muted); }
.scholar__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lilac-100); font-size: 20px; }
.scholar__btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.scholar__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 0; }
.scholar__stats div { padding: 14px 10px; border-radius: 16px; background: var(--pink-50); text-align: center; }
.scholar__stats dt { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.scholar__stats dd { margin: 2px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--lilac-600); }
.scholar__kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.scholar__kw li { padding: 4px 12px; border-radius: 999px; background: var(--lilac-100); color: var(--lilac-600); font-size: 13px; font-weight: 700; }
.topic, .course, .project {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.topic.reveal.is-in:hover, .course.reveal.is-in:hover, .project.reveal.is-in:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.topic__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px;
  background: linear-gradient(135deg, var(--pink-100), var(--lilac-100));
}
.topic h4, .course h4, .project h4 { margin: 6px 0 0; font-size: 17px; font-weight: 800; line-height: 1.4; }
.topic p, .course p, .project p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project__meta { display: flex; gap: 8px; align-items: center; }
.project__period { font-size: 13px; font-weight: 700; color: var(--lilac-600); }
.sub-title:not(:first-of-type), .topics + .sub-title { margin-top: 56px; }

/* ── 논문 · 저서 ─────────────────────── */
.pub-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.pub-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-filters small { margin-left: 4px; opacity: .6; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pub-sort select {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
}
.pub-sort select:focus { outline: none; border-color: var(--lilac-400); box-shadow: 0 0 0 4px var(--lilac-100); }
.pub-tools { justify-content: flex-start; }
.pub-filters { flex: 1 1 100%; }
.pub__cites { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pub__yr { color: var(--muted); }
.pub-year--flat { grid-template-columns: 1fr; }
/* 연도별 접기 */
.pub-yearbar { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.pub-yearbar .pill-btn { min-height: 34px; font-size: 13px; }
.pub-year--fold { display: block; padding: 0; }
.pub-year--fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 4px;
}
.pub-year--fold > summary::-webkit-details-marker { display: none; }
.pub-year--fold > summary:hover h3 { color: var(--pink-500); }
.pub-year--fold > summary:focus-visible { outline: 3px solid var(--lilac-200); outline-offset: 2px; border-radius: 10px; }
.pub-year--fold h3 { min-width: 72px; }
.pub-year__count { flex: 1; font-size: 13px; font-weight: 700; color: var(--muted); }
.pub-year--fold .week__arrow { border-color: var(--lilac-600); }
.pub-year--fold[open] .week__arrow { transform: rotate(-135deg) translateY(-3px); }
.pub-year--fold > ul { padding: 0 0 22px; }
.pub-year--flat h3 { display: none; }
.pub-search {
  flex: 1;
  display: flex; align-items: center; gap: 8px; min-width: min(320px, 100%); padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
}
.pub-search:focus-within { border-color: var(--lilac-400); box-shadow: 0 0 0 4px var(--lilac-100); }
.pub-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: none; font: inherit; font-size: 15px; background: none; }
.pub-count { margin: 6px 0 18px; font-size: 13px; color: var(--muted); }
.pub-year { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.pub-year h3 { font-family: var(--serif); font-size: 24px; color: var(--lilac-600); line-height: 1.3; }
.pub-year ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pub { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.pub__type {
  flex: none; margin-top: 2px; padding: 3px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 800; white-space: nowrap;
  background: var(--pink-100); color: var(--pink-500);
}
.pub__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pub__authors { font-size: 14px; color: var(--muted); }
.pub__authors b { color: var(--text); }
.pub__title { font-size: 16px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.pub__venue { font-size: 14px; color: var(--muted); }
.pub__links { display: flex; gap: 12px; margin-top: 4px; }
.pub__links a { font-size: 13px; font-weight: 700; color: var(--lilac-600); }
.pub__links a:hover { text-decoration: underline; }
.pub-more { margin-top: 20px; text-align: center; }

/* ── 강의 · 지도학생 ──────────────────── */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course__en { font-size: 13px !important; font-weight: 600; letter-spacing: .02em; }
.course__link { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--lilac-600); }
.lab { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lab__group { padding: 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.lab__group h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 16px; }
.lab__group h3 small { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.lab__members { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lab__members li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--pink-50); }
.lab__members li > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.lab__members strong { font-size: 15px; }
.lab__members small { font-size: 12px; color: var(--muted); }
.lab__avatar {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 800;
}

/* ── 강의: 학기별 카드 ─────────────────── */
.term + .term { margin-top: 36px; }
.term__title { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.term__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.course__meta { font-size: 13px !important; font-weight: 700; color: var(--pink-500) !important; }
.course__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.course__links .pill-btn { min-height: 38px; font-size: 13.5px; text-decoration: none; }
.pill-btn--solid { background: var(--lilac-600); }
.pill-btn--solid:hover { background: #2f4a36; }
.section__head--sub { margin-top: 0; }
.section__head--sub h2 { font-size: clamp(24px, 2.8vw, 30px); }
.showcase { margin-top: 72px; }

/* ── 지도학생 ─────────────────────────── */
.lab-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.lab-subnav a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--lilac-600);
}
.lab-subnav a:hover { background: var(--lilac-100); }
.lab-tabs { margin-bottom: 18px; }
.members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.member__btn {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; height: 100%; padding: 20px; border: 0; border-radius: var(--radius);
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.member__btn:focus-visible { outline: 3px solid var(--lilac-400); outline-offset: 2px; }
.member__avatar, .profile__photo {
  position: relative; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800;
}
.member__avatar { width: 52px; height: 52px; font-size: 18px; }
.member__avatar img, .profile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.member__name { font-size: 17px; font-weight: 800; }
.member__kw { display: flex; flex-wrap: wrap; gap: 4px; }
.member__kw span { padding: 2px 8px; border-radius: 999px; background: var(--lilac-100); color: var(--lilac-600); font-size: 11.5px; font-weight: 700; }
.member__more { margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--pink-500); }

/* 지도학생 프로필 팝업 */
.modal__box.profile { width: min(640px, 100%); text-align: left; padding: 30px 28px 26px; }
.profile__head { display: flex; gap: 20px; align-items: center; padding-right: 36px; }
.profile__photo { width: 96px; height: 96px; font-size: 34px; box-shadow: 0 0 0 6px var(--pink-50), 0 0 0 7px var(--pink-200); }
.profile__head h3 { font-family: var(--serif); font-size: 26px; }
.profile__meta { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--pink-500); }
.profile__kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.profile__kw li { padding: 4px 11px; border-radius: 999px; background: var(--lilac-100); color: var(--lilac-600); font-size: 13px; font-weight: 700; }
.profile__topic { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--pink-50); font-size: 14.5px; }
.profile__topic + .profile__topic { margin-top: 8px; }
.profile__topic b { display: block; font-size: 12px; color: var(--pink-500); }
.profile__h { margin: 22px 0 10px; font-size: 16px; font-weight: 800; }
.profile__h small { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.profile__works { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.profile__works li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.profile__year { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--lilac-600); }
.profile__work { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.profile__work strong { font-size: 14.5px; line-height: 1.5; word-break: keep-all; }
.profile__work small { font-size: 12.5px; color: var(--muted); }
.profile__work a { font-size: 12.5px; font-weight: 700; color: var(--lilac-600); }
.profile__note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.member__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.member h4 { margin: 0; font-size: 17px; font-weight: 800; }
.member__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.member__topic, .member__thesis { font-size: 13.5px; line-height: 1.55; color: var(--text); }
.member__topic b, .member__thesis b { display: block; font-size: 11.5px; color: var(--pink-500); }
.chip--week { background: var(--lilac-100); color: var(--lilac-600); }
.chip--task { background: var(--pink-100); color: var(--pink-500); }

/* ── 연구실 · 문의 · 자료실 ─────────────── */
.lab-part + .lab-part { margin-top: 88px; }
.lab-sample { display: inline-block; margin-right: 8px; vertical-align: 2px; font-size: 11px; padding: 2px 8px; }
.lab-intro { padding: 26px 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.lab-intro__text { font-size: 16.5px; line-height: 1.85; }
.lab-intro h4 { margin: 18px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--pink-500); }
.lab-topics { margin-top: 10px; }
.lab-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.lab-box { padding: 24px 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.lab-box h4 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.lab-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; }
.lab-list li::marker { color: var(--lilac-600); font-weight: 800; }
.lab-list--dot { list-style: none; padding-left: 0; }
.lab-list--dot li { position: relative; padding-left: 18px; }
.lab-list--dot li::before { content: ""; position: absolute; left: 3px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--pink-400); }

.consult { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: start; }
.consult__guide { display: flex; flex-direction: column; gap: 12px; }
.guide-item { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.guide-item h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 800; }
.guide-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.guide-item a { color: var(--lilac-600); font-weight: 700; }
.consult .pf-note { text-align: left; }
.consult .panel { padding: 26px; }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.res-cat { padding: 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.res-cat h4 { margin: 0 0 12px; font-family: var(--serif); font-size: 18px; }
.res-cat ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.res-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--pink-50); }
.res-item__icon { flex: none; font-size: 18px; }
.res-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.res-item__text strong { font-size: 14.5px; }
.res-item__text small { font-size: 12px; color: var(--muted); }
.res-kind { color: #2f6f3e !important; font-weight: 700; }
.res-open { min-height: 34px; padding: 0 14px; font-size: 13px; flex: none; }
.res-wait { flex: none; font-size: 12px; font-weight: 700; color: #a3a896; }

/* ── 학생 전용 공간 (5단계) ───────────── */
.portal { margin-top: 88px; }
.portal-login { max-width: 520px; padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.portal-me { margin-bottom: 18px; padding: 16px 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-bottom: 0; }
.portal-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.portal-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; font-size: 18px; font-weight: 800; }
.portal-card h3 small { font-size: 13px; font-weight: 700; color: var(--muted); }
.portal-report { margin-top: 18px; }
.stage-bar { height: 10px; border-radius: 999px; background: var(--pink-100); overflow: hidden; margin-bottom: 18px; }
.stage-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.stepper { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.step { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 44px; bottom: -8px; width: 2px; background: var(--line); }
.step--done:not(:last-child)::after { background: var(--lilac-400); }
.step__dot {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: 14px; color: var(--muted);
}
.step--done .step__dot { background: var(--lilac-600); border-color: var(--lilac-600); color: #fff; }
.step--now .step__dot { border-color: var(--pink-500); color: var(--pink-500); box-shadow: 0 0 0 5px var(--pink-100); }
.step__label { display: flex; flex-direction: column; font-weight: 700; line-height: 1.35; }
.step__label small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.step--now .step__label small { color: var(--pink-500); }
.stage-done { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--lilac-100); font-weight: 700; color: var(--lilac-600); }
.upcoming { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.upcoming li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--pink-50); font-size: 14px; }
.upcoming__date { font-weight: 800; color: var(--lilac-600); }
.upcoming small { display: block; color: var(--muted); }
.portal-cal { padding: 0; box-shadow: none; }
.portal-cal .cal__day { min-height: 46px; }
.portal-cal .cal__day.has-class { background: linear-gradient(160deg, var(--pink-100), var(--lilac-100)); }
.pc-detail { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pc-detail .cd-event { background: var(--lilac-100); }
.chip--event { background: var(--lilac-100); color: var(--lilac-600); }
.report-dest { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.report-mine { margin: 28px 0 12px; font-size: 16px; font-weight: 800; }
.report-mine small { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.report-view { padding: 0 22px 20px 68px; display: flex; flex-direction: column; gap: 10px; }
.report-view p { font-size: 14.5px; white-space: pre-line; }
.report-view b { display: block; font-size: 12px; color: var(--pink-500); }

/* 관리자 화면 (5단계 탭) */
.ad-select { min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 13.5px; }
.ad-hint { margin: 8px 0 0; font-size: 13px; }
.code-note { font-size: 14.5px; line-height: 1.8; }
.code-big { font-size: 20px; font-weight: 800; letter-spacing: .18em; padding: 2px 10px; background: #fff; }
.ad-report { padding: 4px 18px 16px; }
.sh-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.65; }
.sh-steps a { color: var(--lilac-600); font-weight: 700; text-decoration: underline; }
.sh-code {
  width: 100%; max-height: 260px; overflow: auto; margin: 0; padding: 14px 16px; border-radius: 12px;
  background: #1f2620; color: #e6efe0; font-size: 12.5px; line-height: 1.55; white-space: pre;
}

/* ── 연락처(푸터) ─────────────────────── */
.prof h2 { font-family: var(--serif); }
.prof__photo img { object-position: 50% 22%; transform: scale(1.7); transform-origin: 50% 30%; }

/* 관리자 화면: 강의 사이트에서 가져온(숨긴) 영역 칩 */
.ad-chip--lecture { opacity: .7; border-style: dashed; }
body.is-admin .prof__body .admin-edit { display: inline-flex; margin: 16px 0 0; }
.ad-chip--lecture small { margin-left: 4px; font-size: 11px; opacity: .8; }

/* ── 반응형 ───────────────────────────── */
@media (max-width: 1100px) {
  .topics, .members { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .consult, .lab-cols, .portal-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .members { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .members, .res-grid { grid-template-columns: 1fr; }
  .member__btn { padding: 16px; }
  .profile__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .modal__box.profile { padding: 26px 20px 22px; }
  .profile__works li { grid-template-columns: 1fr; gap: 4px; }
  .lab-intro, .lab-box { padding: 20px 18px; }
  .lab-part + .lab-part { margin-top: 64px; }
  .portal { margin-top: 64px; }
  .portal-login { padding: 22px 18px; }
  .upcoming li { grid-template-columns: 1fr; gap: 2px; }
  .report-view { padding: 0 18px 18px; }
}
@media (max-width: 960px) {
  .home-hero { grid-template-columns: 1fr 0.8fr; gap: 32px; }
  .scholar__stats { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .topics, .courses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .home-hero { grid-template-columns: 1fr; text-align: center; }
  .home-hero__photo { order: -1; width: min(240px, 70%); }
  .home-hero__photo::before { inset: 12px -12px -12px 12px; }
  .home-hero__tag { margin-inline: auto; }
  .home-hero__kw, .home-hero .hero__buttons { justify-content: center; }
  .lab, .projects { grid-template-columns: 1fr; }
  .pub-year { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .topics, .courses { grid-template-columns: 1fr; }
  .statement { padding: 22px 20px; }
  .statement p { font-size: 16px; }
  .about__timeline { padding: 22px 18px; }
  .tl li { grid-template-columns: 1fr; gap: 0; }
  .tl__year:empty { display: none; }
  .lab__members { grid-template-columns: 1fr 1fr; }
  .pub { flex-direction: column; gap: 8px; padding: 14px 16px; }
  .pub-search { min-width: 100%; }
}

/* =========================================================
 * 2026-10 개편: 카드 · 연구 프로젝트 · 연락 영역 · 푸터
 * ========================================================= */
/* 카드 바탕을 흰색 대신 따뜻한 크림으로, 얇은 테두리 */
.topic, .course, .project, .member, .pub, .lab-intro, .lab-box, .res-cat, .guide-item, .portal-login, .portal-me, .panel, .notice, .modal__box {
  background: var(--card);
}
.course, .project, .member, .pub, .lab-intro, .lab-box, .res-cat, .guide-item { border: 1px solid var(--line); }
.topic__icon { background: var(--pink-100); }
.pub__type { background: var(--pink-100); color: var(--pink-500); }
.pub-year h3 { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--lilac-600); }
.term__title { font-weight: 500; }
.member__avatar, .profile__photo, .lab__avatar { background: var(--grad); }
.lab-subnav { justify-content: center; }
.lab-subnav a { background: var(--card); }
.ad-chip[aria-pressed="true"] { background: var(--lilac-600); border-color: var(--lilac-600); color: #fff; }
.notices { padding-top: 8px; }

/* 연구 프로젝트 */
.project { padding: 0; gap: 0; overflow: hidden; }
.project__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 24px; color: #fff;
}
.project__top--sage { background: linear-gradient(135deg, #8b9b78, var(--lilac-600)); }
.project__top--clay { background: linear-gradient(135deg, #c98a68, var(--pink-500)); }
.project__funder { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.project__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.project h4 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.55; }
.project__meta { font-size: 13px !important; font-weight: 700; letter-spacing: .04em; color: var(--pink-500) !important; }
.chip--live { background: rgba(255, 255, 255, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.project__top .chip--closed { background: rgba(255, 255, 255, .85); }

/* 연락 영역: 테라코타 띠 */
.connect { position: relative; overflow: hidden; padding: 72px 0; background: #a35f3c; color: #fff; }
.connect__blob {
  position: absolute; left: -120px; top: -140px; width: 420px; height: 380px; border-radius: 50%;
  background: #b8724f; opacity: .7;
}
.connect__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr 220px; gap: 40px; align-items: center; }
.connect h2 { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.2vw, 38px); }
.connect .prof__role { margin-top: 6px; font-weight: 600; color: #f6dccb; }
.connect .prof__bio { margin-top: 14px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.connect__list { margin: 0; padding: 0 0 0 40px; list-style: none; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid rgba(255, 255, 255, .3); }
.connect__list li {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06);
}
.connect__list small { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: #f6dccb; }
.connect__list a, .connect__list span { font-weight: 600; color: #fff; word-break: break-all; }
.connect__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.connect__photo {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 18px 18px; background: #c98a68; box-shadow: 0 18px 40px rgba(60, 30, 15, .25);
}
.connect__photo span { font-family: var(--serif); font-size: 64px; color: #fff; }
.connect__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
body.is-admin .connect .admin-edit { display: inline-flex; margin: 16px 0 0; }

/* 푸터: 짙은 올리브 */
.foot { position: relative; overflow: hidden; padding: 56px 0 28px; background: var(--olive-dark); color: rgba(255, 255, 255, .78); font-size: 14px; }
.foot__cols { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.foot__brand strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; }
.foot__brand small { display: block; margin-top: 2px; font-size: 11px; letter-spacing: .18em; color: rgba(255, 255, 255, .6); }
.foot__brand p { margin-top: 16px !important; line-height: 1.75; }
.foot h4 { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .2em; color: #fff; }
.foot__nav { display: flex; flex-direction: column; gap: 6px; }
.foot__nav a:hover, .foot__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot__contact p { margin-bottom: 6px !important; word-break: break-all; }
.foot__note {
  position: relative; z-index: 1; width: min(1120px, 100% - 32px); margin: 40px auto 0 !important; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14); text-align: center; font-size: 12px !important; color: rgba(255, 255, 255, .5) !important;
}

/* ── 개편 반응형 ─────────────────────── */
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .connect__inner { grid-template-columns: 1fr 1fr; }
  .connect__photo { display: none; }
}
@media (max-width: 960px) {
  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc__item { border-right: 0 !important; border-top: 0 !important; }
  .svc__item:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .svc__item:nth-child(n+3) { border-top: 1px solid var(--line) !important; }
  .tl-cols { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 180px 1fr; gap: 32px; padding: 36px; }
  .deco-leaf--hero { width: 110px; opacity: .6; }
}
@media (max-width: 720px) {
  .hero { padding: 40px 0 72px; }
  .home-hero { gap: 40px; }
  .home-hero__photo { width: min(280px, 78%); }
  .home-hero__swirl { left: -18%; }
  .home-hero__name em { font-size: .7em; }
  .home-hero .hero__buttons { justify-content: center; }
  .band__stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .band__stats div:nth-child(3) { border-left: 0; }
  .about-card { grid-template-columns: 1fr; text-align: center; padding: 32px 22px; }
  .about-card__stamp .stamp { max-width: 140px; }
  .connect__inner { grid-template-columns: 1fr; gap: 28px; }
  .connect__list { padding-left: 0; border-left: 0; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .deco-leaf--about { display: none; }
}
@media (max-width: 560px) {
  .svc { grid-template-columns: 1fr; }
  .svc__item { border-right: 0 !important; }
  .svc__item:nth-child(n+2) { border-top: 1px solid var(--line) !important; }
  .statement p { font-size: 16px; }
  .section__head--gap { margin-top: 72px; }
  .foot__cols { grid-template-columns: 1fr; gap: 28px; }
}
/* 관리자 화면: 서버 기록 비밀번호 다시 입력 */
.db-login { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.db-login .admin-input { flex: 1; width: auto; min-width: 160px; margin: 0; }
.db-login .field__err { flex-basis: 100%; margin: 0; }


/* 학생 전용 공간: 프로필 수정 요청 */
.field__hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.pf-photo-preview { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pf-photo-preview img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 2px solid var(--pink-200); }
.pf-photo-preview small { font-size: 12px; color: var(--muted); }
.profile-last { margin-top: 12px; }
#profileBox { margin-top: 18px; }
.portal-grid--one { grid-template-columns: 1fr; }

/* 논문·저서: 최근 연구만 보이고 나머지는 Google Scholar로 안내 */
.pub-year__spacer { flex: 1; }
.pub-older {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 24px; padding: 22px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.pub-older p { margin: 0; font-size: 15px; color: var(--muted); }
.pub-older__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pub-older .text-link { min-height: 44px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
@media (max-width: 560px) { .pub-older { padding: 18px; } .pub-older__btns { width: 100%; } }
/* 연구 주제 칸 수가 줄의 배수가 아닐 때 마지막 칸 오른쪽 선이 빈칸으로 이어지지 않게 */
.svc__item:last-child { border-right: 0 !important; }

/* 학생 전용 공간·관리자: 학기 타임라인 */
#tlBox { margin-top: 18px; }
.tl-term { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; font-weight: 700; }
.tl-mine, .tl-lab { margin-top: 18px; }
.tl-mine h4, .tl-lab h4 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.tl-lab h4 small { margin-left: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tl-bar { height: 8px; margin: 4px 0 6px; }
.tl-sum { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: var(--lilac-600); }
.tl-late { color: #a33a1d; font-weight: 800; }
.tl-list { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tl-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--pink-50); }
.tl-item.is-done { background: var(--lilac-100); }
.tl-item.is-done .tl-item__body b { text-decoration: line-through; text-decoration-color: rgba(85, 101, 74, .5); }
.tl-item.is-late { box-shadow: inset 3px 0 0 #b8724f; }
.tl-item__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lilac-600); cursor: pointer; }
.tl-item__mark { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--lilac-400); color: var(--lilac-600); font-size: 12px; font-weight: 800; }
.tl-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.tl-item__body small { font-size: 12.5px; color: var(--muted); }
.tl-item__body em { font-style: normal; font-weight: 800; color: var(--pink-500); }
.tl-item__memo { font-size: 13px; color: var(--text); }
.tl-item__ok { flex: none; }
.tl-member { border-top: 1px solid var(--line); }
.tl-member > summary { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; align-items: center; gap: 12px; padding: 12px 4px; cursor: pointer; list-style: none; }
.tl-member > summary::-webkit-details-marker { display: none; }
.tl-member__name { display: flex; flex-direction: column; font-weight: 800; line-height: 1.35; }
.tl-member__name small { font-size: 12px; font-weight: 600; color: var(--muted); }
.tl-member.is-me .tl-member__name { color: var(--lilac-600); }
.tl-member__num { font-size: 13px; font-weight: 800; white-space: nowrap; }
.tl-member__none { grid-column: 2 / 4; font-size: 13px; }
.tl-member > .tl-list { padding: 0 4px 12px; }
.tl-edit-rows { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.tl-edit-row { display: grid; grid-template-columns: 1fr 160px auto; gap: 8px; align-items: center; }
.tl-edit-row .admin-input { margin: 0; }
.tl-edit .field__err, .tl-code .field__err { margin: 4px 0; }
.tl-code .ad-row { display: flex; gap: 8px; margin-top: 8px; }
.tl-code .admin-input { margin: 0; max-width: 220px; }
.tl-adm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; }
.tl-adm .admin-input { width: 220px; margin: 0; padding: 6px 10px; font-size: 13px; }
.tl-adm-student .tl-item { flex-wrap: wrap; }
@media (max-width: 560px) {
  .tl-edit-row { grid-template-columns: 1fr auto; }
  .tl-edit-row [name=due] { grid-column: 1 / 2; }
  .tl-member > summary { grid-template-columns: 1fr auto; }
  .tl-member > summary .tl-bar { grid-column: 1 / -1; order: 3; }
  .tl-adm .admin-input { width: 100%; }
}