* {
  box-sizing: border-box;
}
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 1rem 1.25rem;
  background: #f4f4f5;
  color: #18181b;
  line-height: 1.45;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
}
.actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
a.btn,
button.btn {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
a.btn-primary,
button.btn-primary {
  background: #18181b;
  color: #fafafa;
}
a.btn-primary:hover,
button.btn-primary:hover {
  background: #27272a;
}
a.btn-secondary {
  background: #fff;
  color: #18181b;
  border-color: #d4d4d8;
}
a.btn-secondary:hover {
  background: #f4f4f5;
}
a.btn-danger {
  background: #b91c1c;
  color: #fff;
}
a.btn-danger:hover {
  background: #991b1b;
}
.msg {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.msg.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.msg.warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  padding: 1rem;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #e4e4e7;
  vertical-align: middle;
}
th {
  font-weight: 600;
  background: #fafafa;
}
tr:last-child td {
  border-bottom: none;
}
form.inline {
  display: inline;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}
.field {
  margin-bottom: 1rem;
}
input[type='text'],
input[type='number'],
select {
  width: 100%;
  max-width: 28rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  font-size: 0.95rem;
}
input[type='checkbox'] {
  width: auto;
  margin-right: 0.35rem;
}
.checkbox-row {
  display: flex;
  align-items: center;
}
.checkbox-row label {
  margin-bottom: 0;
  font-weight: normal;
}

.demo-section {
  margin-bottom: 1.25rem;
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 48%);
}
.demo-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 650;
}
.demo-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #3f3f46;
  max-width: 52rem;
}
.demo-table {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.demo-table th:last-child,
.demo-table td.demo-hint {
  min-width: 12rem;
}
.demo-form {
  margin: 0;
}

.th-print {
  white-space: nowrap;
  vertical-align: bottom;
}
.th-print-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.select-all-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: normal;
  cursor: pointer;
  font-size: 0.8rem;
}
.select-all-label input {
  margin: 0;
  cursor: pointer;
}
.queue-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

