* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: #FAFAF8;
  color: #222;
}
main { max-width: 1200px; margin: 0 auto; padding: 16px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #fff; border-bottom: 1px solid #ddd;
}
.brand { font-weight: 600; }
.topbar nav a { margin-left: 14px; color: #555; text-decoration: none; }
.topbar nav a.on { color: #3B6D11; font-weight: 600; }

.flash { padding: 10px 14px; border-radius: 8px; margin: 12px 0; }
.flash.ok { background: #EAF3DE; color: #173404; }
.flash.bad { background: #FCEBEB; color: #501313; }

.week-head { text-align: center; margin: 8px 0 4px; }
.week-head h1 { margin: 10px 0 2px; font-size: 24px; }
.week-head h1 em { font-style: normal; color: #3B6D11; }
.week-head .range { margin: 0 0 10px; color: #777; }
.week-nav, .week-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.board-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 6px 0 10px; }
.board-tabs .tab {
  padding: 6px 16px; border: 1px solid #ccc; border-radius: 999px;
  background: #fff; color: #555; text-decoration: none; font-size: 14px;
}
.board-tabs .tab.on { background: #3B6D11; border-color: #3B6D11; color: #fff; font-weight: 600; }

.btn {
  display: inline-block; padding: 7px 14px; border: 1px solid #ccc; border-radius: 8px;
  background: #fff; color: #333; text-decoration: none; font-size: 14px; cursor: pointer;
}
.btn.primary { background: #3B6D11; border-color: #3B6D11; color: #fff; }
.btn.danger { background: #fff; border-color: #C0392B; color: #C0392B; }
.btn.small { padding: 4px 10px; font-size: 13px; }

.board-wrap { overflow-x: auto; margin: 14px 0; }
.board { min-width: 980px; border: 2px solid #333; background: #fff; }
.head { display: flex; background: #F7F7F5; border-bottom: 2px solid #333; }
.time-head {
  width: 132px; flex: none; display: flex; align-items: center; justify-content: center;
  font-weight: 600; border-right: 1px solid #bbb;
}
.day-head {
  flex: 1; text-align: center; padding: 5px 0 6px; border-right: 1px solid #ddd;
  display: flex; flex-direction: column;
}
.day-head:last-child { border-right: none; }
.day-head .dname { font-weight: 600; }
.day-head .ddate { font-size: 12px; color: #666; }
.day-head.sat .dname { color: #2B6DB3; }
.day-head.sun .dname { color: #C0392B; }

.body { display: flex; }
.time-col { width: 132px; flex: none; border-right: 1px solid #bbb; }
.time-cell {
  height: 22px; font-size: 11px; color: #666; display: flex;
  align-items: center; justify-content: center; border-top: 1px solid #E9E9E9;
}
.time-cell.hour { border-top-color: #CFCFCF; }
.time-col .time-cell:first-child { border-top: none; }

.day-col { flex: 1; position: relative; border-right: 1px solid #E6E6E6; }
.day-col:last-child { border-right: none; }
.row-cell { height: 22px; border-top: 1px solid #E9E9E9; }
.row-cell.hour { border-top-color: #CFCFCF; }
.day-col .row-cell:first-child { border-top: none; }

.block {
  position: absolute; border: 2px solid; border-radius: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; text-decoration: none; padding: 2px 4px;
}
.block .bt { font-size: 12px; font-weight: 600; line-height: 1.25; }
.block .bm { font-size: 11px; opacity: 0.75; }
.block:hover { filter: brightness(0.96); }

.card {
  background: #fff; border: 1px solid #ddd; border-radius: 12px;
  padding: 16px 18px; margin: 16px 0;
}
.card h2 { margin: 0 0 10px; font-size: 18px; }
.hint { color: #777; font-size: 13px; margin: 0 0 12px; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; }
input, select {
  padding: 8px 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px;
  font-family: inherit; background: #fff; color: #222;
}
.form-actions { margin-top: 14px; display: flex; gap: 8px; }

.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th, .list td { padding: 8px 6px; border-bottom: 1px solid #eee; text-align: left; }
.list th { color: #777; font-weight: 500; font-size: 13px; }
.inline { display: inline-flex; gap: 6px; align-items: center; }
.chip {
  display: inline-block; width: 20px; height: 20px; border-radius: 5px; border: 2px solid;
}

.login-body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: #FAFAF8;
}
.login-card {
  background: #fff; border: 1px solid #ddd; border-radius: 14px; padding: 28px;
  width: 320px; display: flex; flex-direction: column; gap: 12px; text-align: center;
}
.login-card h1 { font-size: 20px; margin: 0 0 6px; }
.login-card button {
  padding: 10px; border: none; border-radius: 8px; background: #3B6D11; color: #fff;
  font-size: 15px; cursor: pointer;
}
