:root {
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #172033;
  background: #eef2f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 960px;
  min-height: 100vh;
  background: #eef2f7;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #d7e0eb;
}

.topbar-inner,
.page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.back-link {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.page { padding: 26px 0 42px; }

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 20px;
}

.intro h1 {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0;
}

.intro p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

.checked-date {
  flex: 0 0 auto;
  color: #075985;
  font-size: 13px;
  font-weight: 800;
}

.notice {
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters,
.resource-board {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.filters {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.filter-block + .filter-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.filter-title {
  margin: 0 0 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.category-list {
  display: grid;
  gap: 6px;
}

.category-button {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.category-button:hover { background: #f1f5f9; }

.category-button[aria-pressed="true"] {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e40af;
  box-shadow: inset 3px 0 0 #2563eb;
}

.region-select {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.content-column { min-width: 0; }

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 2px solid #64748b;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 16px;
}

.clear-button {
  min-width: 44px;
  min-height: 44px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 24px;
  font-weight: 500;
}

.clear-button:hover { background: #f8fafc; }

.result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  padding: 0 2px;
  color: #475569;
  font-size: 13px;
}

.result-summary strong {
  color: #0f172a;
  font-size: 15px;
}

.resource-board { overflow: hidden; }

.board-head,
.resource-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
}

.board-head {
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.resource-row {
  min-height: 126px;
  padding: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.resource-row:last-child { border-bottom: 0; }
.resource-row:hover { background: #fafcff; }

.source-cell {
  min-width: 0;
}

.source-name {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
  word-break: keep-all;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #075985;
  font-size: 11px;
  font-weight: 800;
}

.tag.region {
  background: #ecfdf5;
  color: #047857;
}

.resource-description {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.search-hint {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.link-cell {
  display: grid;
  gap: 7px;
  align-items: center;
}

.open-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 2px solid #1e3a5f;
  border-radius: 6px;
  background: #0f5f9f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.open-link:hover { background: #0c4a7a; }

.home-link {
  color: #475569;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.home-link:hover {
  color: #1e40af;
}

.empty-state {
  padding: 56px 24px;
  color: #64748b;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}

.footer-note {
  margin: 18px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .board-head,
  .resource-row { grid-template-columns: 132px minmax(0, 1fr) 150px; gap: 14px; }
  .resource-row { padding: 16px; }
}
