/* 모바일 우선. 넓은 화면에서는 가운데 정렬만 한다. */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1c2530;
  background: #f4f6f8;
}
a { color: #1d5fa8; text-decoration: none; }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.35rem; margin: 8px 0 16px; }
.muted { color: #6b7785; font-size: 0.9rem; }

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px; background: #1f3a56; color: #fff;
}
.topbar a, .topbar .link { color: #fff; }
.topbar .brand { font-weight: 700; }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar form { margin: 0; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: #45525f; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 1rem; }
input, select {
  font: inherit; padding: 12px; border: 1px solid #c3ccd6; border-radius: 8px; background: #fff; width: 100%;
}
input[type="checkbox"] { width: 22px; height: 22px; }
input:disabled { background: #e9edf1; color: #6b7785; }

button, .button {
  font: inherit; display: inline-block; text-align: center; cursor: pointer;
  padding: 12px 16px; border: 0; border-radius: 8px; background: #1d5fa8; color: #fff;
}
.button.secondary { background: #e1e6ec; color: #1c2530; }
button.link { background: none; padding: 0; }

.head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list a { display: block; padding: 14px; background: #fff; border-radius: 8px; color: inherit; }
.tag { font-size: 0.8rem; padding: 2px 8px; border-radius: 10px; background: #e1ecf8; color: #1d5fa8; }
.tag.off { background: #f1e1e1; color: #a03030; }

.msg { padding: 12px; border-radius: 8px; margin: 0 0 16px; }
.msg.error { background: #fbe6e6; color: #8f1d1d; }
.msg.ok { background: #e2f4e6; color: #1c6b31; }
