/* ============================================================
   public.css - gonggomoa.kr 공개 사이트 스타일
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #1e40af; --primary-light: #3b82f6; --primary-bg: #eff6ff;
  --green: #16a34a; --green-bg: #f0fdf4;
  --orange: #ea580c; --orange-bg: #fff7ed;
  --red: #dc2626; --red-bg: #fef2f2;
  --border: #e5e7eb; --text: #111827; --text-sub: #6b7280;
  --bg: #f8fafc; --white: #fff;
  --radius: 12px; --shadow: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.1);
}
html { font-size: 14px; scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }

/* ── 스크롤바 ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ============================================================ HEADER */
.pub-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.pub-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.pub-logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 800; color: #fff; }
.pub-logo i { font-size: 1.1rem; }
.pub-nav { display: flex; gap: 4px; }
.pub-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.8); padding: 6px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 500; transition: background .18s, color .18s;
  /* button 태그 리셋 */
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; text-decoration: none; white-space: nowrap;
}
.pub-nav-link:hover  { background: rgba(255,255,255,.18); color: #fff; }
.pub-nav-link.active { background: rgba(255,255,255,.25); color: #fff; font-weight: 600; }
.pub-header-right { display: flex; gap: 8px; align-items: center; }

/* 비로그인 버튼 그룹 */
.header-guest-group {
  display: flex; align-items: center; gap: 6px;
}

/* 비로그인 - 로그인 버튼 */
.pub-btn-login {
  background: rgba(255,255,255,.15); color: #fff;
  padding: 7px 16px; border-radius: 8px;
  font-size: .82rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.35);
  transition: .2s; display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.pub-btn-login:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.6); }

/* 비로그인 - 회원가입 버튼 (흰색 솔리드) */
.pub-btn-register {
  background: #fff; color: #1e40af;
  padding: 7px 16px; border-radius: 8px;
  font-size: .82rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.9);
  transition: .2s; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; cursor: pointer; font-family: inherit;
}
.pub-btn-register:hover { background: #eff6ff; border-color: #bfdbfe; }

/* 로그인 상태 - 사용자 그룹 (계정명 + 마이페이지 + 로그아웃) */
.header-user-group {
  display: flex; align-items: center; gap: 6px;
}
.header-user-name {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.95); font-size: .84rem; font-weight: 600;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  white-space: nowrap;
}
.header-user-name i { font-size: 1rem; color: rgba(255,255,255,.8); }

/* 마이페이지 버튼 */
.pub-btn-mypage {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  transition: .2s;
  cursor: pointer;
}
.pub-btn-mypage:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.6); }

/* 로그아웃 버튼 */
.pub-btn-logout {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer; font-family: inherit;
  transition: .2s;
}
.pub-btn-logout:hover {
  background: rgba(220,38,38,.35);
  border-color: rgba(252,165,165,.5);
  color: #fff;
}

@media (max-width: 700px) {
  .pub-nav { display: none; }
  .header-user-name { display: none; } /* 모바일에서 계정명 숨김 */
  .pub-btn-mypage, .pub-btn-logout { padding: 7px 10px; font-size: .78rem; }
  .pub-btn-register { padding: 7px 10px; font-size: .78rem; }
}
@media (max-width: 420px) {
  /* 매우 좁은 화면에서 회원가입 텍스트 숨기고 아이콘만 표시 */
  .pub-btn-register span.reg-text { display: none; }
}

