/* ===================== Admin dashboards (D60) ===================== */
.dashnav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line);margin:-4px 0 4px}
.dashnav button{border:0;background:transparent;padding:10px 14px;font-weight:600;font-size:14px;color:var(--muted);white-space:nowrap;border-bottom:3px solid transparent;border-radius:6px 6px 0 0}
.dashnav button:hover{color:var(--ink);background:var(--sunk)}
.dashnav button[aria-selected="true"]{color:var(--accent);border-bottom-color:var(--accent)}
.dashfilters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.dashfilters .search{flex:1 1 240px}
.dashfilters select{border:1px solid var(--line);background:var(--surface);border-radius:9px;padding:9px 10px;min-height:42px;max-width:100%}

/* Wide tables: horizontal scroll, frozen first column, frozen header */
.matrix.wide{max-height:70vh;overflow:auto;margin:0 -16px;padding:0 16px;-webkit-overflow-scrolling:touch}
.matrix.wide table{border-collapse:separate;border-spacing:3px;min-width:100%;width:max-content}
.matrix.wide thead th{position:sticky;top:0;background:var(--surface);z-index:2;vertical-align:bottom}
.matrix.wide tfoot td,.matrix.wide tfoot th{border-top:1px solid var(--line);padding-top:6px;color:var(--muted)}
.matrix.wide .stick{position:sticky;left:0;background:var(--surface);z-index:3;text-align:left;min-width:150px;max-width:220px;padding-right:8px}
.matrix.wide thead .stick{z-index:4}
.matrix.wide th.stick button{all:unset;cursor:pointer;font-weight:600;font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.matrix.wide th.stick button:hover{text-decoration:underline}
.matrix.wide .sub{display:block;font-size:11.5px;font-weight:400;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.matrix.wide td{min-width:42px}
.matrix .cell{min-width:40px}
.matrix th.cat-mandatory{box-shadow:inset 0 -3px 0 #B42318}
.matrix th.cat-competency{box-shadow:inset 0 -3px 0 #156FA8}
.matrix th.cat-awareness{box-shadow:inset 0 -3px 0 #92A5B6}
.catdot{display:inline-block;width:14px;height:4px;border-radius:2px;margin-right:5px;vertical-align:middle}
.catdot.mandatory{background:#B42318}.catdot.competency{background:#156FA8}.catdot.awareness{background:#92A5B6}
.lg{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;color:var(--muted);margin-right:6px}

/* Competency levels: one hue, light → dark (sequential), number always printed */
.cell.lv1{background:#EAF4FB;color:#0D2F48}
.cell.lv2{background:#BFE3F7;color:#0D2F48}
.cell.lv3{background:#1A83C4;color:#fff}
.cell.lv4{background:#0D2F48;color:#fff}
.cell.sw{display:inline-grid;width:22px;height:20px;font-style:normal;font-size:11px}
.matrix.comp th.vert{height:150px;padding:0 2px}
.matrix.comp th.vert span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;max-height:146px;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--ink);font-weight:500}

/* People table */
.matrix.table table{border-spacing:0}
.matrix.table th,.matrix.table td{padding:8px 10px;border-bottom:1px solid var(--line);font-size:13.5px;white-space:nowrap;text-align:left}
.matrix.table th.num,.matrix.table td.num{text-align:right;font-variant-numeric:tabular-nums}
.matrix.table thead th button{all:unset;cursor:pointer;font-weight:600;color:var(--muted);font-size:12.5px}
.matrix.table thead th button:hover{color:var(--ink)}
.matrix.table thead th button[aria-sort="ascending"],.matrix.table thead th button[aria-sort="descending"]{color:var(--accent)}
.matrix.table tbody tr:hover td,.matrix.table tbody tr:hover th{background:var(--sunk)}

/* Overview charts: stacked status bars with 2 px gaps, rounded ends */
.charts h2{font-size:17px}
.sbars{display:flex;flex-direction:column;gap:7px}
.sbar{display:grid;grid-template-columns:62px 1fr 42px;gap:8px;align-items:center;font-size:12.5px}
.sbar .sl{font-family:var(--mono);font-weight:500;overflow:hidden;text-overflow:ellipsis}
.sbar .st{display:flex;gap:2px;height:14px}
.sbar .sv{text-align:right;font-weight:600}
.seg{display:block;height:100%;min-width:3px;border-radius:2px}
.lg .seg{width:14px;height:10px;display:inline-block}
.seg.ok{background:var(--ok)}
.seg.warn{background:#E0A43A}
.seg.bad{background:var(--bad)}
.seg.miss{background:repeating-linear-gradient(135deg,var(--bad) 0 2px,transparent 2px 5px);box-shadow:inset 0 0 0 1px var(--bad)}
.newbox{border:1px dashed var(--accent);border-radius:10px;padding:12px;background:var(--accent-bg)}

@media (max-width:640px){
  .dashnav button{padding:10px 12px;font-size:14px}
  .matrix.wide{max-height:none}
  .matrix.wide .stick{min-width:120px;max-width:150px}
  .sbar{grid-template-columns:56px 1fr 38px}
}

/* ===== Profile photo (D62) ===== */
.avph{object-fit:cover;padding:0;background:var(--sunk)}
img.av.lg{width:72px;height:88px}

/* ===== Feed: reading column + side panel, compact composer (D63) ===== */
.feedgrid{display:flex;flex-direction:column;gap:16px}
.feedmain{display:flex;flex-direction:column;gap:18px;min-width:0}
.feedside{display:flex;flex-direction:column;gap:16px;min-width:0}
.post{padding:18px 20px;gap:12px}
.composer-card.compact{padding:12px 14px}
.cmp-mini{display:flex;gap:10px;align-items:center}
.cmp-fake{flex:1;min-width:0;text-align:left;border:1px solid var(--line);background:var(--sunk);border-radius:999px;padding:11px 16px;color:var(--muted);font-size:15px;cursor:text}
.cmp-fake:hover{border-color:var(--accent)}
.snap h2{font-size:16px}
.snapstats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.snapstats div{background:var(--sunk);border-radius:8px;padding:8px 6px;text-align:center}
.snapstats b{display:block;font-family:var(--display);font-size:22px;line-height:1}
.snapstats span{font-size:11.5px;color:var(--muted)}
.snapstats .bad b{color:var(--bad)} .snapstats .warn b{color:var(--warn)}
@media (min-width:1024px){
  main.v-feed{max-width:1180px}
  .feedgrid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
  .feedmain{grid-column:1;grid-row:1;max-width:760px}
  .feedside{grid-column:2;grid-row:1;position:sticky;top:84px}
}

/* ===== Visitor view (D61) ===== */
.cov{display:inline-flex;align-items:center;gap:8px;min-width:150px}
.cov .trk{flex:1;height:8px;border-radius:4px;background:var(--sunk);overflow:hidden;min-width:90px}
.cov .trk span{display:block;height:100%;background:var(--accent);border-radius:4px}
main.v-visitor{max-width:1180px}
