/* archive-board.css — shared by dashboard.html + teacher-dashboard.html.
   Reuses existing tokens only: --ease var, glass panel look, status-pill
   colors already defined per-page. No new palette. */

.archive-board-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(8,10,16,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.archive-board-panel {
  width: min(720px, 100%); max-height: 86vh; overflow: auto;
  background: linear-gradient(180deg, #12151d, #0e1119);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 18px;
}
.archive-board-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.archive-board-title { font-size: 1.15rem; font-weight: 600; color: var(--text-body, #fff); }
.archive-board-close {
  background: none; border: none; color: var(--text-body, #fff);
  font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .7;
}
.archive-board-close:hover { opacity: 1; }

.archive-board-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.ab-slot {
  aspect-ratio: 1 / 1;
  min-height: 44px;                 /* tap target */
  border-radius: 6px;
  border: 1px solid var(--ab-teacher, rgba(255,255,255,.15));
  background: color-mix(in srgb, var(--ab-teacher, #333) 22%, #12151d);
  color: var(--text-body, #fff);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 3px; position: relative;
  transition: transform .15s var(--ease, ease), box-shadow .15s var(--ease, ease);
}
.ab-slot:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--ab-teacher, #fff) inset; }
.ab-slot:focus-visible, .ab-slot.is-selected { outline: none; box-shadow: 0 0 0 2px #fff inset, 0 0 12px var(--ab-teacher, #fff); }
.ab-slot-dot { width: 7px; height: 7px; border-radius: 50%; display: block; align-self: flex-end; }
.ab-slot-date { font-size: .58rem; line-height: 1.05; letter-spacing: .01em; opacity: .85; text-align: center; padding-bottom: 2px; }
.ab-slot-empty {
  border: 1px dashed rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  cursor: default; min-height: 0;
}
.ab-slot-empty:hover { transform: none; box-shadow: none; }
.archive-board-note { min-height: 1.1em; margin: 0 0 10px; font-size: .8rem; color: #3ecf6a; }
.archive-board-note.is-error { color: #ff6b6b; }
.archive-board-empty {
  text-align: center; opacity: .6; padding: 24px 0; color: var(--text-body, #fff);
}

.archive-board-detail {
  position: fixed; inset: 0; z-index: 9100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(8,10,16,.55);
}
.archive-board-detail[hidden] { display: none; }
.ab-detail-card {
  width: min(380px, 100%); max-height: 86vh; overflow: auto;
  background: linear-gradient(180deg, #12151d, #0e1119);
  border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 14px 16px 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.ab-dd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ab-dd-x {
  background: none; border: none; color: var(--text-body, #fff);
  font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .7; min-width: 44px; min-height: 44px;
}
.ab-dd-x:hover { opacity: 1; }
.ab-dd-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .85rem; padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--text-body, #fff);
}
.ab-dd-row > span:last-child, .ab-dd-link { text-align: right; overflow-wrap: anywhere; }
.ab-dd-label { opacity: .6; flex: 0 0 auto; }
.ab-dd-link { color: #3ecf6a; text-decoration: none; font-weight: 600; }
.ab-dd-link:hover { text-decoration: underline; }
.ab-dd-err { margin: 8px 0 0; font-size: .8rem; color: #ff6b6b; }
.ab-restore-btn {
  margin-top: 12px; width: 100%; min-height: 44px;
  background: #3ecf6a; color: #0e1119; border: none;
  border-radius: 8px; padding: 10px 12px; font-weight: 600; cursor: pointer;
}
.ab-restore-btn:hover:not(:disabled) { filter: brightness(1.08); }
.ab-restore-btn:disabled { opacity: .55; cursor: wait; }

/* MOBILE: bigger tap targets, 5 columns, the detail card slides up as a bottom sheet */
@media (max-width: 640px) {
  .archive-board-overlay { padding: 10px; align-items: flex-end; }
  .archive-board-panel { max-height: 92vh; padding: 14px; border-radius: 16px 16px 12px 12px; }
  .archive-board-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .ab-slot { min-height: 56px; }
  .ab-slot-date { font-size: .62rem; }
  .archive-board-head { flex-wrap: wrap; gap: 8px; }
  .archive-board-detail { align-items: flex-end; padding: 0; }
  .ab-detail-card { width: 100%; max-height: 80vh; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

.section-heading-row {
  display: flex; align-items: center; justify-content: flex-start; gap: 20px;
}
.section-heading-row .section-heading { margin: 0; }

.archive-open-btn {
  background: none; border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px; color: var(--text-body, #fff);
  padding: 6px 12px; font-size: .85rem; cursor: pointer; opacity: .85;
  display: inline-flex; align-items: center; gap: 8px;
}
.archive-open-btn:hover { opacity: 1; }

/* Chest icon — same 2.2s ease-in-out infinite cadence as .se-lock-on's
   float, swapped from a bob to a wobble, glow swapped from green to gold
   (the site's existing "treasure"-adjacent token, #f2c94c). */
@keyframes chest-wobble {
  0%, 100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg); }
}
.chest-icon {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  animation: chest-wobble 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 4.8px rgba(242, 201, 76, .6));
}
.chest-send-btn {
  background: none; border: none; cursor: pointer;
  padding: 0; margin-left: 20px;
  display: inline-flex; align-items: center;
}
.chest-send-btn .chest-icon { font-size: .95rem; }
.chest-send-btn.is-armed .chest-icon { filter: drop-shadow(0 0 7.2px rgba(242, 201, 76, .8)); }

@media (prefers-reduced-motion: reduce) {
  .chest-icon { animation: none; }
}

/* TEACHER-ARCHIVED NOTICE (2026-09-05). Student-side read-only banner on a
   session row whose teacher has archived the lesson. Reuses the existing
   gold "treasure" token (#f2c94c) from .chest-icon above -- no new colors. */
.teacher-archived-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .35rem 0 .1rem;
  padding: .32rem .6rem;
  border: 1px solid rgba(242, 201, 76, .38);
  border-radius: 8px;
  background: rgba(242, 201, 76, .10);
}
.teacher-archived-note .tan-text {
  font-size: .78rem;
  letter-spacing: .01em;
  color: #f2c94c;
}
.teacher-archived-note .chest-icon { font-size: .85rem; }
