/*
 * Product illustrations drawn in HTML, so their text stays sharp at any size.
 *
 * Each mock is laid out at a fixed design width (data-pm-w on its frame) in the product's own
 * tokens, the same ones the scripted demos use (static/alpswebsite/demos/kit/demo-kit.css):
 * Noto Sans, #1864F2, the xcode light code theme, MUI grays. features/mocks.html scales each one
 * down to its column with a transform and sets the frame to the scaled height. A frame may name a
 * narrower design width (data-pm-sm) and the fraction of the full width at which to switch to it
 * (data-pm-sm-r); below that the frame gets .is-narrow, mocks hide columns that a phone cannot fit,
 * and .is-narrow-only stand-ins take their place.
 *
 * Every class is pm- prefixed. The site loads Tailwind's preflight, which makes svg and img block
 * elements and strips heading and table styles, so the rules below set those explicitly.
 */

.pm-figure { margin: 0; }
/* inline-size containment keeps a mock's design width from widening the grid column it sits in */
.pm-frame { width: 100%; margin: 0 auto; overflow-x: auto; contain: inline-size; }
.pm-frame .pm { margin: 0 auto; }
.pm-caption { margin: .75rem auto 0; font-size: .875rem; line-height: 1.5; color: #6b7280; text-align: center; }

.pm, .pm * { box-sizing: border-box; }
.pm {
  --pm-blue: #1864F2;
  --pm-green: #408B4D;
  --pm-green-dark: #2E7D32;
  --pm-red: #DC3545;
  --pm-purple: #9C27B0;
  --pm-amber: #E19F01;
  --pm-line: #e6e9ef;
  --pm-ink: rgba(0, 0, 0, .87);
  --pm-ink-2: rgba(0, 0, 0, .6);
  --pm-ink-3: rgba(0, 0, 0, .45);
  --pm-mono: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  position: relative;
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--pm-ink);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px -14px rgba(15, 23, 42, .22);
  overflow: hidden;
}
.pm svg { display: inline-block; width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -.2em; }
.pm img { display: inline-block; max-width: none; }
.pm p { margin: 0; }
.pm table { border-collapse: collapse; width: 100%; }
.pm button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: inherit; cursor: pointer; }
.pm .pm-mono { font-family: var(--pm-mono); }
.pm .pm-tip { position: absolute; z-index: 5; background: rgba(97, 97, 97, .95); color: #fff; font-size: 11.5px; line-height: 1.4; padding: 5px 9px; border-radius: 4px; white-space: nowrap; }
.pm .pm-tip.is-wrap { white-space: normal; }

/* buttons */
.pm .pm-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pm .pm-btn svg { width: 17px; height: 17px; }
.pm .pm-btn.is-run { background: var(--pm-green-dark); color: #fff; }
.pm .pm-btn.is-outline { border-color: var(--pm-blue); color: var(--pm-blue); background: #fff; }
.pm .pm-btn.is-primary { background: var(--pm-blue); color: #fff; border-radius: 99px; }
.pm .pm-btn.is-solve { color: var(--pm-purple); font-weight: 500; padding: 0 6px; }
.pm .pm-btn.is-solve svg { fill: var(--pm-purple); }

/* avatar */
.pm .pm-av { display: inline-flex; flex: none; width: 28px; height: 28px; border-radius: 99px; background: rgba(24, 101, 242, .08); color: #1453c7; font-size: 11px; align-items: center; justify-content: center; }

/* ─── grading: activity stepper ─────────────────────────────────── */
.pm .pm-strip { display: flex; align-items: center; gap: 10px; padding: 12px 18px 10px; border-bottom: 1px solid rgba(0, 0, 0, .3); font-size: 18px; }
.pm .pm-strip .pm-av { width: 34px; height: 34px; font-size: 12px; }
.pm .pm-strip .pm-total { margin-left: auto; display: inline-flex; align-items: baseline; gap: 3px; }
.pm .pm-strip .pm-total b { font-size: 24px; font-weight: 500; color: var(--pm-green-dark); }
.pm .pm-strip .pm-total small { font-size: 14px; color: var(--pm-ink-2); }
.pm .pm-strip .pm-total svg { width: 20px; height: 20px; fill: var(--pm-ink-2); align-self: center; }
.pm .pm-stepper { display: flex; justify-content: center; gap: 12px; padding: 18px 0 16px; }
.pm .pm-tile { position: relative; width: 50px; height: 50px; border: 1px solid #c9d3e6; border-radius: 8px; background: #f1f5fd; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; color: var(--pm-ink-2); }
.pm .pm-tile.is-on { border: 2px solid var(--pm-blue); background: #fff; color: var(--pm-ink); font-weight: 600; }
.pm .pm-tile > svg { width: 17px; height: 17px; fill: #444; position: absolute; top: -9px; left: -3px; background: #fff; border-radius: 3px; }
.pm .pm-tile .pm-t-spark, .pm .pm-tile .pm-t-badge { position: absolute; right: -8px; width: 18px; height: 18px; background: #fff; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
.pm .pm-tile .pm-t-spark { top: -8px; }
.pm .pm-tile .pm-t-badge { bottom: -8px; }
.pm .pm-tile .pm-t-spark svg { width: 15px; height: 15px; fill: var(--pm-amber); }
.pm .pm-tile .pm-t-badge svg { width: 18px; height: 18px; }
.pm .pm-t-badge.is-pass svg { fill: var(--pm-green); }
.pm .pm-t-badge.is-fail svg { fill: var(--pm-red); }

/* ─── grading: code editor card ─────────────────────────────────── */
.pm .pm-ide { margin: 0 16px 0; border: 1px solid var(--pm-line); border-radius: 8px; overflow: hidden; }
.pm .pm-codebar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fafafa; border-bottom: 1px solid var(--pm-line); }
.pm .pm-file { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 3px; border-bottom: 1px solid rgba(0, 0, 0, .42); font-size: 14px; }
.pm .pm-file > svg { width: 18px; height: 18px; fill: var(--pm-ink-2); }
.pm .pm-file em { font-style: italic; font-size: 12px; color: #b45309; display: inline-flex; align-items: center; gap: 3px; }
.pm .pm-file em::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: #d97706; }
.pm .pm-code { font: 12.5px/1.62 var(--pm-mono); padding: 6px 0; color: #000; background: #fff; }
.pm .pm-line { display: flex; white-space: pre; position: relative; }
.pm .pm-line .pm-ln { width: 38px; flex: none; text-align: right; padding-right: 14px; color: #757575; user-select: none; }
.pm .pm-line .pm-lc { flex: 1; min-width: 0; padding-right: 12px; }
.pm .pm-line.is-changed .pm-ln { box-shadow: inset -3px 0 0 #3bb54a; }
.pm .pm-line.is-first { background: rgba(213, 230, 255, .41); }
.pm .pm-hl { border-radius: 2px; transition: background-color .2s; }
.pm .pm-hl.is-on { background: rgba(255, 255, 0, .45); }
.pm .tk-kw { color: #aa0d91; font-weight: 700; }
.pm .tk-def { color: #2B6C8C; }
.pm .tk-var { color: #23575C; }
.pm .tk-type { color: #522BB2; }
.pm .tk-str { color: #c41a16; }
.pm .pm-tabs { display: flex; align-items: center; gap: 30px; padding: 0 16px; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--pm-ink-2); white-space: nowrap; }
.pm .pm-tabs > span { display: inline-flex; align-items: center; gap: 7px; padding: 10px 2px; border-bottom: 2px solid transparent; }
.pm .pm-tabs > span.is-on { color: var(--pm-blue); border-bottom-color: var(--pm-blue); }
.pm .pm-tabs svg { width: 19px; height: 19px; }
.pm .pm-pill { font-size: 12px; font-weight: 500; padding: 1px 9px; border-radius: 99px; background: #f3f3f3; color: var(--pm-ink-2); }
.pm .pm-pill.is-pass { background: rgba(64, 139, 77, .12); color: #2f6b3a; }

/* ─── grading: Rubriq table ─────────────────────────────────────── */
.pm .pm-rq { padding: 14px 16px 16px; }
.pm .pm-rq-title { display: flex; align-items: center; gap: 7px; font-family: var(--pm-mono); font-size: 15px; font-weight: 700; }
.pm .pm-rq-title svg { width: 21px; height: 21px; }
.pm .pm-rq-cap { margin: 5px 0 8px; font-family: var(--pm-mono); font-size: 11.5px; color: var(--pm-ink-2); }
.pm .pm-rq-th { background: #fafafa; padding: 9px 12px 9px 78px; font: 700 12px var(--pm-mono); color: #616161; border-bottom: 1px solid var(--pm-line); }
.pm .pm-rq-th.is-short { padding-left: 64px; }
.pm .pm-row { display: flex; width: 100%; align-items: flex-start; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--pm-line); font: 12px/1.45 var(--pm-mono); color: var(--pm-ink); transition: background-color .2s; }
.pm .pm-row.is-ai { box-shadow: inset -4px 0 0 rgb(226, 197, 233); }
.pm .pm-row.is-evidence { background: rgba(255, 255, 0, .4); }
.pm button.pm-row:hover:not(.is-evidence) { background: rgba(0, 0, 0, .035); }
.pm button.pm-row:focus-visible { outline: 3px solid var(--pm-blue); outline-offset: -3px; }
.pm .pm-ico { flex: none; width: 20px; height: 20px; display: inline-flex; }
.pm .pm-ico svg { width: 20px; height: 20px; }
.pm .pm-ico.is-pass svg { fill: var(--pm-green); }
.pm .pm-ico.is-fail svg { fill: var(--pm-red); }
.pm .pm-ico.is-part { color: #E09100; font: 800 17px/20px var(--pm-mono); justify-content: center; }
.pm .pm-ico.is-tip svg { fill: var(--pm-purple); }
.pm .pm-ev { flex: none; width: 20px; height: 20px; display: inline-flex; }
.pm .pm-ev svg { width: 19px; height: 19px; fill: var(--pm-purple); }
.pm .pm-row .pm-txt { flex: 1; min-width: 0; }
.pm .pm-row .pm-chev { flex: none; width: 18px; height: 18px; display: inline-flex; }
.pm .pm-row .pm-chev svg { width: 18px; height: 18px; fill: rgba(0, 0, 0, .5); }
.pm .pm-row .pm-chev.is-up svg { transform: rotate(180deg); }
.pm .pm-row-detail { padding: 2px 12px 12px 76px; font: 12.5px/1.5 var(--pm-mono); color: var(--pm-ink-2); border-bottom: 1px solid var(--pm-line); }
.pm .pm-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 14px var(--pm-mono); }
.pm .pm-foot svg { width: 20px; height: 20px; fill: var(--pm-red); }
.pm .pm-summary { margin-top: 12px; border: 1px solid var(--pm-purple); border-radius: 8px; background: #f3e5f5; padding: 10px 14px 12px; font: 12.5px/1.6 var(--pm-mono); }
.pm .pm-summary b { color: var(--pm-purple); }
.pm .pm-summary ul { margin: 4px 0 0; padding-left: 18px; list-style: disc; }

/* ─── grading: short answer ─────────────────────────────────────── */
.pm .pm-act-head { display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--pm-blue); color: #fff; }
.pm .pm-act-head > svg { width: 20px; height: 20px; }
.pm .pm-act-head div { flex: 1; min-width: 0; }
.pm .pm-act-head b { display: block; font-size: 15px; font-weight: 500; }
.pm .pm-act-head small { display: block; font-size: 12px; color: #fff; }
.pm .pm-act-head .pm-act-tools { display: flex; gap: 16px; flex: none; }
.pm .pm-act-head .pm-act-tools svg { width: 20px; height: 20px; }
.pm .pm-prompt { padding: 12px 16px 10px; font: 13.5px var(--pm-mono); }
.pm .pm-answer { margin: 0 16px; border: 1px solid #cfd4da; border-radius: 6px; }
.pm .pm-answer-tools { display: flex; align-items: center; gap: 16px; padding: 7px 14px; border-bottom: 1px solid var(--pm-line); font-size: 13px; font-weight: 700; color: #333; }
.pm .pm-answer-tools i { width: 1px; height: 16px; background: #d5dae3; }
.pm .pm-answer-text { padding: 12px 12px 30px; font: 13px var(--pm-mono); }

/* ─── grading: submissions table ────────────────────────────────── */
.pm .pm-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--pm-ink); padding: 12px 10px; border-bottom: 1px solid var(--pm-line); white-space: nowrap; }
.pm .pm-table th svg { width: 15px; height: 15px; fill: var(--pm-ink-2); margin-left: 3px; }
.pm .pm-table td { padding: 8px 10px; border-bottom: 1px solid var(--pm-line); font-size: 13px; color: var(--pm-ink); white-space: nowrap; }
.pm .pm-table tr:last-child td { border-bottom: 0; }
.pm .pm-table td .pm-av { margin-right: 10px; vertical-align: middle; }
.pm .pm-table .is-dim { color: var(--pm-ink-3); }
.pm .pm-table tr.is-hover td { background: #f2f2f2; }
.pm .pm-cloud { position: relative; display: inline-flex; vertical-align: middle; }
.pm .pm-cloud svg { width: 21px; height: 21px; fill: var(--pm-green-dark); }
.pm .pm-spark svg { width: 21px; height: 21px; fill: var(--pm-amber); vertical-align: middle; }
.pm .pm-pencil svg { width: 17px; height: 17px; fill: #666; margin-left: 8px; vertical-align: -3px; }
.is-narrow .pm .pm-wide-only { display: none; }

/* ─── grading: manual grade ─────────────────────────────────────── */
.pm .pm-grade-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0; }
.pm .pm-grade-head .pm-h { flex: 1; font-size: 17px; color: var(--pm-ink); }
.pm .pm-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--pm-purple); color: var(--pm-purple); border-radius: 99px; font-size: 12.5px; padding: 2px 8px 2px 11px; }
.pm .pm-chip svg { width: 15px; height: 15px; fill: var(--pm-purple); }
.pm .pm-pts-label { font-size: 13px; color: var(--pm-ink-2); }
.pm .pm-pts { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 36px; border: 1px solid rgba(0, 0, 0, .23); border-radius: 4px; font-size: 15px; }
.pm .pm-pts small { color: var(--pm-ink-2); font-size: 13px; }
.pm .pm-grade-meta { padding: 4px 18px 10px; font-size: 12px; color: var(--pm-ink-2); }
.pm .pm-grade-act { margin: 0 18px 18px; border: 1px solid var(--pm-line); border-radius: 4px; overflow: hidden; }
.pm .pm-grade-act .pm-act-body { height: 26px; }

/* dialog */
.pm .pm-dialog { padding: 20px 22px 16px; }
.pm .pm-dialog .pm-h { font-size: 19px; font-weight: 500; margin-bottom: 12px; }
.pm .pm-dialog p { font-size: 14px; line-height: 1.55; color: var(--pm-ink-2); }
.pm .pm-dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 18px; font-size: 14px; font-weight: 500; }
.pm .pm-dialog-actions .pm-btn { background: var(--pm-purple); color: #fff; height: 36px; padding: 0 16px; border-radius: 8px; font-weight: 500; }

/* ─── integrations: sign in ─────────────────────────────────────── */
.pm.pm-signin { padding: 22px 26px 18px; border-radius: 18px; }
.pm .pm-seg { display: flex; padding: 4px; background: #f1f4f8; border-radius: 12px; margin-bottom: 18px; }
.pm .pm-seg span { flex: 1; text-align: center; padding: 7px 0; font-size: 13px; font-weight: 600; color: #52607a; border-radius: 9px; }
.pm .pm-seg span.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pm.pm-signin .pm-h { font-size: 27px; font-weight: 700; color: #0f172a; letter-spacing: -.01em; }
.pm .pm-signin-sub { margin: 4px 0 16px; font-size: 13.5px; color: #475569; }
.pm .pm-providers { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pm .pm-providers img { display: block; width: 219px; height: auto; }
.pm .pm-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font-size: 10.5px; letter-spacing: .16em; color: #52607a; text-transform: uppercase; white-space: nowrap; }
.pm .pm-or::before, .pm .pm-or::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.pm .pm-lmsbox { border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; padding: 10px 12px 12px; text-align: center; }
.pm .pm-lmsbox b { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #0f172a; }
.pm .pm-lmsbox b svg { width: 18px; height: 18px; fill: var(--pm-blue); }
.pm .pm-lmsbox img { display: block; width: 280px; height: auto; margin: 9px auto 0; }
.pm .pm-signin-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: #475569; }
.pm .pm-signin-foot span:last-child { color: var(--pm-blue); font-weight: 600; }

/* ─── integrations: coursework list ─────────────────────────────── */
.pm .pm-cw { padding: 14px 16px 16px; background: #fff; }
.pm .pm-cw-head { position: relative; display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 44px; }
.pm .pm-gc { display: inline-flex; width: 32px; height: 24px; }
.pm .pm-gc svg { width: 100%; height: 100%; vertical-align: 0; }
.pm .pm-cw-head .pm-tip { left: 0; top: 34px; font-size: 12.5px; padding: 6px 10px; }
.pm .pm-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); padding: 11px 14px 11px 12px; margin-bottom: 11px; }
.pm .pm-card:last-child { margin-bottom: 0; }
.pm .pm-ring { flex: none; width: 38px; height: 38px; border-radius: 99px; border: 3px solid var(--pm-blue); display: flex; align-items: center; justify-content: center; }
.pm .pm-ring svg { width: 19px; height: 19px; fill: #3c4a5c; }
.pm .pm-card-main { flex: 1; min-width: 0; }
.pm .pm-card-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm .pm-card-meta { display: flex; gap: 14px; margin-top: 3px; font-size: 12px; color: var(--pm-ink-2); white-space: nowrap; overflow: hidden; }
.pm .pm-card-meta svg { width: 14px; height: 14px; fill: var(--pm-ink-2); margin-right: 3px; }
.pm .pm-ok svg { width: 28px; height: 28px; fill: var(--pm-green-dark); }
.pm .pm-card .pm-more svg { width: 20px; height: 20px; fill: #555; }
.is-narrow .pm .pm-card-meta .pm-wide-only { display: none; }

/* connected menu */
.pm.pm-menu-mock { padding: 14px 16px 18px; }
.pm .pm-people { display: flex; align-items: center; justify-content: flex-end; gap: 16px; font-size: 14px; color: var(--pm-ink-2); }
.pm .pm-people svg { width: 20px; height: 20px; }
.pm .pm-connected { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 8px; background: #1a7f4f; color: #fff; font-size: 15px; }
.pm .pm-connected .pm-gc { width: 26px; height: 20px; }
.pm .pm-connected > svg { width: 20px; height: 20px; }
.pm .pm-menu { margin: 4px 0 0 auto; width: 260px; background: #fff; border-radius: 6px; box-shadow: 0 5px 16px rgba(0, 0, 0, .2); padding: 8px 0; font-size: 15px; }
.pm .pm-menu div { display: flex; align-items: center; gap: 10px; padding: 9px 22px; }
.pm .pm-menu svg { width: 20px; height: 20px; fill: #666; }
.pm .pm-menu .is-danger { color: var(--pm-red); }
.pm .pm-menu .is-danger svg { fill: var(--pm-red); }

/* assignment page: synced grades */
.pm .pm-asg { padding: 14px 18px 0; }
.pm .pm-asg-top { display: flex; align-items: flex-start; gap: 12px; }
.pm .pm-asg-top div:first-child { flex: 1; min-width: 0; }
.pm .pm-asg-top .pm-h { font-size: 21px; }
.pm .pm-asg-top p { margin-top: 2px; font-size: 12.5px; color: var(--pm-ink-2); white-space: nowrap; }
.pm .pm-published { display: inline-flex; align-items: stretch; height: 34px; border-radius: 6px; overflow: hidden; background: var(--pm-green-dark); color: #fff; font-size: 14px; }
.pm .pm-published span { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; }
.pm .pm-published span + span { border-left: 1px solid rgba(255, 255, 255, .35); padding: 0 8px; }
.pm .pm-published svg { width: 19px; height: 19px; }
.pm .pm-asg-tabs { position: relative; display: flex; align-items: center; gap: 26px; margin-top: 10px; border-bottom: 1px solid var(--pm-line); font-size: 14px; color: var(--pm-ink-2); }
.pm .pm-asg-tabs > span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 2px; border-bottom: 2px solid transparent; }
.pm .pm-asg-tabs > span.is-on { color: var(--pm-blue); border-bottom-color: var(--pm-blue); }
.pm .pm-asg-tabs svg { width: 19px; height: 19px; }
.pm .pm-sync { position: relative; margin-left: auto; width: 44px; height: 44px; border-radius: 99px; background: #f1f1f1; display: flex !important; align-items: center; justify-content: center; border: 0 !important; padding: 0 !important; }
.pm .pm-sync .pm-gc { width: 28px; height: 21px; }
.pm .pm-sync i { position: absolute; right: 4px; bottom: 5px; width: 15px; height: 15px; border-radius: 99px; background: #fff; display: flex; align-items: center; justify-content: center; }
.pm .pm-sync i svg { width: 13px; height: 13px; fill: var(--pm-green-dark); }
.pm .pm-sync .pm-tip { top: 12px; right: 52px; }
.pm .pm-asg-table { padding: 12px 8px 4px; }

/* LMS grid */
.pm.pm-lmsgrid { padding: 16px 18px 18px; }
.pm .pm-lmsgrid-head { display: flex; align-items: center; margin-bottom: 14px; font-size: 18px; }
.pm .pm-lmsgrid-head svg { margin-left: auto; width: 22px; height: 22px; fill: #666; }
.pm .pm-lmsgrid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.is-narrow .pm .pm-lmsgrid-cards { grid-template-columns: 1fr; }
.pm .pm-lms { display: flex; align-items: center; gap: 14px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px 12px 12px; }
.pm .pm-lms-logo { flex: none; width: 96px; height: 52px; border-radius: 8px; background: #f5f6f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pm .pm-lms-logo img { width: 84px; height: auto; }
.pm .pm-lms-logo svg { width: auto; height: 38px; vertical-align: 0; }
.pm .pm-lms-logo .pm-word { font-weight: 800; font-size: 19px; letter-spacing: -.01em; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.pm .pm-lms div { flex: 1; min-width: 0; }
.pm .pm-lms b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pm .pm-lms small { display: block; font-size: 12px; color: var(--pm-ink-2); white-space: nowrap; }
.pm .pm-lms .pm-btn { height: 30px; padding: 0 14px; font-weight: 500; }
.pm .pm-lms .pm-link { color: var(--pm-blue); font-size: 13px; font-weight: 500; white-space: nowrap; }

/* Canvas gradebook sketch */
.pm.pm-canvas { display: flex; color: #2d3b45; }
.pm .pm-cv-global { width: 52px; flex: none; background: #394B58; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 14px; }
.pm .pm-cv-global .pm-cv-mark { width: 34px; height: 34px; border-radius: 99px; background: #fff; display: flex; align-items: center; justify-content: center; }
.pm .pm-cv-global .pm-cv-mark svg { width: 26px; height: 26px; fill: #E72429; vertical-align: 0; }
.pm .pm-cv-global i { width: 22px; height: 22px; border-radius: 5px; background: rgba(255, 255, 255, .28); }
.pm .pm-cv-nav { width: 158px; flex: none; padding: 14px 0 14px 10px; border-right: 1px solid #c7cdd1; }
.pm .pm-cv-nav small { display: block; padding: 0 10px 8px; font-size: 11.5px; color: #6b7780; }
.pm .pm-cv-nav span { display: block; padding: 6px 10px; font-size: 13px; color: #0374B5; border-left: 3px solid transparent; white-space: nowrap; }
.pm .pm-cv-nav span.is-on { color: #2d3b45; font-weight: 700; border-left-color: #2d3b45; }
.pm .pm-cv-main { flex: 1; min-width: 0; padding: 14px 18px 18px; }
.pm .pm-cv-main .pm-h { font-size: 20px; margin-bottom: 12px; }
.pm .pm-cv-grid th, .pm .pm-cv-grid td { border: 1px solid #c7cdd1; padding: 8px 11px; font-size: 12.5px; text-align: left; }
.pm .pm-cv-grid th { background: #f5f5f5; font-weight: 700; vertical-align: bottom; }
.pm .pm-cv-grid th small { display: block; font-weight: 400; color: #56606a; }
.pm .pm-cv-grid td, .pm .pm-cv-grid th { white-space: nowrap; }
.pm .pm-cv-grid td.is-num { text-align: center; font-variant-numeric: tabular-nums; }
.pm .pm-cv-grid td.is-empty { color: #9aa5ad; }
.is-narrow .pm .pm-cv-global { display: none; }

/* ─── the teacher's week: graded check ──────────────────────────── */
.pm.pm-graded .pm-ide { margin-top: 16px; }
.pm.pm-graded .pm-tabs { margin-top: 8px; }
.pm.pm-graded .pm-rq { padding-top: 8px; }

/* ─── the teacher's week: Pathfinder panel ──────────────────────── */
/* Tokens from alps-react-app src/components/Pathfinder/pathfinder.css. */
.pm.pm-pf { border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, .12); }
.pm .pm-pf-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; background: var(--pm-purple); color: #fff; }
.pm .pm-pf-name { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pm .pm-pf-name svg { width: 20px; height: 20px; }
.pm .pm-pf-acts { display: inline-flex; align-items: center; gap: 2px; color: rgba(255, 255, 255, .85); }
.pm .pm-pf-acts svg { width: 20px; height: 20px; margin: 4px; }
.pm .pm-pf-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.pm .pm-pf-prog { display: flex; flex-direction: column; gap: 6px; }
.pm .pm-pf-prog b { font-size: 13px; font-weight: 600; color: #374151; }
.pm .pm-pf-bar { display: block; height: 6px; border-radius: 3px; background: #E5E7EB; overflow: hidden; }
.pm .pm-pf-bar i { display: block; width: 100%; height: 100%; border-radius: 3px; background: var(--pm-purple); }
.pm .pm-pf-label { font-size: 14px; line-height: 1.5; font-weight: 700; }
.pm .pm-pf-hint { font-size: 14px; line-height: 1.5; }
.pm .pm-pf-hint code { font-family: var(--pm-mono); font-size: 13px; }
.pm .pm-choices { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.pm .pm-choice { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid #D1D5DB; border-radius: 20px; background: #fff; }
.pm .pm-choice i { flex: none; width: 24px; height: 24px; border-radius: 6px; background: #EFF6FF; color: #2563EB; display: flex; align-items: center; justify-content: center; }
.pm .pm-choice i svg { width: 16px; height: 16px; vertical-align: 0; }
.pm .pm-choice b { display: flex; flex-direction: column; align-items: flex-start; font-size: 13px; font-weight: 600; line-height: 1; color: #1F2937; white-space: nowrap; }
.pm .pm-choice small { margin-top: 1px; font-size: 11px; font-weight: 400; color: #6B7280; }
.pm .pm-choice.is-off { opacity: .45; }
.pm .pm-choice.is-ack { border-color: #E5E7EB; }
.pm .pm-choice.is-ack i { background: #F3F4F6; color: #6B7280; }
/* The gated button's tooltip sits in the clear above the pills, so it hides none of them. */
.pm .pm-choices { margin-top: 40px; }
.pm .pm-choices .pm-tip { left: 0; bottom: calc(100% + 6px); width: 254px; }

/* ─── the teacher's week: added activities ──────────────────────── */
/* Column widths from alps-react-app src/screens/AssignmentEditor/added-activities-panel.jsx. */
.pm.pm-ca { padding: 34px 10px 10px; }
.pm .pm-ca-head, .pm .pm-ca-row { display: grid; grid-template-columns: 1fr 96px 80px 64px 64px 64px 64px 44px; align-items: center; }
.pm .pm-ca-head { min-height: 42px; background: #f9f9fb; border: 1px solid rgba(0, 0, 0, .10); border-radius: 6px 6px 0 0; }
.pm .pm-ca-h { display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: rgba(0, 0, 0, .75); }
.pm .pm-ca-h.is-name { justify-content: flex-start; padding-left: 40px; }
.pm .pm-ca-h.is-all { font-size: 13px; font-weight: 700; color: var(--pm-ink-2); }
.pm .pm-ca-h.is-cluster { flex-direction: column; line-height: 1.1; font-size: 13px; font-weight: 700; }
.pm .pm-ca-h.is-time { flex-direction: column; line-height: 1.2; }
.pm .pm-ca-h.is-time b { display: flex; align-items: center; font-weight: 600; }
.pm .pm-ca-h.is-cluster small { font-size: 9px; font-weight: 400; color: #999; }
.pm .pm-ca-h svg { width: 14px; height: 14px; margin-left: 2px; fill: currentColor; opacity: .5; }
.pm .pm-ca-h svg + svg { width: 11px; height: 11px; opacity: 1; fill: var(--pm-ink-2); }
.pm .pm-ca-h small { font-size: 10px; font-weight: 400; color: #999; }
.pm .pm-ca-row { border-bottom: 1px solid rgba(0, 0, 0, .06); margin: 2px 0; min-height: 44px; }
.pm .pm-ca-name { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 6px 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm .pm-ca-name > svg { width: 24px; height: 24px; fill: rgba(0, 0, 0, .38); }
.pm .pm-ca-name i { display: inline-flex; margin-right: 2px; }
.pm .pm-ca-name i svg { width: 18px; height: 18px; fill: var(--pm-blue); }
.pm .pm-ca-cell { display: flex; align-items: center; justify-content: center; height: 100%; border-left: 1px solid rgba(0, 0, 0, .08); }
.pm .pm-ca-pts { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 30px; border: 1px solid rgba(0, 0, 0, .23); border-radius: 4px; font-size: 13px; }
.pm .pm-ca-time { font-size: 12px; color: var(--pm-ink-2); }
.pm .pm-check { display: inline-flex; padding: 6px; color: rgba(0, 0, 0, .6); }
.pm .pm-check svg { width: 24px; height: 24px; }
.pm .pm-ca-groups { gap: 6px; font-size: 13px; font-weight: 700; }
.pm .pm-ca-del svg { width: 18px; height: 18px; fill: var(--pm-red); }
.pm .pm-ca-row.is-summary { min-height: 32px; background: #f5f5f5; border-top: 1px solid rgba(0, 0, 0, .10); border-bottom: 0; }
.pm .pm-ca-row.is-summary .pm-ca-name { justify-content: flex-end; padding-right: 24px; font-size: 12px; font-weight: 600; color: var(--pm-ink-2); }
.pm .pm-ca-row.is-summary .pm-ca-cell { font-size: 12px; font-weight: 600; }
.pm .pm-ca-tip { right: 312px; top: 4px; }
.is-narrow .pm .pm-ca-head, .is-narrow .pm .pm-ca-row { grid-template-columns: 1fr 56px 84px; }
.is-narrow .pm.pm-ca { padding-top: 10px; }
.is-narrow .pm .pm-ca-h.is-name { padding-left: 8px; }
.is-narrow .pm .pm-ca-name { font-size: 13px; white-space: normal; }
.is-narrow .pm .pm-ca-name > svg { display: none; }
.is-narrow .pm .pm-ca-pts { width: 44px; }
/* The per-group totals live in the cluster columns a phone drops, so the summary rows go with them. */
.is-narrow .pm .pm-ca-row.is-summary { display: none; }

/* ─── the teacher's week: replay and observation ────────────────── */
/* Marker vocabulary and colors from alps-react-app CodeHistory code-history-inline.css
   and review/markers-review.css. */
.pm .pm-scrub { display: flex; align-items: center; gap: 4px; padding: 10px 12px 8px; border-bottom: 1px solid #e3e8ef; }
.pm .pm-scrub-nav { flex: none; display: inline-flex; padding: 5px; }
.pm .pm-scrub-nav svg { width: 22px; height: 22px; fill: rgba(0, 0, 0, .54); }
.pm .pm-scrub-nav.is-prev svg { transform: rotate(90deg); }
.pm .pm-scrub-nav.is-next svg { transform: rotate(-90deg); }
.pm .pm-scrub-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm .pm-scrub-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 18px; font-size: 13px; color: #1c2733; }
.pm .pm-scrub-meta strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm .pm-scrub-meta span { flex: none; font-size: 12px; color: #5b6b7b; }
.pm .pm-scrub-wrap { position: relative; height: 34px; padding-top: 10px; }
.pm .pm-marks { position: absolute; top: 0; left: 0; right: 0; height: 10px; }
.pm .pm-mark { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; }
.pm .pm-mark.is-run { background: #1b7f4d; }
.pm .pm-mark.is-runfail { background: #b91c1c; }
.pm .pm-mark.is-struggle { width: 0; height: 0; margin-left: -5px; background: none; border-radius: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid #b45309; }
.pm .pm-rail { position: absolute; left: 0; right: 0; top: calc(50% + 10px); height: 4px; }
.pm .pm-rail i { position: absolute; top: 0; height: 100%; border-radius: 2px; opacity: .75; }
.pm .pm-rail i.is-add { background: #1b7f4d; }
.pm .pm-rail i.is-mixed { background: #b45309; }
.pm .pm-slider { position: absolute; left: 0; right: 0; top: calc(50% + 2px); height: 3px; border-radius: 2px; background: rgba(24, 101, 242, .26); }
.pm .pm-slider i { position: absolute; left: 0; top: 0; height: 100%; border-radius: 2px; background: var(--pm-blue); }
.pm .pm-slider b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--pm-blue); }
.pm .pm-legend { display: flex; align-items: center; gap: 14px; padding: 0 2px 2px; font-size: 11px; color: #5b6b7b; }
.pm .pm-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.pm .pm-legend .pm-mark { position: static; margin-left: 0; }
.pm .pm-badge { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; background: #dbe8ff; color: #1167ee; }
.pm .pm-obs-strip { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: #f4f7fa; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; color: #475569; }
.pm .pm-obs-count { background: #eef2f6; border-radius: 999px; padding: 1px 7px; font-size: 10.5px; letter-spacing: 0; }
.pm .pm-obs-strip i { margin-left: auto; color: #64748b; }
.pm .pm-obs-strip i::after { content: "\25BE"; }
.pm .pm-obs-card { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; padding: 10px 14px; border-top: 1px solid #dde4ea; font-size: 14px; color: #1c2733; }
.pm .pm-obs-ico { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: #fff; border: 1px solid #ecd9b0; color: #b45309; }
.pm .pm-obs-ico svg { width: 20px; height: 20px; }
.pm .pm-obs-kind { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; color: #b45309; }
.pm .pm-obs-claim { margin-top: 2px; max-width: 70ch; }
.pm .pm-obs-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.pm .pm-obs-link { color: #0d47a1; font-size: 13px; font-weight: 500; }
.pm .pm-obs-fb { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pm .pm-obs-fb small { font-size: 12px; color: #8b98a5; }
.pm .pm-obs-fb i { border: 1px solid #dde4ea; border-radius: 14px; padding: 3px 10px; font-size: 12px; font-style: normal; color: #5b6b7b; white-space: nowrap; }
.is-narrow .pm .pm-scrub-meta { flex-direction: column; align-items: flex-start; gap: 0; height: auto; }
.is-narrow .pm .pm-legend { display: none; }
.is-narrow .pm .pm-obs-fb { margin-left: 0; }

/* ─── code in the browser: languages and the full-screen IDE ────── */
/* Four to a row, so the eight chips read as one block rather than a ragged wrap. The columns take
   the width of their widest chip and the chips fill them, which is why each one centers itself. */
.pm .pm-langs { display: grid; grid-template-columns: repeat(4, max-content); justify-content: center; gap: 8px; padding: 14px 16px; background: #f7f9fc; border-bottom: 1px solid var(--pm-line); }
.pm .pm-lang { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 30px; padding: 0 11px; border: 1px solid #e2e6ee; border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pm .pm-lang svg { width: 17px; height: 17px; fill: var(--pm-ink-2); }
/* The IDE itself: toolbar, then the instructions lane beside the editor over the output pane.
   Proportions from alps-react-app
   src/components/question-templates/ActiveCode/fullscreen-ide/index.jsx. */
.pm .pm-fs-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--pm-line); }
.pm .pm-fs-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm .pm-fs-bar .pm-btn { height: 28px; padding: 0 12px; font-size: 12.5px; }
/* The exit button is sticky to the toolbar's right edge in the product, and it is the only way
   out of the dialog, so it keeps its weight here. */
.pm .pm-fs-exit { flex: none; width: 30px; height: 30px; border-radius: 99px; background: var(--pm-blue); display: inline-flex; align-items: center; justify-content: center; }
.pm .pm-fs-exit svg { width: 18px; height: 18px; fill: #fff; vertical-align: 0; }
.pm .pm-fs-body { display: flex; align-items: stretch; }
.pm .pm-fs-side { flex: none; width: 150px; padding: 10px 12px 16px; border-right: 1px solid var(--pm-line); background: #fbfcfe; }
.pm .pm-fs-h { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--pm-ink-2); margin-bottom: 7px; }
.pm .pm-fs-h svg { width: 15px; height: 15px; fill: var(--pm-ink-3); }
.pm .pm-fs-side p { font-size: 12px; line-height: 1.6; }
.pm .pm-fs-side code { font-family: var(--pm-mono); font-size: 11px; }
/* The drawer closed: the product keeps this sliver rather than dropping the lane, so a phone,
   which has no room for the open lane, shows the sliver instead. */
.pm .pm-fs-gutter { flex: none; width: 28px; align-items: flex-start; justify-content: center; padding-top: 10px; border-right: 1px solid var(--pm-line); background: #fbfcfe; }
.pm .pm-fs-gutter svg { width: 16px; height: 16px; fill: var(--pm-ink-3); }
.pm .pm-fs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pm .pm-fs-tabs { display: flex; align-items: center; gap: 16px; padding: 0 12px; border-bottom: 1px solid var(--pm-line); font-size: 12.5px; font-weight: 500; color: var(--pm-ink-2); white-space: nowrap; }
.pm .pm-fs-tabs > span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; border-bottom: 2px solid transparent; }
.pm .pm-fs-tabs > span.is-on { color: var(--pm-blue); border-bottom-color: var(--pm-blue); }
.pm .pm-fs-tabs svg { width: 16px; height: 16px; }
/* Four tabs in the width of one pane: the output strip runs a little tighter than the file tabs. */
.pm .pm-fs-tabs.is-out { gap: 14px; font-size: 12px; border-top: 1px solid var(--pm-line); background: #fafafa; }
.pm .pm-fs-main .pm-code { flex: 1; padding: 8px 0 16px; }
.pm .pm-fs-out { padding: 10px 14px 16px; font: 12.5px/1.7 var(--pm-mono); }
.pm .pm-fs-out b { font-weight: 400; color: var(--pm-ink-2); }
.pm .pm-fs-out i { display: inline-block; width: 7px; height: 13px; background: var(--pm-ink); vertical-align: -2px; }
/* Four columns do not fit a phone, and two would run the strip to four rows, so it wraps there. */
.is-narrow .pm .pm-langs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 10px; }
.is-narrow .pm .pm-fs-tabs { gap: 12px; }

/* Columns a phone cannot fit are dropped; their narrow stand-ins appear only there. */
.pm .is-narrow-only { display: none; }
.is-narrow .pm .is-narrow-only { display: flex; }

@media (forced-colors: active) {
  .pm .pm-hl.is-on, .pm .pm-row.is-evidence { background: Mark; color: MarkText; forced-color-adjust: none; }
  .pm .pm-hl.is-on *, .pm .pm-row.is-evidence * { color: MarkText; }
  /* The replay timeline says everything through color on empty elements — run markers, the rail's
     add/remove segments, the slider, the legend swatches. Forced colors would repaint them all
     Canvas and leave a blank band, so these keep their own colors. */
  .pm .pm-mark, .pm .pm-rail i, .pm .pm-slider, .pm .pm-slider i, .pm .pm-slider b,
  .pm .pm-badge, .pm .pm-obs-ico, .pm .pm-pf-bar i,
  .pm .pm-fs-exit, .pm .pm-fs-out i { forced-color-adjust: none; }
  .pm .pm-fs-out i { background: CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  .pm .pm-hl, .pm .pm-row { transition: none; }
}
