/* ===========================================================================
   v055 — photographed working: confirmation card, list badge, My Work page
   ---------------------------------------------------------------------------
   Photos used to be acknowledged with a toast in the corner, which answered
   neither "did it work?" nor "which question did it go on?". Three additions:
   a confirmation card after the shot, a camera badge on the question card, and
   a My Work page that lists every page the student has photographed.
   =========================================================================== */

/* ---------- the confirmation card ---------- */

.photoConfirm {
  position: fixed;
  z-index: 140;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100vw / var(--ial-ui-zoom, 1) - 24px));
  padding: 12px 14px;
  border: 1px solid #d7e2f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(9, 17, 31, .22);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  pointer-events: none;
}
.photoConfirm.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

.photoConfirmThumb {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.photoConfirmCopy { min-width: 0; flex: 1 1 auto; display: grid; gap: 2px; }
.photoConfirmTitle { font-size: 13.5px; font-weight: 800; color: #0f766e; }
.photoConfirmLine { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.photoConfirmLine em { font-style: normal; font-size: 11.5px; color: #64748b; }
.photoConfirmQid {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photoConfirmCount { font-size: 13px; font-weight: 800; color: #0f172a; }
.photoConfirmActions { flex: none; display: flex; align-items: center; gap: 6px; }
.photoConfirmActions .btn { min-height: 34px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.photoConfirmClose {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 2px;
}
.photoConfirmClose:hover { color: #0f172a; }

/* ---------- the badge on a question card ---------- */

.tag.photoTag { background: #eaf6ff; color: #0b6ea8; font-weight: 800; }

/* ---------- My Work ---------- */

.myWorkHost { display: grid; gap: 14px; }

.myWorkHead h1 { margin: 2px 0 4px; font-size: 22px; font-weight: 900; color: #0f172a; letter-spacing: -.02em; }
.myWorkHead p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; }

.myWorkSummary { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 13px; color: #64748b; }
.myWorkSummary b { font-size: 17px; font-weight: 900; color: #0f172a; }
.myWorkSummary em { font-style: normal; margin-right: 8px; }

.myWorkEmpty {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fafbfe;
}
.myWorkEmpty b { font-size: 15px; font-weight: 800; color: #0f172a; }
.myWorkEmpty span { font-size: 13px; color: #64748b; line-height: 1.55; max-width: 52ch; }
.myWorkEmpty .btn { margin-top: 6px; }

.myWorkList { display: grid; gap: 14px; }

.myWorkItem {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}
.myWorkItemHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.myWorkItemMeta { min-width: 0; display: grid; gap: 2px; font-size: 13px; font-weight: 800; color: #0f172a; }
.myWorkItemMeta span { font-size: 11px; font-weight: 600; color: #94a3b8; }
.myWorkCount { flex: none; display: flex; align-items: baseline; gap: 4px; }
.myWorkCount b { font-size: 15px; font-weight: 900; color: #0f172a; }
.myWorkCount em { font-style: normal; font-size: 11px; color: #64748b; }

.myWorkThumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.myWorkThumb {
  margin: 0;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: zoom-in;
}
.myWorkThumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.myWorkActions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.myWorkActions .btn { min-height: 38px; font-size: 12.5px; }

/* ---------- enlarged interfaces ---------- */

html[data-ui-eff="mid"] .myWorkThumb,
html[data-ui-eff="narrow"] .myWorkThumb { width: 82px; height: 82px; }

html[data-ui-eff="narrow"] .photoConfirm {
  left: 8px;
  right: 8px;
  width: auto;
  transform: translateY(140%);
  flex-wrap: wrap;
}
html[data-ui-eff="narrow"] .photoConfirm.show { transform: translateY(0); }
html[data-ui-eff="narrow"] .photoConfirmCopy { flex: 1 1 140px; }
html[data-ui-eff="narrow"] .photoConfirmActions { flex: 1 1 100%; justify-content: flex-end; }
