* { box-sizing: border-box; }
body { font-family: -apple-system, system-ui, sans-serif; margin: 0; background: #f4f6f9; color: #0b1220; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #0b1220; color: #fff; }
.topbar a { color: #fff; text-decoration: none; margin-left: 12px; font-size: 15px; }
.brand { font-weight: 700; margin-left: 0; }
.btn-small { background: #2f6fed; padding: 6px 12px; border-radius: 6px; }
.link-btn { background: none; border: none; color: #fff; cursor: pointer; font-size: 15px; margin-left: 12px; }
.inline { display: inline; }
.container { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; }
.card { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
input, select, textarea, button { font-size: 16px; padding: 10px; border-radius: 8px; border: 1px solid #ccc; width: 100%; margin-bottom: 8px; }
button, .btn { background: #2f6fed; color: #fff; border: none; cursor: pointer; text-align: center; text-decoration: none; display: block; }
.btn-outline { background: #fff; color: #2f6fed; border: 1px solid #2f6fed; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 8px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.line-item { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4px; margin-bottom: 4px; }
canvas.sig-pad { border: 1px dashed #999; width: 100%; height: 150px; touch-action: none; background: #fff; }
.hero { text-align: center; padding: 40px 16px; }
.pricing { text-align: center; font-size: 20px; margin: 16px 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.badge.paid { background: #d4f4dd; color: #14803c; }
.badge.overdue { background: #fbdada; color: #b31212; }
.badge.open { background: #e2e8f0; color: #334155; }
