/* Check Point — Jenny's homework screens */
.hwlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.hwc { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.hwc.off { opacity: .7; }
.hwtop { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.hwlink code, .hint code { font-size: 12.5px; background: var(--soft, #F1EFEA); border-radius: 6px; padding: 2px 6px; word-break: break-all; }
.row.wrap { flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; background: var(--soft, #F1EFEA); color: var(--muted); border-radius: 999px; padding: 2px 9px; }
.hwform { max-width: 640px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ck { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ck input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--btn, #1E2430); }
.ck span { display: flex; flex-direction: column; gap: 2px; } .ck small { color: var(--muted); font-weight: 600; }
.ok { color: var(--ok); } .warn { color: #B7791F; }
.hwcheck { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hwm { padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; }
.hwm.r { border-color: var(--ok); } .hwm.w { border-color: var(--bad, #C0392B); }
.hwm img { width: 100%; max-height: 300px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.hwm audio { width: 100%; }

/* top bar: the extra Homework tab must not push Log out to a second line.
   Wide: one line. Narrower: the menu tabs get their own full row under the logo + buttons. */
.hd .nav a { white-space: nowrap; flex: none; }
.hd > .btn, .hd > a.btn { flex: none; white-space: nowrap; }
@media (max-width: 1200px) {
  .hd { flex-wrap: wrap; row-gap: 6px; }
  .hd .nav { order: 9; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hd .nav::-webkit-scrollbar { display: none; }
}

/* quiz cards: Start · Homework · Edit · Copy · Delete wrap instead of squeezing */
.qc .row { flex-wrap: wrap; }
@media (max-width: 560px) { .hd .tjk-app { display: none; } .hd { gap: 4px; padding: 8px 10px; } .hd > .btn, .hd > a.btn { padding-left: 8px; padding-right: 8px; } }
