* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #111; background: #fff; }
a { color: inherit; text-decoration: none; }
.app-header { position: sticky; top: 0; background: #000; color: #fff; padding: 12px 16px; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 36px; height: 36px; border-radius: 8px; background: #111; border: 2px solid #fff; display: grid; place-items: center; font-weight: 700; }
.tagline { margin: 0; opacity: 0.8; font-size: 0.9rem; }
main { padding: 16px; padding-bottom: 88px; }
.view { display: none; animation: fade .18s ease-in; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.card { border: 1px solid #eee; border-radius: 12px; padding: 14px; background: #fafafa; }
.card:hover { background: #f3f3f3; }
.list { display: grid; gap: 10px; }
label { display: block; margin-bottom: 12px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="date"], textarea { width: 100%; padding: 10px; margin-top: 6px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.checkbox-group { display: grid; gap: 6px; margin-top: 6px; font-weight: 400; }
button { display: inline-block; padding: 12px 14px; border-radius: 10px; border: none; background: #111; color: #fff; font-weight: 700; cursor: pointer; }
button:hover { filter: brightness(1.1); }
.success { color: #0a7a24; margin-top: 8px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #000; color: #fff; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #222; }
.tab { padding: 12px 6px; border: none; background: transparent; color: #aaa; font-weight: 600; }
.tab.active { color: #fff; }
.app-footer { text-align: center; padding: 12px; color: #666; font-size: 0.85rem; }
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
:focus { outline: 3px solid #000; outline-offset: 2px; }
