* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; background: #f6f7f9; color: #1d2329; font-size: 15px; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e3e6ea; position: sticky; top: 0; }
header nav { display: flex; gap: 4px; flex-wrap: wrap; }
header nav a { padding: 6px 10px; border-radius: 6px; color: #1d2329; text-decoration: none; }
header nav a.on { background: #1f5fbf; color: #fff; }
#who { margin-left: auto; color: #5b6570; font-size: 13px; }
main { max-width: 860px; margin: 0 auto; padding: 12px; }
.card { background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; padding: 14px; margin: 10px 0; }
.card.ok { border-color: #9cc9a3; background: #f2faf3; }
.warn { color: #9a4b00; background: #fff6e8; }
h1, h2, h3, h4 { margin: 4px 0 10px; }
h2 { font-size: 18px; } h3 { font-size: 16px; } h4 { font-size: 14px; color: #5b6570; }
input, select, button { font: inherit; padding: 8px 10px; border: 1px solid #c9ced4; border-radius: 6px; margin: 4px 0; }
form input, form select { display: block; width: 100%; }
label input, label select { display: inline-block; width: auto; }
.lines label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lines input { width: 160px; text-align: right; }
.row { display: flex; gap: 8px; } .row > * { flex: 1; }
button { background: #1f5fbf; color: #fff; border-color: #1f5fbf; cursor: pointer; }
button.ghost { background: #fff; color: #1f5fbf; padding: 4px 8px; }
.login { max-width: 360px; margin: 60px auto; }
.small { font-size: 13px; color: #5b6570; }
.total { font-weight: 600; }
.results { display: flex; flex-direction: column; gap: 4px; }
.pick { background: #fff; color: #1d2329; border-color: #c9ced4; text-align: left; }
.picked { font-weight: 600; color: #1f5fbf; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 6px 4px; border-bottom: 1px solid #eef0f2; text-align: left; vertical-align: middle; }
td.num, th.num, input.num { text-align: right; }
td input.num { width: 120px; }
tr.sum td { font-weight: 700; border-top: 2px solid #c9ced4; }
tr.cancelled td { color: #9aa3ab; text-decoration: line-through; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1d2329; color: #fff; padding: 10px 16px; border-radius: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }
table.click tr:not(.detail) { cursor: pointer; }
table.click tr:not(.detail):hover td { background: #f2f6fc; }
tr.detail > td { background: #f8f9fb; padding-left: 16px; }
.scroll { overflow-x: auto; }
table.grid td, table.grid th { white-space: nowrap; font-size: 13px; }
table.grid td.hit, table.grid td.sumc { cursor: pointer; color: #1f5fbf; }
.detailbox { margin-top: 8px; }
button.link { background: none; border: 0; color: #1f5fbf; padding: 0; margin: 0; text-decoration: underline; }
