/* ============================================================
   Marshall Project — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Barlow:wght@400;500;600&display=swap');

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1B4FBF;
  --blue-dark:  #163FA0;
  --black:      #111111;
  --gray-bg:    #F2F3F5;
  --gray-mid:   #AAAAAA;
  --gray-light: #E0E2E6;
  --white:      #FFFFFF;
  --green:      #28A745;
  --red:        #DC3545;
  --yellow:     #B7791F;
  --red-bg:     #FEE8E8;
  --green-bg:   #EAF7EC;
  --yellow-bg:  #FFF6DD;
}

html, body {
  height: 100%;
  font-family: 'Barlow', system-ui, sans-serif;
  background: var(--gray-bg);
  color: var(--black);
  font-size: 16px;
}

/* ── Page Shell ──────────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 32px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.site-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header .logo .site-logo {
  height: 90px;
  width: auto;
  display: block;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.supervisor-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  background: var(--gray-bg);
  border: 1px solid var(--gray-light);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.supervisor-link:hover {
  color: var(--black);
  border-color: var(--gray-mid);
}

/* EN | ES language toggle (header) */
.lang-toggle {
  display: flex;
  border: 1px solid var(--gray-light);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  color: var(--gray-mid);
  background: var(--white);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.lang-toggle a:hover { color: var(--black); }

.lang-toggle a.active {
  background: var(--blue);
  color: var(--white);
}

.step-indicator {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--black);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-indicator .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}

/* ── Main Content Area ───────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 120px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* ── Page Title ──────────────────────────────────────────── */
.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--black);
  margin-bottom: 24px;
}

/* ── Supervisor Dashboard ─────────────────────────────────── */
.dashboard-main {
  max-width: 1200px;
}

.dashboard-refresh-note {
  color: var(--gray-mid);
  font-size: 13px;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-export {
  background: var(--blue);
  color: var(--white);
}
.btn-export:hover { background: var(--blue-dark); }

.btn-reset {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red);
}
.btn-reset:hover { background: var(--red); color: var(--white); }

.btn-logout {
  background: var(--white);
  color: var(--gray-mid);
  border: 1px solid var(--gray-light);
}
.btn-logout:hover { color: var(--black); border-color: var(--gray-mid); }

.dashboard-search {
  max-width: 420px;
  margin-bottom: 16px;
}

/* Actions sits in its own non-scrolling table next to the main one
   (see .dashboard-table-row) rather than as a column inside it -
   position:sticky on table cells is unreliable in Safari, so this
   sidesteps that entirely instead of fighting it. */
.dashboard-table-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.table-scroll {
  flex: 1 1 auto;
  min-width: 0; /* let this shrink so its own overflow-x can kick in */
  overflow-x: auto;
}

.dashboard-actions-panel {
  flex: 0 0 auto;
}

.dashboard-actions-panel .supervisor-table {
  width: auto;
}

.supervisor-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 14px;
}

.supervisor-table th,
.supervisor-table td {
  height: 44px;
  box-sizing: border-box;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
  white-space: nowrap;
}

.supervisor-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  background: var(--gray-bg);
}

.supervisor-table tr:last-child td { border-bottom: none; }

.supervisor-table tr.completed { background: var(--green-bg); }
.supervisor-table tr.restudying { background: var(--yellow-bg); }

.dashboard-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dashboard-row-actions form { margin: 0; }

.row-action-link,
.row-action-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  background: var(--white);
  transition: background 0.15s, color 0.15s;
}

.row-action-link {
  color: var(--blue);
  border: 1px solid var(--blue);
}
.row-action-link:hover { background: var(--blue); color: var(--white); }

.row-action-delete {
  color: var(--red);
  border: 1px solid var(--red);
}
.row-action-delete:hover { background: var(--red); color: var(--white); }

/* ── Module Select Page ──────────────────────────────────── */
.module-select-intro {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  margin-bottom: 40px;
  max-width: 640px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 800px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .module-grid { grid-template-columns: 1fr; }
}

