/* 소리과제 Day 격자 (js/shared/sound-hw-grid.js) + 코치 소리과제 탭 */
.shw-grid { display: flex; flex-direction: column; gap: 6px; }
.shw-week { display: flex; align-items: center; gap: 8px; }
.shw-week-label { width: 30px; flex: none; font-size: 11px; color: #9E9E9E; text-align: right; }
.shw-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; flex: 1; max-width: 340px; }
.shw-cell {
  position: relative; height: 40px; border-radius: 10px; border: 1.5px solid #E0E0E0;
  background: #FAFAFA; color: #9E9E9E; font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0;
}
.shw-cell .shw-mark { font-size: 12px; }
.shw-cell.is-done, .shw-cell.is-late { background: #E8F5E9; border-color: #66BB6A; color: #2E7D32; }
.shw-cell.is-missed { background: #FFF; border-color: #FFCDD2; color: #E57373; }
.shw-cell.is-upcoming { background: #FAFAFA; border-style: dashed; }
.shw-cell.is-today { box-shadow: 0 0 0 2px #FF7E17; }
.shw-grid.is-pick .shw-cell.is-done-here { background: #FFF3E0; border-color: #FFA726; color: #E65100; }
.shw-grid.is-pick .shw-cell.is-adding { background: #FF7E17; border-color: #FF7E17; color: #FFF; }
.shw-grid.is-pick .shw-cell.is-removing { background: #FFF; border-color: #E53935; color: #E53935; text-decoration: line-through; }
.shw-cell.is-open { transform: translateY(-1px); box-shadow: 0 0 0 2px #42A5F5; }
.shw-cell.is-open.is-today { box-shadow: 0 0 0 2px #42A5F5, 0 0 0 4px #FF7E17; }
/* 누른 Day 안내 카드 — 그 주 줄 바로 아래. --col = 누른 칸 위치(0~4)로 꼬리를 그 칸 밑에 둔다 */
.shw-detail-row { align-items: stretch; }
.shw-detail-card {
  position: relative; flex: 1; max-width: 340px; margin: 4px 0 2px; padding: 10px 12px;
  background: #E3F2FD; border: 1.5px solid #90CAF9; border-radius: 12px; color: #263238; font-size: 13px; line-height: 1.45;
}
.shw-detail-card::before {
  content: ''; position: absolute; top: -7px; width: 12px; height: 12px; background: #E3F2FD;
  border-left: 1.5px solid #90CAF9; border-top: 1.5px solid #90CAF9; transform: rotate(45deg);
  left: calc((100% - 24px) / 5 * (var(--col) + 0.5) + var(--col) * 6px - 6px);
}
.shw-detail-card.is-enter { animation: shw-pop .18s ease-out; }
@keyframes shw-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.shw-detail-head b { color: #1565C0; }
.shw-detail-title { margin-top: 2px; font-weight: 700; word-break: keep-all; }
.shw-detail-status { margin-top: 4px; font-weight: 700; }
.shw-detail-status.is-done { color: #2E7D32; }
.shw-detail-status.is-miss { color: #E57373; }
.shw-detail-status.is-wait { color: #757575; }
.shw-detail-status.is-sel { color: #E65100; }
.shw-grid.is-kid .shw-detail-card { font-size: 14px; }
.shw-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #757575; margin: 6px 0 10px; }
.shw-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid; vertical-align: -2px; margin-right: 3px; }
.shw-legend .lg-done { background: #E8F5E9; border-color: #66BB6A; }
.shw-legend .lg-missed { background: #FFF; border-color: #FFCDD2; }
.shw-legend .lg-upcoming { background: #FAFAFA; border-color: #E0E0E0; border-style: dashed; }
.shw-legend .lg-here { background: #FFF3E0; border-color: #FFA726; }
.shw-legend .lg-add { background: #FF7E17; border-color: #FF7E17; }

/* 학생 과제 탭 — 아이용으로 크게 */
.shw-grid.is-kid .shw-cell { height: 44px; border-radius: 12px; font-size: 14px; }
/* 아이 화면엔 '못 한 날' 빨강을 안 쓴다(실패 언급 금지) — 예정과 같은 회색, 실선만 */
.shw-grid.is-kid .shw-cell.is-missed { background: #FAFAFA; border-color: #E0E0E0; color: #9E9E9E; }
.hw-record .shw-cells { max-width: none; }
.hw-record .shw-detail-card { max-width: none; }

/* 코치 소리과제 탭 */
.shw-info { font-size: 13px; color: #616161; margin: 4px 0 12px; }
.shw-info b { color: #E65100; }
.shw-list { background: #FFF; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.shw-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #F5F5F5; }
.shw-row:last-child { border-bottom: none; }
.shw-row-main { flex: 1; min-width: 0; }
.shw-row-name { font-weight: 700; font-size: 14px; }
.shw-row-sub { font-size: 11px; color: #9E9E9E; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shw-row-sub .is-here { color: #E65100; font-weight: 600; }
.shw-row-sub .is-miss { color: #E57373; }
.shw-btn-today {
  flex: none; min-width: 74px; height: 36px; border-radius: 10px; border: 1.5px solid #FFA726;
  background: #FFF; color: #E65100; font-weight: 700; font-size: 13px; cursor: pointer;
}
.shw-btn-today.is-on { background: #FF7E17; border-color: #FF7E17; color: #FFF; }
.shw-btn-today:disabled { opacity: .4; cursor: default; }
.shw-btn-pick {
  flex: none; height: 36px; padding: 0 10px; border-radius: 10px; border: 1.5px solid #E0E0E0;
  background: #FFF; color: #424242; font-size: 12px; font-weight: 600; cursor: pointer;
}
.shw-modal { max-width: 460px; }
.shw-modal .modal-body { max-height: 70vh; overflow-y: auto; }
.shw-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.shw-quick button { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid #E0E0E0; background: #FFF; font-size: 12px; cursor: pointer; }
.shw-summary { font-size: 12px; color: #616161; margin-top: 10px; min-height: 16px; }
