:root {
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2521;
  background: #f6f4ef;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 28px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #65746b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

h1 { margin: 0; font-size: clamp(34px, 6vw, 58px); letter-spacing: -.045em; line-height: 1; }
.subtitle { margin: 14px 0 0; color: #65706a; font-size: 15px; }

.header-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ghost, .ghost-small {
  border: 1px solid #d7dbd5;
  background: rgba(255,255,255,.55);
  color: #344039;
  border-radius: 999px;
  cursor: pointer;
}
.ghost { padding: 10px 14px; }
.ghost-small { padding: 7px 11px; font-size: 13px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 28px 60px; }

.summary {
  background: #202a24;
  color: #fff;
  border-radius: 24px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  box-shadow: 0 18px 60px rgba(45,55,48,.10);
}

.summary-main { display: flex; align-items: center; gap: 13px; }
.summary-main p { margin: 5px 0 0; color: #bcc8c1; font-size: 13px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #c5c8c5; box-shadow: 0 0 0 6px rgba(255,255,255,.06); }
.status-dot.ok { background: #7fe0a8; }
.status-dot.warn { background: #f1c46a; }

.summary-counts { display: flex; gap: 28px; }
.summary-counts div { display: grid; text-align: right; }
.summary-counts b { font-size: 22px; }
.summary-counts span { color: #bcc8c1; font-size: 11px; margin-top: 2px; }

.toolbar { margin: 24px 0 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tab {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #e8e7e1;
  color: #4d5751;
  cursor: pointer;
}
.tab.active { background: #d8eadb; color: #153a24; font-weight: 800; }
.tab[data-source="khu"].active { background: #d8eadb; }

.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-wrap { flex: 1 1 300px; }
.search-wrap input {
  width: 100%;
  border: 1px solid #d9dbd7;
  background: rgba(255,255,255,.72);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.search-wrap input:focus { border-color: #8ba995; box-shadow: 0 0 0 3px rgba(91,130,105,.09); }

.toggle { display: inline-flex; align-items: center; gap: 7px; color: #59645d; font-size: 13px; white-space: nowrap; }
.toggle input { accent-color: #356845; }

.notice-list { display: grid; gap: 12px; }
.notice-card {
  background: rgba(255,255,255,.82);
  border: 1px solid #e1e2de;
  border-radius: 20px;
  padding: 19px 20px 17px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.notice-card:hover { transform: translateY(-1px); box-shadow: 0 12px 38px rgba(36,47,39,.07); }
.notice-card.hidden-card { opacity: .55; }
.notice-card.read-card {
  background: rgba(246,247,244,.72);
  border-color: #e7e8e4;
}
.notice-card.read-card .notice-title,
.notice-card.read-card .source-row,
.notice-card.read-card .posted {
  color: #8a918c;
}

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  background: #edf1ed;
  color: #4b5b51;
}
.badge.khu { background: #dff0e3; color: #235332; }
.badge.new { background: #f7dfb8; color: #744514; }
.badge.dup { background: #e7e2f4; color: #534477; }
.badge.read { background: #eceeeb; color: #747d77; font-weight: 700; }

.posted { color: #8a938d; font-size: 12px; white-space: nowrap; }
.notice-card h2 { margin: 13px 0 12px; font-size: 18px; line-height: 1.45; letter-spacing: -.015em; }
.notice-title { color: inherit; text-decoration: none; }
.notice-title:hover { text-decoration: underline; text-underline-offset: 3px; }

.source-row { display: flex; flex-wrap: wrap; gap: 7px; }
.source-link {
  color: #68756d;
  font-size: 12px;
  text-decoration: none;
  padding-right: 7px;
  border-right: 1px solid #dfe2de;
}
.source-link:last-child { border-right: 0; }
.source-link:hover { color: #214c31; text-decoration: underline; }

.card-actions {
  margin-top: 15px;
  border-top: 1px solid #eeeeea;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.open-link { color: #2e6640; text-decoration: none; font-size: 13px; font-weight: 800; }
.secondary-actions { display: flex; gap: 7px; align-items: center; }

.empty {
  text-align: center;
  padding: 70px 20px;
  color: #68726c;
}
.empty strong { color: #35423a; }
.empty p { margin: 8px 0 0; font-size: 13px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  .topbar { padding: 32px 18px 16px; display: block; }
  .header-actions { justify-content: flex-start; margin-top: 18px; }
  main { padding: 0 18px 50px; }
  .summary { align-items: flex-start; padding: 18px; }
  .summary-counts { gap: 14px; }
  .summary-counts span { max-width: 44px; }
  .notice-card { padding: 16px; }
}


.login-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f6f4ef;
}

.login-card {
  width: min(100%, 380px);
  background: #fff;
  border: 1px solid #e0e3dd;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 70px rgba(34, 45, 37, .12);
}

.login-card h2 { margin: 0 0 10px; font-size: 28px; }
.login-card p:not(.eyebrow) { margin: 0 0 18px; color: #68726c; line-height: 1.5; }
.login-card input {
  width: 100%;
  border: 1px solid #d9dbd7;
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 10px;
  outline: none;
}
.login-card button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  background: #202a24;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.login-card .login-error {
  margin-top: 12px !important;
  color: #a33a2b !important;
  font-size: 13px;
}