.module-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.module-progress-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.module-progress-badge.in-progress {
  background: var(--gray-bg);
  color: var(--blue);
}

.module-progress-badge.completed {
  background: var(--green-bg);
  color: var(--green);
}

.module-card-footer a {
  color: #666;
  text-decoration: underline;
}

.module-card-footer a:hover {
  color: var(--blue);
}

.module-card:hover {
  box-shadow: 0 4px 16px rgba(27, 79, 191, 0.12);
  border-color: var(--blue);
}

.module-card.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.module-card.disabled:hover {
  box-shadow: none;
  border-color: var(--gray-light);
}

.module-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 52px;
  color: var(--blue);
  line-height: 1;
}

.module-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  margin-top: 2px;
  margin-bottom: 20px;
}

.module-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.module-icon svg {
  width: 80px;
  height: 80px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-select-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.module-card-footer {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

/* ── Video Player ────────────────────────────────────────── */
.video-wrapper {
  width: 100%;
  max-width: 640px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.video-label-bar {
  background: rgba(0,0,0,0.75);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-label-bar::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--blue);
  border-radius: 2px;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* Shown when the browser blocks autoplay with sound and the video
   falls back to playing muted — one tap unmutes it */
.video-sound-btn {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  animation: read-aloud-pulse 1.8s ease-in-out infinite;
}

.video-sound-btn[hidden] { display: none; }

.video-sound-btn:hover { background: var(--blue-dark); }

.video-sound-btn svg {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-sound-btn svg polygon { fill: white; }

/* ── Brief / Text Block ──────────────────────────────────── */
.brief-block {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 24px 28px;
  width: 100%;
  max-width: 640px;
}

.brief-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.brief-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--black);
}

/* ── Welcome Form ────────────────────────────────────────── */
.welcome-subtitle {
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.welcome-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 640px;
  width: 100%;
  margin-bottom: 20px;
}

.welcome-subtitle-row .welcome-subtitle { margin-bottom: 0; width: auto; }

.user-form {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 28px;
  width: 100%;
  max-width: 640px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
}

.form-input {
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--blue);
}

.form-error {
  background: var(--red-bg);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.required-mark {
  color: var(--red);
}

.form-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-mid);
  margin-top: 4px;
}

/* ── Knowledge Check label ───────────────────────────────── */
.section-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.quiz-instruction {
  font-size: 14px;
  color: #555;
  margin-bottom: 28px;
}

/* ── Quiz Card ───────────────────────────────────────────── */
.quiz-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 28px;
  width: 100%;
  max-width: 720px;
}

.quiz-question {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

.quiz-options {
  list-style: none;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-light);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.1s;
  position: relative;
}

.quiz-option:last-child { border-bottom: none; }

.quiz-option:hover { background: #F7F8FA; }

.quiz-option input[type="radio"] { display: none; }

.quiz-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-mid);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}

.quiz-option.selected .quiz-radio {
  border-color: var(--blue);
  background: var(--blue);
}

.quiz-option.selected .quiz-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* Result states */
.quiz-option.correct {
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: 6px;
  margin-bottom: 4px;
}

.quiz-option.incorrect {
  background: var(--red-bg);
  border: 1px solid var(--red);
  border-radius: 6px;
  margin-bottom: 4px;
}

.quiz-option.correct .quiz-radio {
  border-color: var(--green);
  background: var(--green);
}

.quiz-option.incorrect .quiz-radio {
  border-color: var(--red);
  background: var(--red);
}

.quiz-result-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-result-icon.check { background: var(--green); }
.quiz-result-icon.cross { background: var(--red); }

.quiz-result-icon svg {
  width: 13px;
  height: 13px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.option-letter {
  font-weight: 700;
  font-size: 15px;
}

.option-text {
  font-size: 15px;
}

.quiz-counter {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--gray-light);
}

.quiz-result-text {
  font-size: 14px;
  font-weight: 600;
  padding-top: 10px;
}

.quiz-result-text.correct { color: var(--green); }
.quiz-result-text.incorrect { color: var(--red); }

