* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; line-height: 1.4; }
.container { max-width: 980px; margin: 0 auto; padding: 16px; }

.top { border-bottom: 1px solid #ddd; background: #fff; position: sticky; top: 0; }
.top .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; font-weight: 700; color: #111; }
.nav a { margin-left: 12px; text-decoration: none; color: #333; }
.nav a:hover { text-decoration: underline; }

.card { border: 1px solid #ddd; border-radius: 10px; padding: 14px; margin: 14px 0; background: #fff; }
.list { list-style: none; padding: 0; margin: 0; }

.grid { display: grid; grid-template-columns: 1fr 1fr 140px; gap: 12px; align-items: end; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

input, textarea, select, button { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; }
button, .btn { cursor: pointer; border: 1px solid #333; background: #111; color: #fff; padding: 10px 12px; border-radius: 10px; text-decoration: none; display: inline-block; }
.btn { width: auto; }
.meta { color: #555; font-size: 0.95rem; }

.prose { border-left: 3px solid #ddd; padding-left: 12px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid #eee; padding: 8px; text-align: left; }

.error { color: #b00020; font-weight: 600; }
.footer { color: #666; border-top: 1px solid #eee; margin-top: 24px; padding-top: 12px; }
.h3 { margin: 0 0 8px; }

.checkrow {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
}

.check input[type="checkbox"] {
  width: auto;
  transform: translateY(1px);
}
select[multiple] { min-height: 180px; }

.cards { display: grid; gap: 16px; }
