/* assets/css/redesign-2026.css ----------------------------------------------
   ChessKidoo — 2026 visual refresh for Progress, Tournaments & Live Session.

   Scoped to specific panels so it layers cleanly over the existing JS-driven
   markup without changing any IDs, structure, or data wiring.
   --------------------------------------------------------------- */

/* ════════════════════════════════════════════════════════════════════════
   Shared: modern glass cards inside the redesigned panels
   ════════════════════════════════════════════════════════════════════════ */
#student-panel-progress .p-card,
#student-panel-tournaments .p-card,
#student-panel-classroom .p-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#student-panel-progress .p-card:hover,
#student-panel-tournaments .p-card:hover,
#student-panel-classroom .p-card:hover {
  border-color: rgba(232,184,75,0.32);
  box-shadow: 0 16px 40px -20px rgba(0,0,0,0.8);
}
#student-panel-progress .p-card-title,
#student-panel-tournaments .p-card-title,
#student-panel-classroom .p-card-title { letter-spacing: -0.01em; }

/* ════════════════════════════════════════════════════════════════════════
   Hero header (additive markup .ck-rd-hero)
   ════════════════════════════════════════════════════════════════════════ */
.ck-rd-hero {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 22px 26px; margin-bottom: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(232,184,75,0.20), transparent 55%),
    radial-gradient(120% 140% at 0% 100%, rgba(20,184,166,0.18), transparent 55%),
    linear-gradient(135deg, #1a1f2e, #11151f);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 50px -26px rgba(0,0,0,0.9);
}
.ck-rd-hero::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; opacity: .12;
  background: radial-gradient(circle, #e8b84b, transparent 70%);
}
.ck-rd-hero-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.ck-rd-hero-ic {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(145deg, rgba(232,184,75,0.25), rgba(232,184,75,0.08));
  border: 1px solid rgba(232,184,75,0.35);
}
.ck-rd-hero-title { font-size: 1.32rem; font-weight: 800; color: #f6f8fc; line-height: 1.15; }
.ck-rd-hero-sub { font-size: 0.86rem; color: rgba(255,255,255,0.6); margin-top: 3px; }
.ck-rd-hero-spacer { flex: 1; }
.ck-rd-hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20,184,166,0.15); color: #2dd4bf;
  border: 1px solid rgba(20,184,166,0.4); border-radius: 999px;
  padding: 6px 14px; font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.ck-rd-hero-chip .ck-rd-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf;
  animation: ckRdPulse 1.6s ease-out infinite;
}
@keyframes ckRdPulse { 0%{box-shadow:0 0 0 0 rgba(45,212,191,.6)} 70%{box-shadow:0 0 0 8px rgba(45,212,191,0)} 100%{box-shadow:0 0 0 0 rgba(45,212,191,0)} }

/* ════════════════════════════════════════════════════════════════════════
   PROGRESS — score ring, pillars
   ════════════════════════════════════════════════════════════════════════ */
#student-panel-progress #progScoreRing { filter: drop-shadow(0 0 6px rgba(20,184,166,0.5)); }
#student-panel-progress #progOverallScore {
  background: linear-gradient(180deg, #fff, #cdd6e6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* gradient, glossy pillar bars */
#student-panel-progress #progBarAttendance { background: linear-gradient(90deg,#0d9488,#2dd4bf) !important; }
#student-panel-progress #progBarPuzzle     { background: linear-gradient(90deg,#b8860b,#f5c542) !important; }
#student-panel-progress #progBarRating     { background: linear-gradient(90deg,#2563eb,#60a5fa) !important; }
#student-panel-progress #progBarGames      { background: linear-gradient(90deg,#7c3aed,#c084fc) !important; }
#student-panel-progress #progBarHw         { background: linear-gradient(90deg,#db2777,#f9a8d4) !important; }
#student-panel-progress [id^="progBar"] { box-shadow: 0 0 10px -2px currentColor; }

/* ════════════════════════════════════════════════════════════════════════
   TOURNAMENTS — gradient event cards
   ════════════════════════════════════════════════════════════════════════ */
#student-panel-tournaments .p-tournament-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 4px solid var(--p-gold, #e8b84b);
  border-radius: 14px; padding: 16px 18px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
#student-panel-tournaments .p-tournament-card:hover {
  transform: translateX(3px);
  box-shadow: 0 14px 34px -22px rgba(0,0,0,0.85);
}
#student-panel-tournaments .p-tournament-card.weekly { border-left-color: var(--p-blue, #5b9cf6); }
#student-panel-tournaments .p-tournament-card.major  { border-left-color: var(--p-gold, #e8b84b); }
#student-panel-tournaments .p-tournament-title { font-size: 1.06rem; font-weight: 800; color: #f3f6fb; margin-bottom: 6px; }
#student-panel-tournaments .p-tournament-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.6); }
#student-panel-tournaments .p-tournament-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ════════════════════════════════════════════════════════════════════════
   LIVE SESSION / CLASSROOM — tabs, live frame, video, coach note
   ════════════════════════════════════════════════════════════════════════ */
