/* ===================== CAS Athletic Wear — UAT Review mode ===================== */
.rv-root { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; }
.rv-ui   { pointer-events: auto; font-family: "Archivo", system-ui, -apple-system, sans-serif; }

body.rv-on, body.rv-on a, body.rv-on button, body.rv-on [role="button"] { cursor: crosshair; }

/* floating "leave feedback" button */
.rv-fab {
  position: fixed; right: 18px; bottom: 18px;
  border: 0; cursor: pointer; padding: 13px 18px; border-radius: 999px;
  background: var(--plum-deep, #4f3d55); color: #fff; font-weight: 600; font-size: 14px; line-height: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,.32); z-index: 2147483001;
  transition: transform .08s ease, background .15s ease;
}
.rv-fab:hover { transform: translateY(-1px); }
.rv-fab.rv-active { background: var(--plum, #6b5570); }

/* top hint bar (visible only in review mode) */
.rv-bar {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  display: none; align-items: center; gap: 12px;
  background: var(--plum-deep, #4f3d55); color: #fff; padding: 8px 10px 8px 16px; border-radius: 999px;
  font-size: 13px; box-shadow: 0 8px 26px rgba(0,0,0,.28); z-index: 2147483001;
  max-width: calc(100vw - 24px);
}
.rv-bar .rv-bar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* comment pins */
.rv-pin {
  position: fixed; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--plum, #6b5570); color: #fff; border-radius: 50%;
  font-size: 12px; font-weight: 700; border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.4); z-index: 2147483002; cursor: default;
}

/* the comment entry box */
.rv-box {
  position: fixed; background: #fff; border: 1px solid #e2e2e2; border-radius: 14px;
  box-shadow: 0 14px 44px rgba(0,0,0,.30); padding: 10px; z-index: 2147483003;
}
.rv-ta {
  width: 100%; box-sizing: border-box; min-height: 76px; resize: vertical;
  border: 1px solid #d0d0d0; border-radius: 10px; padding: 9px; font-size: 14px; font-family: inherit; line-height: 1.35;
}
.rv-ta:focus { outline: none; border-color: var(--plum, #6b5570); box-shadow: 0 0 0 3px rgba(31,122,77,.15); }
.rv-box-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* buttons */
.rv-btn { border: 1px solid var(--plum-deep, #4f3d55); background: var(--plum-deep, #4f3d55); color: #fff; padding: 9px 13px; border-radius: 9px; font-size: 13px; cursor: pointer; font-weight: 600; font-family: inherit; }
.rv-btn:hover { opacity: .92; }
.rv-ghost { background: #fff; color: var(--plum-deep, #4f3d55); border-color: #cfcfcf; }
.rv-save  { background: var(--plum, #6b5570); border-color: var(--plum, #6b5570); }

/* the comments list panel */
.rv-panel {
  position: fixed; right: 18px; bottom: 78px; width: 344px; max-height: 62vh;
  background: #fff; border: 1px solid #e2e2e2; border-radius: 14px;
  box-shadow: 0 18px 56px rgba(0,0,0,.32); display: none; flex-direction: column; overflow: hidden;
  z-index: 2147483004;
}
.rv-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border-bottom: 1px solid #eee; font-size: 14px; }
.rv-count { color: #666; font-size: 12px; font-weight: 500; }
.rv-panel-body { overflow: auto; padding: 4px 0; }
.rv-row { display: flex; gap: 9px; padding: 9px 13px; border-bottom: 1px solid #f2f2f2; }
.rv-row:last-child { border-bottom: 0; }
.rv-row-n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--plum, #6b5570); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.rv-row-meta { min-width: 0; }
.rv-row-page { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.rv-row-ctx  { font-size: 12px; color: #555; margin-top: 1px; }
.rv-row-note { font-size: 14px; color: var(--plum-deep, #4f3d55); white-space: pre-wrap; margin-top: 3px; }
.rv-empty { padding: 16px; color: #888; font-size: 13px; line-height: 1.4; }
.rv-panel-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #eee; }
.rv-panel-foot .rv-btn { flex: 1; }

/* small screens */
@media (max-width: 520px) {
  .rv-panel { left: 12px; right: 12px; width: auto; bottom: 74px; max-height: 55vh; }
  .rv-box { left: 12px !important; right: 12px; width: auto !important; }
  .rv-bar { font-size: 12px; padding-left: 12px; }
}

/* nav: Files link (artifact space) */
.nav-files{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;text-decoration:underline;text-underline-offset:4px;opacity:.8;margin-right:2px;}
.nav-files:hover{opacity:1;color:var(--accent);}
@media(max-width:560px){.nav-files{display:none;}}

/* keep the feedback pill clear of content on small screens */
@media (max-width: 760px) {
  .rv-fab { bottom: 96px; right: 14px; }
  body.rv-on { padding-bottom: 96px; }
}

/* mobile: collapse the pill to a compact disc so it covers less page */
@media (max-width: 760px) {
  .rv-fab {
    bottom: 20px; right: 14px; width: 52px; height: 52px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    font-size: 0; line-height: 0;
  }
  .rv-fab::after { content: "💬"; font-size: 20px; line-height: 1; }
  .rv-fab.rv-active::after { content: "✕"; font-size: 18px; }
}
