/* Peer marking owns the student canvas; normal lesson geometry returns on exit. */
#hivemind-live-slides-student-root.is-peer-marking > .hm-ls-shell { visibility: hidden; }
#hm-peer-student[hidden] { display: none !important; }
#hm-peer-student { position: absolute; inset: 0; z-index: 800; overflow: auto; overscroll-behavior: contain; background: radial-gradient(ellipse at 95% 5%,#d9f9f0 0,transparent 48%),radial-gradient(ellipse at 0 80%,#e9dcff 0,transparent 52%),#fff8df; color: #183b52; font: 16px/1.6 system-ui,sans-serif; }
#hm-peer-student * { box-sizing: border-box; }
.hm-peer-student-wrap { max-width: 1340px; margin: auto; padding: clamp(18px,3vw,46px); }
.hm-peer-hero { display: grid; grid-template-columns: 1fr 170px; align-items: center; gap: 30px; }
.hm-peer-brand { display: block; width: 220px; max-width: 62vw; height: auto; margin-bottom: 22px; mix-blend-mode: multiply; }
.hm-peer-eyebrow { display: block; color: #754900; font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.hm-peer-hero h1 { font-size: clamp(27px,3.2vw,46px); line-height: 1.14; letter-spacing: -.035em; margin: 10px 0 14px; max-width: 760px; }
.hm-peer-hero p { margin: 0; max-width: 740px; color: #425b6d; }
.hm-peer-hero.is-marking { grid-template-columns: minmax(0,1fr) 260px; }.hm-peer-guide.is-marking { width: 260px; height: 320px; }
.hm-peer-guide { width: 170px; height: 190px; object-fit: contain; filter: drop-shadow(0 12px 12px #314b6420); }
.hm-peer-question { margin: 26px 0; padding: 18px 25px; background: #183f61; border: 2px solid #365e7e; border-radius: 18px; color: #fff; box-shadow: 0 8px 0 #183f6110; }
.hm-peer-question > span { color: #ffe17a; font-size: 11px; letter-spacing: .15em; font-weight: 850; }
.hm-peer-question p { margin: 6px 0 0; font-size: 18px; font-weight: 650; white-space: pre-wrap; overflow-wrap: anywhere; }
.hm-peer-student-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: stretch; }
.hm-peer-paper,.hm-peer-feedback-card { min-width: 0; border-radius: 24px; padding: clamp(20px,2.5vw,32px); box-shadow: 0 12px 30px #193b5a0c; }
.hm-peer-paper { background: linear-gradient(145deg,#fffefa,#fff4c7); border: 2px solid #e6bd53; }
.hm-peer-feedback-card { background: linear-gradient(145deg,#fff,#f0e9ff); border: 2px solid #bca4df; }
.hm-peer-card-label { color: #73500c; font-size: 12px; font-weight: 850; letter-spacing: .09em; margin-bottom: 20px; }
.hm-peer-feedback-card .hm-peer-card-label { color: #68429b; }
.hm-peer-paper blockquote { margin: 0; font-size: clamp(18px,1.7vw,23px); line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.hm-peer-feedback-card label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.hm-peer-feedback-card textarea { width: 100%; min-height: 210px; resize: vertical; padding: 18px; border: 2px solid #c6b3e3; border-radius: 15px; background: #fff; color: #233d52; font: inherit; line-height: 1.7; box-shadow: inset 0 2px 6px #6951850a; }
.hm-peer-feedback-card textarea:focus { outline: 3px solid #dec9fb; border-color: #7850af; outline-offset: 2px; }
.hm-peer-input-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #6e5a84; margin: 8px 0 20px; }
.hm-peer-feedback-card button { display: flex; justify-content: space-between; width: 100%; border: 0; border-radius: 13px; padding: 15px 20px; color: #fff; background: linear-gradient(110deg,#7144ab,#4b75bb); font: 750 16px system-ui,sans-serif; cursor: pointer; box-shadow: 0 5px 0 #45336e; min-height: 48px; }
.hm-peer-feedback-card button:disabled { opacity: .65; cursor: wait; }
.hm-peer-feedback-card [data-peer-status] { font-size: 13px; margin: 16px 0 0; color: #66567b; }
.hm-peer-received,.hm-peer-unsent { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 19px; line-height: 1.8; }
.hm-peer-confirmed { background: #dbf5e9; border: 1px solid #8fcbb2; border-radius: 12px; padding: 14px; color: #205e46; margin-top: 22px; font-size: 14px; font-weight: 650; }
.hm-peer-bottom { text-align: center; color: #5b6475; font-size: 13px; margin-top: 25px; }.hm-peer-bottom span { color: #b88420; margin-left: 10px; }
.hm-ls-control-grid-peer { grid-template-columns: repeat(3,minmax(0,1fr)); }.hm-ls-peer-control-body { min-width: 0; }.hm-ls-peer-control-body p { margin: 8px 0 0; color: #596c81; font-size: 12px; }
#teacher-live-slides-peer-answers { margin: 18px 0; padding: 20px; border: 2px solid #b6a0cc; border-radius: 16px; background: #f5f0fb; }
#teacher-live-slides-peer-answers[hidden] { display: none; }.hm-peer-teacher-heading { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; color: #674884; }.hm-peer-teacher-question { color: #344e67; font-weight: 700; margin: 14px 0; }.hm-peer-roster { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }.hm-peer-roster .hm-ls-task-answer-student-chip { display: inline-flex; gap: 7px; flex-wrap: wrap; font-size: 12px; }
.hm-peer-review-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 14px; }.hm-peer-review-row { padding: 17px; border-radius: 12px; border: 1px solid #c9bfdb; background: #fff; min-width: 0; }.hm-peer-review-row.is-blocked { border: 2px solid #d77c83; background: #fff4f4; }.hm-peer-review-meta { display: grid; gap: 3px; font-size: 13px; }.hm-peer-review-meta span { color: #6a6573; }.hm-peer-review-row blockquote { border-left: 3px solid #e2b750; padding-left: 12px; margin: 14px 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto; }.hm-peer-comment { padding: 12px; border-radius: 9px; background: #f3eefa; margin-bottom: 12px; }.hm-peer-comment p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 5px 0 0; }.hm-peer-completion { font-size: 10px; border-radius: 6px; padding: 3px 6px; background: #fff0c7; color: #705718; }.hm-peer-completion.is-complete { background: #d7efdf; color: #245c38; }
@media(max-width:700px) { .hm-peer-student-grid { grid-template-columns: 1fr; gap: 17px; }.hm-peer-hero { grid-template-columns: 1fr 85px; gap: 5px; }.hm-peer-guide { width: 85px; height: 130px; }.hm-peer-hero.is-marking { grid-template-columns: minmax(0,1fr) 128px; }.hm-peer-guide.is-marking { width: 128px; height: 180px; }.hm-peer-hero.is-marking .hm-peer-brand { max-width: 100%; }.hm-peer-brand { width: 160px; margin-bottom: 16px; }.hm-peer-hero p { font-size: 14px; }.hm-peer-eyebrow { font-size: 10px; }.hm-peer-feedback-card textarea { min-height: 180px; }.hm-peer-question { margin: 20px 0; padding: 16px; }.hm-ls-control-grid-peer { grid-template-columns: 1fr; }.hm-peer-input-footer { font-size: 11px; } }
@media(prefers-reduced-motion:reduce) { #hm-peer-student * { scroll-behavior: auto; } }
