/* Program Dashboard (admin-dashboard.js), 11-15.
   The Work Hub's layout in EMS US colours: tabs at the top, filter chips,
   one row of scorecards, and the list behind a card dropping down under the
   row. The card is the Work Hub's spec (vo-app-work apps/Work/wk-scorecards.css):
   104px, 16px radius, 14px padding, centred LABEL → figure → one line,
   nothing else on the card. */

.dsh { --dsc-ac: var(--ems-navy-500); display: flex; flex-direction: column; gap: 0; }

/* ── tabs + live line ── */
.dsh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.dsh-top .dsh-tabs { margin: 0; }
.dsh-live { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--ems-font-ui, inherit); color: var(--ems-mute); }
.dsh-live i { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgba(31, 157, 85, .16); }
.dsh-refresh { border: 1px solid var(--ems-line, #e3e7ef); background: #fff; color: var(--ems-navy-600); border-radius: 999px; padding: 5px 11px; font: 600 12px/1 var(--ems-font-ui, inherit); cursor: pointer; width: auto; min-height: 0; }
.dsh-refresh:hover { background: var(--ems-navy-50); }
.dsh-refresh:disabled { opacity: .6; cursor: progress; }

/* ── filters: every chip changes the cards ── */
.dsh-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; }
.dsh-filters:empty { display: none; }
.dsh-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dsh-chips + .dsh-chips { padding-left: 18px; border-left: 1px solid var(--ems-line, #e3e7ef); }
.dsh-chip { border: 1px solid var(--ems-line, #e3e7ef); background: #fff; color: var(--ems-ink-2, #334155); border-radius: 999px; padding: 7px 13px; font: 600 13px/1 var(--ems-font-ui, inherit); cursor: pointer; width: auto; min-height: 0; transition: background-color .15s, color .15s, border-color .15s; }
.dsh-chip:hover { border-color: var(--ems-navy-200); color: var(--ems-navy-700); }
.dsh-chip.is-on { background: var(--ems-navy-700); border-color: var(--ems-navy-700); color: #fff; }
.dsh-chip:focus-visible, .dsc-card:focus-visible { outline: none; box-shadow: var(--ems-focus, 0 0 0 3px rgba(42, 56, 144, .3)); }

/* ── the row of cards ── */
.dsc-row { display: flex; gap: 12px; margin: 0 0 12px; }
.dsc-row > * { flex: 1 1 0; min-width: 0; }
.dsc-card {
  --_ac: var(--dsc-ac);
  box-sizing: border-box; height: 104px; padding: 14px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0;
  border: 1px solid color-mix(in srgb, var(--_ac) 25%, var(--ems-line, #e3e7ef));
  background: linear-gradient(135deg, color-mix(in srgb, var(--_ac) 10%, #fff), #fff);
  box-shadow: 0 1px 2px rgba(15, 34, 51, .06);
  font: inherit; color: inherit; cursor: pointer; width: auto; min-height: 0;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.dsc-card.is-red { --_ac: var(--ems-red-600, #c62828); }
.dsc-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px -8px rgba(15, 34, 51, .25); }
.dsc-card:active { transform: translateY(0) scale(.985); }
.dsc-card.is-on {
  border-color: color-mix(in srgb, var(--_ac) 40%, var(--ems-line, #e3e7ef));
  background: linear-gradient(135deg, color-mix(in srgb, var(--_ac) 16%, #fff), #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--_ac) 16%, transparent), 0 4px 12px rgba(15, 34, 51, .08);
}
.dsc-card.is-load { cursor: default; background: var(--ems-navy-50, #f3f5fb); border-color: transparent; animation: dsc-pulse 1.2s ease-in-out infinite alternate; }
@keyframes dsc-pulse { to { opacity: .55; } }
.dsc-l { max-width: 100%; margin: 0 0 7px; font: 800 11px/1.2 var(--ems-font-ui, inherit); letter-spacing: .06em; text-transform: uppercase; color: var(--ems-ink-2, #334155); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsc-n { max-width: 100%; font: 900 clamp(20px, 2.4vw, 28px)/1 var(--ems-font-display, inherit); color: var(--_ac); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.dsc-s { max-width: 100%; margin-top: 6px; font: 600 12px/1.2 var(--ems-font-ui, inherit); color: var(--ems-mute, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dsh-hint { margin: 2px 0 18px; font: 500 13px/1.4 var(--ems-font-ui, inherit); color: var(--ems-mute); }
.dsh-foot { margin: 14px 2px 0; font: 400 12.5px/1.5 var(--ems-font-ui, inherit); color: var(--ems-mute); }

/* ── a list under the row (the Mentor Dashboard, coach.js) ── */
.dsc-list { background: #fff; border: 1px solid var(--ems-line, #e3e7ef); border-radius: 16px; padding: 6px 18px 10px; margin: 0 0 18px; box-shadow: 0 8px 24px -16px rgba(14, 21, 71, .3); }
.dsc-list-h { display: flex; align-items: center; gap: 10px; padding: 10px 0 10px; border-bottom: 1px solid var(--ems-line, #e3e7ef); }
.dsc-list-h b { font: 800 16px/1.3 var(--ems-font-display, inherit); color: var(--ems-navy-900, #0e1547); }
.dsc-list-h span { font: 600 13px/1.3 var(--ems-font-ui, inherit); color: var(--ems-mute); }
.dsc-x { margin-left: auto; width: 32px; height: 32px; min-height: 0; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ems-mute); cursor: pointer; }
.dsc-x:hover { background: var(--ems-navy-50); color: var(--ems-navy-700); }
.dsc-empty { margin: 14px 0 8px; font: 500 14px/1.5 var(--ems-font-ui, inherit); color: var(--ems-mute); }
.dsc-bars { padding: 12px 0 4px; }

.dsc-r { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--ems-line, #eef1f6); }
.dsc-r:last-child { border-bottom: 0; }
.dsc-r.is-off { opacity: .7; }
.dsc-r-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dsc-r-main b { font: 700 15px/1.3 var(--ems-font-ui, inherit); color: var(--ems-ink, #0f172a); }
.dsc-r-main > span { font: 500 13px/1.4 var(--ems-font-ui, inherit); color: var(--ems-mute); overflow: hidden; text-overflow: ellipsis; }
.dsc-r-main .dsc-r-ask { color: var(--ems-ink-2, #334155); white-space: normal; }
.dsc-r-when { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 92px; font: 500 12px/1.2 var(--ems-font-ui, inherit); color: var(--ems-mute); }
.dsc-r-when b { font: 700 13.5px/1.2 var(--ems-font-ui, inherit); color: var(--ems-ink-2, #334155); }
.dsc-r-when b.is-late { color: var(--ems-red-600, #c62828); }
.dsc-r-act { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.dsc-r-act .set-btn { white-space: nowrap; text-decoration: none; }

/* ── ONE list under the cards (AdminDashboard.board, 11-15: "only one
   list"). The panel, head, search, Filters and Sort are ems-list.css (the
   Work Hub's); these are the rows inside it. ── */
.dsb-panel { margin-top: 2px; }
.dsb-table td { vertical-align: middle; }
.dsb-table tbody tr[data-open] { cursor: pointer; }
.dsb-table tbody tr.is-idle:hover { box-shadow: none; }
.dsb-when { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.dsb-when b { font: 700 13.5px/1.3 var(--ems-font-ui, inherit); color: var(--ems-ink-2, #334155); }
.dsb-when b.is-late { color: var(--ems-red-600, #c62828); }
.dsb-when span { font: 500 12px/1.3 var(--ems-font-ui, inherit); color: var(--ems-mute-2, #64748b); }
.dsb-when.is-none { color: var(--ems-faint, #a0a8b6); }
.dsb-num { font: 800 15px/1.3 var(--ems-font-ui, inherit); color: var(--ems-navy-800); font-variant-numeric: tabular-nums; }
.dsb-ask { color: var(--ems-ink-2, #334155); }
.dsb-share { display: inline-block; width: min(160px, 40vw); height: 8px; border-radius: 99px; background: var(--ems-navy-50, #eef1f9); overflow: hidden; vertical-align: middle; }
.dsb-share i { display: block; height: 100%; border-radius: inherit; background: var(--ems-navy-500); }
.dsb-pct { margin-left: 8px; font: 700 12.5px/1 var(--ems-font-ui, inherit); color: var(--ems-mute); font-variant-numeric: tabular-nums; }
.dsb-act { display: table-cell; }
.dsb-act > * + * { margin-left: 8px; }
.dsb-act .set-btn { white-space: nowrap; text-decoration: none; }
.dsb-foot { font-size: 12.5px; }
/* AI costs: one live status in the list head; a slow halo, never a blink. */
.dsb-live { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--ems-font-ui, inherit); color: var(--ems-mute, #64748b); white-space: nowrap; }
.dsb-live b { font-weight: 700; color: var(--ems-good, #15803d); }
.dsb-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ems-good, #15803d); }
.dsb-live i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: dsb-halo 2.8s ease-out infinite; }
.dsb-live i.is-off { background: var(--ems-mute-2, #94a3b8); }
.dsb-live i.is-off::after { animation: none; }
.dsb-live i.is-off + b { color: var(--ems-ink-2, #334155); }
@keyframes dsb-halo { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.dsc-s.is-delta { color: var(--ems-good, #15803d); animation: dsb-in .35s ease-out; }
@keyframes dsb-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dsb-live i::after, .dsc-s.is-delta { animation: none; } }
.dsc-r-note { font: 600 12.5px/1.3 var(--ems-font-ui, inherit); color: var(--ems-gold-700, #8a6100); }
.dsc-pick { max-width: 230px; height: 36px; padding: 0 10px; border: 1px solid var(--ems-line, #d9dfeb); border-radius: 10px; background: #fff; font: 500 13.5px/1 var(--ems-font-ui, inherit); color: var(--ems-ink); vertical-align: middle; }

@media (max-width: 900px) {
  .dsc-row { flex-wrap: wrap; }
  .dsc-row > * { flex: 1 1 calc(50% - 6px); }
  .dsc-r { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .dsc-r-act { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 520px) {
  /* one swipeable line each, never a stack of wrapped rows */
  .dsh-top .dsh-tabs, .dsh-chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .dsh-top .dsh-tabs::-webkit-scrollbar, .dsh-chips::-webkit-scrollbar { display: none; }
  .dsh-top .dsh-tabs button, .dsh-chip { flex: none; }
  .dsh-filters { flex-direction: column; gap: 8px; }
  .dsh-chips + .dsh-chips { padding-left: 0; border-left: 0; }
  .dsc-r { grid-template-columns: 36px minmax(0, 1fr); }
  .dsc-r-when { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 6px; }
  .dsc-pick { max-width: 100%; width: 100%; margin-bottom: 6px; }
  .dsb-act { text-align: left; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .dsc-card, .dsc-card.is-load { transition: none; animation: none; }
}

/* Each dashboard is its own page (11-15): its name where the tabs were. */
.dsh-title { min-width: 0; flex: 1 1 320px; }
.dsh-title h1 { margin: 0; font: 800 24px/1.2 var(--ems-font-display); letter-spacing: -.01em; color: var(--ems-navy-800); }
.dsh-title p { margin: 4px 0 0; font: 400 14px/1.5 var(--ems-font-body, inherit); color: var(--ems-mute); }
.dsh-head-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── Mentor Dashboard (coach.js), 11-15: the same page, for a mentor ── */
.mdb-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.mdb-side #mdbNudge:empty { display: none; }
/* A check-in that is due slides in beside the title: one line, one tap. */
.mdb-nudge {
  display: inline-flex; align-items: center; gap: 10px; width: auto; min-height: 0; padding: 8px 14px 8px 12px;
  border: 1px solid color-mix(in srgb, var(--ems-gold-500, #d4a017) 45%, #fff); border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ems-gold-500, #d4a017) 16%, #fff), #fff);
  color: var(--ems-navy-800); font: inherit; text-align: left; cursor: pointer;
  animation: mdb-slide .45s cubic-bezier(.2, .8, .2, 1) both;
  transition: transform .15s, box-shadow .15s;
}
.mdb-nudge:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(15, 34, 51, .3); }
.mdb-nudge > svg:first-child { color: var(--ems-gold-700, #8a6100); flex: none; }
.mdb-nudge span { display: flex; flex-direction: column; gap: 2px; }
.mdb-nudge b { font: 700 13.5px/1.2 var(--ems-font-ui, inherit); }
.mdb-nudge small { font: 600 11.5px/1.2 var(--ems-font-ui, inherit); color: var(--ems-mute); }
@keyframes mdb-slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.mdb-r .dsc-r-main b .ems-tag { margin-left: 6px; vertical-align: 1px; }
.mdb-prog { display: flex; align-items: center; gap: 8px; max-width: 260px; margin-top: 4px; }
.mdb-prog i { position: relative; flex: 1; height: 6px; border-radius: 99px; background: var(--ems-navy-50, #eef1f8); overflow: hidden; }
.mdb-prog i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--ems-navy-500, #2a3890); }
.mdb-prog em { font: 700 11.5px/1 var(--ems-font-ui, inherit); font-style: normal; color: var(--ems-ink-2, #334155); min-width: 30px; }
.mdb-why { display: flex; gap: 8px; margin-top: 8px; }
.mdb-why[hidden] { display: none; }
.mdb-why input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--ems-line, #d9dfeb); border-radius: 10px; font: 500 13.5px/1 var(--ems-font-ui, inherit); }
@media (prefers-reduced-motion: reduce) { .mdb-nudge { animation: none; } }

/* Phones: the list's rows stack (ems-list.css); the action sits under them. */
@media (max-width: 760px) {
  .dsb-table td.dsb-act { padding-top: 8px; }
  .dsb-act > * + * { margin-left: 0; margin-top: 6px; }
  .dsb-act { display: flex !important; flex-wrap: wrap; gap: 6px; }
  .dsb-share { width: 60%; }
}

/* ── Where they are · latest · next step · the one action (member-next.js) ── */
.mn-next { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mn-next b { font: 600 13.5px/1.35 var(--ems-font-ui, inherit); color: var(--ems-ink-2, #334155); }
.mn-next.is-hot b { color: var(--ems-red-600, #c62828); }
.mn-next.is-calm b { font-weight: 500; color: var(--ems-mute-2, #64748b); }
.mn-acts { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.dsb-act .mn-acts > * + * { margin-left: 0; }
.mn-more { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--ems-line, #d9dfeb); background: #fff; color: var(--ems-navy-700, #2a3890); }
.mn-more svg { fill: currentColor; }
.mn-more:hover, .mn-more:focus-visible { background: var(--ems-navy-50, #eef1f9); outline: none; }
.set-btn.is-off { opacity: .6; cursor: default; }

/* The in-place pop-ups: pick a mentor, mark placed. */
.mn-pop { position: fixed; z-index: 70010; width: min(360px, calc(100vw - 16px)); max-height: min(520px, calc(100vh - 16px)); display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow: auto; background: #fff; color: var(--ems-ink, #0f172a); border: 1px solid var(--ems-line, #d9dfeb); border-radius: 14px; box-shadow: 0 18px 44px rgba(15, 23, 42, .22); animation: wl-pop-in .14s ease-out; }
.mn-pop-h { display: flex; flex-direction: column; gap: 2px; }
.mn-pop-h b { font: 700 15px/1.3 var(--ems-font-display, inherit); color: var(--ems-navy-800, #1b2466); }
.mn-pop-h small, .mn-none { font: 500 12.5px/1.4 var(--ems-font-ui, inherit); color: var(--ems-mute-2, #64748b); margin: 0; }
.mn-asked { margin: 0; padding: 8px 10px; border-radius: 9px; background: var(--ems-navy-50, #eef1f9); font: italic 500 13px/1.4 var(--ems-font-ui, inherit); color: var(--ems-ink-2, #334155); }
.mn-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.mn-opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid transparent; }
.mn-opt:hover, .mn-opt:focus-visible { background: var(--ems-navy-50, #eef1f9); outline: none; }
.mn-opt[aria-checked="true"] { border-color: var(--ems-navy-500, #3b4fc4); background: var(--ems-navy-50, #eef1f9); }
.mn-opt[disabled] { opacity: .45; cursor: not-allowed; }
.mn-opt .set-u-av { width: 34px; height: 34px; flex: none; font-size: 12px; }
.mn-opt-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mn-opt-t b { font: 650 13.5px/1.3 var(--ems-font-ui, inherit); color: var(--ems-ink, #0f172a); }
.mn-opt-t b i { font: 600 11px/1 var(--ems-font-ui, inherit); font-style: normal; color: var(--ems-mute-2, #64748b); margin-left: 4px; }
.mn-fit { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 99px; background: var(--ems-good-bg, #e7f6ee); color: var(--ems-good, #13804b); font: 700 10.5px/1.3 var(--ems-font-ui, inherit); letter-spacing: .02em; vertical-align: 1px; }
.mn-opt-t small { font: 500 12px/1.3 var(--ems-font-ui, inherit); color: var(--ems-mute-2, #64748b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-mail { display: flex; gap: 6px; align-items: flex-start; margin: 0; font: 500 12px/1.4 var(--ems-font-ui, inherit); color: var(--ems-mute-2, #64748b); }
.mn-mail svg { flex: none; margin-top: 1px; }
.mn-err { margin: 0; font: 600 12.5px/1.4 var(--ems-font-ui, inherit); color: var(--ems-red-600, #c62828); }
.mn-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mn-sp { flex: 1; }
.mn-link { all: unset; cursor: pointer; font: 600 12.5px/1.3 var(--ems-font-ui, inherit); color: var(--ems-mute-2, #64748b); text-decoration: underline; text-underline-offset: 2px; }
.mn-link.is-hot { color: var(--ems-red-600, #c62828); }
.mn-field { display: flex; flex-direction: column; gap: 4px; font: 600 12.5px/1.3 var(--ems-font-ui, inherit); color: var(--ems-ink-2, #334155); }
.mn-field input { height: 38px; padding: 0 10px; border: 1px solid var(--ems-line, #d9dfeb); border-radius: 9px; font: 500 14px/1 var(--ems-font-ui, inherit); color: var(--ems-ink, #0f172a); }

/* The record's top band: where they are, their mentor, latest, next step. */
.mn-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 14px; background: #fff; border: 1px solid var(--ems-line, #d9dfeb); border-radius: 14px; overflow: hidden; }
.mn-now-c { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; min-width: 0; }
.mn-now-c + .mn-now-c { border-left: 1px solid var(--ems-line-2, #e8ecf4); }
.mn-now-k { font: 700 11px/1 var(--ems-font-ui, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--ems-mute-2, #64748b); }
.mn-now-v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 650 14px/1.35 var(--ems-font-ui, inherit); color: var(--ems-ink, #0f172a); }
.mn-now-v.is-flag { color: var(--ems-red-600, #c62828); }
.mn-now-v.is-calm { color: var(--ems-mute-2, #64748b); font-weight: 500; }
.mn-now-s { font: 500 12.5px/1.4 var(--ems-font-ui, inherit); color: var(--ems-mute-2, #64748b); }
.mn-now-c .set-btn { align-self: flex-start; margin-top: 2px; }
.mn-now-next { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--ems-line-2, #e8ecf4); background: var(--ems-navy-50, #f5f7fc); }
.mn-now-next.is-hot { background: #fff7ed; }
.mn-now-next .mn-now-k { flex: none; }
.mn-now-next .mn-now-v { flex: 1; min-width: 180px; }
.mn-optional { font-style: normal; font-weight: 500; color: var(--ems-mute-2, #64748b); }
.mn-field textarea { padding: 8px 10px; border: 1px solid var(--ems-line, #d9dfeb); border-radius: 9px; font: 500 14px/1.4 var(--ems-font-ui, inherit); color: var(--ems-ink, #0f172a); resize: vertical; }
.mn-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: 10px; background: var(--ems-navy-50, #eef1f9); }
.mn-step { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 7px 4px; border-radius: 8px; font: 600 12px/1.2 var(--ems-font-ui, inherit); color: var(--ems-ink-2, #334155); }
.mn-step[aria-checked="true"] { background: #fff; color: var(--ems-navy-800, #1b2466); box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.mn-step:focus-visible { outline: 2px solid var(--ems-navy-500, #3b4fc4); }
.mn-steps.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Staff notes on the record */
.mn-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mn-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--ems-line-2, #e8ecf4); }
.mn-note p { margin: 0; font: 500 14px/1.45 var(--ems-font-ui, inherit); color: var(--ems-ink, #0f172a); white-space: pre-wrap; overflow-wrap: anywhere; }
.mn-note small { grid-column: 1; font: 500 12px/1.4 var(--ems-font-ui, inherit); color: var(--ems-mute-2, #64748b); }
.mn-note.is-done p { color: var(--ems-mute-2, #64748b); }
.mn-note-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 10px; }
.mn-due { font-weight: 700; color: var(--ems-ink-2, #334155); }
.mn-due.is-hot { color: var(--ems-red-600, #c62828); }
.mn-notes-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.mn-notes-foot small { font: 500 12px/1.4 var(--ems-font-ui, inherit); color: var(--ems-mute-2, #64748b); }
@media (max-width: 720px) {
  .mn-now { grid-template-columns: minmax(0, 1fr); }
  .mn-now-c + .mn-now-c { border-left: 0; border-top: 1px solid var(--ems-line-2, #e8ecf4); }
}
@media (max-width: 520px) {
  .mn-acts { justify-content: flex-start; flex-wrap: wrap; }
}

/* Program Dashboard › Placement goal pop-up (admin-dashboard.js editGoal). */
.ems-goal-form { display: grid; gap: 14px; }
.ems-goal-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ems-goal-form .wl-link { justify-self: start; }
@media (max-width: 480px) { .ems-goal-dates { grid-template-columns: 1fr; } }

/* AI costs › a tool's detail (admin-dashboard.js toolDetail). */
.dsb-tool h4 { margin: 18px 0 6px; font: 700 12px/1.3 var(--ems-font-ui, inherit); letter-spacing: .06em; text-transform: uppercase; color: var(--ems-mute, #64748b); }
.dsb-tfigs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dsb-tfig { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--ems-line, #d9dfeb); border-radius: 12px; }
.dsb-tfig span { font: 600 12px/1.3 var(--ems-font-ui, inherit); color: var(--ems-mute, #64748b); }
.dsb-tfig b { font: 800 18px/1.2 var(--ems-font-ui, inherit); color: var(--ems-navy-800); font-variant-numeric: tabular-nums; }
.dsb-tool .dsb-table td { padding: 8px 10px; vertical-align: middle; }
.dsb-tnote { margin: 6px 0 0; font: 500 13px/1.45 var(--ems-font-ui, inherit); color: var(--ems-mute, #64748b); }
@media (max-width: 640px) { .dsb-tfigs { grid-template-columns: 1fr 1fr; } }

/* Resource Usage: every row shows the thing itself (its real screen or site
   capture), and opens a pop-up with a big preview + its usage (Tyler 11-16). */
.ru-what { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ru-what-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ru-what-t .ems-s-cell-m { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 62ch; }
.ru-pic, .ru-shot { position: relative; flex: none; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid var(--ems-line, #d9dfeb); }
.ru-pic { width: 96px; height: 60px; border-radius: 8px; padding: 0 8px; }
.ru-pic img, .ru-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.ems-mc:hover .ru-pic img { transform: scale(1.06); }
.ru-pic.is-blank, .ru-shot.is-blank { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c)); border-color: transparent; color: #fff; }
.ru-pic.is-blank b { font: 700 10.5px/1.2 var(--ems-font-ui, inherit); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ru-pic.is-blank i { font: 500 9px/1.2 var(--ems-font-ui, inherit); font-style: normal; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.modal.set-dlg.ru-dlg.is-wide { max-width: 860px; }
.ru-det { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 22px; }
.ru-hero { display: flex; flex-direction: column; gap: 8px; }
.ru-hero-pic { display: block; border-radius: 14px; box-shadow: 0 10px 28px rgba(14, 21, 71, .16); }
.ru-shot { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; padding: 0 22px; }
.ru-hero-pic:hover .ru-shot img { transform: scale(1.03); }
.ru-shot.is-blank b { font: 800 22px/1.2 var(--ems-font-ui, inherit); }
.ru-shot.is-blank i { font: 500 14px/1.3 var(--ems-font-ui, inherit); font-style: normal; opacity: .85; margin-top: 4px; }
.ru-dots { display: flex; justify-content: center; gap: 6px; }
.ru-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--ems-line, #d9dfeb); cursor: pointer; }
.ru-dots button.is-on { background: var(--c); }
.ru-about { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ru-badge { font: 700 12px/1 var(--ems-font-ui, inherit); padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ems-good, #15803d) 14%, transparent); color: var(--ems-good, #15803d); }
.ru-badge.is-never { background: color-mix(in srgb, var(--ems-red-600, #be1e2d) 12%, transparent); color: var(--ems-red-600, #be1e2d); }
.ru-desc { margin: 0; font: 500 15px/1.5 var(--ems-font-ui, inherit); color: var(--ems-ink, #131a2c); }
.ru-where { margin: 0; font: 500 13px/1.45 var(--ems-font-ui, inherit); color: var(--ems-mute, #64748b); }
.ru-open { display: inline-flex; align-items: center; text-decoration: none; margin-top: 4px; }
.ru-data { grid-column: 1 / -1; }
.ru-data .dsb-tfig i { font: 500 12px/1.3 var(--ems-font-ui, inherit); font-style: normal; color: var(--ems-mute, #64748b); }
.ru-data h4 { margin-top: 14px; }
@media (max-width: 720px) { .ru-det { grid-template-columns: 1fr; } .ru-pic { width: 72px; height: 45px; } }
