* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; background: #f1f5f9; color: #1e293b; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
header { background: #0f2a4a; color: #fff; padding: 18px 0; }
.head-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.brand { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.logo { background: #2563eb; color: #fff; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 16px; }
.tag { font-size: 11px; background: #f59e0b; color: #1e293b; padding: 3px 8px; border-radius: 20px; font-weight: 700; }
.head-sub { font-size: 13px; color: #94a3b8; }
main { padding: 28px 0 60px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.card h2 { margin: 0 0 6px; font-size: 18px; }
.muted { color: #64748b; font-size: 13px; }
.muted-card { background: #f8fafc; }
label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin: 12px 0 4px; }
input, select { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
input:focus, select:focus { outline: none; border-color: #2563eb; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 200px; }
.btnrow { margin-top: 16px; }
.btn { background: #0f2a4a; color: #fff; border: none; padding: 11px 20px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn:hover { background: #1e3a5f; }
.btn.primary { background: #16a34a; font-size: 16px; padding: 13px 28px; }
.btn.primary:hover { background: #15803d; }
.btn.ghost { background: #e2e8f0; color: #1e293b; }
.btn.ghost:hover { background: #cbd5e1; }
.btn.small { padding: 6px 12px; font-size: 12px; margin-right: 6px; }
.ok { color: #16a34a; font-size: 13px; margin-left: 10px; }
.deadlines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.dl { border: 1px solid #e2e8f0; border-left: 5px solid #16a34a; border-radius: 8px; padding: 12px 14px; }
.dl.due_soon { border-left-color: #f59e0b; }
.dl.overdue { border-left-color: #dc2626; }
.dl .d { font-size: 12px; color: #64748b; }
.dl .t { font-weight: 700; margin: 4px 0; }
.dl .s { font-size: 13px; font-weight: 700; }
.dl.on_track .s { color: #16a34a; } .dl.due_soon .s { color: #b45309; } .dl.overdue .s { color: #dc2626; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e2e8f0; }
th { background: #f8fafc; font-size: 12px; color: #475569; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.err { background: #fee2e2; color: #991b1b; }
.errlist { color: #991b1b; font-size: 12px; margin: 4px 0 0; padding-left: 18px; }
.preview-scroll { overflow-x: auto; margin-top: 14px; }
footer { text-align: center; color: #94a3b8; font-size: 12px; padding: 20px; }
a { color: #2563eb; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } .deadlines { grid-template-columns: 1fr; } }

/* Multi-format import UI */
.tabs { display: flex; gap: 8px; margin: 16px 0; border-bottom: 2px solid #e5e7eb; padding-bottom: 8px; }
.tab { background: none; border: none; padding: 8px 16px; font-size: 15px; font-weight: 600; color: #6b7280; cursor: pointer; border-radius: 8px 8px 0 0; }
.tab:hover { color: #111827; background: #f3f4f6; }
.tab.active { color: #1d4ed8; background: #eff6ff; }
.tabpane { display: none; }
.tabpane.active { display: block; }
.badge.warn { background: #fef3c7; color: #92400e; }
.tpl { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; margin: 8px 0; background: #fafafa; }
.tpl .btn { margin-top: 8px; }
textarea { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-family: monospace; font-size: 13px; }
.map-sel { min-width: 220px; padding: 6px; border: 1px solid #d1d5db; border-radius: 6px; }

/* Payroll integrations (roadmap) */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.provider-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; background: #fafbfc; }
.provider-card .provider-name { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.provider-card p.muted { margin: 6px 0; }
.provider-card code { font-size: 11px; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.provider-more { display: flex; flex-direction: column; justify-content: center; border-style: dashed; }
.mapping-detail { margin-top: 10px; overflow-x: auto; }
.mapping-detail table { font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { background: #e2e8f0; }

/* Pricing */
.pricing { padding: 40px 0; text-align: center; }
.pricing h2 { font-size: 28px; margin-bottom: 8px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; text-align: left; }
@media (max-width: 800px) { .price-grid { grid-template-columns: 1fr; } }
.card.price { display: flex; flex-direction: column; }
.card.price.featured { border: 2px solid #1d4ed8; }
.card.price .amount { font-size: 36px; font-weight: 800; margin: 12px 0; }
.card.price .amount span { font-size: 16px; font-weight: 400; color: #6b7280; }
.card.price ul { list-style: none; padding: 0; margin: 12px 0 0; }
.card.price ul li { padding: 6px 0; border-top: 1px solid #f1f5f9; font-size: 14px; }
.card.price ul li:before { content: "✓ "; color: #16a34a; font-weight: 700; }
