/* meet — 일정 투표. 네이비 + 슬레이트, 외부 폰트·CDN 없음. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #1e3a5f; --navy-d: #16304f; --ink: #1e293b; --mut: #64748b;
  --line: #e2e8f0; --line2: #cbd5e1; --bg: #eef2f6; --card: #fff;
  --sel: #e8eef7; --ok: #15803d; --bad: #b91c1c; --warn: #b45309;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; padding: 24px 12px 60px; }
.wrap { max-width: 980px; margin: 0 auto; }
header.top { border-bottom: 3px solid var(--navy); padding-bottom: 14px; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
header.top h1 { font-size: 1.55em; }
header.top h1 a { color: var(--navy); text-decoration: none; }
header.top p { color: var(--mut); font-size: .92em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(30,58,95,.06); }
h2 { font-size: 1.25em; margin-bottom: 14px; }
h3 { font-size: 1.05em; margin: 18px 0 8px; }
label { display: block; font-weight: 600; font-size: .92em; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=date], input[type=datetime-local], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 8px; font-size: 1em; background: #fff; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.hint { color: var(--mut); font-size: .85em; margin-top: 4px; }
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 10px 18px; font-size: .95em; font-weight: 700; cursor: pointer; background: var(--navy); color: #fff; text-decoration: none; }
.btn:hover { background: var(--navy-d); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line2); }
.btn.danger { background: var(--bad); }
.btn.small { padding: 6px 12px; font-size: .85em; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input[type=text], .toolbar select { width: auto; flex: 1 1 180px; }
.badge { display: inline-block; font-size: .78em; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #e8eef7; color: var(--navy); margin-right: 6px; vertical-align: middle; }
.badge.grey { background: #f1f5f9; color: #475569; }
.badge.red { background: #fee2e2; color: var(--bad); }
.badge.green { background: #dcfce7; color: #166534; }
.badge.amber { background: #fef3c7; color: var(--warn); }
.poll-title { font-size: 1.12em; font-weight: 700; }
.poll-title a { color: var(--ink); text-decoration: none; }
.poll-title a:hover { color: var(--navy); text-decoration: underline; }
.meta { color: var(--mut); font-size: .88em; margin-top: 4px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; cursor: pointer; }
.opt:hover { border-color: var(--line2); }
.opt.checked { background: var(--sel); border-color: var(--navy); }
.opt input { width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.opt .lbl { flex: 1; }
.opt .cnt { color: var(--mut); font-size: .88em; white-space: nowrap; }
.optrow { display: flex; gap: 8px; margin-bottom: 8px; }
.optrow input[type=date] { flex: 1 1 160px; }
.optrow input[type=text] { flex: 1 1 120px; }
table.matrix { width: 100%; border-collapse: collapse; font-size: .92em; }
table.matrix th, table.matrix td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; }
table.matrix th.top { background: #fef3c7; }
table.matrix td.top { background: #fffbeb; font-weight: 700; }
table.matrix td.hot { background: #fef08a; font-weight: 700; }
table.matrix td.blue { background: #bfdbfe; font-weight: 700; }
.bar { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: var(--navy); }
.bar.top > div { background: #d97706; }
.md h1, .md h2, .md h3 { margin: 12px 0 6px; }
.md p { margin: 6px 0; }
.md ul { margin: 6px 0 6px 20px; }
.notice { padding: 12px 14px; border-radius: 9px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; margin-bottom: 14px; }
.notice.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.notice.err { background: #fef2f2; border-color: #fecaca; color: var(--bad); }
.loading, .empty { color: var(--mut); padding: 30px 0; text-align: center; }
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 12px; padding: 22px; width: 100%; max-width: 420px; }
.modal h3 { margin: 0 0 12px; }
footer { color: var(--mut); font-size: .85em; text-align: center; margin-top: 30px; }
@media (max-width: 600px) {
  body { padding: 14px 8px 50px; }
  .card { padding: 16px; }
  .optrow { flex-wrap: wrap; }
  header.top h1 { font-size: 1.3em; }
  table.matrix { font-size: .85em; }
  table.matrix th, table.matrix td { padding: 7px 8px; }
  .btn.small { padding: 9px 13px; font-size: .9em; }
  .opt { padding: 12px; }
  .toolbar input[type=text], .toolbar select { flex-basis: 100%; }
}
