/* Photo Dedication (Slice A): guest form, moderator queue, projector
   slideshow and the dashboard's photo panel. Shared by both sites. */

/* ---------- guest form (player site) ---------- */
.photo-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
  text-align: center;
}
.photo-instr {
  margin: 0.6rem auto 1rem;
  max-width: 22rem;
  text-align: center;
  opacity: 0.85;
}
.photo-full {
  max-width: 22rem;
  margin: 0 auto 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: rgba(255, 196, 0, 0.15);
  border: 1px solid rgba(255, 196, 0, 0.5);
  text-align: center;
  font-weight: 600;
}
.photo-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 24rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.photo-msg {
  resize: vertical;
  font-family: inherit;
  min-height: 4.5rem;
}
.photo-picker {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.photo-add {
  display: inline-block;
  width: 100%;
  padding: 0.9rem;
  border: 2px dashed currentColor;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.9;
}
.photo-hint {
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}
.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 1;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.photo-thumb-rm {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #d33;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- moderator queue (player site) ---------- */
.mod-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 26rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}
.mod-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.25);
}
.mod-name {
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.mod-msg {
  margin-bottom: 0.7rem;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0.92;
}
.mod-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.mod-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.mod-photo-failed {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d33;
  font-size: 0.7rem;
}
.mod-actions {
  display: flex;
  gap: 0.6rem;
}
.mod-actions .btn {
  flex: 1;
}
.mod-empty {
  text-align: center;
  opacity: 0.8;
  padding: 2rem 1rem;
}

/* =====================================================================
   Photo Dedication PROJECTOR (owner correction 2026-09-23): the
   approved full-coral stage with the compact centred Submit/PIN/QR
   header, Mute + Fullscreen on the same top row at the right, the
   dedication dominating the viewport and a slim control rail. Only
   approved, non-deleted dedications reach this page.
   ===================================================================== */

body.photo-proj .photo-stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(72px, 8vh, 104px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "top top" "main rail";
  background: #FF6B4A;
  overflow: hidden;
}
body.photo-proj .photo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 138, 80, 0.55) 0%, rgba(255, 122, 68, 0) 42%),
    radial-gradient(circle at 50% 112%, rgba(200, 52, 20, 0.5) 0%, rgba(200, 52, 20, 0) 50%);
}
body.photo-proj .pp-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
body.photo-proj .pp-bit { position: absolute; left: var(--x); top: var(--y); }
body.photo-proj .pp-bit.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c, #FFD43B); }
body.photo-proj .pp-bit.bar { width: 8px; height: 22px; border-radius: 3px; background: var(--c, #FFD43B); transform: rotate(var(--rot, 0deg)); }
body.photo-proj .pp-bit.rect { width: 18px; height: 10px; border-radius: 3px; background: var(--c, #FFD43B); transform: rotate(var(--rot, 0deg)); }
body.photo-proj .pp-bit.heart {
  width: 20px; height: 18px;
  background: #FFF7ED;
  clip-path: path('M10 18C2 12 0 8 2 4.5 3.6 1.8 7 1.6 10 5c3-3.4 6.4-3.2 8-.5 2 3.5 0 7.5-8 13.5z');
}

body.photo-proj .pp-top {
  grid-area: top;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1vw;
  padding: 1.7vh 1.6vw 1.2vh;
}
body.photo-proj .pp-logo {
  justify-self: start;
  display: block;
  width: clamp(118px, 10.5vw, 196px);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(120, 22, 4, 0.4));
}
body.photo-proj .pp-join {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
  background: #FFF7ED;
  border-radius: 14px;
  padding: 0.9vh 1.1vw;
  box-shadow: 0 12px 26px rgba(140, 28, 8, 0.35);
}
body.photo-proj .pp-join-col { display: flex; flex-direction: column; gap: 0.2vh; text-align: center; }
body.photo-proj .pp-join-label {
  font-size: clamp(10px, 1.25vh, 14px);
  font-weight: 700;
  color: rgba(32, 36, 44, 0.6);
}
body.photo-proj .pp-join-value {
  font-size: clamp(14px, 1.9vh, 22px);
  font-weight: 900;
  color: #20242C;
}
body.photo-proj .pp-pin {
  font-size: clamp(16px, 2.2vh, 26px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #20242C;
  font-variant-numeric: tabular-nums;
}
body.photo-proj .pp-divider { width: 1.5px; align-self: stretch; background: rgba(32, 36, 44, 0.16); }
body.photo-proj .pp-qr { line-height: 0; }
body.photo-proj .pp-qr svg { display: block; width: clamp(52px, 7.4vh, 82px); height: auto; }

body.photo-proj .pp-utils { justify-self: end; display: flex; gap: 0.7vw; }
body.photo-proj .pp-util {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4vh;
  min-width: clamp(58px, 5.4vw, 76px);
  padding: 0.8vh 0.8vw;
  background: #FFF7ED;
  color: #20242C;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: clamp(10px, 1.3vh, 14px);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(140, 28, 8, 0.3);
}
body.photo-proj .pp-util:hover { filter: brightness(1.04); }
body.photo-proj .pp-util:active { transform: translateY(1px); }
body.photo-proj .pp-util:focus-visible { outline: 3px solid #FFD43B; outline-offset: 2px; }
body.photo-proj .pp-util svg { width: clamp(18px, 2.6vh, 26px); height: auto; }
body.photo-proj .pp-util[aria-pressed="true"] .pp-util-wave { opacity: 0.25; }

body.photo-proj .photo-main {
  grid-area: main;
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  padding: 0 0 1.6vh 1.6vw;
  overflow: hidden;
}

/* slim control rail: next arrow on top, then the view controls */
body.photo-proj .pp-rail {
  grid-area: rail;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2vh;
  padding-right: 0.8vw;
}
body.photo-proj .pp-next {
  width: clamp(44px, 6vh, 58px);
  height: clamp(44px, 6vh, 58px);
  border-radius: 50%;
  border: none;
  background: #FFD43B;
  color: #20242C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 0 #E8A200;
}
body.photo-proj .pp-next svg { width: 55%; height: 55%; }
body.photo-proj .pp-next:active { transform: translateY(2px); box-shadow: 0 2px 0 #E8A200; }
body.photo-proj .pp-next:focus-visible { outline: 3px solid #FFF7ED; outline-offset: 2px; }
body.photo-proj .pp-rail-label {
  color: #FFF7ED;
  font-size: clamp(10px, 1.3vh, 14px);
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(140, 28, 8, 0.35);
}
body.photo-proj .pp-view {
  width: clamp(44px, 6vh, 58px);
  height: clamp(44px, 6vh, 58px);
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #FFF7ED;
  color: #20242C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
body.photo-proj .pp-view svg { width: 62%; height: 62%; }
body.photo-proj .pp-view:hover { filter: brightness(1.04); }
body.photo-proj .pp-view.active { background: #FFD43B; border-color: #FFFFFF; }
body.photo-proj .pp-view:focus-visible { outline: 3px solid #FFD43B; outline-offset: 2px; }

body.photo-proj .photo-empty { text-align: center; padding: 4vh 1rem; color: #FFF7ED; }
body.photo-proj .photo-empty-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 0 rgba(140, 28, 8, 0.35);
}
body.photo-proj .photo-empty-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: rgba(255, 247, 237, 0.95);
}
body.photo-proj .photo-ended {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  background: #FF6B4A;
  color: #FFF7ED;
}
body.photo-proj .photo-ended-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

/* ---------- projection grid + single feature view ---------- */
body.photo-proj .photo-grid {
  position: absolute;
  /* Owner correction 2026-09-23 (M6): the card is INSET from the screen
     edges (the approved projector composition), never flush at 0. */
  inset: clamp(10px, 2vh, 26px) clamp(12px, 2vw, 40px) clamp(14px, 2.6vh, 32px);
  display: grid;
  gap: clamp(10px, 1.4vw, 18px);
}
body.photo-proj .photo-grid.pg-single { gap: 0; }
body.photo-proj .pg-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  /* Owner correction 2026-09-23 (B2): the photo gets its own row and the
     dedication sits on a SOLID caption band beneath it - text never
     prints over the photo. */
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  background: #FFF7ED;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(140, 28, 8, 0.28);
}
body.photo-proj .pg-img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #F4EDE4;
}
body.photo-proj .pg-overlay {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 0.5rem 0.8rem 0.6rem;
  background: #FFF7ED;
  border-top: 2px solid rgba(255, 107, 74, 0.35);
  /* Owner correction 2026-09-23: the band sizes to its clamped content -
     never a max-height + overflow that slices a text line in half. */
  max-height: none;
  overflow: visible;
  text-align: center;
}
body.photo-proj .pg-msg {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #20242C;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
/* nine-up: two complete clamped lines keep the caption compact */
body.photo-proj .pg-nine .pg-msg { -webkit-line-clamp: 2; }
body.photo-proj .pg-name {
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  font-weight: 700;
  color: rgba(32, 36, 44, 0.72);
  margin-top: 0.2rem;
}

/* the single-dedication FEATURE card: photo left, dedication right */
body.photo-proj .pg-feature {
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: stretch;
  background: #FFF7ED;
  box-shadow: 0 16px 34px rgba(140, 28, 8, 0.35);
}
body.photo-proj .pg-feature .pg-img { background: #F4EDE4; }
body.photo-proj .pg-feature .pg-overlay {
  position: static;
  background: none;
  /* Owner correction 2026-09-23 (M6): the shared caption-band clamp must
     NOT apply to the feature column - the complete message, heart,
     divider, From and name stay readable inside the inset card. */
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1vh, 1.8vh, 2.2vh);
  padding: 3vh clamp(1.4rem, 3vw, 3.4rem);
  text-align: center;
}
body.photo-proj .pg-feature .pg-heart svg { width: clamp(30px, 4.6vh, 48px); height: auto; display: block; }
body.photo-proj .pg-feature .pg-msg {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  font-size: clamp(1.25rem, 2.9vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: #20242C;
}
body.photo-proj .pg-feature .pg-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(70%, 300px);
}
body.photo-proj .pg-feature .pg-divider span { flex: 1; height: 2.5px; border-radius: 2px; background: #FF6B4A; }
body.photo-proj .pg-feature .pg-divider svg { width: clamp(16px, 2.4vh, 24px); height: auto; }
body.photo-proj .pg-feature .pg-from {
  font-size: clamp(0.95rem, 1.9vh, 1.35rem);
  font-weight: 600;
  color: rgba(32, 36, 44, 0.72);
}
body.photo-proj .pg-feature .pg-name {
  margin-top: -1vh;
  font-size: clamp(1.25rem, 3vh, 2rem);
  font-weight: 900;
  color: #20242C;
}
body.photo-proj .pg-heart,
body.photo-proj .pg-divider,
body.photo-proj .pg-from { display: none; }
body.photo-proj .pg-feature .pg-heart,
body.photo-proj .pg-feature .pg-divider,
body.photo-proj .pg-feature .pg-from { display: flex; }
body.photo-proj .pg-feature .pg-from { display: block; }

body.photo-proj .pg-leaving { animation: pg-out 0.5s ease forwards; }
body.photo-proj .pg-entering { animation: pg-in 0.5s ease; }
@keyframes pg-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-4%); }
}
@keyframes pg-in {
  from { opacity: 0; transform: translateX(4%); }
  to { opacity: 1; transform: translateX(0); }
}

/* portrait / narrow fallback: the rail returns below the stage */
@media (max-aspect-ratio: 1/1) {
  body.photo-proj .photo-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "top" "main" "rail";
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
  }
  body.photo-proj .pp-top { grid-template-columns: 1fr; justify-items: center; gap: 1.2vh; }
  body.photo-proj .pp-logo { justify-self: center; }
  body.photo-proj .pp-utils { justify-self: center; }
  body.photo-proj .photo-main { min-height: 52vh; padding: 0 4vw 1.6vh; }
  body.photo-proj .pp-rail { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 1rem; }
  body.photo-proj .pg-feature { grid-template-columns: minmax(0, 1fr); }
  body.photo-proj .pg-feature .pg-img { min-height: 38vh; }
}
@media (prefers-reduced-motion: reduce) {
  body.photo-proj .pg-leaving,
  body.photo-proj .pg-entering { animation: none; }
}

/* ---------- dashboard photo room setup modal ---------- */
.db-photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(32, 36, 44, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.db-photo-box {
  background: #FFFFFF;
  border: 1px solid #E9E2DA;
  border-radius: 14px;
  padding: 1.5rem;
  width: 380px;
  max-width: 92vw;
  color: #20242C;
  box-shadow: 0 18px 40px rgba(32, 36, 44, 0.25);
}
.db-photo-box h2 {
  margin: 0 0 0.8rem;
}
.db-photo-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.db-photo-box input[type="range"] {
  width: 100%;
  margin-bottom: 0.4rem;
}
.db-photo-value {
  text-align: center;
  font-weight: 700;
  margin-bottom: 1rem;
}
.db-photo-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* ---------- moderation surface (Slice 7c) ---------- */
.pm-banner {
  max-width: 42rem;
  margin: 0.8rem auto 0;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: rgba(255, 196, 0, 0.15);
  border: 1px solid rgba(255, 196, 0, 0.5);
  font-weight: 600;
  text-align: center;
}
.pm-tabs {
  display: flex;
  gap: 0.4rem;
  max-width: 42rem;
  margin: 1rem auto 0.6rem;
  padding: 0 1rem;
}
.pm-tab {
  flex: 1;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.pm-tab.active {
  background: rgba(255, 196, 0, 0.25);
  border-color: #ffc400;
}
.pm-count {
  display: inline-block;
  min-width: 1.4em;
  text-align: center;
  border-radius: 1em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1em 0.4em;
  font-size: 0.8em;
}
.pm-list {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}
.pm-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.pm-interval {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.pm-interval-select {
  max-width: 9rem;
}
.pm-interval-note {
  width: 100%;
  font-size: 0.8rem;
  opacity: 0.7;
}
.pm-end .btn {
  width: 100%;
}

/* ---------- moderation cards with the submitted images ----------
   Owner requirement 2026-09-23: the moderator must SEE the actual
   submitted image(s) - all of them, up to the supported maximum (3),
   large enough to judge, never stretched. Actions are a separate block,
   so they never move or disable while photos load. */
body.host .pm-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
body.host .pmq-card {
  background: #FFF7ED;
  border: 1px solid #E9E2DA;
  border-radius: 14px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #20242C;
}
body.host .pmq-photos {
  display: grid;
  gap: 0.5rem;
  align-items: start;
}
body.host .pmq-photos[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
body.host .pmq-photos[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.host .pmq-photos[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* with three photos the first (the cover) spans the full width and is
   the large moderation view; the other two sit side by side */
body.host .pmq-photos[data-count="3"] .pmq-photo:first-child { grid-column: 1 / -1; }
body.host .pmq-photo {
  position: relative;
  margin: 0;
  aspect-ratio: var(--ar, 4 / 3);
  max-height: 260px;
  background: #F4EDE4;
  border: 1px solid #E9E2DA;
  border-radius: 12px;
  overflow: hidden;
}
/* the one-image submission is the main moderation view: bigger */
body.host .pmq-photos[data-count="1"] .pmq-photo { max-height: 360px; }
/* aspect ratio and object-fit: contain - images are NEVER stretched */
body.host .pmq-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
body.host .pmq-img.is-loading { opacity: 0; }
body.host .pmq-photo-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(32, 36, 44, 0.6);
  background: linear-gradient(100deg, #F4EDE4 30%, #FBF7F2 50%, #F4EDE4 70%);
  background-size: 220% 100%;
  animation: pmq-shimmer 1.3s ease-in-out infinite;
}
body.host .pmq-photo.is-loaded .pmq-photo-loading,
body.host .pmq-photo.is-failed .pmq-photo-loading { display: none; }
body.host .pmq-photo-broken {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(32, 36, 44, 0.62);
  background: repeating-linear-gradient(45deg, #F4EDE4, #F4EDE4 10px, #EFE6DA 10px, #EFE6DA 20px);
}
body.host .pmq-photo.is-failed { border-style: dashed; }
body.host .pmq-photo.is-failed .pmq-photo-broken { display: flex; }
body.host .pmq-photo.is-failed .pmq-img { visibility: hidden; }
@keyframes pmq-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}
body.host .pmq-body { display: flex; flex-direction: column; gap: 0.5rem; }
body.host .pmq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
body.host .pmq-name { font-weight: 800; font-size: 0.98rem; overflow-wrap: anywhere; }
body.host .pmq-state {
  flex: none;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}
body.host .pmq-state-pending { background: #FFF0C9; color: #7A5200; }
body.host .pmq-state-live { background: #E3F6DD; color: #1F7A2E; }
body.host .pmq-state-deleted { background: #F6E3DD; color: #8E2B10; }
body.host .pmq-msg {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(32, 36, 44, 0.82);
  white-space: pre-wrap;
  word-break: break-word;
}
body.host .pmq-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}
body.host .pmq-actions .btn { min-height: 44px; border-radius: 10px; }
body.host .pmq-actions .btn.primary.ghost, body.host .pmq-actions .pmq-note { font-size: 0.8rem; color: rgba(32, 36, 44, 0.6); }
body.host .pm-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(32, 36, 44, 0.6);
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  body.host .pmq-photo-loading { animation: none; }
}

/* moderation chrome on the light workspace: same 10px control language
   as the rest of the game-management product */
body.host .pm-title {
  max-width: 42rem;
  margin: 1.4rem auto 0.2rem;
  padding: 0 1rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #20242C;
}
body.host .pm-sub {
  max-width: 42rem;
  margin: 0 auto 0.4rem;
  padding: 0 1rem;
  color: rgba(32, 36, 44, 0.62);
  font-size: 0.93rem;
}
body.host .pm-banner {
  background: #FFF3D6;
  border: 1px solid #F0D9A8;
  color: #7A5200;
  border-radius: 10px;
}
body.host .pm-tab {
  border: 1.5px solid #E9E2DA;
  background: #FFFFFF;
  color: #20242C;
  border-radius: 10px;
  font-weight: 800;
}
body.host .pm-tab.active {
  background: #FFEBDD;
  border-color: #FF6B4A;
  color: #C9482C;
}
body.host .pm-count {
  background: #20242C;
  color: #FFF7ED;
}
body.host .pm-interval { border-top-color: #E9E2DA; }
body.host .pm-interval-note { color: rgba(32, 36, 44, 0.6); }
body.host .pm-end .btn.danger {
  background: #C23A17;
  color: #FFFFFF;
  border-radius: 10px;
  font-weight: 800;
}
body.host .pm-footer .btn { border-radius: 10px; }
/* phone: the moderation card stays usable, images full width */
@media (max-width: 560px) {
  body.host .pmq-card { padding: 0.65rem; }
  body.host .pmq-photos[data-count="2"],
  body.host .pmq-photos[data-count="3"] { grid-template-columns: minmax(0, 1fr); }
  body.host .pmq-photos[data-count="3"] .pmq-photo:first-child { grid-column: auto; }
  /* on a phone a portrait photo gets its full width and a generous
     height (the page scrolls) - never a postage-stamp moderation view */
  body.host .pmq-photo,
  body.host .pmq-photos[data-count="1"] .pmq-photo { max-height: 72vh; }
}
