:root {
  --ink: #18202f;
  --muted: #667085;
  --line: #d9e0ea;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --blue: #246bfe;
  --green: #15a46d;
  --red: #d64545;
  --amber: #c88719;
  --teal: #1298a3;
  --shadow: 0 16px 50px rgba(24, 32, 47, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.hero {
  color: #ffffff;
  background:
    linear-gradient(rgba(18, 27, 43, 0.72), rgba(18, 27, 43, 0.72)),
    url("https://images.unsplash.com/photo-1575505586569-646b2ca898fc?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px 72px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 10px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9bc7ff;
}

.search-card {
  max-width: 720px;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
  border-radius: 8px;
}

.search-card label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 10px;
}

.search-field {
  position: relative;
}

.search-row input,
.filter-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.search-row input {
  min-height: 50px;
  padding: 0 16px;
}

.suggestion-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 234, 0.98);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(24, 32, 47, 0.18);
}

.suggestion-list.open {
  display: grid;
}

.suggestion-list button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #edf1f7;
  background: #f5f7fa;
  color: var(--ink);
  text-align: left;
}

.suggestion-list button:last-child {
  border-bottom: 0;
}

.suggestion-list button:hover,
.suggestion-list button:focus {
  background: #eaf2ff;
  outline: none;
}

.suggestion-list strong {
  font-size: 14px;
}

.suggestion-list span {
  color: var(--muted);
  font-size: 12px;
}

.search-row > button,
.segmented button,
.quick-list button,
.summary-card,
.bar-item,
.tag-cloud button {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.search-row > button {
  background: var(--blue);
  color: #ffffff;
}

.quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-list button {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.quick-list button.nearby {
  background: #dceeff;
  color: var(--blue);
}

.signal-panel {
  align-self: end;
  min-height: 380px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.signal-map {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf4ff;
}

.district-shape {
  position: absolute;
  border: 2px solid #ffffff;
  box-shadow: 0 14px 28px rgba(24, 32, 47, 0.16);
}

.shape-one {
  left: 36px;
  top: 34px;
  width: 44%;
  height: 52%;
  background: #9fd7c8;
  clip-path: polygon(18% 2%, 100% 13%, 78% 94%, 8% 80%);
}

.shape-two {
  right: 30px;
  top: 58px;
  width: 42%;
  height: 45%;
  background: #f1c66f;
  clip-path: polygon(10% 18%, 84% 0, 98% 76%, 30% 96%);
}

.shape-three {
  left: 94px;
  bottom: 26px;
  width: 54%;
  height: 38%;
  background: #8fb8f6;
  clip-path: polygon(0 32%, 74% 5%, 100% 72%, 28% 100%);
}

.pin {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(214, 69, 69, 0.16);
}

.pin-a {
  left: 40%;
  top: 42%;
}

.pin-b {
  right: 27%;
  top: 30%;
  background: var(--blue);
}

.pin-c {
  left: 34%;
  bottom: 24%;
  background: var(--green);
}

.signal-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}

.signal-copy strong {
  font-size: 22px;
}

.signal-copy span {
  color: rgba(255, 255, 255, 0.76);
}

.notice,
.dashboard,
.content-grid,
.method {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

.notice {
  margin-top: 26px;
  color: #475467;
  font-size: 14px;
}

.dashboard,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 22px;
  margin-top: 26px;
}

.member-panel,
.activity-panel,
.bill-panel,
.timeline-panel,
.method article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.member-panel,
.activity-panel,
.bill-panel,
.timeline-panel {
  padding: 24px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2,
.member-card h3,
.method h3 {
  margin: 0;
}

.section-head h2 {
  font-size: 24px;
}

.member-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.portrait {
  display: grid;
  place-items: center;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #dfeaff;
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
}

.role {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.member-card h3 {
  font-size: 30px;
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 12px 0 0;
}

.member-meta div {
  min-width: 120px;
}

.member-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.member-meta dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.summary-card {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.summary-card:hover,
.summary-card.active {
  border-color: var(--blue);
  box-shadow: 0 10px 26px rgba(36, 107, 254, 0.14);
  transform: translateY(-1px);
}

.summary-grid span,
.summary-grid small {
  display: block;
  color: var(--muted);
}

.summary-grid strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
}

.gauge {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 20px;
  align-items: center;
}

.gauge-ring {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: #eef2f7;
  border: 14px solid #d8e0ea;
}

.gauge-ring span {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #ffffff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.gauge p {
  margin: 0;
  color: #344054;
  font-weight: 800;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.chart-grid article {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.chart-grid h3,
.timeline-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.bar-item {
  display: grid;
  grid-template-columns: 82px 1fr 38px;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.bar-item:hover span,
.bar-item.active span {
  color: var(--blue);
  font-weight: 900;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eef6;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--blue);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span,
.tag-cloud button {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef6f7;
  color: #12656d;
  font-size: 13px;
  font-weight: 800;
}

.tag-cloud button.active,
.tag-cloud button:hover {
  background: #dceeff;
  color: var(--blue);
}

.segmented {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f5f9;
}

.segmented button {
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(24, 32, 47, 0.08);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.filter-row select {
  min-height: 42px;
  padding: 0 12px;
}

.bill-list {
  display: grid;
  gap: 12px;
}

.bill-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bill-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.bill-top h3 {
  margin: 0;
  font-size: 18px;
}

.pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.pill.green {
  background: #e9f8f1;
  color: var(--green);
}

.pill.amber {
  background: #fff4da;
  color: var(--amber);
}

.pill.red {
  background: #ffecec;
  color: var(--red);
}

.bill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.bill-item p {
  margin: 12px 0 0;
  color: #475467;
}

.detail-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 26px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.timeline time {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.timeline strong {
  display: block;
  margin-top: 2px;
}

.method {
  padding-top: 30px;
  padding-bottom: 60px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.method article {
  padding: 22px;
  box-shadow: none;
}

.method article span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
}

.method p {
  margin: 10px 0 0;
  color: var(--muted);
}

@media (max-width: 940px) {
  .hero-grid,
  .dashboard,
  .content-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .signal-panel {
    min-height: auto;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-grid {
    padding-top: 42px;
  }

  .search-row,
  .filter-row,
  .chart-grid,
  .gauge {
    grid-template-columns: 1fr;
  }

  .search-row > button {
    min-height: 48px;
  }

  .section-head.inline,
  .member-card {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .gauge-ring {
    margin: 0 auto;
  }
}
