/* Student "Assigned work" list (/assigned/). Scoped under body.as26. Tokens come from site-2026-app.css section 1.
   The item view (PDF panes, buttons) keeps the shared as-* styles from section 6 of that file. */

body.as26 [hidden] { display: none !important; }
body.as26:not(.app26-fill) { background: var(--canvas); }

/* ---------- list page ---------- */
body.as26 .as26-list { display: block; }
body.as26 .as26-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 40px 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  outline: none;
}
body.as26 .as26-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
body.as26 .as26-head__t { display: flex; flex-direction: column; gap: 6px; }
body.as26 .as26-head h1 {
  margin: 0;
  font: 600 34px/1.1 var(--fd);
  letter-spacing: -0.01em;
  color: var(--ink);
}
body.as26 .as26-head p { margin: 0; font-size: 15px; color: var(--ink2); }

body.as26 .as26-seg {
  display: flex;
  background: #fff;
  border: var(--hair);
  border-radius: var(--r);
  padding: 3px;
}
body.as26 .as26-seg button {
  height: 36px;
  min-width: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--ink2);
  font: 600 14px/1 var(--fu);
  cursor: pointer;
}
body.as26 .as26-seg button:hover { color: var(--ink); }
body.as26 .as26-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
body.as26 .as26-seg button:focus-visible,
body.as26 .as26-btn:focus-visible,
body.as26 .as26-gold:focus-visible,
body.as26 .as26-ghost:focus-visible,
body.as26 .as26-row:focus-visible,
body.as26 .as26-back a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

body.as26 .as26-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
body.as26 .as26-feed { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
body.as26 .as26-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* diagnostic card */
body.as26 .as26-diag {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: var(--hair);
  border-radius: var(--r);
}
body.as26 .as26-diag__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
body.as26 .as26-diag__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
body.as26 .as26-kick { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
body.as26 .as26-diag h2 { margin: 0; font: 600 24px/1.2 var(--fd); color: var(--ink); }
body.as26 .as26-diag__f { font-size: 14px; color: var(--ink2); }
body.as26 .as26-diag__n { margin: 0; font-size: 13px; color: var(--mute); }
body.as26 .as26-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r);
  background: var(--gold);
  color: var(--ink);
  font: 600 15px/1 var(--fu);
  text-decoration: none;
  white-space: nowrap;
}
body.as26 .as26-gold:hover { background: #ffba2e; }
body.as26 .as26-ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
body.as26 .as26-step {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: var(--hair);
  background: var(--chalk);
}
body.as26 .as26-step.is-now { border: 2px solid var(--navy); padding: 11px 13px; background: #fff; }
body.as26 .as26-step__tag { font-size: 12px; font-weight: 600; color: var(--mute); }
body.as26 .as26-step.is-now .as26-step__tag { color: var(--navy); }
body.as26 .as26-step__n { font-size: 15px; font-weight: 600; color: var(--ink); }
body.as26 .as26-step__s { font-size: 13px; color: var(--mute); }

/* groups and rows */
body.as26 .as26-grp { display: flex; flex-direction: column; gap: 8px; }
body.as26 .as26-grp__h {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1.2 var(--fu);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
body.as26 .as26-grp__h.is-bad { color: var(--bad); }
body.as26 .as26-grp__h span { font-weight: 500; color: var(--mute); }
body.as26 .as26-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: var(--hair);
  border-radius: var(--r);
  color: var(--ink);
  text-decoration: none;
}
body.as26 a.as26-row:hover { border-color: var(--ink2); }
body.as26 .as26-row--task { grid-template-columns: 38px minmax(0, 1fr) auto auto; padding: 12px 16px; }
body.as26 .as26-ic {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: var(--chalk);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.as26 .as26-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.as26 .as26-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body.as26 .as26-t { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
body.as26 .as26-m { font-size: 13px; color: var(--mute); }
body.as26 .as26-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: var(--r);
  white-space: nowrap;
  background: var(--chalk);
  color: var(--ink2);
}
body.as26 .as26-chip--bad { background: var(--badbg); color: var(--bad); }
body.as26 .as26-chip--soon { background: var(--warnbg); color: var(--goldt); }
body.as26 .as26-chip--ok { background: var(--okbg); color: var(--ok); }
body.as26 .as26-row__chev { width: 14px; height: 14px; color: var(--mute); }
body.as26 .as26-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--navy);
  border-radius: var(--r);
  background: #fff;
  color: var(--navy);
  font: 600 14px/1 var(--fu);
  white-space: nowrap;
  cursor: pointer;
}
body.as26 .as26-btn:hover { background: var(--chalk); }
body.as26 .as26-btn:disabled { opacity: 0.5; cursor: default; }
body.as26 .as26-empty {
  padding: 36px 16px;
  text-align: center;
  background: #fff;
  border: var(--hair);
  border-radius: var(--r);
  color: var(--ink2);
  font-size: 15px;
}

/* aside */
body.as26 .as26-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border: var(--hair);
  border-radius: var(--r);
}
body.as26 .as26-card__h { margin: 0; font: 600 13px/1.2 var(--fu); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
body.as26 .as26-rec { display: flex; align-items: center; gap: 14px; }
body.as26 .as26-ring { width: 64px; height: 64px; flex: none; color: var(--ink); }
body.as26 .as26-rec__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.as26 .as26-rec__t b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
body.as26 .as26-rec__t span { font-size: 13px; color: var(--mute); }
body.as26 .as26-stripbox { display: flex; flex-direction: column; gap: 6px; }
body.as26 .as26-aside__l { font-size: 13px; color: var(--ink2); }
body.as26 .as26-aside__s { font-size: 12px; color: var(--mute); }
body.as26 .as26-strip { display: flex; gap: 3px; }
body.as26 .as26-strip span { flex: 1; height: 14px; border-radius: 2px; }
body.as26 .as26-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--navy);
  border-radius: var(--r);
  color: var(--navy);
  font: 600 14px/1 var(--fu);
  text-decoration: none;
}
body.as26 .as26-ghost:hover { background: var(--chalk); }
body.as26 .as26-how { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
body.as26 .as26-how li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.4; color: var(--ink2); }
body.as26 .as26-how__n {
  width: 24px;
  height: 24px;
  border-radius: var(--r);
  background: var(--chalk);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- item view: the old viewer, full width ---------- */
body.as26 .as-main.as26-item { grid-template-columns: minmax(0, 1fr); }
body.as26 .as26-back {
  flex: none;
  padding: 8px 20px;
  background: #fff;
  border-bottom: var(--hair);
}
body.as26 .as26-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--navy);
  font: 600 14px/1 var(--fu);
  text-decoration: none;
}
body.as26 .as26-back a:hover { color: var(--ink); text-decoration: underline; }
body.as26 .as26-back svg { width: 16px; height: 16px; }

