/* Hub shell: left rail of sections + main area. Shared tokens and header come from /shared/ui.css. */
.hub { flex-direction: row; }
.hub-main { flex: 1; min-width: 0; padding: 24px var(--gutter); }
.hub-main h1 { font-size: 1.6rem; margin-bottom: 8px; }
@media (max-width: 760px) {
  .hub { flex-direction: column; }
}

/* Dashboard (hub home): tiles and two short tables. */
.dash { margin-top: 22px; }
.dash h2 { font-size: 1.25rem; margin-bottom: 10px; }
.dash h2 a { color: var(--ink); text-decoration: none; }
.dash h2 a:hover { color: var(--brand-2); }
.dash h3 { font-size: 1rem; margin: 18px 0 8px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
a.tile:hover { border-color: var(--brand-2); }
.tile .n { font: 700 1.7rem/1.1 var(--f-display); }
.tile .l { color: var(--muted); font-size: .9rem; }
.tile .v { font-weight: 600; color: var(--brand-2); font-size: .9rem; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.dtbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dtbl th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtbl td { padding: 8px 12px; border-top: 1px solid var(--line); }
.dtbl tbody tr { cursor: pointer; }
.dtbl tbody tr:hover { background: var(--surface-2); }
.dtbl .r { text-align: right; white-space: nowrap; }
.dtbl a { font-weight: 600; }
.dash .empty { padding: 16px; }