/* ============================================================ HERO */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%); color: #fff; padding: 60px 20px 70px; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 5px 14px; font-size: .8rem; margin-bottom: 20px; }
.hero-title { font-size: 2.4rem; font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.hero-highlight { color: #fbbf24; }
.hero-desc { font-size: 1rem; opacity: .85; margin-bottom: 32px; }
@media (max-width: 600px) { .hero-title { font-size: 1.7rem; } }

.hero-search-wrap { max-width: 560px; margin: 0 auto; }
.hero-search { display: flex; align-items: center; background: #fff; border-radius: 50px; padding: 4px 4px 4px 18px; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.hero-search-icon { color: #9ca3af; font-size: 1rem; margin-right: 4px; flex-shrink: 0; }
.hero-search input { flex: 1; border: none; outline: none; font-size: .95rem; font-family: inherit; color: var(--text); background: transparent; }
.hero-search button { background: var(--primary); color: #fff; border: none; border-radius: 40px; padding: 10px 24px; font-size: .88rem; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; transition: .2s; }
.hero-search button:hover { background: #1d3aad; }
.hero-search-tags { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-search-tags span { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9); padding: 4px 12px; border-radius: 20px; font-size: .8rem; cursor: pointer; transition: .2s; }
.hero-search-tags span:hover { background: rgba(255,255,255,.25); }

/* ============================================================ SOURCE BAR */
.source-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 20px; }
.source-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 12px; flex-wrap: wrap; }
.src-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 30px; font-size: .83rem; font-weight: 600; border: 1.5px solid transparent; transition: .2s; cursor: pointer; }
.src-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.src-g2b      { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.src-seoul    { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.src-contract { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.src-total    { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.src-chip-count { background: rgba(0,0,0,.1); padding: 1px 7px; border-radius: 12px; font-size: .75rem; }

/* ============================================================ MAIN */
.pub-main { max-width: 1200px; margin: 0 auto; padding: 32px 20px 60px; }
.pub-main-notices { padding-top: 20px; }

/* ============================================================ SECTION */
.section-block { margin-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--primary-light); }
.section-badge { background: #fee2e2; color: #dc2626; padding: 2px 8px; border-radius: 12px; font-size: .72rem; font-weight: 700; }
.section-more { font-size: .82rem; color: var(--primary-light); font-weight: 500; }
.section-more:hover { text-decoration: underline; }

.src-tab-bar { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.src-tab { padding: 6px 16px; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; font-size: .82rem; font-weight: 500; cursor: pointer; font-family: inherit; transition: .2s; }
.src-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.src-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================ NOTICE CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .card-grid { grid-template-columns: 1fr; } }

.notices-card-view { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 900px) { .notices-card-view { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .notices-card-view { grid-template-columns: 1fr; } }

.notice-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: .2s; display: flex; flex-direction: column; gap: 8px; }
.notice-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-urgent { border-color: #fca5a5 !important; background: #fff5f5; }

.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-src { font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; }
.src-g2b_api      { background: #dbeafe; color: #1d4ed8; }
.src-seoul_board  { background: #d1fae5; color: #065f46; }
.src-seoul_contract { background: #fef9c3; color: #854d0e; }

.card-type { font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; }
.type-공사 { background: #dbeafe; color: #1d4ed8; }
.type-용역 { background: #d1fae5; color: #065f46; }
.type-물품 { background: #fef9c3; color: #854d0e; }
.type-외자 { background: #fce7f3; color: #9d174d; }
.type-일반 { background: #f3f4f6; color: #374151; }

.card-revised { background: #ede9fe; color: #5b21b6; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; }
.days-badge { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; background: #f3f4f6; color: #6b7280; }
.days-urgent { background: #fee2e2; color: #dc2626; animation: pulse .8s ease-in-out infinite alternate; }
.days-warn   { background: #fef3c7; color: #92400e; }
@keyframes pulse { from { opacity:.8; } to { opacity:1; } }

.card-title { font-weight: 600; font-size: .88rem; line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-org   { font-size: .78rem; color: var(--text-sub); display: flex; align-items: center; gap: 5px; }
.card-bottom { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.card-budget { font-size: .8rem; font-weight: 700; color: var(--primary); }
.card-date   { font-size: .75rem; color: var(--text-sub); display: flex; align-items: center; gap: 4px; }
.card-attach { font-size: .75rem; color: var(--text-sub); }

.card-skeleton { height: 160px; border-radius: var(--radius); background: linear-gradient(90deg, #f3f4f6 25%, #e9ecef 50%, #f3f4f6 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================ FILTER BAR */
.filter-bar { background: var(--white); border-bottom: 2px solid var(--border); padding: 14px 20px; position: sticky; top: 58px; z-index: 90; }
.filter-bar-inner { max-width: 1200px; margin: 0 auto; }
.filter-search-wrap { display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--border); border-radius: 8px; padding: 6px 12px; margin-bottom: 12px; gap: 8px; }
.filter-search-wrap i { color: #9ca3af; }
.filter-search-wrap input { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: .88rem; }
.filter-search-wrap button { background: var(--primary); color: #fff; border: none; border-radius: 6px; width: 30px; height: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.filter-chips-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-size: .72rem; font-weight: 700; color: var(--text-sub); text-transform: uppercase; letter-spacing: .05em; }
.chip-group { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { padding: 4px 12px; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; font-size: .78rem; font-weight: 500; cursor: pointer; font-family: inherit; transition: .15s; }
.chip:hover { border-color: var(--primary-light); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-select-sm { padding: 5px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .8rem; background: #fff; cursor: pointer; }

/* ============================================================ RESULT / LIST VIEW */
.result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.result-count { font-size: .88rem; color: var(--text-sub); }
.result-count strong { color: var(--primary); font-weight: 700; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { background: #fff; border: 1.5px solid var(--border); border-radius: 6px; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-sub); transition: .15s; }
.view-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.notices-list-view { overflow-x: auto; }
.pub-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.pub-table th { background: #f8fafc; padding: 10px 12px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--border); white-space: nowrap; }
.pub-table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.pub-table tr:hover td { background: var(--primary-bg); }
.pub-title-cell { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--primary); font-weight: 500; }
.pub-link-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 5px; font-size: .75rem; }

/* ============================================================ PAGINATION */
.pub-pagination { display: flex; gap: 4px; justify-content: center; padding: 24px 0; flex-wrap: wrap; }
.pub-page-btn { padding: 7px 12px; border-radius: 6px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-size: .82rem; font-family: inherit; transition: .15s; }
.pub-page-btn:hover { background: var(--primary-bg); border-color: var(--primary-light); }
.pub-page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================ TYPE CHIPS */
.type-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.type-chip { display: flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: .95rem; transition: .2s; border: 2px solid transparent; }
.type-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chip-공사 { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.chip-용역 { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.chip-물품 { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.chip-외자 { background: #fce7f3; color: #9d174d; border-color: #fbcfe8; }

/* ============================================================ MODAL */
.pub-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.pub-modal-overlay.open { display: flex; }
.pub-modal { background: #fff; border-radius: 16px; width: 680px; max-width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.pub-modal-header { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.pub-modal-header h2 { flex: 1; font-size: .95rem; font-weight: 700; line-height: 1.5; }
.pub-modal-header button { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-sub); flex-shrink: 0; padding: 4px; }
.pub-modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.pub-modal-footer { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pub-detail-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.pub-detail-table th { background: #f8fafc; padding: 8px 12px; text-align: left; font-weight: 600; width: 110px; border: 1px solid var(--border); color: var(--text-sub); font-size: .78rem; }
.pub-detail-table td { padding: 8px 12px; border: 1px solid var(--border); }

/* ============================================================ BUTTONS */
.pub-btn-primary  { background: var(--primary); color: #fff; padding: 8px 18px; border-radius: 8px; border: none; cursor: pointer; font-size: .84rem; font-family: inherit; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: .2s; }
.pub-btn-primary:hover { background: #1d3aad; }
.pub-btn-bookmark { background: #fef3c7; color: #92400e; border: 1.5px solid #fde68a; padding: 7px 16px; border-radius: 8px; cursor: pointer; font-size: .84rem; font-family: inherit; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: .2s; }
.pub-btn-ghost    { background: #fff; color: var(--text-sub); border: 1.5px solid var(--border); padding: 7px 16px; border-radius: 8px; cursor: pointer; font-size: .84rem; font-family: inherit; transition: .2s; display: inline-flex; align-items: center; gap: 6px; }
.pub-btn-ghost:hover { background: var(--bg); }

/* ============================================================ AUTH */
.auth-body { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-wrap { background: #fff; border-radius: 20px; padding: 36px 40px; width: 420px; max-width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 24px; }
.auth-tabs { display: flex; background: #f3f4f6; border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 8px; border-radius: 8px; border: none; background: transparent; font-family: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: .15s; }
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form-group { display: flex; flex-direction: column; gap: 6px; }
.auth-form-group label { font-size: .8rem; font-weight: 600; color: var(--text-sub); display: flex; align-items: center; gap: 6px; }
.auth-form-group input { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .88rem; transition: .15s; }
.auth-form-group input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 40px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-sub); font-size: .9rem; }
.auth-submit { background: var(--primary); color: #fff; padding: 12px; border-radius: 10px; border: none; cursor: pointer; font-family: inherit; font-size: .92rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .2s; }
.auth-submit:hover:not(:disabled) { background: #1d3aad; }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-divider { display: flex; align-items: center; gap: 12px; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.auth-divider span { font-size: .75rem; color: var(--text-sub); }
.auth-extra { text-align: center; font-size: .82rem; color: var(--text-sub); }
.auth-extra a { color: var(--primary-light); font-weight: 500; }
.auth-error { background: #fef2f2; color: var(--red); padding: 10px 14px; border-radius: 8px; font-size: .82rem; border: 1px solid #fecaca; }

/* ============================================================ MYPAGE */
.my-profile-card { background: linear-gradient(135deg, #1e40af, #2563eb); color: #fff; border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.my-avatar { font-size: 3rem; opacity: .9; }
.my-nickname { font-size: 1.2rem; font-weight: 700; }
.my-email { font-size: .84rem; opacity: .8; margin-top: 4px; }
.my-joined { font-size: .75rem; opacity: .6; margin-top: 4px; }
.my-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.my-tab { padding: 10px 20px; border: none; background: transparent; font-family: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; color: var(--text-sub); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: .15s; display: flex; align-items: center; gap: 6px; }
.my-tab:hover { color: var(--primary); }
.my-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.my-tab-panel { display: none; }
.my-tab-panel.active { display: block; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: .9rem; }
.panel-body { padding: 16px 20px; }
.kw-input-wrap { display: flex; gap: 8px; margin-bottom: 12px; }
.kw-input { flex: 1; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .85rem; }
.kw-input:focus { outline: none; border-color: var(--primary-light); }
.kw-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 32px; }
.kw-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-bg); color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: .82rem; font-weight: 500; }
.kw-tag button { background: none; border: none; cursor: pointer; color: var(--primary); font-size: .9rem; line-height: 1; }
.alert-toggles { display: flex; flex-direction: column; gap: 12px; }
.alert-toggle-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #d1d5db; border-radius: 24px; transition: .2s; }
.slider::before { content:''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.toggle input:checked + .slider { background: var(--green); }
.toggle input:checked + .slider::before { transform: translateX(18px); }

/* ============================================================ BADGE (공통) */
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: .72rem; font-weight: 600; }
.badge-src-g2b_api      { background: #dbeafe; color: #1d4ed8; }
.badge-src-seoul_board  { background: #d1fae5; color: #065f46; }
.badge-src-seoul_contract { background: #fef9c3; color: #854d0e; }
.badge-type-공사 { background: #dbeafe; color: #1d4ed8; }
.badge-type-용역 { background: #d1fae5; color: #065f46; }
.badge-type-물품 { background: #fef9c3; color: #854d0e; }
.badge-type-외자 { background: #fce7f3; color: #9d174d; }
.badge-type-일반 { background: #f3f4f6; color: #374151; }
.badge-status-진행중   { background: #d1fae5; color: #065f46; }
.badge-status-마감임박  { background: #fef3c7; color: #92400e; }
.badge-status-정정     { background: #ede9fe; color: #5b21b6; }
.badge-status-취소     { background: #fee2e2; color: #991b1b; }
.badge-status-마감     { background: #f3f4f6; color: #6b7280; }

/* ============================================================ EMPTY / TOAST */
.pub-empty { text-align: center; padding: 40px 20px; color: var(--text-sub); grid-column: 1 / -1; }
.pub-empty i { font-size: 2.2rem; margin-bottom: 10px; display: block; opacity: .4; }
.pub-empty p { font-size: .88rem; }
.pub-toast { position: fixed; bottom: 24px; right: 24px; background: #1e293b; color: #f1f5f9; padding: 12px 20px; border-radius: 8px; font-size: .85rem; font-weight: 500; transform: translateY(80px); opacity: 0; transition: .3s; z-index: 300; pointer-events: none; }
.pub-toast.show { transform: translateY(0); opacity: 1; }
.pub-toast.success { border-left: 4px solid var(--green); }
.pub-toast.error   { border-left: 4px solid var(--red); }
.pub-toast.warning { border-left: 4px solid var(--orange); }

/* ============================================================ FOOTER */
.pub-footer { background: #111827; color: rgba(255,255,255,.6); padding: 32px 20px; margin-top: 40px; }
.pub-footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-logo { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer-desc { font-size: .82rem; margin-bottom: 6px; }
.footer-copy { font-size: .75rem; opacity: .5; }

/* ============================================================ SPIN */
.spin { animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.pub-btn-ghost { background: #fff; color: var(--text-sub); border: 1.5px solid var(--border); padding: 7px 16px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: .84rem; display: inline-flex; align-items: center; gap: 6px; transition: .2s; }