/* ── Read Aloud ──────────────────────────────────────────── */
.read-aloud-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.read-aloud-row .quiz-question,
.read-aloud-row .practical-text {
  flex: 1;
}

.read-aloud-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.read-aloud-btn:hover { background: var(--blue-dark); }

.read-aloud-btn svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.read-aloud-btn svg polygon { fill: white; }

.speaking .read-aloud-btn,
.audio-blocked .read-aloud-btn {
  animation: read-aloud-pulse 1.4s ease-in-out infinite;
}

@keyframes read-aloud-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(27, 79, 191, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(27, 79, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 79, 191, 0); }
}

/* ── Practical Exercise ──────────────────────────────────── */
.practical-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.practical-instructor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--gray-bg);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
}

.practical-instructor svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practical-instructor-text {
  font-size: 15px;
  line-height: 1.5;
}

.practical-confirm {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-light);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.practical-confirm input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ── Failure Banner ──────────────────────────────────────── */
.failure-banner {
  position: fixed;
  top: 88px;
  right: 24px;
  background: var(--red-bg);
  border: 1.5px solid var(--red);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 300px;
  z-index: 100;
}

.failure-banner .banner-icon {
  width: 24px;
  height: 24px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.failure-banner .banner-icon svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
}

.failure-banner p {
  font-size: 13px;
  color: var(--red);
  line-height: 1.5;
  font-weight: 500;
}

/* ── Module Complete Page ────────────────────────────────── */
.complete-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.complete-check svg {
  width: 40px;
  height: 40px;
  stroke: white;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.complete-subtitle {
  font-size: 15px;
  color: #555;
  margin-bottom: 32px;
}

.cert-number-note {
  font-size: 15px;
  color: var(--black);
  margin-bottom: 32px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 48px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  max-width: 480px;
}

.cta-btn:hover { background: var(--blue-dark); }

.cta-btn svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Navigation Buttons ──────────────────────────────────── */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  padding: 0 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.nav-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: all;
}

.nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.nav-btn.active {
  background: var(--blue);
}

.nav-btn.active:hover { background: var(--blue-dark); }

.nav-btn.inactive {
  background: #C8C9CC;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
}

.nav-label.muted { color: var(--gray-mid); }

/* ── Utility ─────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Photo-review practical (Module 3) */
.photo-review .photo-item { border-top: 1px solid #d9dee4; padding: 18px 0; }
.photo-review .photo-count { font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; }
.photo-review .photo-img { width: 100%; height: auto; border-radius: 10px; display: block; }
.photo-review .photo-choices { display: flex; gap: 14px; margin-top: 14px; }
.photo-review .photo-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; font: inherit; font-weight: 800; letter-spacing: .08em; font-size: 14px; color: #fff; border: 0; border-radius: 14px; cursor: pointer; }
.photo-review .photo-btn svg { width: 56px; height: 56px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.photo-review .photo-safe { background: #0b5cab; }
.photo-review .photo-unsafe { background: #c62828; }
.photo-review .photo-btn.chosen { outline: 4px solid #1b1f24; outline-offset: 2px; }
.photo-review .photo-btn:disabled:not(.chosen) { opacity: .35; cursor: default; }
.photo-review .photo-feedback { margin: 12px 0 0; font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.photo-review .photo-feedback::before { content: attr(data-icon); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 22px; line-height: 1; }
.photo-review .photo-feedback.ok { color: #1b7a3d; } .photo-review .photo-feedback.ok::before { background: #1b7a3d; }
.photo-review .photo-feedback.bad { color: #b3261e; } .photo-review .photo-feedback.bad::before { background: #b3261e; }
.photo-review .photo-explain { margin-top: 6px; }
.photo-review .photo-answer label { display: block; font-weight: 600; margin: 12px 0 6px; }
.photo-review .photo-answer textarea { width: 100%; padding: 10px; border: 1px solid #b9c1ca; border-radius: 8px; font: inherit; resize: vertical; }
.photo-review .photo-status { margin-top: 16px; font-weight: 600; color: #5d6672; }