#student-panel-classroom .sc-tab-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  border-radius: 10px; padding: 8px 14px; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: .16s;
}
#student-panel-classroom .sc-tab-btn:hover { border-color: rgba(232,184,75,0.4); color: #fff; }
#student-panel-classroom .sc-tab-btn.active {
  background: linear-gradient(135deg, var(--p-gold,#e8b84b), #d99706);
  border-color: transparent; color: #1a1407;
  box-shadow: 0 6px 16px -8px rgba(232,184,75,0.7);
}

/* Live banner (additive markup .ck-live-banner) */
.ck-live-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(239,68,68,0.16), rgba(20,16,8,0.4));
  border: 1px solid rgba(239,68,68,0.4); border-radius: 14px;
  padding: 13px 18px; margin-bottom: 16px;
}
.ck-live-dot {
  width: 11px; height: 11px; border-radius: 50%; background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.7); animation: ckLiveDot 1.3s infinite;
}
@keyframes ckLiveDot { 0%{box-shadow:0 0 0 0 rgba(239,68,68,.7)} 70%{box-shadow:0 0 0 10px rgba(239,68,68,0)} 100%{box-shadow:0 0 0 0 rgba(239,68,68,0)} }
.ck-live-banner-title { font-weight: 800; color: #fecaca; font-size: 0.98rem; }
.ck-live-banner-sub { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* Live board gets a soft glow so students focus on it */
#student-panel-classroom #scLiveBoard,
#student-panel-classroom #scHwBoard {
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(91,156,246,0.35), 0 14px 40px -22px rgba(91,156,246,0.6);
}
#student-panel-classroom #scLiveVideoBox {
  border-radius: 12px !important;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(91,156,246,0.12), transparent 60%),
    #07090f !important;
}
#student-panel-classroom #scLiveCoachNote {
  background: rgba(20,184,166,0.06);
  border: 1px solid rgba(20,184,166,0.18);
  border-radius: 10px; padding: 11px 13px;
}

