/* ===== 지방의원 공약 추적단 — 영남일보(대구·경북) ===== */
:root {
  --yn: #019d9a;          /* 영남일보 시그니처 틸 */
  --yn-dark: #017d7b;
  --yn-darker: #0a4f4e;
  --yn-light: #e6f5f4;
  --yn-soft: #f1faf9;
  --navy: #0e2c4a;
  --ink: #1b1b1b;
  --gray: #5b6168;
  --gray-light: #8b9197;
  --line: #e5e8eb;
  --bg: #f4f6f8;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(14, 44, 74, .08);
  --shadow-lg: 0 18px 50px rgba(14, 44, 74, .18);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--yn), var(--yn-dark));
  color: var(--white); font-weight: 900; font-size: 24px; font-style: italic;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; font-weight: 900; letter-spacing: -.5px; display: flex; align-items: baseline; gap: 7px; }
.brand-en { font-size: 11px; font-weight: 700; color: var(--gray-light); letter-spacing: .5px; }
.brand-text em { font-size: 12px; color: var(--gray); font-style: normal; margin-top: 2px; }
.paper-ci {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1;
  font-weight: 900; font-size: 22px; color: var(--yn); letter-spacing: -1px;
}
.paper-ci-sub { font-size: 10px; letter-spacing: 3px; color: var(--gray-light); font-weight: 700; margin-top: 3px; }

/* ===== 공통 레이아웃 ===== */
.view { min-height: 60vh; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== 푸터 (콘텐츠와 동일 정렬) ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--white); margin-top: 50px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 26px 20px 32px; }
.footer-src { font-size: 13px; color: var(--gray); margin: 0 0 6px; }
.footer-copy { font-size: 13px; color: var(--gray-light); margin: 0; }

/* ===== 히어로 ===== */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 80% 0%, #0c6b69 0%, var(--yn-darker) 45%, #08363a 100%);
  color: var(--white);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,.08) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.06) 0 2px, transparent 2px);
  background-size: 60px 60px, 80px 80px;
  opacity: .6; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 20; /* 검색 드롭다운이 카테고리 카드(z:5) 위에 오도록 */
  max-width: var(--maxw); margin: 0 auto; padding: 64px 20px 72px;
}
.hero h1 { font-size: 44px; font-weight: 900; letter-spacing: -1.5px; margin: 0 0 14px; }
.hero h1 .accent { color: #6fe3df; }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.82); margin: 0 0 30px; max-width: 620px; }

/* 검색창 */
.search-box { position: relative; max-width: 560px; }
.search-box input {
  width: 100%; height: 58px; border: none; border-radius: 30px;
  padding: 0 60px 0 26px; font-size: 16px; color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.search-box input:focus { outline: 3px solid rgba(111,227,223,.6); }
.search-box .search-btn {
  position: absolute; right: 7px; top: 7px; width: 44px; height: 44px;
  border: none; border-radius: 50%; background: var(--yn); color: var(--white);
  display: grid; place-items: center;
}
.search-box .search-btn:hover { background: var(--yn-dark); }

.gov-notice {
  margin: 18px 0 0; font-size: 13px; color: rgba(255,255,255,.72);
  display: block; line-height: 1.5; word-break: keep-all;
}
.gov-notice b { color: #aef0ec; font-weight: 700; }

/* 검색 드롭다운 */
.search-dropdown {
  position: absolute; left: 0; right: 0; top: 66px; z-index: 30;
  background: var(--white); color: var(--ink);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
  display: none;
}
.search-dropdown.open { display: block; }
.sd-section-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 6px; font-size: 12px; color: var(--gray-light); font-weight: 700;
}
.sd-clear { border: none; background: none; color: var(--gray-light); font-size: 12px; }
.sd-recent { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 18px 12px; }
.sd-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yn-soft); color: var(--yn-darker);
  border: 1px solid var(--yn-light); border-radius: 16px;
  padding: 5px 10px; font-size: 13px;
}
.sd-chip button { border: none; background: none; color: var(--gray-light); font-size: 14px; line-height: 1; padding: 0; }
.sd-results { max-height: 360px; overflow-y: auto; border-top: 1px solid var(--line); }
.sd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.sd-item:hover, .sd-item.active { background: var(--yn-soft); }
.sd-pin { color: var(--yn); flex: none; }
.sd-item .sd-meta { flex: 1; min-width: 0; }
.sd-item .sd-name { font-weight: 700; }
.sd-item .sd-sub { font-size: 12px; color: var(--gray); }
.sd-empty { padding: 22px 18px; color: var(--gray-light); font-size: 14px; text-align: center; }

