* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d2433; background: #f6f7fb; }
header.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 20px; background: #24304a; color: #fff; }
header.top a { color: #dfe6ff; text-decoration: none; }
header.top a[aria-current="page"] { color: #fff; font-weight: 600; text-decoration: underline; }
.brand { font-weight: 700; font-size: 1.2rem; color: #fff !important; }
.who { margin-left: auto; font-size: .9rem; opacity: .85; }
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; width: 100%; }
main { max-width: 960px; margin: 0 auto; padding: 20px; }
footer { text-align: center; color: #667; font-size: .85rem; padding: 24px; }
.flash { background: #e3f6e8; border: 1px solid #9bd3aa; padding: 8px 12px; border-radius: 6px; }
.errors { background: #fde8e8; border: 1px solid #f0a3a3; padding: 8px 12px; border-radius: 6px; }
.field { display: flex; flex-direction: column; margin: 0 0 12px; max-width: 420px; }
.field.check { flex-direction: row; gap: 8px; align-items: center; }
input, textarea { font: inherit; padding: 6px 8px; border: 1px solid #b8bfd0; border-radius: 4px; }
button, .button { font: inherit; padding: 6px 12px; border: 0; border-radius: 4px; background: #3a5bd9; color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
form.qty, .task form { display: inline; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e3e6ee; }
caption { text-align: left; color: #556; padding: 4px 0; }
.tiles, .products, .cards, .tasks { list-style: none; padding: 0; display: grid; gap: 12px; }
.tiles, .products, .cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tiles li, .product, .card, .note, .profile { background: #fff; border: 1px solid #e3e6ee; border-radius: 8px; padding: 12px; }
.task { background: #fff; border: 1px solid #e3e6ee; border-radius: 6px; padding: 8px 12px; display: flex; gap: 12px; align-items: center; }
.task.done .title { text-decoration: line-through; color: #778; }
.badge { background: #e3f6e8; padding: 2px 8px; border-radius: 10px; font-size: .85rem; }
.price { font-weight: 600; }
.totals { display: grid; grid-template-columns: max-content max-content; gap: 4px 24px; }
.totals dd { margin: 0; font-weight: 600; }
.split { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