/* Live class — Google Meet join card */
.ck-meet-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(20,16,8,0.5));
  border: 1px solid rgba(245,158,11,0.45); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 16px;
  box-shadow: 0 12px 34px -20px rgba(245,158,11,0.6);
}
.ck-meet-card-wait { background: linear-gradient(135deg, rgba(148,163,184,0.12), rgba(15,23,42,0.5)); border-color: rgba(148,163,184,0.35); box-shadow: none; }
.ck-meet-ic { font-size: 1.9rem; line-height: 1; }
.ck-meet-body { flex: 1; min-width: 180px; }
.ck-meet-title { font-weight: 800; color: #fde9c8; font-size: 1rem; }
.ck-meet-card-wait .ck-meet-title { color: #e2e8f0; }
.ck-meet-sub { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 3px; }
.ck-meet-join {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #1a1407;
  font-weight: 800; padding: 12px 20px; border-radius: 12px; text-decoration: none;
  white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 20px -8px rgba(245,158,11,0.8);
}
.ck-meet-join:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(245,158,11,0.9); }
.ck-live-videobox {
  width: 100%; min-height: 150px; border-radius: 12px;
  border: 1px solid rgba(91,156,246,0.25);
  background: radial-gradient(120% 120% at 50% 0%, rgba(91,156,246,0.12), transparent 60%), #0a0e17;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px;
}
.ck-live-videobox-ic { font-size: 2rem; opacity: 0.8; }

/* ════════════════════════════════════════════════════════════════════════
   STUDENT — dedicated Homework section
   ════════════════════════════════════════════════════════════════════════ */
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hw-item {
  background: linear-gradient(165deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; padding: 15px 16px;
  transition: transform .15s ease, border-color .15s ease;
}
.hw-item:hover { transform: translateY(-2px); border-color: rgba(91,156,246,0.4); }
.hw-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hw-item-icon { font-size: 1.4rem; }
.hw-item-title { font-weight: 800; color: #f1f5fb; font-size: 1rem; margin-bottom: 5px; }
.hw-item-meta { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.hw-item-desc {
  font-size: 0.82rem; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 10px;
  background: rgba(0,0,0,0.18); border-radius: 8px; padding: 8px 10px;
}
.hw-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hw-item-actions .p-btn { flex: 1; min-width: 90px; }
@media (max-width: 640px) { .hw-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════
   Puzzle board — tap-to-move highlights
   ════════════════════════════════════════════════════════════════════════ */
#studentPuzzleBoardContainer [data-square] { position: relative; }
#studentPuzzleBoardContainer [data-square].pz-selected {
  box-shadow: inset 0 0 0 4px rgba(245,158,11,0.9);
}
#studentPuzzleBoardContainer [data-square].pz-legal::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 30%; height: 30%; transform: translate(-50%,-50%);
  border-radius: 50%; background: rgba(34,197,94,0.55); pointer-events: none; z-index: 4;
}
#studentPuzzleBoardContainer [data-square].pz-legal-cap {
  box-shadow: inset 0 0 0 4px rgba(34,197,94,0.8); border-radius: 4px;
}

/* ════════════════════════════════════════════════════════════════════════
   Tournament Radar — premium polish
   ════════════════════════════════════════════════════════════════════════ */
#studentTournamentRadarContainer .tf-grid,
#student-panel-tournaments .tf-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.tf-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 16px !important;
  padding: 16px 17px !important;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.7) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
  position: relative; overflow: hidden;
}
.tf-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--card-stripe-color, #e8b84b);
}
.tf-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(232,184,75,0.4) !important;
  box-shadow: 0 18px 42px -20px rgba(0,0,0,0.85) !important;
}
.tf-card h3 { font-size: 1rem !important; }
.tf-badge {
  display: inline-block; border-radius: 999px !important; padding: 3px 11px !important;
  font-size: 0.7rem !important; font-weight: 700; letter-spacing: .02em;
}
.tf-card .btn-gold { border-radius: 10px !important; font-weight: 800 !important; }
.tf-card .btn-outline { border-radius: 10px !important; }
/* filter bar */
#studentTournamentRadarContainer .filter-bar,
#student-panel-tournaments .filter-bar {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 14px !important;
}
#studentTournamentRadarContainer .premium-select,
#studentTournamentRadarContainer #tf-search {
  border-radius: 9px !important; height: 38px;
}
.tf-radar-container { filter: drop-shadow(0 0 12px rgba(20,184,166,0.45)); }
@media (max-width: 640px) {
  #studentTournamentRadarContainer .tf-grid,
  #student-panel-tournaments .tf-grid { grid-template-columns: 1fr; }
  #studentTournamentRadarContainer .filter-bar { gap: 10px !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   Coach — My Students: guarantee buttons/dropdowns are always clickable
   ════════════════════════════════════════════════════════════════════════ */
#coachStudentsGrid .p-live-card { isolation: isolate; }
#coachStudentsGrid .p-icon-btn,
#coachStudentsGrid select,
#coachStudentsGrid .p-live-name {
  position: relative; z-index: 2; pointer-events: auto !important;
}
#coachStudentsGrid .p-icon-btn { min-width: 38px; min-height: 38px; }

/* ════════════════════════════════════════════════════════════════════════
   Coach — Homework assign tab: cleaner, more premium form + rows
   ════════════════════════════════════════════════════════════════════════ */
#ccTabAssign .p-form-control, #ccTabAssign .p-input, #ccTabAssign select, #ccTabAssign textarea {
  border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease;
}
#ccTabAssign .p-form-control:focus, #ccTabAssign .p-input:focus,
#ccTabAssign select:focus, #ccTabAssign textarea:focus {
  outline: none; border-color: var(--p-gold, #e8b84b);
  box-shadow: 0 0 0 3px rgba(232,184,75,0.15);
}
#ccTabAssign .p-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.55); }

