:root {
  --bg: #ffffff; --fg: #1d1d1f; --muted: #6e6e73; --line: #e5e5ea;
  --soft: #f5f5f7; --card: #ffffff; --accent: #2f6fde; --accent-soft: #eaf1fd;
  --header: rgba(255,255,255,.85);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416; --fg: #ececf0; --muted: #9a9aa2; --line: #2c2c31;
    --soft: #1d1d21; --card: #19191c; --accent: #6ea0ff; --accent-soft: #1b2638;
    --header: rgba(20,20,22,.85);
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px; line-height: 1.7; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--soft); padding: .1em .35em; border-radius: 4px;
}

/* ───── 상단 메뉴 ───── */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--header);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { max-width: 1120px; margin: 0 auto; height: 56px; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.logo { font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.logo-mark::after { content: ""; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: .94rem; font-weight: 500; }
.nav a:hover { color: var(--fg); background: var(--soft); }
.nav a.active { color: var(--fg); font-weight: 700; }
.search { margin-left: auto; position: relative; }
.search input {
  width: 240px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft);
  color: var(--fg); padding: 0 36px 0 34px; font-size: .9rem; font-family: inherit; outline: none;
}
.search input:focus { border-color: var(--accent); background: var(--bg); }
.search svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; stroke: var(--muted); }
.search kbd { position: absolute; right: 8px; top: 8px; font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-family: inherit; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--fg); }
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; }

@media (max-width: 760px) {
  .bar { gap: 12px; }
  .menu-btn { display: block; }
  .nav, .search { display: none; }
  .site-header.open .bar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 12px; }
  .site-header.open .nav { display: flex; flex-direction: column; width: 100%; order: 3; }
  .site-header.open .search { display: block; width: 100%; order: 4; margin: 4px 0 0; }
  .site-header.open .search input { width: 100%; }
  .site-header.open .search kbd { display: none; }
}

