/* 2026-10-26: weekly heatmap tabs, standing pills, Advisor, Tutors, Tutoring feedback, tutor-mode hiding */
.hw .hw-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hw-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; font: inherit; cursor: pointer; color: var(--charcoal); min-width: 84px; max-width: 170px; text-align: left; }
.hw-tab span { font-weight: 700; font-size: .92rem; }
.hw-tab small { color: var(--muted); font-size: .74rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hw-tab:hover { background: var(--blue-tint); }
.hw-tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.hw-tab.on small { color: #dbe5fb; }
.hw-narr { background: var(--blue-tint); border: 1px solid var(--blue-tint-2); border-radius: 14px; padding: 12px 16px; margin: 6px 0 12px; }
.hw-narr p { margin: 4px 0 0; }
.hw-narr-h { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-dark); }
.hw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hw-table { min-width: 560px; }
.hw-table th, .hw-table td { white-space: nowrap; }
.hw-table td.name { text-align: left; font-weight: 600; position: sticky; left: 0; background: #fff; z-index: 1; }
.hw-table th.hw-sh { position: sticky; left: 0; background: #fff; z-index: 2; text-align: left; }
.hw-table td.hw-prac { white-space: normal; min-width: 260px; max-width: 420px; text-align: left; }
.hw-table th.hw-prach { text-align: left; }
.hw-classrow td { border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); font-weight: 700; }
.hw-classrow td.name { background: var(--blue-tint); }
.hw-rank { text-align: center; color: var(--blue-dark); }
.hw-rankh, .hw-stdh, .hw-avgh { text-align: center; }
.hw-sumh { margin: 18px 0 2px; }
.hw-tips { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hw-tips th, .hw-tips td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.hw-chip { display: inline-block; background: var(--pink); color: var(--red-dark); border-radius: 999px; padding: 1px 9px; font-size: .8rem; font-weight: 700; margin: 1px 2px 1px 0; }
.stand-pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.stand-up { background: #e3f5ec; color: #0d6a46; }
.stand-near { background: #fff3d6; color: #7a5200; }
.stand-down { background: #fde6e3; color: #a22a22; }
.stand-none { background: #eceaea; color: #5a5757; }
/* Advisor / Tutors / Tutoring feedback */
.av-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.av-send select, .av-send textarea, .tf select, .tf textarea { width: 100%; margin: 4px 0 10px; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.av-send textarea, .tf textarea { resize: vertical; }
.av-ferpa { background: #f5f7fc; border-left: 3px solid var(--blue); padding: 8px 10px; border-radius: 6px; margin-top: 12px; }
.av-new { gap: 8px; flex-wrap: wrap; }
.av-new input { flex: 1 1 180px; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; }
.av-acc { padding: 6px 0; border-bottom: 1px solid var(--line); }
.av-item { position: relative; }
.av-h { margin: 14px 0 4px; color: var(--blue-dark); }
.tu-row { border-bottom: 1px solid var(--line); padding: 10px 0; }
.tu-secs { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.tu-cb { display: inline-flex; gap: 6px; align-items: center; background: var(--blue-tint); border-radius: 999px; padding: 3px 10px; font-size: .88rem; }
.tf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tf-out h4 { margin: 12px 0 2px; color: var(--blue-dark); }
.tf-out ul { margin: 2px 0 6px; padding-left: 20px; }
/* tutors never see instructor-only controls (the server also refuses them) */
body.tutor-mode [data-msg], body.tutor-mode [data-full], body.tutor-mode .join-box, body.tutor-mode #askPlan, body.tutor-mode #askVideo, body.tutor-mode .ask-tools,
body.tutor-mode [data-vtut], body.tutor-mode .tutor-hide { display: none !important; }
@media (max-width: 760px) {
  .av-grid, .tf-grid { grid-template-columns: 1fr; }
  .hw-tab { min-width: 70px; padding: 5px 9px; }
  .hw-table td.name, .hw-table th.hw-sh { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
}
/* heatmap column heads wrap instead of overlapping */
.hw-table thead th { white-space: normal; min-width: 76px; max-width: 130px; line-height: 1.2; vertical-align: bottom; font-size: .78rem; }
.hw-table thead th.hw-sh { min-width: 110px; }
.hw-table thead th.hw-prach { min-width: 260px; max-width: 420px; }
@media (max-width: 700px) {
  .hw-tips, .hw-tips thead, .hw-tips tbody, .hw-tips tr, .hw-tips th, .hw-tips td { display: block; width: auto; }
  .hw-tips thead { position: absolute; left: -9999px; }
  .hw-tips tr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; margin: 8px 0; }
  .hw-tips td { border: 0; padding: 3px 0; overflow-wrap: anywhere; }
}
.cw-lp{margin-top:.3rem}.cw-lp summary{cursor:pointer;color:var(--brand,#1f2a5a);font-size:.85rem;font-weight:600}.cw-lp>div{margin-top:.3rem}
.cw-item.hid:has(.cw-lp){opacity:1;background:#fff}
body.tutor-mode .ask-tools, body.tutor-mode #askPlan, body.tutor-mode #askVideo { display: none !important; }
