* { box-sizing: border-box; }
body { font-family: "Hiragino Kaku Gothic ProN", system-ui, sans-serif; margin: 0; background: #f4f1ec; color: #222; }
.wrap { max-width: 640px; margin: 0 auto; padding: 12px; }
nav { display: flex; gap: 6px; margin-bottom: 12px; }
nav a { flex: 1; text-align: center; padding: 10px 0; background: #fff; border-radius: 8px; text-decoration: none; color: #555; font-weight: 700; font-size: 14px; }
nav a.on { background: #1e1a18; color: #fff; }
.card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
h1 { font-size: 18px; margin: 0 0 8px; }
h2 { font-size: 15px; margin: 12px 0 6px; }
label { display: block; font-size: 13px; color: #555; margin-top: 8px; }
input, select { width: 100%; font-size: 17px; padding: 10px; border: 1px solid #ccc; border-radius: 8px; margin-top: 4px; }
button { font-size: 16px; padding: 12px; border-radius: 10px; border: 1px solid #ccc; background: #fff; font-weight: 700; }
button.primary { background: #1e1a18; color: #fff; border-color: #1e1a18; width: 100%; margin-top: 12px; }
button.small { font-size: 13px; padding: 6px 10px; }
.qty { display: grid; grid-template-columns: 1fr 56px 90px 56px; gap: 6px; align-items: center; margin-top: 8px; }
.qty .name { font-weight: 700; }
.qty input { text-align: right; }
.row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.row.total { font-weight: 800; font-size: 16px; border: 0; }
.muted { color: #777; font-size: 12px; }
.err { color: #c0392b; }
.ok { color: #1a7f37; }
.late { background: #fdecea; }
.gate { max-width: 360px; margin: 60px auto; text-align: center; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { padding: 6px 4px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
td.r, th.r { text-align: right; }
