:root {
  --bg: #f3f4f6;
  --card: #fff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #0f766e;
  --danger: #b91c1c;
  --line: #e5e7eb;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.wrap {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
header ul {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}
header .user {
  display: flex;
  align-items: flex-end;
}
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.spacer {
  flex: 1;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stack label {
  font-size: 13px;
  color: var(--muted);
}
input,
select,
button,
a.button {
  border: 1px solid #d1d5db;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
}
input:disabled,
select:disabled,
button:disabled,
a.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
input.active,
select.active,
button.active,
a.button.active {
  border-color: var(--line);
  background: #fff;
}
input {
  min-width: 260px;
}
button.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
button.danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}
.job,
.doc {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.simple-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.simple-table th,
.simple-table td {
  border-top: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}
.badge.ok {
  border-color: #16a34a;
  color: #166534;
  background: #f0fdf4;
}
.badge.no {
  border-color: #9ca3af;
  color: #374151;
  background: #f9fafb;
}