/* "My skills map": one row per diagnostic topic (the map: /assigned/skills/), and its link in the diagnostic card */
body.as26 .as26-maps .as26-ic { background: #eaf0fb; }
body.as26 .as26-mapbtn { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: var(--r); border: 1px solid var(--navy); color: var(--navy); background: #fff; white-space: nowrap; }
body.as26 .as26-maps a.as26-row:hover .as26-mapbtn { background: var(--navy); color: #fff; }
body.as26 .as26-diag__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.as26 .as26-ghost--map { min-height: 44px; padding: 0 18px; background: #fff; }

@media (max-width: 1100px) {
  body.as26 .as26-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px), (pointer: coarse) {
  body.as26 .as26-back a { min-height: 44px; }
  body.as26 .as26-seg button { min-height: 44px; }
  body.as26 .as26-btn, body.as26 .as26-ghost { min-height: 44px; }
}
@media (max-width: 599px) {
  body.as26 .as26-in { padding: 18px 16px 24px; gap: 18px; }
  body.as26 .as26-head h1 { font-size: 28px; }
  body.as26 .as26-aside { display: none; }
  body.as26 .as26-ladder { grid-template-columns: minmax(0, 1fr); }
  body.as26 .as26-diag { padding: 18px 16px; }
  body.as26 .as26-diag__top { flex-direction: column; align-items: stretch; }
  body.as26 .as26-gold { width: 100%; }
  body.as26 .as26-row { grid-template-columns: 38px minmax(0, 1fr) 14px; gap: 6px 12px; }
  body.as26 .as26-row > .as26-chip { grid-column: 2; grid-row: 2; justify-self: start; }
  body.as26 .as26-row > .as26-row__chev { grid-column: 3; grid-row: 1; }
  body.as26 .as26-row--task { grid-template-columns: 38px minmax(0, 1fr); }
  body.as26 .as26-row--task > .as26-chip { grid-column: 2; grid-row: 2; }
  body.as26 .as26-row--task > .as26-btn { grid-column: 1 / -1; grid-row: 3; width: 100%; }
  body.as26 .as26-maps .as26-row > .as26-mapbtn { grid-column: 2; grid-row: 2; justify-self: start; }
  body.as26 .as26-diag__acts { flex-direction: column; align-items: stretch; }
  body.as26 .as26-back { padding: 4px 14px; }
}