/* ───── 공통 레이아웃 ───── */
.page { max-width: 1120px; margin: 0 auto; padding: 32px 20px 72px; }
.page-narrow { max-width: 760px; margin: 0 auto; padding: 32px 20px 72px; }
.page-title { font-size: 1.6rem; margin: 0 0 6px; letter-spacing: -.01em; }
.page-sub { color: var(--muted); margin: 0 0 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .n { color: var(--muted); font-size: .78rem; }
.chip.on .n { color: inherit; opacity: .7; }
.tag { font-size: .76rem; color: var(--accent); background: var(--accent-soft); padding: 1px 9px; border-radius: 999px; white-space: nowrap; }

/* ───── 홈: 발표 목록 ───── */
.hero { padding: 16px 0 28px; }
.hero h1 { font-size: 1.9rem; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.02em; }
.hero p { color: var(--muted); margin: 0; }
.stats { display: flex; gap: 18px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.stats b { color: var(--fg); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.filters .label { font-size: .82rem; color: var(--muted); margin-right: 4px; min-width: 52px; }
.filters + .filters { margin-bottom: 24px; }
.result-info { font-size: .88rem; color: var(--muted); margin: 0 0 14px; display: flex; justify-content: space-between; }
.result-info select { font-family: inherit; font-size: .86rem; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 8px; padding: 2px 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.thumb { position: relative; aspect-ratio: 16/9; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .len { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: .74rem; font-weight: 600; padding: 1px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.thumb .region { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.92); color: #1d1d1f; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-conf { font-size: .8rem; color: var(--accent); font-weight: 600; }
.card-title { font-size: 1.04rem; font-weight: 700; line-height: 1.45; margin: 0; }
.card-meta { font-size: .82rem; color: var(--muted); }
.card-tldr { font-size: .9rem; color: var(--fg); opacity: .85; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ───── 발표 상세 ───── */
.talk-layout { max-width: 1120px; margin: 0 auto; padding: 24px 20px 72px; display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 48px; justify-content: center; }
@media (max-width: 1080px) { .talk-layout { grid-template-columns: minmax(0, 760px); } .toc { display: none; } }
.crumb { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--accent); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.talk-head { margin: 22px 0 8px; }
.talk-head h1 { font-size: 1.7rem; line-height: 1.35; margin: 0 0 10px; letter-spacing: -.01em; }
.meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.meta a:hover { color: var(--accent); }
.tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tldr { background: var(--soft); border-radius: 12px; padding: 18px 22px; margin: 24px 0 8px; }
.tldr p { margin: 0 0 10px; font-weight: 600; }
.tldr ul { margin: 0; padding-left: 1.2em; }
.tldr li { margin: 4px 0; }
.article { font-size: 16.5px; line-height: 1.75; }
.article h2 { font-size: 1.3rem; margin: 44px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.article h3 { font-size: 1.08rem; margin: 36px 0 8px; display: flex; align-items: baseline; gap: 10px; }
.article p { margin: 8px 0; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 4px 0; }
.article a { color: var(--accent); }
.ts {
  font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 6px;
  border: 0; cursor: pointer; line-height: 1.6; flex-shrink: 0;
}
.ts:hover { filter: brightness(.95); }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .94rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
figure { margin: 18px 0 22px; }
figure img { width: 100%; aspect-ratio: 16/9; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); display: block; background: var(--soft); }
.slide-placeholder {
  aspect-ratio: 16 / 9; border: 1.5px dashed var(--line); border-radius: 8px; padding: 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-size: .88rem; background: var(--soft);
}
.slide-placeholder b { color: var(--fg); font-weight: 600; font-size: .95rem; }
.slide-placeholder code { background: transparent; font-size: .76rem; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.note { font-size: .88rem; color: var(--muted); }
.proto-note { border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; color: var(--muted); font-size: .9rem; margin: 28px 0; }
.source-box { margin-top: 44px; padding: 16px 18px; border-radius: 12px; background: var(--soft); font-size: .86rem; color: var(--muted); }
.source-box p { margin: 3px 0; }
.source-box a { color: var(--accent); }

.toc { position: sticky; top: 80px; align-self: start; font-size: .86rem; }
.toc-title { font-size: .76rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); }
.toc li { margin: 0 0 10px; line-height: 1.45; }
.toc a { color: var(--muted); display: block; }
.toc a:hover { color: var(--fg); }
.toc a.on { color: var(--accent); font-weight: 600; }
.toc .t { font-size: .74rem; font-variant-numeric: tabular-nums; color: var(--muted); opacity: .8; }
.toc-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.toc-actions a { font-size: .84rem; color: var(--muted); }
.toc-actions a:hover { color: var(--accent); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.pager a { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pager a:hover { border-color: var(--accent); }
.pager small { color: var(--muted); font-size: .78rem; display: block; }
.pager span { font-weight: 600; font-size: .92rem; }
.pager .next { text-align: right; }
.related { margin-top: 40px; }
.related h2 { font-size: 1.1rem; margin: 0 0 14px; }

/* ───── 컨퍼런스 / 태그 ───── */
.conf-group { margin-bottom: 36px; }
.conf-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.conf-head h2 { font-size: 1.2rem; margin: 0; }
.conf-head .region-badge { font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 4px; background: var(--soft); color: var(--muted); }
.conf-head .count { color: var(--muted); font-size: .86rem; margin-left: auto; }
.row { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row img { width: 140px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--soft); }
.row .rt { font-weight: 600; }
.row .rm { font-size: .84rem; color: var(--muted); }
.row .rd { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .row { grid-template-columns: 96px 1fr; } .row img { width: 96px; } .row .rd { display: none; } }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud .chip { font-size: .95rem; padding: 6px 14px; }

/* ───── 소개 / 삭제 요청 ───── */
.prose h2 { font-size: 1.15rem; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--accent); }
.form { display: grid; gap: 14px; margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: .94rem; font-weight: 400; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { min-height: 96px; resize: vertical; }
.btn { justify-self: start; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: .94rem; cursor: pointer; }
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; }

/* ───── 푸터 ───── */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .inner { max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .84rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a:hover { color: var(--fg); }
.site-footer p { margin: 0; max-width: 520px; }

/* ───── 추가: 시사점, 숨김, 관리자 ───── */
.takeaways li { margin: 8px 0; }
[hidden] { display: none !important; }
.article .note { margin-top: 0; }
.admin-box { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 0 0 20px; }
.admin-box h2 { font-size: 1.05rem; margin: 0 0 12px; }
.admin-row { display: grid; gap: 8px; grid-template-columns: 28px 1.1fr 2fr 76px 76px 132px 1fr 1fr 34px; align-items: center; margin-bottom: 8px; }
.admin-row.head { font-size: .78rem; color: var(--muted); font-weight: 600; }
.admin-row input[type=text], .admin-row select, .admin-inline input, .admin-inline select {
  font-family: inherit; font-size: .88rem; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; width: 100%; min-width: 0; outline: none;
}
.admin-row input:focus, .admin-inline input:focus { border-color: var(--accent); }
.admin-inline { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.admin-inline label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.btn.ghost { background: var(--soft); color: var(--fg); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: .84rem; border-radius: 8px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 4px; }
.icon-btn:hover { color: #d33; }
.admin-status { font-size: .88rem; color: var(--muted); margin-left: 12px; }
.admin-status.err { color: #d33; }
.admin-status.ok { color: #1a8f4c; }
@media (max-width: 860px) {
  .admin-row { grid-template-columns: 28px 1fr 34px; }
  .admin-row.head { display: none; }
  .admin-row > :nth-child(n+3):not(:last-child) { grid-column: 2; }
  .admin-row > :last-child { grid-column: 3; grid-row: 1; }
}
