* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #1f2933;
  background: #f4f5f7;
  line-height: 1.65;
  font-size: 16px;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1.1rem;
  background: #1e3a5f;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
header .site { font-weight: 700; letter-spacing: 0.01em; }
header nav { display: flex; flex-wrap: wrap; gap: 0.4rem 0.95rem; align-items: center; }
header a { color: #cdd9ea; text-decoration: none; font-size: 0.95rem; }
header a:hover { color: #fff; }
form.inline { display: inline; margin: 0; }
form.inline button { margin: 0; padding: 0.25rem 0.6rem; font-size: 0.85rem; background: #35567f; }
main { max-width: 48rem; margin: 0 auto; padding: 1.1rem; }

h1 { font-size: 1.5rem; margin: 0.2rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.8rem; padding-bottom: 0.3rem; border-bottom: 1px solid #e3e6ea; }
p { margin: 0.6rem 0; }

.banner {
  background: #fff3cd;
  border: 1px solid #e0c56e;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
label { display: block; margin: 1rem 0 0.35rem; font-weight: 600; font-size: 0.95rem; }
input[type="text"], input[type="password"], input[type="date"], input[type="number"],
input[type="file"], textarea, select {
  width: 100%;
  padding: 0.6rem 0.65rem;
  border: 1px solid #b8bfc7;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.6;
  background: #fff;
  color: inherit;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
button {
  margin-top: 1rem;
  padding: 0.6rem 1.3rem;
  font-size: 1rem;
  border: 0;
  border-radius: 6px;
  background: #1e3a5f;
  color: #fff;
  cursor: pointer;
}
button:hover { background: #274a76; }
.error { color: #b00020; font-weight: 600; }
.muted { color: #6b7280; }
.card {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.card p { margin: 0.4rem 0; }
.card hr { border: 0; border-top: 1px solid #e3e6ea; margin: 0.8rem 0; }
fieldset {
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  padding: 0.8rem 1rem 1rem;
  margin: 0 0 1.1rem;
  background: #fff;
}
fieldset legend { font-weight: 600; padding: 0 0.4rem; }
hr { border: 0; border-top: 1px solid #e3e6ea; margin: 0.9rem 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.92rem; }
th, td { border: 1px solid #e2e5e9; padding: 0.5rem 0.55rem; text-align: left; vertical-align: top; }
th { background: #f0f2f5; }
/* Marks the daily-log card a dashboard date link jumped to. Cosmetic only — the
   browser scrolls to the anchor whether or not this rule was loaded. */
.card:target { outline: 2px solid #1e3a5f; outline-offset: 2px; }
.ok { color: #1a7f37; font-weight: 600; }
.miss { color: #b00020; font-weight: 600; }
canvas { touch-action: none; border: 1px solid #ccc; background: #fff; border-radius: 6px; }
details { margin: 0.8rem 0; }
summary { cursor: pointer; font-weight: 600; }
@media (min-width: 700px) {
  main { padding: 1.6rem; }
}