/* ===== 카테고리 카드 ===== */
.cards {
  max-width: var(--maxw); margin: -40px auto 60px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  position: relative; z-index: 5;
}
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 22px 22px;
  display: flex; flex-direction: column; border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .card-badge {
  align-self: flex-start; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 14px;
}
.card.lv-metro .card-badge { background: var(--yn-light); color: var(--yn-darker); }
.card.lv-basic .card-badge { background: #eef2f7; color: var(--navy); }
.card .card-ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--yn), var(--yn-dark)); color: var(--white);
  margin-bottom: 14px;
}
.card.area-gyeongbuk .card-ico { background: linear-gradient(135deg, #2f6fb0, var(--navy)); }
.card h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.5px; }
.card p { font-size: 13px; color: var(--gray); margin: 0 0 18px; flex: 1; }
.card .go-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; border-radius: 21px; font-weight: 700; font-size: 14px;
  background: var(--yn); color: var(--white); border: none; width: 100%;
}
.card.area-gyeongbuk .go-btn { background: var(--navy); }
.card .go-btn:hover { filter: brightness(1.08); }

.section-note {
  max-width: var(--maxw); margin: 0 auto 70px; padding: 0 20px;
  font-size: 13px; color: var(--gray-light);
}

/* ===== 세부 페이지 ===== */
.detail-tabs { background: var(--navy); position: sticky; top: 67px; z-index: 40; }
.detail-tabs-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; gap: 2px; overflow-x: auto;
}
.detail-tab {
  flex: none; border: none; background: transparent; color: rgba(255,255,255,.7);
  padding: 16px 18px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.detail-tab:hover { color: #fff; }
.detail-tab.active { color: #fff; border-bottom-color: var(--yn); background: rgba(255,255,255,.06); }

.detail-head { padding: 34px 0 10px; }
.detail-head h2 { font-size: 30px; font-weight: 900; margin: 0 0 6px; letter-spacing: -1px; }
.detail-head .crumb { font-size: 13px; color: var(--gray); }

.detail-search { margin: 18px 0 6px; max-width: 460px; position: relative; }
.detail-search input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 23px;
  padding: 0 48px 0 20px; font-size: 15px; background: var(--white);
}
.detail-search input:focus { outline: none; border-color: var(--yn); box-shadow: 0 0 0 3px var(--yn-light); }
.detail-search .search-btn {
  position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: none;
  border-radius: 50%; background: var(--yn); color: #fff; display: grid; place-items: center;
}

/* 지도 + 지역선택 */
.region-panel {
  display: grid; grid-template-columns: 400px 1fr; gap: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 16px 0 28px; box-shadow: var(--shadow);
}
.region-map { display: grid; place-items: center; }
.region-svg { max-height: 440px; }
.region-map .map-loading {
  width: 100%; aspect-ratio: 1/1; border-radius: 12px;
  background: var(--yn-soft); display: grid; place-items: center; text-align: center;
  color: var(--yn-dark); font-weight: 700; border: 1px dashed var(--yn-light);
}
/* 시군구 SVG 지도 */
.region-svg { width: 100%; height: auto; max-height: 380px; display: block; }
.region-svg .paths path,
.region-svg .inset circle {
  fill: #dbe6ef; stroke: #fff; stroke-width: 1.2; cursor: pointer;
  transition: fill .15s;
}
.region-svg .paths path:hover,
.region-svg .inset circle:hover { fill: #8fc4c1; }
.region-svg .paths path.active,
.region-svg .inset circle.active { fill: var(--yn); }
.region-svg .labels text {
  font-size: 17px; fill: #15323d; text-anchor: middle; pointer-events: none;
  font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 4px;
  stroke-linejoin: round;
}
.region-svg .inset text {
  font-size: 16px; fill: #15323d; text-anchor: middle; pointer-events: none;
  font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 3.5px;
}
.region-pick h4 { font-size: 17px; font-weight: 800; margin: 4px 0 4px; }
.region-pick .pick-desc { font-size: 13px; color: var(--gray); margin: 0 0 16px; }
.region-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.region-btn {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
}
.region-btn:hover { border-color: var(--yn); color: var(--yn-dark); }
.region-btn.active { background: var(--yn); border-color: var(--yn); color: #fff; font-weight: 700; }
.region-btn.prop { margin-left: auto; border-style: dashed; }

/* 의원 카드 그리드 */
.members-head { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 16px; }
.members-head h3 { font-size: 22px; font-weight: 800; margin: 0; }
.members-head .cnt { font-size: 14px; color: var(--yn-dark); font-weight: 700; }
.member-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 60px;
}
.member-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; display: flex; flex-direction: column; gap: 4px;
  transition: box-shadow .15s, transform .15s;
}
.member-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.member-card .mc-district { font-size: 12.5px; color: var(--gray); font-weight: 600; }
.member-card .mc-main { display: flex; align-items: center; gap: 13px; margin: 9px 0 13px; }
.member-card .mc-photo {
  width: 56px; height: 70px; border-radius: 8px; flex: none; overflow: hidden;
  background: #eef1f4; display: grid; place-items: center; color: var(--gray-light);
  border: 1px solid #e3e8ec;
}
.member-card .mc-photo img { width: 100%; height: 100%; object-fit: cover; }
/* 사진 없을 때 인물 실루엣 placeholder */
.mc-photo .ph-silh, .pop-photo .ph-silh { width: 70%; height: 70%; color: #b8c0c8; }
.mc-photo, .pop-photo { background: #eef1f4; }
.member-card .mc-name { font-size: 17px; font-weight: 800; }
.member-card .mc-party { font-size: 13px; font-weight: 600; }
.member-card .mc-btn {
  margin-top: auto; border: 1px solid var(--yn); color: var(--yn-dark); background: var(--white);
  height: 38px; border-radius: 8px; font-weight: 700; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.member-card .mc-btn:hover { background: var(--yn); color: #fff; }
.member-card.empty {
  align-items: center; justify-content: center; color: var(--gray-light);
  border-style: dashed; min-height: 150px; font-size: 14px;
}
.sample-flag {
  display: inline-block; font-size: 11px; font-weight: 700; color: #b26a00;
  background: #fff4e0; border: 1px solid #ffe0a8; border-radius: 6px; padding: 2px 7px;
  margin-left: 8px;
}

/* ===== 공약 팝업 ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,30,40,.55); backdrop-filter: blur(2px); }
.modal-dialog {
  position: relative; max-width: 560px; width: calc(100% - 32px); margin: 7vh auto 0;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg);
  max-height: 86vh; overflow-y: auto;
}
.modal-close {
  position: absolute; right: 12px; top: 10px; width: 34px; height: 34px;
  border: none; background: none; font-size: 26px; color: var(--gray); line-height: 1;
}
.pop-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.pop-district { font-size: 17px; font-weight: 800; }
.pop-district .pop-seat { color: var(--yn-dark); }
.pop-dong { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.pop-person { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.pop-photo {
  width: 72px; height: 90px; border-radius: 9px; flex: none; overflow: hidden;
  background: #eef1f4; display: grid; place-items: center; color: var(--gray-light);
  border: 1px solid #e3e8ec;
}
.pop-photo img { width: 100%; height: 100%; object-fit: cover; }
.pop-name { font-size: 20px; font-weight: 800; }
.pop-party { font-size: 14px; font-weight: 600; margin-top: 2px; }
.pop-body { padding: 18px 24px 24px; }
.pop-body h5 { font-size: 14px; font-weight: 800; color: var(--yn-darker); margin: 0 0 12px; }
.pledge-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pledge-list li { display: flex; gap: 12px; align-items: flex-start; }
.pledge-num {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  background: var(--yn-light); color: var(--yn-darker); font-weight: 800; font-size: 13px;
  display: grid; place-items: center; margin-top: 1px;
}
.pledge-text { font-size: 14.5px; color: #2b2f33; display: flex; flex-direction: column; gap: 3px; }
.pledge-title { font-weight: 700; color: #1b1b1b; }
.pledge-detail { font-size: 13px; color: var(--gray); line-height: 1.5; }
.gazette-link {
  display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600;
  color: var(--yn-dark); text-decoration: underline; text-underline-offset: 3px;
}
.pop-foot { font-size: 12px; color: var(--gray-light); padding: 0 24px 22px; }
.pop-guide { font-size: 13.5px; color: var(--gray); margin: 0 0 16px; }
.gazette-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border-radius: 10px; background: var(--yn); color: #fff;
  font-weight: 700; font-size: 15px;
}
.gazette-btn:hover { background: var(--yn-dark); }
/* 비례대표 */
.party-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.pop-photo .party-mark { width: 54px; height: 54px; }
.member-card.prop .mc-photo { background: transparent; border: none; }
.prop-notice {
  margin: -6px 0 18px; padding: 12px 16px; border-radius: 10px;
  background: var(--yn-soft); border: 1px solid var(--yn-light);
  color: var(--yn-darker); font-size: 14px;
}

/* 로딩/빈 상태 */
.loading { text-align: center; padding: 80px 20px; color: var(--gray); }

/* ===== 반응형 ===== */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .region-panel { grid-template-columns: 1fr; }
  .region-map { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .header-inner { padding: 10px 16px; }
  .brand-text strong { font-size: 16px; }
  .brand-text em { font-size: 11px; }
  .paper-ci { font-size: 18px; }
  .hero-inner { padding: 44px 16px 54px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; }
  .cards { grid-template-columns: 1fr; margin-top: -30px; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-tabs { top: 59px; }
  .detail-head h2 { font-size: 23px; }
  .container { padding: 0 16px; }
}
@media (max-width: 460px) {
  .member-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
}

/* ===== 관리자(편집) 모드 — ?edit=1 ===== */
#admin-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--yn-darker); color: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
body.admin-on { padding-bottom: 58px; }
#admin-bar .ab-tag { font-weight: 700; font-size: 13px; }
#admin-bar #ab-dirty { font-size: 12px; background: #ffd34d; color: #5a4500; padding: 3px 10px; border-radius: 20px; font-weight: 700; }
#admin-bar .ab-spacer { flex: 1; }
#admin-bar button, #admin-bar #ab-exit { border: none; border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
#admin-bar #ab-new { background: rgba(255,255,255,.16); color: #fff; }
#admin-bar #ab-export { background: #fff; color: var(--yn-darker); }
#admin-bar #ab-exit { background: transparent; color: rgba(255,255,255,.82); text-decoration: underline; }

.adm-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0 0 16px; }
.adm-meta label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--gray); }
.adm-meta .adm-col2 { grid-column: span 2; }
.adm-meta input, .adm-meta select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; font-weight: 400; color: var(--ink); font-family: inherit; }
.adm-hint { font-size: 11.5px; font-weight: 400; color: var(--gray-light); margin-left: 6px; }
.adm-plist { display: flex; flex-direction: column; gap: 9px; }
.adm-pledge { display: flex; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.adm-pnum { width: 25px; height: 25px; border-radius: 7px; background: var(--yn-light); color: var(--yn-dark); font-weight: 700; display: grid; place-items: center; flex: none; }
.adm-pbody { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.adm-pttl { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font-weight: 700; font-family: inherit; }
.adm-ptxt { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; min-height: 50px; resize: vertical; line-height: 1.5; font-family: inherit; }
.adm-pttl:focus, .adm-ptxt:focus, .adm-meta input:focus, .adm-meta select:focus { outline: 2px solid var(--yn-light); border-color: var(--yn); }
.adm-pctrl { display: flex; flex-direction: column; gap: 4px; flex: none; }
.adm-pctrl button { width: 30px; height: 27px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; color: var(--gray); }
.adm-pctrl .rm { border-color: #e7b6b6; color: #d23b3b; }
.adm-pctrl button:disabled { opacity: .3; cursor: default; }
.adm-addp { width: 100%; margin-top: 10px; padding: 11px; border: 1px dashed var(--yn); border-radius: 10px; background: var(--yn-soft); color: var(--yn-dark); font-weight: 700; cursor: pointer; }
.adm-popfoot { margin-top: 14px; text-align: right; }
.adm-delmem { border: 1px solid #e7b6b6; color: #d23b3b; background: #fff; border-radius: 8px; padding: 7px 13px; font-weight: 700; font-size: 12px; cursor: pointer; }

.adm-modal-bg { position: fixed; inset: 0; background: rgba(10,30,40,.5); z-index: 130; display: grid; place-items: center; backdrop-filter: blur(2px); }
.adm-modal { background: #fff; border-radius: 16px; padding: 24px; width: 420px; max-width: 92vw; box-shadow: var(--shadow-lg); }
.adm-modal h3 { margin: 0 0 14px; font-size: 17px; }
.adm-modal label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--gray); margin-bottom: 10px; }
.adm-modal input, .adm-modal select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 400; color: var(--ink); font-family: inherit; }
.adm-modal-act { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.adm-modal-act button { padding: 9px 16px; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; background: var(--bg); color: var(--ink); }
.adm-modal-act .ok { background: var(--yn); color: #fff; }

#adm-toast { position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 30px; font-size: 13.5px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 140; max-width: 90vw; text-align: center; }
#adm-toast.show { opacity: 1; }

/* 관리자 로그인 모달 보조 */
.adm-modal-act a { padding: 9px 16px; border-radius: 8px; font-weight: 700; background: var(--bg); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.adm-login-err { min-height: 18px; font-size: 12.5px; color: #d23b3b; margin: 2px 0 4px; }
.adm-login-alt { margin-top: 10px; }
.adm-login-alt button { width: 100%; padding: 9px; border: 1px dashed var(--line); background: #fff; border-radius: 8px; color: var(--gray); font-weight: 700; cursor: pointer; font-size: 12.5px; }
#admin-bar #ab-save { background: #ffd34d; color: #5a4500; }

/* 관리자: 사진 업로드 */
.adm-photo-field > label { font-size: 11.5px; font-weight: 700; color: var(--gray); }
.adm-photo-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; }
.adm-photo-prev { width: 72px; height: 90px; border-radius: 8px; overflow: hidden; flex: none; background: #eef1f4; border: 1px solid var(--line); display: grid; place-items: center; }
.adm-photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.adm-photo-none { font-size: 11px; color: var(--gray-light); text-align: center; }
.adm-photo-ctrl { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.adm-upbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--yn); background: var(--yn-soft); color: var(--yn-dark); border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }
.adm-upbtn:hover { background: var(--yn-light); }
.adm-photo-url { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.adm-photo-url:focus { outline: 2px solid var(--yn-light); border-color: var(--yn); }
.adm-up-status { font-size: 12px; color: var(--gray); min-height: 15px; }

.adm-meta .adm-sub { font-weight: 400; color: var(--gray-light); }

/* 자료 출처 일괄 작업 모달 */
.adm-bulk { width: 500px; }
.adm-bulk .bulk-sec { margin-bottom: 16px; }
.adm-bulk .bulk-sec > b { display: block; font-size: 12.5px; color: var(--gray); margin-bottom: 7px; }
.adm-bulk label.bl { display: flex; flex-direction: row; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 400; color: var(--ink); margin: 0 0 6px; }
.adm-bulk label.bl input[type=radio] { flex: none; }
.adm-bulk select, .adm-bulk input[type=text] { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-family: inherit; }
.adm-bulk #blText, .adm-bulk #blUrl { display: block; width: calc(100% - 26px); margin: 3px 0 8px 26px; }
.adm-bulk input:disabled, .adm-bulk select:disabled { opacity: .45; }
.adm-bulk .bulk-warn { background: #fff4e0; border: 1px solid #ffe0a8; color: #8a5a00; border-radius: 8px; padding: 11px 13px; font-size: 12.5px; line-height: 1.55; margin-bottom: 14px; }
#admin-bar #ab-bulk { background: rgba(255,255,255,.16); color: #fff; }
