:root {
  --bg: #fafafa;
  --surface: #fff;
  --text: #1b1f24;
  --dim: #667085;
  --border: #e4e7ec;
  --accent: #2f5fd0;
  --accent-text: #fff;
  --ok: #067647;
  --ok-bg: #e3f6ec;
  --warn: #93370d;
  --warn-bg: #fdf0e1;
  --off: #475467;
  --off-bg: #eef0f3;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101317;
    --surface: #171b21;
    --text: #e6e9ee;
    --dim: #98a2b3;
    --border: #2a303a;
    --accent: #7ea2ff;
    --accent-text: #0b1020;
    --ok: #6ce9a6;
    --ok-bg: #12301f;
    --warn: #fdb022;
    --warn-bg: #3a2a0e;
    --off: #b0b8c4;
    --off-bg: #232932;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 12px; line-height: 1.25; }
h2 { font-size: 1.05rem; margin: 28px 0 10px; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.brand { font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 16px; }
nav a { color: var(--dim); padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--text); text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.site-footer { border-top: 1px solid var(--border); padding: 16px 0; font-size: 0.875rem; color: var(--dim); }

.filters { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 20px; }
@media (min-width: 640px) {
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .wide { grid-column: 1 / -1; }
}
input, select, .btn {
  font: inherit; color: inherit; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; min-width: 0; width: 100%;
}
input:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn { width: auto; cursor: pointer; display: inline-block; text-align: center; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.filters .btn { grid-column: 1 / -1; }
@media (min-width: 640px) { .filters .btn { grid-column: auto; } }

.job { padding: 14px 0; border-bottom: 1px solid var(--border); }
.job h2 { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.3; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 0.9rem; }
.meta + .meta { margin-top: 2px; }
.dim, .meta.dim { color: var(--dim); font-size: 0.85rem; }
.tag, .badge {
  display: inline-block; font-size: 0.75rem; line-height: 1.5; padding: 0 8px; border-radius: 999px;
  background: var(--off-bg); color: var(--off); white-space: nowrap;
}
.tag.active, .badge.live { background: var(--ok-bg); color: var(--ok); }
.tag.closed, .badge.no-tenants { background: var(--warn-bg); color: var(--warn); }
.more { text-align: center; padding: 20px 0 0; }
.empty { color: var(--dim); padding: 24px 0; }

.back { margin: 0 0 8px; font-size: 0.9rem; }
.company { font-size: 1.1rem; margin: 0 0 8px; color: var(--dim); }
.actions { display: flex; gap: 8px; margin: 16px 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 0.9rem; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; }
.count { color: var(--dim); font-weight: 400; }
.history { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.history li { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.history .when { font-variant-numeric: tabular-nums; color: var(--dim); }

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 20px; }
@media (min-width: 640px) { .summary { grid-template-columns: repeat(6, 1fr); } }
.summary div { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; }
.summary strong { font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.summary span { color: var(--dim); font-size: 0.8rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--dim); font-weight: 600; font-size: 0.8rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.key { display: block; color: var(--dim); font-size: 0.75rem; }
