:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #1d2733;
  --muted: #6b7684;
  --line: #dfe4ea;
  --accent: #0f6fff;
  --accent-dark: #0b4fc0;
  --ok: #0d8a4f;
  --warn: #b9770e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.topbar {
  background: linear-gradient(135deg, #12314f, #0f6fff);
  color: #fff;
  padding: 34px 0 26px;
}
.topbar h1 { font-size: 26px; margin-bottom: 4px; }
.topbar .sub { opacity: .85; font-size: 14px; }

.notice {
  margin: 14px auto;
  padding: 12px 16px;
  background: #fff8e6;
  border: 1px solid #f0d9a0;
  border-radius: 10px;
  font-size: 13.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin: 10px 0 26px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 40, 80, .10);
  border-color: var(--accent);
}
.card h2 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 13.5px; color: var(--muted); }

.badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge.todo { background: #fdf0dd; color: var(--warn); }
.badge.ok   { background: #e2f5ea; color: var(--ok); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 22px;
}
.panel h2 { font-size: 18px; margin-bottom: 8px; }
.hint { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.task-panel h3 { font-size: 16px; margin: 6px 0 12px; }

.dropzone {
  border: 2px dashed #b9c4d0;
  border-radius: 10px;
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
  background: #fafbfd;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  font-size: 14px;
}
.dropzone small { display: block; margin-top: 4px; font-size: 12px; }
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent);
  background: #eef5ff;
  color: var(--accent-dark);
}

.filelist { list-style: none; margin: 10px 0; font-size: 13px; }
.filelist li {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.filelist .meta { color: var(--muted); }

.result {
  margin-top: 8px;
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f2f6fb;
  color: #345;
  white-space: pre-wrap;
}

.tpl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 8px;
  font-size: 13.5px;
}
.tpl-row button {
  border: none;
  background: #fee;
  color: #b03030;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
}

.sub-h {
  font-size: 14.5px;
  margin: 18px 0 8px;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.site-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-card h4 { font-size: 14.5px; color: var(--accent-dark); }
.site-addr { font-size: 12px; color: var(--muted); }
.site-info { list-style: none; font-size: 12.5px; }
.site-info li { padding: 2px 0; border-bottom: 1px dotted var(--line); }
.site-info b { color: var(--ink); display: inline-block; min-width: 110px; }
.site-toggle {
  border: 1px solid var(--line);
  background: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  align-self: flex-start;
}
.site-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
.site-detail {
  font-size: 12.5px;
  background: #f2f6fb;
  border-radius: 8px;
  padding: 10px;
}
.site-detail p { margin-bottom: 8px; }

.foot {
  padding: 18px 0 30px;
  color: var(--muted);
  font-size: 12.5px;
}
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
