* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; color: #1a1a1a; background: #fafaf8; }
nav { background: #2f3b2f; padding: 10px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
nav a { color: #e8efe8; text-decoration: none; font-weight: 500; }
nav a:hover { text-decoration: underline; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; margin: 8px 0; }
h2 { font-size: 1.2rem; margin: 20px 0 8px; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
h3 { margin: 14px 0 6px; }
.head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.card { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.card.done { opacity: 0.5; text-decoration: line-through; }
.title { font-weight: 600; text-decoration: none; color: #1a1a1a; font-size: 1.05rem; }
.meta { color: #666; font-size: 0.85rem; margin: 2px 0; }
.note { color: #555; font-size: 0.9rem; }
.err { color: #a33; }
.badge { background: #2f3b2f; color: #fff; font-size: 0.7rem; padding: 1px 6px; border-radius: 10px; vertical-align: middle; }
.btn { display: inline-block; background: #2f3b2f; color: #fff; border: none; border-radius: 6px; padding: 6px 12px; cursor: pointer; text-decoration: none; font-size: 0.9rem; margin: 2px; }
.btn.small { padding: 2px 8px; font-size: 0.8rem; }
.btn.primary { font-size: 1rem; padding: 8px 16px; }
.actions { margin-top: 16px; }
form label { display: block; margin: 8px 0; }
input, select, textarea { font-size: 0.95rem; padding: 5px 8px; border: 1px solid #ccc; border-radius: 5px; width: 100%; max-width: 420px; }
.addform { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.addform input { width: auto; flex: 1 1 130px; max-width: 180px; }
.addform .btn { flex: 0 0 auto; }
.ingtable { width: 100%; border-collapse: collapse; }
.ingtable th, .ingtable td { text-align: left; padding: 4px; border-bottom: 1px solid #eee; vertical-align: top; }
.ingtable input, .ingtable select { width: 100%; max-width: none; }
.ingtable td:nth-child(2) input { width: 70px; }
.ingtable td:nth-child(4) select { width: 90px; }
.ingtable td:nth-child(5) input { width: 22px; }
#steprows textarea { margin: 6px 0; }
.scaleform { margin: 12px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scaleform input { width: 120px; }
ul, ol { line-height: 1.5; }
.body-text { white-space: pre-wrap; line-height: 1.5; background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
