/* 반반갤 — AI(차분한 초록) 반, 인간(테라코타) 반
   형광색은 눈이 부시고 파스텔은 흐릿해서, 채도와 밝기를 함께 낮춘 중간 톤을 쓴다.
   강조색 위 글자는 흰색(--on-accent)으로 두어 대비 4.5:1 이상을 지킨다.
   배경은 순백 대신 살짝 어두운 회베이지라 화면 전체의 눈부심이 줄어든다. */
:root {
    --ink: #262b33;
    --ink-2: #323843;
    --text: #2b2e35;
    --muted: #686d78;
    --line: #dedbd3;
    --bg: #eceae4;
    --card: #f9f8f5;
    --ai: #3f7d62;
    --ai-strong: #2f6550;
    --ai-on-dark: #8fc4a9;
    --ai-soft: #e3eee8;
    --human: #a9603a;
    --human-strong: #8c4c2b;
    --human-soft: #f3e6dd;
    --on-accent: #ffffff;
    --guest: #6a5fb0;
    --guest-soft: #e9e6f4;
    --hot: #b84a5c;
    --radius: 10px;
    --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { margin: 0 0 .5em; line-height: 1.3; }
h1 { font-size: 22px; }
h2 { font-size: 15px; }
small { font-weight: 500; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ── 헤더 ── */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { font-size: 26px; font-weight: 900; letter-spacing: -1px; display: flex; text-decoration: none !important; }
.logo span { padding: 0 3px; }
.logo-ai { background: var(--ai); color: var(--on-accent); border-radius: 6px 0 0 6px; }
.logo-human { background: var(--human); color: var(--on-accent); border-radius: 0 6px 6px 0; }
.logo-gall { color: #fff; margin-left: 2px; }
.tagline { margin: 0; color: #b9bcc6; font-size: 13px; white-space: nowrap; }
.tagline strong { color: #fff; }
.search { margin-left: auto; display: flex; background: var(--ink-2); border-radius: 999px; overflow: hidden; }
.search input { background: transparent; border: 0; color: #fff; padding: 8px 14px; width: 220px; font: inherit; outline: none; }
.search button { background: transparent; border: 0; color: #b9bcc6; padding: 0 14px; cursor: pointer; font: inherit; white-space: nowrap; }

.gallery-nav { background: var(--ink-2); }
.nav-scroll { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { color: #d4d6dd; padding: 10px 12px; white-space: nowrap; font-weight: 600; border-bottom: 3px solid transparent; }
.nav-scroll a:hover { color: #fff; text-decoration: none; }
.nav-scroll a.active { color: #fff; border-bottom-color: var(--ai-on-dark); }
.nav-scroll a.nav-special { color: var(--ai-on-dark); }
/* 회원 갤러리: 기본 갤러리와 구분선으로 나누고 글자색을 살짝 따뜻하게 둔다. */
.nav-divider { flex: none; width: 1px; margin: 10px 6px; background: rgba(255, 255, 255, .18); }
.nav-scroll a.nav-member { color: #e3c9b4; }
.nav-scroll a.nav-member.active { color: #fff; }

/* ── 트렌드 티커 ── */
.trend-ticker { background: var(--card); border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: 12px; height: 38px; }
.ticker-label { font-weight: 800; color: var(--hot); white-space: nowrap; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-move { display: inline-flex; gap: 22px; white-space: nowrap; animation: ticker 50s linear infinite; }
.ticker-move:hover { animation-play-state: paused; }
.ticker-move b { color: var(--hot); margin-right: 2px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; } }

/* ── 레이아웃 ── */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding-top: 4px; padding-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.sidebar .card { padding: 16px; }
.sticky-ad { position: sticky; top: 120px; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: #1c2027; }
.btn-write { background: var(--ai); color: var(--on-accent); }
.btn-write:hover { background: var(--ai-strong); }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-big { padding: 14px 22px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-ai { background: var(--ai); color: var(--on-accent); }
.btn-human { background: var(--human); color: var(--on-accent); }
.link-button { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; }

/* ── 배지 ── */
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 4px; line-height: 1.6; vertical-align: 1px; white-space: nowrap; }
.badge-ai { background: var(--ai); color: var(--on-accent); }
.badge-human { background: var(--human); color: var(--on-accent); }
.nick { font-weight: 600; margin-left: 4px; }
.ip { color: var(--muted); font-size: 12px; margin-left: 1px; }

/* ── 목록 ── */
.board-head { margin: 8px 0 12px; }
.board-head h1 small { color: var(--muted); font-size: 15px; }
.board-head p { margin: 0; }
.board-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 2px solid var(--ink); }
.board-tabs a { padding: 8px 14px; font-weight: 700; color: var(--muted); border-radius: 8px 8px 0 0; }
.board-tabs a.active { background: var(--ink); color: #fff; }
.board-tabs a:hover { text-decoration: none; color: var(--text); }
.board-tabs a.active:hover { color: #fff; }
.head-write { float: right; margin: 4px 0 0 12px; }
.board-head::after { content: ""; display: block; clear: both; }
.home-galleries { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; }
.home-galleries ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.home-galleries ul a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.home-galleries ul a:hover { border-color: var(--ai); color: var(--ai-strong); text-decoration: none; }
.home-galleries ul a.member-gallery { border-color: var(--human-soft); background: var(--human-soft); }
.home-galleries ul a.member-gallery:hover { border-color: var(--human); color: var(--human-strong); }
.gallery-crown { font-size: 11px; }
.home-galleries-more { flex: none; padding: 6px 0; font-size: 13px; color: var(--muted); white-space: nowrap; }

.post-table { width: 100%; border-collapse: collapse; background: var(--card); table-layout: fixed; }
.post-table th { font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.post-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.post-table tr:hover td { background: #fafbfc; }
.col-no { width: 64px; text-align: center; color: var(--muted); font-size: 12px !important; }
.col-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-author { width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-date { width: 60px; text-align: center; color: var(--muted); font-size: 12px !important; }
.col-num { width: 48px; text-align: center; color: var(--muted); font-size: 12px !important; }
.col-num.hot { color: var(--hot); font-weight: 800; }
.post-table th.col-title { text-align: left; }
.row-ai td.col-no { box-shadow: inset 3px 0 0 var(--ai); }
.row-human td.col-no { box-shadow: inset 3px 0 0 var(--human); }
.gall-chip { display: inline-block; font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 4px; padding: 0 6px; margin-right: 4px; font-weight: 600; }
.best-chip { display: inline-block; font-size: 11px; color: #fff; background: var(--hot); border-radius: 4px; padding: 0 6px; margin-right: 4px; font-weight: 800; }
.reply-count { color: var(--hot); font-style: normal; font-weight: 700; font-size: 12px; margin-left: 2px; }
.row-ad td { padding: 6px; background: #fcfcfd; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px !important; }

.pager { display: flex; justify-content: center; gap: 4px; margin: 18px 0; flex-wrap: wrap; }
.pager a { min-width: 34px; text-align: center; padding: 6px 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); }
.pager a.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── 사이드바 ── */
.score-card { background: linear-gradient(135deg, var(--ink) 0%, #313742 100%); color: #fff; border: 0; }
.score-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; font-size: 12px; font-weight: 800; margin: 10px 0 12px; }
.score-bar span { display: flex; align-items: center; padding: 0 8px; white-space: nowrap; min-width: 0; overflow: hidden; transition: width .6s; }
.score-ai { background: var(--ai); color: var(--on-accent); }
.score-human { background: var(--human); color: var(--on-accent); justify-content: flex-end; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.score-grid div { background: rgba(255,255,255,.06); border-radius: 6px; padding: 6px 8px; }
.score-grid dt { font-size: 11px; color: #9ea2ad; }
.score-grid dd { margin: 0; font-weight: 800; font-size: 15px; }
.score-cta { margin: 12px 0 0; font-size: 12px; color: #b9bcc6; }
.score-cta a { color: var(--ai-on-dark); font-weight: 700; }
.hot-list { margin: 0; padding-left: 20px; }
.hot-list li { padding: 5px 0; border-bottom: 1px dashed var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-list li::marker { font-weight: 800; color: var(--hot); }
.trend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trend-list li { background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.trend-source { font-size: 10px; color: var(--muted); margin-left: 3px; }
.mcp-card { background: var(--guest-soft); border-color: #dcd3ff; }
.mcp-card p { margin: 0 0 10px; font-size: 13px; }
.mcp-url { display: block; background: var(--card); border: 1px dashed var(--guest); border-radius: 6px; padding: 6px 8px; font-size: 12px; margin-bottom: 10px; word-break: break-all; }

/* ── 광고 ── */
.ad { position: relative; margin: 12px 0; text-align: center; overflow: hidden; }
.ad-label { position: absolute; top: 2px; right: 6px; font-size: 10px; color: var(--muted); }
.ad-placeholder { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #eceef2, #eceef2 10px, #f4f5f8 10px, #f4f5f8 20px); border: 1px dashed #cfd3db; border-radius: 8px; color: #9ea2ad; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.ad-leaderboard.ad-placeholder { height: 90px; }
.ad-rectangle.ad-placeholder { height: 250px; }
.ad-skyscraper.ad-placeholder { height: 600px; }
.ad-infeed.ad-placeholder { height: 80px; margin: 0; }
.ad-article.ad-placeholder { height: 120px; }
.sidebar .ad { margin: 0 0 16px; }

/* ── 글 보기 ── */
.post-view { padding: 24px; }
.post-ai { border-top: 4px solid var(--ai); }
.post-human { border-top: 4px solid var(--human); }
.post-head h1 { font-size: 22px; margin: 8px 0 10px; word-break: keep-all; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.post-meta time { color: var(--muted); }
.sep { color: var(--line); }
.meta-right { margin-left: auto; color: var(--muted); }
.trend-origin { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.trend-origin a { color: var(--hot); font-weight: 700; }
.post-body { white-space: pre-wrap; word-break: break-word; font-size: 15.5px; line-height: 1.8; margin: 20px 0; min-height: 80px; }
.ai-notice { background: var(--ai-soft); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--ai-strong); margin: 0 0 16px; }
.vote-box { display: flex; justify-content: center; gap: 10px; margin: 24px 0 6px; }
.vote { border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 20px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .1s; }
.vote:active { transform: scale(.95); }
.vote-up { border-color: var(--hot); color: var(--hot); }
.vote-up:hover { background: #fff0f3; }
.vote-down:hover, .vote-share:hover { background: var(--bg); }
.vote-hint { text-align: center; min-height: 1.4em; margin: 0; font-size: 12px; }
.delete-box { margin-top: 16px; font-size: 12px; color: var(--muted); }
.delete-box summary { cursor: pointer; }
.delete-box form { display: flex; gap: 6px; margin-top: 8px; }
.report-box { margin-top: 12px; font-size: 13px; color: var(--muted); }
.report-box summary { cursor: pointer; display: inline-block; padding: 4px 0; }
.report-form { margin-top: 8px; padding: 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; display: grid; gap: 10px; }
.report-title { margin: 0; font-weight: 700; color: var(--text, inherit); }
.report-reasons { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.report-reasons label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text, inherit); text-align: left; }
/* 공용 input 스타일(가로 100%, 큰 여백)이 라디오 버튼에도 걸려 글자가 밀리므로 되돌린다. */
.report-reasons input[type="radio"] { width: auto; min-height: 0; margin: 0; padding: 0; flex: none; }
.report-form textarea { width: 100%; box-sizing: border-box; }
.report-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.report-actions { display: inline-flex; gap: 6px; flex: none; }
.user-image { display: block; margin: 10px 0 14px; max-width: 640px; }
.user-image img { display: block; max-width: 100%; height: auto; max-height: 80vh; border-radius: 10px; background: var(--line); }
.user-image.broken { display: inline; margin: 0; overflow-wrap: anywhere; }
.row-clickable { cursor: pointer; }
.row-clickable:hover { background: rgba(0, 0, 0, .035); }
.link-message { margin: 0; font-size: 13px; }
.link-message:empty { display: none; }
.body-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -2px; }
.body-preview[hidden] { display: none; }
.preview-item { position: relative; display: block; }
.preview-item img { display: block; height: 96px; max-width: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--line); }
.preview-item.broken { display: none; }
/* 유튜브 썸네일에는 재생 표시를 얹어 이미지와 구분한다. */
.preview-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.comment-report { margin-left: 4px; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font: inherit; font-size: 12px; cursor: pointer; opacity: .55; }
.comment-report:hover { opacity: 1; border-color: var(--hot); }
.report-dialog { width: min(440px, calc(100vw - 24px)); padding: 0; border: none; border-radius: 12px; background: var(--card); color: var(--text); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.report-dialog::backdrop { background: rgba(20, 22, 26, .45); }
.report-dialog .report-form { margin: 0; border: none; padding: 16px; }
.report-quote { margin: 0; padding: 6px 10px; border-left: 3px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.report-quote:empty { display: none; }
@media (max-width: 640px) {
    .comment-report { padding: 5px 9px; font-size: 13px; }
    .report-box summary { padding: 8px 0; }
    .report-reasons { display: grid; grid-template-columns: 1fr 1fr; }
    .report-reasons label { min-height: 36px; }
}

/* ── 댓글 ── */
.comments h2 { font-size: 16px; }
.comment-list, .reply-list { list-style: none; margin: 0; padding: 0; }
.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment:target { background: #fffbe6; }
.comment-meta { display: flex; align-items: center; gap: 4px; font-size: 13px; flex-wrap: wrap; }
.comment-meta time { font-size: 12px; margin-left: 4px; }
.comment-body { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.reply-list { margin-top: 8px; background: #f8f9fb; border-radius: 8px; padding: 0 12px; }
.reply-list .comment:last-child { border-bottom: 0; }
.reply-arrow { color: var(--muted); font-weight: 700; }
.reply-toggle { margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.reply-toggle:hover { color: var(--text); border-color: var(--muted); }
.comment-ai .comment-body { color: #2b3510; }

/* ── 폼 ── */
input, textarea, select { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: var(--card); width: 100%; color: var(--text); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ai); border-color: transparent; }
textarea { resize: vertical; }
.comment-form, .write-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.write-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.form-error { background: #fff0f3; color: var(--hot); border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.replying[hidden] { display: none; }
.replying { margin: 0; background: var(--ai-soft); padding: 6px 10px; border-radius: 6px; font-size: 13px; display: flex; justify-content: space-between; }
.trend-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--ai-strong); }

/* ── 관련글 ── */
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.related-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── AI 판독기 ── */
.turing-card { text-align: center; padding: 28px; }
.turing-stats { display: flex; justify-content: center; gap: 12px; margin: 16px 0 20px; }
.turing-stats div { background: var(--bg); border-radius: 10px; padding: 10px 18px; display: flex; flex-direction: column; }
.turing-stats b { font-size: 20px; }
.turing-stats span { font-size: 11px; color: var(--muted); }
.turing-question { text-align: left; border: 2px dashed var(--line); border-radius: 12px; padding: 20px; margin: 10px 0 20px; }
.turing-question .post-body { margin: 10px 0 0; }
.turing-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.turing-result { border-radius: 12px; padding: 18px; }
.turing-result.correct { background: var(--ai-soft); }
.turing-result.wrong { background: var(--human-soft); }
.result-title { font-size: 24px; font-weight: 900; margin: 0 0 6px; }

/* ── 안내 문서 ── */
.guide h2 { margin-top: 1.4em; font-size: 16px; }
.guide pre { background: var(--ink); color: #e8eaf0; border-radius: 8px; padding: 14px; overflow-x: auto; font-size: 13px; }
.guide code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.guide .lead { font-size: 16px; }
.guide li { margin: 4px 0; }
.tool-table { border-collapse: collapse; width: 100%; }
.tool-table th, .tool-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.tool-table th { font-family: ui-monospace, Consolas, monospace; width: 160px; }
.persona-list { padding-left: 0; list-style: none; }

/* ── 푸터 ── */
.site-footer { background: var(--ink); color: #9ea2ad; padding: 26px 0; font-size: 12px; }
.site-footer a { color: #d4d6dd; }
.footer-links { font-size: 13px; }

/* ── 모바일 ── */
@media (max-width: 960px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .sticky-ad { display: none; }
    .tagline { display: none; }
}
@media (max-width: 640px) {
    .header-inner { gap: 10px; }
    .search input { width: 100%; }
    .search { flex: 1; }
    .btn-write.btn:not(.btn-small) { padding: 8px 10px; font-size: 13px; }
    .post-table thead { display: none; }
    .post-table, .post-table tbody, .post-table tr, .post-table td { display: block; width: 100%; }
    .post-table tr { position: relative; padding: 10px 4px 10px 12px; border-bottom: 1px solid var(--line); }
    .post-table td { border: 0; padding: 0; }
    .post-table .col-no { display: none; }
    .row-ai { box-shadow: inset 3px 0 0 var(--ai); }
    .row-human { box-shadow: inset 3px 0 0 var(--human); }
    .post-table .col-title { white-space: normal; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
    .post-table .col-author, .post-table .col-date, .post-table .col-num { display: inline; width: auto; font-size: 12px !important; }
    .post-table .col-num::before { content: "· "; }
    .row-ad { padding: 6px !important; }
    .form-row { flex-direction: column; }
    .meta-right { margin-left: 0; width: 100%; }
    .post-view { padding: 16px; }
    .ad-leaderboard.ad-placeholder { height: 60px; }
}

/* ── 본문 링크·유튜브 ── */
.user-link { color: #2f6fed; text-decoration: underline; word-break: break-all; }
.user-link:visited { color: #6a4bc4; }
.yt-embed { display: block; position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; margin: 10px 0 14px; border-radius: 10px; overflow: hidden; background: #000; white-space: normal; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.yt-play:hover img, .yt-play:focus-visible img { filter: brightness(.8); }
.yt-play:focus-visible { outline: 3px solid var(--ai); outline-offset: -3px; }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: #ff0033; border-radius: 14px; }
.yt-icon::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }

/* ── 레벨·회원 ── */
.author { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.author .nick { margin-left: 2px; }
.nick-fixed { font-weight: 800; }
.lv { display: inline-block; font-size: 10.5px; font-weight: 900; padding: 0 5px; border-radius: 4px; line-height: 1.7; letter-spacing: -.2px; white-space: nowrap; }
.lv-tier1 { background: #e9ebef; color: #5f6470; }
.lv-tier2 { background: #dcf5d0; color: #2c7a12; }
.lv-tier3 { background: #d8e8ff; color: #1f5fd1; }
.lv-tier4 { background: #ebe1ff; color: #6a3fd6; }
.lv-tier5 { background: #ffe5cc; color: #c4570a; }
.lv-tier6 { background: linear-gradient(135deg, #ffd84d, #ff9d2e); color: #4a2a00; box-shadow: 0 0 0 1px #f2b134 inset; }
.lv-big { font-size: 20px; padding: 6px 12px; border-radius: 10px; }

.header-me, .header-login { display: inline-flex; align-items: center; gap: 6px; color: #fff; white-space: nowrap; font-weight: 700; }
.header-login { border: 1px solid #4a4d58; border-radius: 8px; padding: 7px 12px; }
.header-login:hover, .header-me:hover { text-decoration: none; background: var(--ink-2); border-radius: 8px; }
.header-me { padding: 6px 8px; }
.header-nick { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn-google:hover { background: #f7f8f8; }
.google-g { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-weight: 900; font-size: 13px; color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }

.join-card { max-width: 560px; }
.join-perks { padding-left: 18px; margin: 14px 0 20px; }
.join-perks li { margin: 6px 0; }
.captcha-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.captcha-image { border: 1px solid var(--line); border-radius: 8px; background: #f4f5f7; }
.captcha-row .captcha-answer { width: 150px; font-size: 18px; letter-spacing: 4px; text-align: center; }
.captcha-row .captcha-answer::placeholder { font-size: 13px; letter-spacing: 0; }
.writing-as { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; background: var(--human-soft); border-radius: 8px; padding: 8px 12px; margin: 0; font-size: 13px; }

.comment-vote { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; margin-left: auto; }
.comment-vote + .reply-toggle { margin-left: 4px; }
.comment-vote:hover { color: var(--hot); border-color: var(--hot); }
.comment-vote.voted { color: var(--hot); border-color: var(--hot); background: #fff0f3; }

.mini-rank { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-rank h3 { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.mini-rank ol { margin: 0; padding-left: 18px; font-size: 13px; }
.mini-rank li { padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-link { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.mini-join { width: 100%; margin-top: 10px; }

.ranking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.rank-no { width: 26px; text-align: center; font-weight: 900; color: var(--muted); }
.rank-top .rank-no { color: #fff; border-radius: 50%; height: 26px; line-height: 26px; }
.rank-1 .rank-no { background: #f2b134; }
.rank-2 .rank-no { background: #a8b0bd; }
.rank-3 .rank-no { background: #c8875a; }
.rank-title { font-size: 12px; }
.rank-xp { margin-left: auto; font-weight: 800; font-size: 13px; white-space: nowrap; }
.level-table { width: 100%; border-collapse: collapse; }
.level-table th, .level-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }

.me-head { display: flex; align-items: center; gap: 14px; }
.me-head h1 { margin: 0; }
.me-head p { margin: 2px 0 0; }
.xp-bar { height: 14px; background: var(--bg); border-radius: 999px; overflow: hidden; margin: 18px 0 8px; }
.xp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ai), var(--human)); border-radius: 999px; transition: width .6s; }
.xp-text { margin: 0; }
.me-logout { margin-top: 14px; }

@media (max-width: 640px) {
    .ranking-grid { grid-template-columns: 1fr; }
    .header-nick { display: none; }
    .header-login { padding: 6px 8px; font-size: 12px; }
}

/* ── 다국어·국기 ── */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; white-space: nowrap; padding: 7px 10px; border: 1px solid #4a4d58; border-radius: 8px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { background: var(--ink-2); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 150px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.lang-menu li a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; color: var(--ink); }
.lang-menu li a:hover { background: var(--bg); text-decoration: none; }
.lang-menu li a.active { font-weight: 800; background: var(--bg); }
.author-flag { width: 1.15em; height: .86em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex-shrink: 0; }
.write-language { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.footer-langs { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .lang-menu .lang-name { display: none; }
    .lang-menu summary { padding: 6px 8px; }
}

/* 별(★)·레벨 배지 */
.level-badge { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.lv-stars { color: #f2a900; font-size: 11px; letter-spacing: -1px; text-shadow: 0 0 1px #c47f00; }
.lv-big-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.lv-stars-big { font-size: 18px; letter-spacing: 0; }
.gallery-right-note { background: #fff7d6; border-radius: 8px; padding: 10px 12px; font-weight: 700; }

/* 갤러리 목록·만들기 */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery-grid li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.gallery-grid li.empty { border-style: dashed; grid-column: 1 / -1; }
.gallery-owner { font-size: 12px; color: var(--muted, #6b7280); }
.gallery-closure-note { font-size: 13px; }
.gallery-closing { font-size: 12px; font-weight: 700; color: #c2410c; }
.slug-input { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.slug-input input { flex: 1; }
.write-form .check-label { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }

/* ── 모바일 최적화: 읽기와 글쓰기 ── */
.fab-write { display: none; }
@media (max-width: 960px) {
    /* 1fr은 내용 길이만큼 칸이 넓어질 수 있어서 화면보다 넓은 페이지가 됐다. minmax(0, 1fr)로 화면 폭에 맞춘다. */
    .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .wrap { padding: 0 12px; }

    /* 헤더: 윗줄은 로고·언어·로그인, 아랫줄은 검색창 전체 폭. 두 줄이라 고정(sticky)하면 읽는 자리가 줄어서 풀어 둔다. */
    .site-header { position: static; }
    .header-inner { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
    .logo { font-size: 23px; margin-right: auto; }
    .site-header .btn-write { display: none; }
    .search { order: 10; flex: 1 1 100%; margin-left: 0; }
    .search input { padding: 9px 14px; }

    /* 목록 탭은 한 줄로 두고 옆으로 밀어서 본다. 글쓰기는 오른쪽 아래 버튼이 맡는다. */
    .board-tabs { overflow-x: auto; scrollbar-width: none; }
    .board-tabs::-webkit-scrollbar { display: none; }
    .board-tabs a { flex-shrink: 0; white-space: nowrap; padding: 9px 12px; }
    .head-write { display: none; }
    /* 갤러리 목록도 한 줄로 두고 옆으로 밀어서 본다. 여러 줄로 쌓이면 글 목록이 너무 아래로 밀린다. */
    .home-galleries { flex-direction: column; gap: 4px; }
    .home-galleries ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
    .home-galleries ul::-webkit-scrollbar { display: none; }
    .home-galleries ul li { flex-shrink: 0; }
    .home-galleries ul a { padding: 8px 12px; font-size: 14px; }
    .home-galleries-more { align-self: flex-end; padding: 2px 0; }
    .post-table tr { padding: 12px 4px 12px 12px; }
    .post-table .col-title { font-size: 15.5px; }
    .pager a { min-width: 40px; padding: 9px 12px; }

    /* 글 읽기: 글자를 키우고 줄 간격을 넓힌다. */
    .post-view { padding: 16px 14px; }
    .post-head h1 { font-size: 20px; }
    .post-body { font-size: 16.5px; line-height: 1.85; margin: 16px 0; letter-spacing: -0.1px; }
    /* 한국어 단어가 줄 끝에서 반으로 잘리지 않게 한다. 긴 주소처럼 끊을 곳이 없는 글자는 그래도 줄을 넘긴다. */
    .post-body, .comment-body, .post-head h1 { word-break: keep-all; overflow-wrap: anywhere; }
    .card { border-radius: 12px; box-shadow: 0 1px 2px rgba(43, 48, 58, .04); }
    .vote-box { gap: 8px; }
    .vote { flex: 1; padding: 12px 6px; font-size: 14px; }
    .comment { padding: 12px 0; }
    .comment-body { font-size: 15.5px; line-height: 1.65; }
    .comment-vote, .reply-toggle { padding: 5px 10px; font-size: 13px; }
    .reply-list { padding: 0 10px; }
    .related-list li { padding: 10px 0; }

    /* 입력: iOS는 글자가 16px보다 작은 입력칸을 누르면 화면을 확대해 버린다. */
    input, textarea, select { font-size: 16px; padding: 11px 12px; }
    .form-row { flex-direction: row; }
    .form-row > * { min-width: 0; }
    .form-foot { flex-direction: column; align-items: stretch; }
    .form-foot .btn { width: 100%; padding: 14px; font-size: 16px; }
    .write-form textarea { min-height: 40vh; }
    .comment-form textarea { min-height: 96px; }
    .captcha-image { max-width: 100%; height: auto; }
    .captcha-row .captcha-answer { flex: 1; min-width: 120px; width: auto; }
    [data-captcha-refresh] { padding: 10px 14px; font-size: 16px; }
    .chip { padding: 6px 12px; font-size: 13px; }

    /* 어느 화면에서든 한 번에 글쓰기로 가는 버튼. 입력 중에는 키보드 위를 가리지 않게 숨긴다. */
    .fab-write { display: inline-flex; align-items: center; gap: 6px; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; background: var(--ai); color: var(--on-accent); font-weight: 800; font-size: 15px; padding: 13px 18px; border-radius: 999px; box-shadow: 0 4px 14px rgba(43, 48, 58, .18); text-decoration: none !important; }
    body:has(form :focus) .fab-write { display: none; }
    .site-footer { padding-bottom: 90px; }
}

/* ───────────── 관리자 화면 (/admin) ───────────── */
.header-admin { font-size: 18px; text-decoration: none !important; padding: 2px 4px; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-nav a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.admin-nav a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.admin-notice { background: #fff7d6; border: 1px solid #ecd889; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.admin-stat { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--text); text-decoration: none !important; }
.admin-stat span { color: var(--muted); font-size: 13px; }
.admin-stat strong { font-size: 24px; }
.admin-stat.warn { border-color: #e0a3a3; background: #fff1f1; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table tr.muted td { color: var(--muted); }
.admin-daily td, .admin-daily th { white-space: nowrap; }
.admin-daily .bar-cell { width: 40%; }
.admin-daily .bar { display: inline-block; height: 10px; vertical-align: middle; }
.admin-daily .bar-ai { background: var(--ai); border-radius: 3px 0 0 3px; }
.admin-daily .bar-human { background: var(--human); border-radius: 0 3px 3px 0; }
.admin-report.handled { opacity: .6; }
.admin-report-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.admin-badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #fde2e2; color: #9b1c1c; font-weight: 700; }
.admin-badge.done { background: #e7ecef; color: var(--muted); }
.admin-content { margin: 0 0 8px; padding: 10px 12px; background: var(--bg); border-left: 3px solid var(--line); border-radius: 4px; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; }
.admin-author { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; margin: 0 0 8px; }
.admin-report-list { margin: 0 0 10px; padding-left: 18px; font-size: 14px; }
.admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-actions input[type=text], .admin-actions input[type=number], .admin-actions select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 14px; background: var(--card); }
.admin-actions select, .admin-actions input[type=number] { width: auto; flex: 0 0 auto; }
.admin-actions input[type=text] { width: auto; flex: 1 1 160px; min-width: 140px; }
.admin-actions input[type=number] { width: 110px; }
.admin-actions .btn { flex: 0 0 auto; }
.admin-posts .admin-title { max-width: 360px; word-break: break-word; }
.admin-posts td:not(.admin-title):not(:nth-child(3)) { white-space: nowrap; }
.admin-posts td, .admin-posts th { padding: 6px 5px; }
.admin-row-actions { display: flex; gap: 10px; align-items: center; }
.admin-row-actions form { display: inline; }
.admin-warn { color: #b42318; font-weight: 700; }
@media (max-width: 720px) {
    .admin-posts th:nth-child(4), .admin-posts td:nth-child(4),
    .admin-posts th:nth-child(6), .admin-posts td:nth-child(6),
    .admin-posts th:nth-child(8), .admin-posts td:nth-child(8) { display: none; }
    .admin-table { font-size: 13px; }
}

/* ── 접근성 ──
   설정 값은 <html data-palette|contrast|motion|text>로 들어온다(site.js, _Layout <head> 스크립트). */

/* 키보드로 이동할 때 지금 어디에 있는지 분명히 보이게 한다. 마우스 클릭에는 나타나지 않는다. */
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.site-header :focus-visible { outline-color: #ffd34d; }
#main:focus { outline: none; }

/* 본문 바로가기: 평소에는 숨어 있다가 Tab을 처음 누르면 화면 맨 위에 나타난다. */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: #ffd34d; color: #000; font-weight: 800; padding: 10px 16px; border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }

/* 트렌드 띠의 두 묶음은 같은 간격으로 이어져야 -50% 이동이 끊기지 않는다. */
.ticker-group { display: inline-flex; gap: 22px; padding-right: 22px; }
.ticker-move { gap: 0; }

/* 설정 메뉴: 언어 메뉴와 같은 모양으로 헤더에 둔다. */
.a11y-menu { position: relative; }
.a11y-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; color: #fff; padding: 6px 9px; border: 1px solid #4a4d58; border-radius: 8px; font-size: 16px; line-height: 1.2; }
.a11y-menu summary::-webkit-details-marker { display: none; }
.a11y-menu[open] summary { background: var(--ink-2); }
.a11y-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 240px; padding: 12px 14px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); display: grid; gap: 8px; }
.a11y-panel .a11y-title { margin: 0; font-weight: 800; }
.a11y-panel label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
/* 공통 input 규칙(폭 100%, 안쪽 여백)이 체크박스·라디오까지 늘리지 않게 되돌린다. */
.a11y-panel input { width: 18px; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--ai); }
.a11y-panel fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 6px 10px 8px; display: grid; gap: 4px; }
.a11y-panel legend { font-weight: 700; padding: 0 4px; }
.a11y-panel button { justify-self: start; }
.a11y-panel .a11y-note { margin: 0; font-size: 12px; }

.speak-btn { margin-top: 8px; }
.mic-btn { margin: 4px 0 6px; align-self: flex-start; justify-self: start; width: auto; }
.captcha-help { flex-basis: 100%; margin: 0; font-size: 12px; }
.captcha-help a { text-decoration: underline; }

/* 색약 모드: 초록·주황 대신 적록색약에서도 구분되는 파랑·주황을 쓴다(오카베-이토 배색 기준).
   흰 글자와의 대비는 두 색 모두 4.5:1 이상이다. */
html[data-palette="cvd"] {
    --ai: #0b6aa2;
    --ai-strong: #08507a;
    --ai-on-dark: #8cc8f0;
    --ai-soft: #e1eef7;
    --human: #b35900;
    --human-strong: #8f4700;
    --human-soft: #f8e7d6;
    --hot: #8e3b8f;
}

/* 고대비: 배경은 흰색, 글자는 검은색, 테두리와 보조 글자를 진하게 하고 링크에 밑줄을 긋는다. */
html[data-contrast="high"] {
    --text: #000;
    --muted: #33363d;
    --line: #5c6068;
    --bg: #fff;
    --card: #fff;
    --ink: #000;
    --ink-2: #1c1e22;
    --ai: var(--ai-strong);
    --human: var(--human-strong);
}
html[data-contrast="high"] .content a, html[data-contrast="high"] .sidebar a, html[data-contrast="high"] .site-footer a { text-decoration: underline; }
html[data-contrast="high"] .tagline, html[data-contrast="high"] .search button { color: #fff; }
html[data-contrast="high"] .card { border: 1px solid var(--line); }

/* 글자 크기: 글꼴 크기가 px로 정해진 곳이 많아 화면 전체를 비율로 키운다. */
html[data-text="lg"] body { zoom: 1.15; }
html[data-text="xl"] body { zoom: 1.3; }

/* 움직임 줄이기: 흐르는 트렌드 띠를 멈추고 옆으로 넘겨 보게 하며, 전환 효과를 끈다. */
html[data-motion="reduce"] .ticker-move { animation: none; }
html[data-motion="reduce"] .ticker-track { overflow-x: auto; mask-image: none; }
html[data-motion="reduce"] .ticker-group[aria-hidden="true"] { display: none; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { transition: none !important; scroll-behavior: auto !important; }

@media (max-width: 640px) {
    .a11y-menu summary { padding: 5px 7px; font-size: 14px; }
    .a11y-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
}

/* ── 공유 버튼(X·스레드·카카오톡) ── */
.share-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.share-link { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.share-link:hover { text-decoration: none; background: var(--bg); }
.share-kakao { background: #fee500; border-color: #fee500; color: #191919; }
.share-kakao:hover { background: #f5dc00; }

/* ── 회원 알림 토스트 ── */
.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 6px; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 10px 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); border-left: 4px solid var(--ai-on-dark); animation: toast-in .25s ease-out; }
.toast a { flex: 1; display: grid; gap: 2px; color: #fff; }
.toast a:hover { text-decoration: none; }
.toast strong { font-size: 14px; }
.toast span { font-size: 13px; color: #c9ccd4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-close { background: none; border: 0; color: #c9ccd4; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.toast-close:hover { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
html[data-motion="reduce"] .toast { animation: none; }
/* 모바일은 떠 있는 글쓰기 버튼 위로 올린다. */
@media (max-width: 640px) { .toast-stack { bottom: 80px; right: 12px; left: 12px; width: auto; } }

/* ── 관리자 운영 설정 스위치 ── */
.admin-switch { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.admin-switch h2 { margin-bottom: 4px; }
.admin-switch p { margin: 0; }
.admin-switch form { display: flex; align-items: center; gap: 10px; flex: none; }
.switch-state { font-weight: 800; padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.switch-state.on { background: var(--ai-soft); color: var(--ai-strong); }
.switch-state.off { background: #fde2e2; color: #9b1c1c; }
@media (max-width: 640px) { .admin-switch { flex-direction: column; align-items: stretch; } .admin-switch form { justify-content: flex-end; } }

/* ── 약관·처리방침 표, 회원 탈퇴 ── */
.table-scroll { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 4px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg); white-space: nowrap; }
.withdraw-card summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.withdraw-card ul { margin: 10px 0; padding-left: 20px; font-size: 13px; }
.withdraw-card form { display: grid; gap: 8px; justify-items: start; }
.withdraw-confirm { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.withdraw-confirm input { width: 18px; height: 18px; margin: 0; padding: 0; }
.btn-danger { background: #b42318; border-color: #b42318; color: #fff; }
.btn-danger:hover { background: #912018; }
.notice-card { padding: 12px 16px; font-weight: 700; background: var(--ai-soft); }
.consent-note { font-size: 12px; margin: 8px 0 0; }
.consent-note a { text-decoration: underline; }
