:root {
  --fg: #111;
  --mut: #666;
  --ok: #0a7c2f;
  --no: #b91c1c;
  --warn: #a36b00;
  --bd: #e6e6e6;
  --pill: #f3f4f6;
  --g: #117a42;
}

html {
  scrollbar-gutter: stable both-edges;
}

@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

body {
  font-family: Apple SD Gothic Neo, Noto Sans KR, system-ui, sans-serif;
  color: var(--fg);
  margin: 0;
  background: #fff;
}

.wrap {
  max-width: 920px;
  margin: 28px auto;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--bd);
}

h1 {
  font-size: 22px;
  margin: 8px 0 12px;
  text-align: center;
}

h2 {
  font-size: 18px;
  margin: 8px 0;
}

form {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}

input[type=text] {
  flex: 1;
  min-width: 320px;
  padding: 12px;
  border: 1px solid var(--bd);
  border-radius: 10px;
}

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

button[type=submit],
#moreBtn {
  background: var(--g);
  color: #fff;
}

small.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--mut);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  background: var(--pill);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--mut);
  font-size: 12px;
}

ul#posts {
  list-style: none;
  margin: 16px 0 12px;
  padding: 0;
}

ul#posts li {
  padding: 14px 12px;
  margin: 10px 0;
  border-bottom: 1px solid var(--bd);
}

.mut {
  color: var(--mut);
}

.grid-sm {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.chips {
  display: flex;
  gap: 6px;
  align-items: center
}

.chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--bd);
  cursor: pointer;
}

.chip.on {
  background: #dcfce7;
  color: #065f46;
  border-color: #a7f3d0;
}

.chip.off {
  background: #f3f4f6;
  color: #9ca3af;
}

.chip.block {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.morebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 32px;
}

#moreBtn[disabled] {
  cursor: not-allowed;
}

.notice {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #b6daff;
  background: #e7f3ff;
  color: #084298;
  border-radius: 8px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  font-size: 15px;
}

/* **** guide ***** */
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.nav a {
  font-weight: 700;
}

.legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.legend .chip {
  cursor: default;
}

section {
  margin: 20px 0;
}


.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f3f4f6;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 2px 6px;
}

@media (max-width:780px) {
  .wrap {
    max-width: 100%;
    border: unset;
  }

  .grid-sm {
    grid-template-columns: auto 1fr;
  }

  .grid-sm>:nth-child(1) {
    grid-column: 1 / -1;
  }

  .chips {
    justify-content: flex-end;
  }
}