/* Column headers */
.cls-col-head {
  font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.cls-count-badge {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px;
  display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 800;
  color: #0c1322; background: linear-gradient(135deg, #f3cd6b, #e8b84b);
  box-shadow: 0 2px 6px rgba(232,184,75,0.35);
}

/* Assignment cards */
.cls-assign-row {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.022));
  border: 1px solid rgba(255,255,255,0.09); border-radius: 14px;
  padding: 13px 15px 13px 18px; margin-bottom: 11px; display: flex; align-items: center; gap: 13px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.cls-assign-row::before {           /* left accent stripe, coloured by mode */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--p-gold, #e8b84b); opacity: .9;
}
.cls-assign-row[data-mode="study"]::before    { background: #5b9bd5; }
.cls-assign-row[data-mode="guess"]::before     { background: #e8b84b; }
.cls-assign-row[data-mode="practice"]::before  { background: #8b6cef; }
.cls-assign-row:hover {
  transform: translateY(-2px); border-color: rgba(232,184,75,0.4);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}
.cls-assign-row .cls-type-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; background: rgba(232,184,75,0.12); border: 1px solid rgba(232,184,75,0.25); flex-shrink: 0;
}
.cls-assign-info { flex: 1; min-width: 0; }
.cls-assign-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cls-assign-head strong { color: #f1f5fb; font-size: 0.96rem; }
.cls-mode-tag {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 999px; color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
}
.cls-assign-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.cls-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  color: rgba(255,255,255,0.82); background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); white-space: nowrap;
}
.cls-chip-to     { color: #f3cd6b; background: rgba(232,184,75,0.12); border-color: rgba(232,184,75,0.3); }
.cls-chip-all    { color: #7dd0a8; background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.3); }
.cls-chip-due    { color: #cfe0f5; }
.cls-chip-soon   { color: #f4c777; background: rgba(232,184,75,0.14); border-color: rgba(232,184,75,0.32); }
.cls-chip-overdue{ color: #f49b9b; background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.35); }

/* Action buttons */
.cls-assign-acts { display: flex; gap: 6px; flex-shrink: 0; }
.cls-act {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-size: 0.95rem; cursor: pointer; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); transition: all .14s ease; line-height: 1;
}
.cls-act:hover { transform: translateY(-1px); }
.cls-act-edit:hover { background: rgba(232,184,75,0.18); border-color: rgba(232,184,75,0.5); }
.cls-act-lab:hover  { background: rgba(91,155,213,0.18); border-color: rgba(91,155,213,0.5); }
.cls-act-del:hover  { background: rgba(239,68,68,0.18);  border-color: rgba(239,68,68,0.5); }

/* Empty state */
#ccAssignmentList .cls-empty {
  text-align: center; padding: 34px 16px; color: rgba(255,255,255,0.45);
  font-size: 0.86rem; border: 1px dashed rgba(255,255,255,0.14); border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.cls-chip-att { color: #b9a7f2; background: rgba(139,108,239,0.14); border-color: rgba(139,108,239,0.34); }

/* Mobile: stack actions, keep tappable */
@media (max-width: 640px) {
  .cls-assign-row { flex-wrap: wrap; }
  .cls-assign-acts { width: 100%; justify-content: flex-end; margin-top: 4px; }
  .cls-act { width: 40px; height: 40px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Homework ATTACHMENTS — images load inline, PDFs/docs view + download
   ════════════════════════════════════════════════════════════════════════ */
.hw-attach { margin-top: 9px; display: flex; flex-direction: column; gap: 8px; }
.hw-attach-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-attach-img {
  display: block; width: 78px; height: 78px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04);
  transition: transform .15s ease, border-color .15s ease;
}
.hw-attach-img:hover { transform: scale(1.04); border-color: rgba(232,184,75,0.6); }
.hw-attach-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-attach-files { display: flex; flex-wrap: wrap; gap: 7px; }
.hw-attach-file {
  display: inline-flex; align-items: stretch; border-radius: 9px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.045);
  transition: border-color .14s ease, background .14s ease;
}
.hw-attach-file:hover { border-color: rgba(91,155,213,0.55); background: rgba(91,155,213,0.1); }
.hw-attach-file > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  font-size: 0.78rem; font-weight: 600; color: #dbe7f5; text-decoration: none;
  max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hw-attach-dl {
  display: inline-flex; align-items: center; padding: 0 10px; font-size: 0.95rem;
  color: #8fd0a8; text-decoration: none; border-left: 1px solid rgba(255,255,255,0.14);
  background: rgba(46,204,113,0.08);
}
.hw-attach-dl:hover { background: rgba(46,204,113,0.2); }

/* Coach assign form — file input + current-attachment chips */
.cls-file-input { padding: 8px 10px !important; font-size: 0.82rem; cursor: pointer; }
.cls-file-input::file-selector-button {
  margin-right: 10px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(232,184,75,0.4); background: rgba(232,184,75,0.14);
  color: #f3cd6b; font-weight: 600; font-size: 0.8rem;
}
.cls-file-input::file-selector-button:hover { background: rgba(232,184,75,0.24); }
.cls-attach-existing { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cls-attach-current-label { width: 100%; font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.cls-attach-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px;
  border-radius: 999px; font-size: 0.74rem; color: #dbe7f5;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
}
.cls-attach-x {
  width: 18px; height: 18px; border-radius: 50%; border: none; cursor: pointer; line-height: 1;
  background: rgba(239,68,68,0.18); color: #f49b9b; font-size: 0.95rem; display: grid; place-items: center;
}
.cls-attach-x:hover { background: rgba(239,68,68,0.4); color: #fff; }

@media (max-width: 640px) {
  .hw-attach-img { width: 64px; height: 64px; }
  .hw-attach-file > a { max-width: 150px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Coach Grades — submission evaluation cards (files + grade + feedback)
   ════════════════════════════════════════════════════════════════════════ */
.cls-sub-list { display: flex; flex-direction: column; gap: 11px; }
.cls-sub-empty { color: rgba(255,255,255,0.4); font-size: 0.85rem; padding: 14px; text-align: center; border: 1px dashed rgba(255,255,255,0.12); border-radius: 12px; }
.cls-sub-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.09); border-radius: 13px; padding: 13px 15px;
}
.cls-sub-card.cls-sub-reviewed { border-color: rgba(46,204,113,0.32); }
.cls-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cls-sub-who { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cls-sub-who strong { color: #f1f5fb; font-size: 0.95rem; }
.cls-sub-when { font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.cls-sub-acc { font-weight: 800; font-size: 0.9rem; }
.cls-sub-note { margin-top: 7px; font-size: 0.83rem; color: #c7d4e2; background: rgba(255,255,255,0.04); border-radius: 8px; padding: 7px 10px; }
.cls-sub-files { margin-top: 9px; }
.cls-sub-label, .cls-sub-nofile { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.cls-sub-nofile { margin-top: 8px; font-style: italic; }
.cls-sub-eval { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,0.08); }
.cls-grade-in { width: 200px; max-width: 100%; }
.cls-fb-in { flex: 1; min-width: 180px; height: 38px; min-height: 38px; resize: vertical; font-size: 0.84rem; }
.cls-sub-badge { align-self: center; font-size: 0.72rem; font-weight: 700; color: #7dd0a8; background: rgba(46,204,113,0.14); border: 1px solid rgba(46,204,113,0.3); border-radius: 999px; padding: 4px 10px; }

/* Student-side coach feedback banner */
.hw-feedback {
  margin-top: 9px; border-radius: 10px; padding: 9px 12px;
  background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.28);
}
.hw-feedback-head { font-size: 0.78rem; font-weight: 700; color: #8fd9b0; }
.hw-feedback-head b { color: #b9f0cf; }
.hw-feedback-body { font-size: 0.83rem; color: #d4e7da; margin-top: 3px; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════════════
   Tournament — tidy up the big "Location Telemetry" radar panel
   ════════════════════════════════════════════════════════════════════════ */
#studentTournamentRadarContainer .tf-radar-container {
  width: 92px !important; height: 92px !important; margin: 0 auto 8px !important;
}
#studentTournamentRadarContainer h4 { font-size: 1rem !important; }

/* ════════════════════════════════════════════════════════════════════════
   COACH — student puzzle progress chips
   ════════════════════════════════════════════════════════════════════════ */
.cpz-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.cpz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cpz-name { font-weight: 700; color: #f1f5fb; font-size: 0.92rem; }
.cpz-count {
  background: rgba(34,197,94,0.15); color: #4ade80;
  border: 1px solid rgba(34,197,94,0.35); border-radius: 999px;
  padding: 3px 11px; font-size: 0.74rem; font-weight: 700;
}
.cpz-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cpz-chip {
  background: rgba(91,156,246,0.12); color: #9ec1f5;
  border: 1px solid rgba(91,156,246,0.25); border-radius: 7px;
  padding: 3px 9px; font-size: 0.74rem;
}
.cpz-more { color: rgba(255,255,255,0.45); font-size: 0.74rem; align-self: center; }
.cpz-none { color: rgba(255,255,255,0.35); font-size: 0.8rem; font-style: italic; }

/* ════════════════════════════════════════════════════════════════════════
   ADMIN — Access Manager polish
   ════════════════════════════════════════════════════════════════════════ */
.acc-stats-row { gap: 12px; }
.acc-stat-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  transition: transform .16s ease, border-color .16s ease;
}
.acc-stat-card:hover { transform: translateY(-2px); border-color: rgba(232,184,75,0.3) !important; }
.acc-stat-icon { border-radius: 12px !important; }
#adminAccessTable .p-table { border-collapse: separate; border-spacing: 0; }
#adminAccessTable .p-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: rgba(20,26,38,0.96); backdrop-filter: blur(4px);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55); padding: 11px 12px;
}
#adminAccessTable .p-table tbody tr { transition: background .14s ease; }
#adminAccessTable .p-table tbody tr:hover { background: rgba(91,156,246,0.06); }
#adminAccessTable .p-table tbody td { padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.05); }
.acc-search-row .p-input:focus { outline: none; border-color: var(--p-gold, #e8b84b); }
