/* «ما يتصل بهذا»: the web of the office, drawn plainly */
.lk-card .lk-gaps { padding: 10px 14px 0; }
.lk-card .lk-gaps .banner { margin-bottom: 6px; }
.lk-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 18px; padding: 8px 14px 14px; }
.lk-g { min-width: 0; padding: 6px 0 10px; }
.lk-g h4 { margin: 4px 0 6px; font-size: 12px; font-weight: 600; color: var(--ui-muted); letter-spacing: .02em; }
.lk-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; text-decoration: none; color: inherit; border: 1px solid transparent; min-width: 0; }
a.lk-row:hover { background: var(--ui-cream); border-color: var(--ui-line); }
.lk-i { flex: none; width: 16px; text-align: center; color: var(--ui-gold-2); font-size: 12px; }
.lk-t { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; }
/* A paper's title and its line under it are read whole: they wrap rather than end in «…» (2026-10-24). */
.lk-t b { font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.lk-t small { font-size: 11px; color: var(--ui-muted); overflow-wrap: anywhere; }
.lk-m { flex: none; font-size: 11.5px; font-family: 'Courier Prime', monospace; color: var(--ui-ink-2); }
.lk-w { flex: none; font-size: 11px; }
.lk-more { padding: 2px 8px; }

/* التماسك: the page that walks the whole office */
.knit-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 4px 0 18px; }
.knit-c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px; text-align: center; }
.knit-c b { font-size: 24px; font-family: var(--ui-serif); }
.knit-c span { font-size: 12px; color: var(--ui-muted); }
.knit-c.bad b { color: var(--ui-bad); }
.knit-c.warn b { color: var(--ui-warn); }
.knit-c.ok b { color: var(--ui-ok); }

/* A state or a seat beside a line stays on one line: wrapped into two, it crowded the title out of its row. */
.lk-row .tag { flex: none; white-space: nowrap; }
@media (max-width: 760px) { .lk-row .tag { white-space: normal; max-width: 60%; } }
/* ---- the second visual review (2026-10-24) */
/* The nine figures sit in one row (three rows of three on a phone), never one left alone on a line. */
.stats.knit-stats { grid-template-columns: repeat(9, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stats.knit-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* A row's kind is a chip before its name; the «See what it is tied to» links and the buttons keep one column in both lists. */
.knit-k { font-weight: 500; margin-inline-end: 4px; vertical-align: 1px; }
table.knit-t td:nth-child(2) { width: 210px; }
table.knit-t td:nth-child(3) { width: 230px; }
@media (max-width: 760px) {
  #view table.knit-t, #view table.knit-t tbody { display: block; width: 100%; }
  #view table.knit-t tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px; border-bottom: 1px solid var(--ui-line); }
  #view table.knit-t td { display: block; padding: 0; border: 0; width: auto; }
  #view table.knit-t td:first-child { flex: 1 1 100%; }
  #view table.knit-t td:empty { display: none; }
}
/* The numbers outside the scheme: a heading on the page like the others, its folded list in a card beneath. */
.knit-unfit > summary { list-style: none; }
.knit-unfit > summary::-webkit-details-marker { display: none; }
