:root {
  --primary: #1457d9;
  --primary-dark: #0d3eaa;
  --secondary: #00a8a8;
  --accent: #ffb020;
  --bg: #f5f7fb;
  --surface: #fff;
  --surface-2: #eef3fb;
  --text: #162033;
  --muted: #697386;
  --line: #dfe5ee;
  --success: #168a4a;
  --danger: #cf2e2e;
  --warning: #ad6b00;
  --shadow: 0 12px 32px rgba(18, 38, 75, .08);
  --radius: 18px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6
}

a {
  color: var(--primary);
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem)
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem)
}

p {
  color: var(--muted)
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px)
}

.topbar-inner {
  max-width: 1240px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text)
}

.brand strong {
  display: block;
  font-size: 1rem
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600
}

.brand-mark {
  width: 195px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-mark.small {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  margin-right: 8px
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px
}

.nav-link,
.icon-btn,
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--text);
  font-weight: 700
}

.nav-link:hover,
.icon-btn:hover {
  background: var(--surface-2)
}

.user-chip {
  background: var(--surface-2);
  color: var(--muted);
  font-size: .9rem
}

.container {
  max-width: 1240px;
  margin: auto;
  padding: 28px 20px;
  min-height: calc(100vh - 150px)
}

footer {
  text-align: center;
  padding: 38px 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff
}

footer div {
  display: flex;
  align-items: center;
  justify-content: center
}

footer p {
  margin: .4rem 0 0;
  font-size: .88rem
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(120deg, #0f46bd 0%, #146fe5 55%, #00a8a8 100%);
  padding: clamp(42px, 7vw, 86px);
  color: #fff;
  box-shadow: 0 22px 55px rgba(20, 87, 217, .22);
  margin-bottom: 34px
}

.hero:before,
.hero:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1)
}

.hero:before {
  width: 350px;
  height: 350px;
  right: -120px;
  top: -170px
}

.hero:after {
  width: 230px;
  height: 230px;
  right: 100px;
  bottom: -150px
}

.hero>* {
  position: relative;
  z-index: 1
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: .82rem
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  max-width: 800px;
  margin: 18px 0 14px;
  letter-spacing: -.045em
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 650px;
  color: rgba(255, 255, 255, .88)
}

.hero .actions {
  margin-top: 26px
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 34px 0 18px
}

.section-head p {
  margin: 4px 0 0
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px
}

.card.hover-card {
  transition: .2s transform, .2s box-shadow
}

.card.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(18, 38, 75, .12)
}

.location-card {
  padding: 0;
  overflow: hidden
}

.location-card .card-media {
  height: 190px;
  background: linear-gradient(135deg, #dce8ff, #d8f6f3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2.2rem
}

.location-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.location-card .card-body {
  padding: 20px
}

.location-card h3 {
  margin-bottom: 6px
}

.meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .9rem
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 17px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: .18s transform, .18s background, .18s box-shadow;
  box-shadow: 0 7px 16px rgba(20, 87, 217, .18)
}

.btn:hover,
button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px)
}

.btn.secondary {
  background: #e9f0ff;
  color: var(--primary);
  box-shadow: none
}

.btn.light {
  background: #fff;
  color: var(--primary);
  box-shadow: none
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none
}

.btn.danger,
button.danger {
  background: var(--danger)
}

.btn.success,
button.success {
  background: var(--success)
}

.btn.warning,
button.warning {
  background: #e98900
}

.btn-sm,
.btn.small {
  padding: 9px 13px;
  font-size: .9rem
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

.form-group {
  margin-bottom: 16px
}

label {
  display: block;
  font-weight: 800;
  margin-bottom: 7px;
  color: #29354a
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #ccd5e2;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: .18s border, .18s box-shadow
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 87, 217, .1)
}

textarea {
  min-height: 120px;
  resize: vertical
}

.auth-card {
  max-width: 520px;
  margin: 30px auto;
  padding: 30px
}

.auth-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: #eaf0ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px
}

.stat {
  position: relative;
  overflow: hidden;
  margin: 0
}

.stat strong {
  font-size: 2.15rem;
  display: block;
  line-height: 1.1;
  margin-bottom: 6px
}

.stat .stat-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf0ff;
  color: var(--primary)
}

.stat.success .stat-icon {
  background: #e9f8ef;
  color: var(--success)
}

.stat.warning .stat-icon {
  background: #fff3d8;
  color: var(--warning)
}

.stat.danger .stat-icon {
  background: #fdeaea;
  color: var(--danger)
}

.progress {
  height: 13px;
  background: #e5eaf2;
  border-radius: 99px;
  overflow: hidden
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: inherit
}

.progress-large {
  height: 18px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
  background: #edf1f6;
  color: #526174;
  text-transform: capitalize
}

.badge.approved {
  background: #e7f7ed;
  color: var(--success)
}

.badge.pending {
  background: #fff4d6;
  color: var(--warning)
}

.badge.rejected {
  background: #fde8e8;
  color: var(--danger)
}

.badge.resubmission_requested {
  background: #fff0dc;
  color: #b05a00
}

.badge.not-started {
  background: #edf1f6;
  color: #526174
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 24px
}

.sidebar {
  position: sticky;
  top: 92px;
  height: max-content;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow)
}

.sidebar-title {
  padding: 10px 12px 8px;
  color: #98a2b3;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 11px;
  color: #445066;
  font-weight: 750;
  margin: 3px 0
}

.sidebar a i {
  width: 20px;
  text-align: center;
  color: #7f8ba0
}

.sidebar a:hover,
.sidebar a.active {
  background: #eaf0ff;
  color: var(--primary)
}

.sidebar a.active i {
  color: var(--primary)
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px
}

.page-header p {
  margin: 4px 0 0
}

.table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow)
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff
}

th,
td {
  text-align: left;
  padding: 14px 15px;
  border-bottom: 1px solid #e8edf3;
  vertical-align: middle
}

th {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #7a8597;
  background: #f8fafc
}

tr:last-child td {
  border-bottom: 0
}

tbody tr:hover {
  background: #fafcff
}

.empty-state {
  text-align: center;
  background: #fff;
  border: 1px dashed #cfd8e5;
  border-radius: 20px;
  padding: 50px 24px;
  box-shadow: var(--shadow)
}

.empty-state>i {
  font-size: 2.5rem;
  color: var(--primary)
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px
}

.feature i {
  font-size: 1.35rem;
  color: var(--primary);
  background: #eaf0ff;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px
}

.review-photo {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #101827;
  border-radius: 15px
}

.quick-panel {
  background: linear-gradient(135deg, #fff, #f2f7ff);
  border: 1px solid #dce6f7
}

.swal2-popup {
  border-radius: 18px !important
}

.swal2-confirm {
  background: var(--primary) !important
}

.swal2-cancel {
  background: #64748b !important
}

@media(max-width:860px) {
  .sidebar-layout {
    grid-template-columns: 1fr
  }
  .sidebar {
    position: static;
    display: flex;
    overflow: auto;
    gap: 5px;
    border-radius: 15px;
    padding: 8px
  }
  .sidebar-title {
    display: none
  }
  .sidebar a {
    min-width: max-content;
    flex-direction: column;
    gap: 4px;
    padding: 9px 12px;
    font-size: .76rem
  }
  .sidebar a i {
    font-size: 1.05rem
  }
  .feature-grid {
    grid-template-columns: 1fr
  }
  .user-chip span {
    display: none
  }
}

@media(max-width:620px) {
  .topbar-inner {
    padding: 10px 14px
  }
  .brand small,
  .nav-link span,
  .icon-btn span {
    display: none
  }
  .top-actions {
    gap: 4px
  }
  .container {
    padding: 20px 14px
  }
  .hero {
    border-radius: 21px;
    padding: 38px 24px
  }
  .hero h1 {
    font-size: 2.65rem
  }
  .card {
    padding: 18px
  }
  .auth-card {
    margin: 10px auto;
    padding: 22px
  }
  .page-header,
  .section-head {
    align-items: flex-start;
    flex-direction: column
  }
  .stats {
    grid-template-columns: repeat(2, 1fr)
  }
  .stat strong {
    font-size: 1.7rem
  }
  th,
  td {
    min-width: 125px;
    padding: 12px
  }
  .grid {
    grid-template-columns: 1fr
  }
  .btn,
  button {
    min-height: 44px
  }
  .actions .btn,
  .actions button {
    flex: 1
  }
  .top-actions .btn {
    min-height: auto
  }
  .brand-mark {
    width: 38px;
    height: 38px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important
  }
}

/* Mobile-first portal enhancement */

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px
}

.content-panel {
  min-width: 0
}

.btn-block {
  width: 100%
}

.optional {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600
}

.participant-bottom-nav {
  display: none
}

.mobile-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-weight: 800
}

.mobile-location-list {
  display: grid;
  gap: 12px
}

.mobile-location-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(18, 38, 75, .06)
}

.mobile-location-row:hover {
  border-color: #b7c9ed
}

.mobile-location-row.is-complete {
  background: #f5fbf7
}

.location-row-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eaf0ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem
}

.is-complete .location-row-icon {
  background: #e7f7ed;
  color: var(--success)
}

.location-row-copy {
  min-width: 0;
  display: flex;
  flex-direction: column
}

.location-row-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.location-row-copy small {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.row-chevron {
  font-size: .72rem;
  color: #9aa6b7
}

.upload-card {
  max-width: 700px
}

.upload-location-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px
}

.upload-location-head h1 {
  margin: 2px 0 4px
}

.upload-location-head p {
  margin: 0
}

.upload-location-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #eaf0ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem
}

.latest-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 13px;
  margin-bottom: 18px
}

.camera-picker {
  min-height: 190px;
  border: 2px dashed #b9c7da;
  border-radius: 18px;
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  margin-bottom: 16px
}

.camera-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px
}

.camera-picker:hover {
  border-color: var(--primary);
  background: #f2f7ff
}

.camera-picker-icon {
  width: 62px;
  height: 62px;
  border-radius: 19px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(20, 87, 217, .22)
}

.camera-picker small {
  color: var(--muted);
  margin-top: 4px
}

.selfie-preview {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 18px;
  margin: 0 0 18px;
  background: #101827
}

.completion-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: #eaf8ef;
  border: 1px solid #bde6cb;
  border-radius: 16px;
  color: var(--success)
}

.completion-message>i {
  font-size: 1.4rem;
  margin-top: 2px
}

.completion-message p {
  margin: 3px 0 0
}

.location-action-card {
  display: flex;
  flex-direction: column;
  height: 100%
}

.location-action-card .location-card-content {
  flex: 1
}

.location-number {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf0ff;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 14px
}

.progress-mobile-list {
  display: none
}

@media(max-width:860px) {
  body.participant-portal {
    padding-bottom: 86px
  }
  .participant-portal .site-footer {
    display: none
  }
  .participant-sidebar {
    display: none !important
  }
  .participant-bottom-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid #dce3ed;
    box-shadow: 0 -8px 24px rgba(20, 35, 60, .1);
    padding: 7px max(7px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
    backdrop-filter: blur(15px)
  }
  .participant-bottom-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 54px;
    border-radius: 13px;
    color: #778397;
    font-size: .65rem;
    font-weight: 800
  }
  .participant-bottom-nav a.active {
    color: var(--primary)
  }
  .bottom-nav-icon {
    width: 34px;
    height: 28px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem
  }
  .participant-bottom-nav a.active .bottom-nav-icon {
    background: #eaf0ff
  }
  .participant-portal .topbar {
    position: sticky
  }
  .participant-portal .topbar-inner {
    min-height: 58px
  }
  .participant-portal .user-chip {
    background: transparent;
    padding: 6px
  }
  .participant-portal .icon-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center
  }
  .participant-portal .container {
    padding-top: 18px
  }
  .participant-portal .sidebar-layout {
    display: block
  }
  .participant-portal .card {
    box-shadow: 0 7px 20px rgba(18, 38, 75, .06)
  }
}

@media(max-width:620px) {
  html {
    font-size: 15px
  }
  .topbar-inner {
    gap: 8px
  }
  .brand {
    min-width: 0
  }
  .brand>span:last-child {
    min-width: 0
  }
  .brand strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px
  }
  .participant-portal .brand small {
    display: none
  }
  .participant-portal .top-actions .user-chip {
    display: none
  }
  .app-main {
    min-height: calc(100vh - 60px)
  }
  .participant-portal .container {
    padding: 14px 12px 24px
  }
  .participant-portal h1 {
    font-size: 1.65rem
  }
  .participant-portal h2 {
    font-size: 1.18rem
  }
  .mobile-page-header {
    margin-bottom: 14px
  }
  .page-header {
    gap: 12px
  }
  .page-header>.btn {
    width: 100%
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
  }
  .stat {
    padding: 16px;
    min-height: 112px
  }
  .stat strong {
    font-size: 1.75rem
  }
  .stat .stat-icon {
    position: static;
    width: 36px;
    height: 36px;
    margin-bottom: 10px
  }
  .quick-panel {
    padding: 18px
  }
  .quick-panel .page-header {
    flex-direction: row;
    align-items: flex-start
  }
  .quick-panel .page-header strong {
    font-size: 1.3rem !important
  }
  .grid {
    gap: 12px
  }
  .location-action-card {
    padding: 17px
  }
  .location-action-card .btn {
    width: 100%
  }
  .mobile-location-row {
    grid-template-columns: 42px minmax(0, 1fr) 10px;
    padding: 13px;
    gap: 10px
  }
  .mobile-location-row .badge {
    grid-column: 2/3;
    width: max-content;
    margin-top: 5px
  }
  .location-row-icon {
    width: 42px;
    height: 42px
  }
  .upload-card {
    padding: 18px
  }
  .upload-location-head {
    gap: 11px
  }
  .upload-location-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px
  }
  .camera-picker {
    min-height: 175px;
    padding: 20px 14px
  }
  .camera-picker-icon {
    width: 56px;
    height: 56px
  }
  .form-group {
    margin-bottom: 14px
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 48px
  }
  .btn,
  button {
    width: 100%;
    min-height: 48px
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px
  }
  .actions .btn,
  .actions button {
    width: 100%
  }
  .table-wrap.mobile-card-table {
    border: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible
  }
  .mobile-card-table table,
  .mobile-card-table thead,
  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table td {
    display: block;
    width: 100%
  }
  .mobile-card-table thead {
    display: none
  }
  .mobile-card-table tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 7px 20px rgba(18, 38, 75, .06)
  }
  .mobile-card-table td {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 0;
    padding: 6px 0;
    min-width: 0
  }
  .mobile-card-table td:before {
    content: attr(data-label);
    color: #7a8597;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 900
  }
  .mobile-card-table td:first-child {
    font-weight: 900;
    font-size: 1.05rem;
    display: block;
    padding: 0 0 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--line)
  }
  .mobile-card-table td:first-child:before {
    display: none
  }
  .admin-portal .container {
    padding: 16px 12px
  }
  .admin-portal .sidebar {
    margin-bottom: 14px
  }
  .admin-portal .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
  .admin-portal .page-header {
    align-items: stretch
  }
  .admin-portal .table-wrap {
    border-radius: 14px
  }
}

@media(max-width:370px) {
  .participant-bottom-nav a {
    font-size: .59rem
  }
  .bottom-nav-icon {
    font-size: .98rem
  }
  .brand strong {
    max-width: 145px
  }
  .stats {
    grid-template-columns: 1fr 1fr
  }
  .stat {
    padding: 14px
  }
  .mobile-location-row {
    grid-template-columns: 38px minmax(0, 1fr) 8px
  }
  .location-row-icon {
    width: 38px;
    height: 38px
  }
}

.password-field {
  display: flex;
  align-items: stretch;
  gap: .5rem
}

.password-field input {
  flex: 1
}

.password-field .icon-btn {
  min-width: 48px;
  border: 1px solid var(--border, #dbe3ef);
  border-radius: 12px;
  background: #fff;
  color: #334155
}

.check-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 1rem 0
}

.check-row input {
  width: 20px;
  height: 20px
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap
}

.inline-form .form-group {
  flex: 1;
  min-width: 220px
}

.muted {
  color: #64748b;
  font-size: .92rem
}

.form-actions {
  margin-top: 1.25rem
}

@media(max-width:600px) {
  .inline-form {
    display: block
  }
  .inline-form .btn {
    width: 100%
  }
  .password-field .icon-btn {
    width: 50px
  }
  .card code {
    word-break: break-all
  }
}

/* 2026 mobile/admin refinement */

.password-field {
  position: relative;
  display: block
}

.password-field input {
  padding-right: 52px
}

.password-toggle {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 42px !important;
  min-width: 42px !important;
  height: 38px;
  min-height: 38px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #64748b !important;
  box-shadow: none !important;
  border-radius: 9px
}

.password-toggle:hover {
  background: #eef3fb !important;
  transform: none
}

.field-help {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 5px
}

.page-kicker {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em
}

.content-panel {
  min-width: 0
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(140px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow)
}

.filter-bar>div {
  min-width: 0
}

.filter-bar label {
  font-size: .75rem;
  margin-bottom: 5px
}

.filter-bar input,
.filter-bar select {
  min-height: 44px
}

.filter-bar button,
.filter-bar>.btn {
  height: 44px;
  white-space: nowrap
}

.status-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 8px;
  margin-bottom: 10px
}

.status-tabs a {
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  color: #667085
}

.status-tabs a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.submission-admin-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow)
}

.submission-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: #182033
}

.submission-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.submission-thumb .badge {
  position: absolute;
  left: 12px;
  top: 12px
}

.submission-card-body {
  padding: 16px
}

.submission-card-body h3 {
  margin-bottom: 8px
}

.submission-card-body p {
  margin: 4px 0;
  font-size: .9rem
}

.submission-card-body small {
  display: block;
  color: var(--muted);
  margin: 9px 0 13px
}

.btn-block {
  width: 100%
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .86rem
}

.pagination>div {
  display: flex;
  gap: 5px
}

.pagination a {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800
}

.pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff
}

.responsive-table td strong,
.responsive-table td small {
  display: block
}

.responsive-table td small {
  color: var(--muted);
  margin-top: 3px
}

.table-thumb {
  width: 74px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #edf2f7
}

.table-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8
}

.tiny-link {
  display: block;
  font-size: .75rem;
  margin-top: 5px
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px
}

.span-2 {
  grid-column: 1/-1
}

.form-card {
  max-width: 900px
}

.form-image-preview {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 10px
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px
}

.switch-row input {
  width: 20px
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line)
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px
}

.review-image-card {
  padding: 12px
}

.review-image-wrap {
  position: relative
}

.review-image-wrap>.badge {
  position: absolute;
  left: 14px;
  top: 14px
}

.review-info-card h1 {
  margin: 5px 0 20px
}

.info-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px
}

.info-list>div {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 12px
}

.info-list i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf0ff;
  color: var(--primary);
  border-radius: 10px
}

.info-list span {
  display: flex;
  flex-direction: column
}

.info-list small {
  color: var(--muted)
}

.stack-actions {
  display: grid;
  gap: 9px
}

.badge.invalidated {
  background: #fee2e2;
  color: #b91c1c
}

.hero-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .5) !important
}

.landing-location-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px
}

.location-showcase-card,
.public-location-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow)
}

.location-showcase-media,
.public-location-media {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1)
}

.location-showcase-media img,
.public-location-media img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.location-showcase-media>span:not(.location-number),
.public-location-media>span {
  width: 100px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .67rem;
  color: #fff;
}

.location-showcase-media .location-number,
.public-location-media b {
  position: absolute;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  background: #fff;
  color: var(--primary);
  padding: 5px 9px;
  border-radius: 9px;
  font-size: .78rem;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .13)
}

.location-showcase-body,
.public-location-content {
  padding: 17px
}

.location-showcase-body h3,
.public-location-content h2 {
  margin-bottom: 7px
}

.location-showcase-body p,
.public-location-content p {
  margin: 0 0 10px
}

.location-showcase-body small {
  display: block;
  color: var(--muted);
  margin-bottom: 12px
}

.location-showcase-body a {
  font-weight: 800
}

.swipe-hint {
  display: none;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  margin-top: 10px
}

.public-locations-hero {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #e9f2ff);
  border: 1px solid #dce7f7;
  margin-bottom: 22px
}

.public-locations-hero h1 {
  margin: 8px 0
}

.location-count {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center
}

.location-count strong {
  display: block;
  font-size: 2.5rem;
  color: var(--primary)
}

.location-count span {
  font-size: .76rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800
}

.public-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.location-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: .88rem;
  margin: 13px 0
}

.card-actions {
  display: flex;
  gap: 8px
}

.icon-only {
  width: 46px;
  padding: 0
}

@media(max-width:1100px) {
  .filter-bar {
    grid-template-columns: repeat(3, 1fr)
  }
  .filter-bar button,
  .filter-bar>.btn {
    width: 100%
  }
  .admin-card-grid {
    grid-template-columns: repeat(2, 1fr)
  }
  .landing-location-track {
    grid-template-columns: repeat(3, 1fr)
  }
  .public-location-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:760px) {
  .filter-bar {
    grid-template-columns: 1fr 1fr
  }
  .review-layout {
    grid-template-columns: 1fr
  }
  .landing-location-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 13px;
    margin-left: -14px;
    margin-right: -14px;
    padding: 4px 14px 14px;
    scrollbar-width: none
  }
  .landing-location-track::-webkit-scrollbar {
    display: none
  }
  .location-showcase-card {
    flex: 0 0:min(84vw, 330px);
    scroll-snap-align: start
  }
  .swipe-hint {
    display: block
  }
  .public-locations-hero {
    padding: 26px 22px 90px
  }
  .location-count {
    left: 22px;
    right: auto;
    top: auto;
    bottom: 20px;
    transform: none;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px
  }
  .location-count strong {
    font-size: 2rem
  }
  .public-location-grid {
    grid-template-columns: 1fr
  }
  .responsive-table thead {
    display: none
  }
  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%
  }
  .responsive-table tr {
    padding: 14px;
    border-bottom: 1px solid var(--line)
  }
  .responsive-table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 7px 0;
    border: 0
  }
  .responsive-table td:before {
    content: attr(data-label);
    font-size: .7rem;
    text-transform: uppercase;
    color: #8791a2;
    font-weight: 900
  }
  .responsive-table td:first-child {
    padding-top: 0
  }
  .table-thumb {
    width: 100px
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column
  }
  .form-grid {
    grid-template-columns: 1fr
  }
  .span-2 {
    grid-column: auto
  }
  .form-actions {
    flex-direction: column-reverse
  }
  .form-actions>* {
    width: 100%
  }
}

@media(max-width:520px) {
  .filter-bar {
    grid-template-columns: 1fr
  }
  .admin-card-grid {
    grid-template-columns: 1fr
  }
  .status-tabs {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px
  }
  .submission-admin-card {
    border-radius: 16px
  }
  .public-location-card {
    border-radius: 17px
  }
  .card-actions .btn:first-child {
    flex: 1
  }
  .pagination>div {
    max-width: 100%;
    overflow: auto
  }
  .page-header h1 {
    margin-bottom: 2px
  }
}

/* 2026 branded visual refresh */

:root {
  --brand-navy: #062d72;
  --brand-blue: #075bd8;
  --brand-yellow: #ffbd13;
  --brand-red: #db1d24;
  --brand-ink: #071d49
}

.guest-portal {
  background: #f7f9fd
}

.brand-hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  border-radius: 0 0 30px 30px;
  margin: -28px -20px 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 47, 118, .25), rgba(2, 31, 82, .96)), linear-gradient(135deg, #2f8edb, #eef7ff 55%, #1d6eb1);
  box-shadow: 0 22px 55px rgba(2, 45, 112, .22)
}

.brand-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, .25), transparent 30%), linear-gradient(110deg, rgba(255, 255, 255, .08), transparent 38%);
  z-index: -1
}

.brand-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 42, 105, .45), transparent 55%)
}

.brand-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: auto;
  text-align: center;
  padding: 36px 24px 70px;
  color: #fff
}

.challenge-logo {
  width: min(680px, 92%);
  max-height: 440px;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, .28))
}

.brand-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  margin: 2px 0 8px;
  text-transform: capitalize
}

.brand-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .94);
  font-size: 1.05rem
}

.brand-hero-actions {
  justify-content: center;
  margin-top: 22px
}

.hero-yellow {
  background: var(--brand-yellow);
  color: #10244a;
  box-shadow: 0 10px 22px rgba(255, 189, 19, .28)
}

.hero-yellow:hover {
  background: #ffc92f;
  color: #10244a
}

.hero-ghost {
  background: rgba(5, 39, 99, .5);
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
  box-shadow: none
}

.journey-strip {
  position: relative;
  z-index: 4;
  margin: -26px auto 34px;
  max-width: 1120px;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(3, 42, 103, .15);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px
}

.journey-strip article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 18px;
  border-right: 1px solid #e1e7f0
}

.journey-strip article:last-child {
  border-right: 0
}

.journey-strip i {
  font-size: 1.75rem;
  color: var(--brand-blue)
}

.journey-strip article:nth-child(2) i {
  color: #18a968
}

.journey-strip article:nth-child(3) i {
  color: #f18c00
}

.journey-strip article:nth-child(4) i {
  color: #7a3ee8
}

.journey-strip strong,
.journey-strip span {
  display: block
}

.journey-strip strong {
  text-transform: uppercase;
  color: var(--brand-ink)
}

.journey-strip span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35
}

.challenge-section-head h2 {
  color: var(--brand-ink);
  font-size: 1.8rem
}

.page-kicker {
  color: var(--brand-yellow);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em
}

.section-link {
  font-weight: 850
}

.challenge-location-track {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.challenge-location-card {
  border-radius: 16px;
  box-shadow: 0 9px 25px rgba(3, 44, 105, .09);
  transition: .2s transform, .2s box-shadow
}

.challenge-location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 17px 35px rgba(3, 44, 105, .16)
}

.challenge-location-card .location-showcase-media {
  width: 100%
}

.challenge-location-card .location-number {
  border-radius: 999px !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: grid;
  place-items: center;
  background: var(--brand-yellow) !important;
  color: #10244a !important;
  font-weight: 900
}

.challenge-location-card .location-showcase-body {
  display: flex;
  flex-direction: column;
  min-height: 220px
}

.challenge-location-card h3 {
  color: var(--brand-ink)
}

.challenge-location-card p {
  font-size: .87rem;
  line-height: 1.45;
  flex: 1
}

.challenge-location-card .btn {
  align-self: flex-start;
  border-radius: 8px;
  padding: 8px 12px;
  text-transform: uppercase;
  font-size: .72rem
}

.landing-stats {
  margin: 42px -20px -28px;
  padding: 34px 20px;
  background: linear-gradient(135deg, var(--brand-navy), #0855bf);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  color: #fff
}

.landing-stats article {
  text-align: center
}

.landing-stats i {
  font-size: 1.35rem;
  margin-bottom: 6px
}

.landing-stats strong,
.landing-stats span {
  display: block
}

.landing-stats strong {
  font-size: 1.35rem
}

.landing-stats span {
  font-size: .82rem;
  color: rgba(255, 255, 255, .78)
}

.location-detail-shell {
  max-width: 820px;
  margin: 0 auto
}

.location-detail-hero {
  position: relative;
  height: 380px;
  border-radius: 28px;
  overflow: hidden;
  background: #dfe9f8;
  box-shadow: 0 18px 44px rgba(4, 42, 104, .18)
}

.location-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.location-detail-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: var(--brand-blue)
}

.detail-back {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 36, 89, .8);
  color: #fff;
  backdrop-filter: blur(8px)
}

.detail-sequence {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 13px;
  background: rgba(5, 36, 89, .82);
  color: #fff;
  border-radius: 999px;
  font-weight: 900
}

.location-detail-card {
  position: relative;
  margin: -42px 22px 0;
  padding: 30px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(4, 42, 104, .15)
}

.location-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px
}

.location-detail-heading h1 {
  margin: 5px 0 0;
  color: var(--brand-ink)
}

.location-address {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #45617f;
  font-weight: 700
}

.location-address i {
  color: var(--brand-blue);
  margin-top: 5px
}

.location-description {
  margin: 22px 0;
  color: #536377
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #f7f9fc;
  border-radius: 16px;
  padding: 14px
}

.detail-info-grid>div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px
}

.detail-info-grid i {
  width: 28px;
  text-align: center;
  color: var(--brand-blue)
}

.detail-info-grid small,
.detail-info-grid strong {
  display: block
}

.detail-info-grid small {
  color: #7a8797
}

.detail-info-grid strong {
  font-size: .92rem;
  color: var(--brand-ink)
}

.detail-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0
}

.map-btn {
  background: var(--brand-blue)
}

.challenge-btn {
  background: var(--brand-yellow);
  color: #13274e
}

.challenge-btn:hover {
  background: #ffc935;
  color: #13274e
}

.detail-reminders {
  border: 1px solid #f2d88b;
  background: #fff9e6;
  border-radius: 16px;
  padding: 18px
}

.detail-reminders h2 {
  font-size: 1rem;
  color: #734d00
}

.detail-reminders ul {
  list-style: none;
  margin: 0;
  padding: 0
}

.detail-reminders li {
  display: flex;
  gap: 9px;
  color: #735d2d;
  margin: 8px 0
}

.detail-reminders li i {
  color: #f5af00
}

.location-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px
}

.location-pager a,
.location-pager>span {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #9db8e7;
  border-radius: 14px;
  padding: 16px;
  color: var(--brand-blue);
  background: #fff
}

.location-pager .next {
  justify-content: flex-end;
  text-align: right
}

.location-pager small,
.location-pager strong {
  display: block
}

.location-pager small {
  text-transform: uppercase;
  font-size: .68rem;
  color: #728199;
  font-weight: 850
}

.location-pager strong {
  color: var(--brand-ink)
}

.pager-disabled {
  opacity: .48
}

.password-field-inline {
  position: relative;
  display: flex;
  align-items: stretch
}

.password-field-inline input {
  padding-right: 52px
}

.password-toggle-inline {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 42px;
  min-height: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: #526174;
  box-shadow: none
}

.password-toggle-inline:hover {
  background: #edf3fb;
  color: var(--brand-blue);
  transform: none
}

@media(max-width:1100px) {
  .challenge-location-track {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .brand-hero {
    min-height: 0;
    margin: -20px -14px 0;
    border-radius: 0 0 24px 24px
  }
  .brand-hero-content {
    padding: 24px 16px 58px
  }
  .challenge-logo {
    width: 100%;
    max-height: 260px
  }
  .brand-hero p {
    font-size: .94rem
  }
  .brand-hero-actions .btn {
    flex: 1
  }
  .journey-strip {
    margin: -22px 0 26px;
    padding: 12px;
    grid-template-columns: repeat(2, 1fr);
    gap: 0
  }
  .journey-strip article {
    justify-content: flex-start;
    padding: 13px 10px;
    border-right: 0;
    border-bottom: 1px solid #e4e9f1
  }
  .journey-strip article:nth-last-child(-n+2) {
    border-bottom: 0
  }
  .journey-strip i {
    font-size: 1.35rem
  }
  .challenge-location-track {
    display: flex
  }
  .landing-stats {
    grid-template-columns: repeat(2, 1fr);
    margin: 34px -14px -20px
  }
  .location-detail-hero {
    height: 290px;
    border-radius: 22px
  }
  .location-detail-card {
    margin: -30px 10px 0;
    padding: 22px 18px;
    border-radius: 22px
  }
  .location-detail-heading {
    align-items: flex-start
  }
  .detail-info-grid {
    grid-template-columns: 1fr
  }
  .detail-primary-actions {
    grid-template-columns: 1fr
  }
  .location-pager {
    margin: 16px 0;
    gap: 10px
  }
  .location-pager a,
  .location-pager>span {
    min-height: 80px;
    padding: 13px
  }
  .location-pager strong {
    font-size: .82rem
  }
  .detail-back {
    width: 42px;
    height: 42px
  }
  .challenge-section-head .section-link {
    display: none
  }
}

@media(max-width:420px) {
  .brand-hero-actions {
    flex-direction: column
  }
  .brand-hero-actions .btn {
    width: 100%
  }
  .journey-strip {
    grid-template-columns: 1fr
  }
  .journey-strip article,
  .journey-strip article:nth-last-child(-n+2) {
    border-bottom: 1px solid #e4e9f1
  }
  .journey-strip article:last-child {
    border-bottom: 0
  }
  .location-detail-hero {
    height: 250px
  }
  .location-detail-heading {
    display: block
  }
  .location-detail-heading .badge {
    margin-top: 10px
  }
  .location-pager {
    grid-template-columns: 1fr
  }
  .location-pager .next {
    justify-content: space-between;
    text-align: left
  }
}

/* =========================================================
   Landing Page Location Grid — Mobile-First Responsive Fix
   Mobile: 1 column | Medium: 3 columns | Very wide: 4 columns
   ========================================================= */

.challenge-location-track,
.landing-location-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}

.challenge-location-track .challenge-location-card,
.landing-location-track .location-showcase-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
  scroll-snap-align: none;
}

.challenge-location-card .location-showcase-media {
  aspect-ratio: 16 / 10;
  min-height: 200px;
}

.challenge-location-card .location-showcase-body {
  min-height: 0;
  padding: 18px;
}

.challenge-location-card .location-showcase-body .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.swipe-hint {
  display: none !important;
}

/* Medium screens: three cards per row */

@media (min-width: 768px) {
  .challenge-location-track,
  .landing-location-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .challenge-location-card .location-showcase-media {
    min-height: 0;
  }
  .challenge-location-card .location-showcase-body {
    min-height: 220px;
  }
  .challenge-location-card .location-showcase-body .btn {
    width: auto;
    justify-content: flex-start;
  }
}

/* Very wide screens: four cards per row */

@media (min-width: 1200px) {
  .challenge-location-track,
  .landing-location-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Small-phone refinements */

@media (max-width: 767.98px) {
  .challenge-section-head {
    margin-bottom: 18px;
  }
  .challenge-location-track,
  .landing-location-track {
    gap: 18px;
  }
  .challenge-location-card {
    border-radius: 18px;
  }
  .challenge-location-card:hover {
    transform: none;
  }
  .challenge-location-card .location-showcase-media {
    min-height: clamp(200px, 58vw, 250px);
  }
  .challenge-location-card .location-showcase-body {
    padding: 18px 17px 17px;
  }
  .challenge-location-card h3 {
    font-size: 1.16rem;
    line-height: 1.3;
  }
  .challenge-location-card p {
    font-size: .92rem;
    line-height: 1.55;
  }
  .challenge-location-card .location-showcase-body small {
    line-height: 1.45;
  }
  .challenge-location-card .btn {
    min-height: 46px;
    font-size: .79rem;
  }
}

/* Selfie camera modal + challenge questions */

body.modal-open {
  overflow: hidden
}

.selfie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px
}

.selfie-modal[hidden] {
  display: none
}

.selfie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 45, .78);
  backdrop-filter: blur(5px)
}

.selfie-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  padding: 24px
}

.selfie-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px !important;
  min-height: 42px !important;
  border: 0;
  background: #eef3fb;
  color: #334155;
  border-radius: 50%;
  padding: 0;
  box-shadow: none;
  z-index: 3
}

.selfie-modal-close:hover {
  background: #e2e8f0;
  transform: none
}

.selfie-modal-head {
  padding-right: 50px;
  margin-bottom: 16px
}

.selfie-modal-head h2 {
  margin: 3px 0 5px;
  color: var(--brand-ink)
}

.selfie-modal-head p {
  margin: 0;
  color: var(--muted)
}

.camera-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 20px;
  background: #0b1324;
  border: 1px solid #1e2b42
}

.camera-stage video,
.camera-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.camera-stage video {
  transform: scaleX(-1)
}

.camera-stage-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #d9e5f7;
  text-align: center;
  padding: 20px
}

.camera-stage-placeholder i {
  font-size: 2.4rem
}

.camera-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 9px;
  margin: 12px 0
}

.camera-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--primary);
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
  margin-bottom: 18px
}

.camera-fallback:hover {
  text-decoration: underline
}

.camera-fallback+* {}

#selfieCameraInput {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0
}

.challenge-questions {
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: #f8fbff;
  padding: 16px;
  margin-bottom: 16px
}

.challenge-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px
}

.challenge-question-head span {
  font-weight: 900;
  color: var(--brand-ink)
}

.challenge-question-head small {
  color: var(--muted)
}

.challenge-question {
  border: 0;
  padding: 0;
  margin: 0 0 18px
}

.challenge-question:last-of-type {
  margin-bottom: 10px
}

.challenge-question legend {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 850;
  color: var(--brand-ink);
  padding: 0;
  margin-bottom: 10px
}

.challenge-question legend>span {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #eaf0ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: .8rem
}

.challenge-options {
  display: grid;
  gap: 8px
}

.challenge-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e2ef;
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer
}

.challenge-option:has(input:checked) {
  border-color: #7ea5e8;
  background: #f1f6ff
}

.challenge-option input {
  width: 18px;
  height: 18px;
  min-height: 0
}

.challenge-option span {
  font-weight: 700;
  color: #344054
}

.challenge-question-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .78rem;
  color: #65758b;
  border-top: 1px solid #e1e8f2;
  padding-top: 12px
}

.challenge-question-note i {
  color: var(--primary);
  margin-top: 2px
}

.selfie-submit {
  margin-top: 8px
}

.selfie-remarks {
  margin-bottom: 0
}

.upload-start-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff
}

.upload-start-panel h2 {
  margin: 3px 0 5px;
  color: var(--brand-ink);
  font-size: 1.2rem
}

.upload-start-panel p {
  margin: 0;
  color: var(--muted);
  max-width: 650px
}

.upload-start-panel .btn {
  max-width: 220px;
  margin: 0
}

.inline-challenge-questions {
  margin-top: 4px
}

.challenge-admin-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line)
}

.challenge-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px
}

.challenge-admin-head h2 {
  margin: 3px 0 4px;
  color: var(--brand-ink)
}

.challenge-admin-head p {
  margin: 0;
  color: var(--muted);
  max-width: 650px
}

.challenge-admin-card {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 18px;
  padding: 17px;
  margin-bottom: 14px
}

.challenge-admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--brand-ink)
}

.icon-btn.danger {
  color: #b42318;
  background: #fff0ef;
  border-color: #ffd2cd
}

.icon-btn.danger:hover {
  background: #ffe2df;
  color: #9b1c12
}

.question-options-editor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 14px
}

.question-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px
}

.question-options-head label {
  font-weight: 850
}

.option-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px
}

.option-editor-row:last-child {
  margin-bottom: 0
}

.option-editor-row input[type=text],
.option-editor-row input:not([type]) {
  min-width: 0
}

.correct-choice {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 800;
  color: #536377
}

.correct-choice input {
  min-height: 0;
  width: 17px
}

.question-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  cursor: pointer
}

.check-card input {
  width: 19px;
  min-height: 19px;
  margin-top: 1px
}

.check-card strong,
.check-card small {
  display: block
}

.check-card strong {
  color: var(--brand-ink)
}

.check-card small {
  color: var(--muted);
  margin-top: 2px;
  font-size: .75rem
}

.empty-question-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 28px;
  border: 1px dashed #c5d2e5;
  border-radius: 16px;
  color: var(--muted);
  background: #fbfdff
}

.empty-question-state i {
  font-size: 1.8rem;
  color: #8ca3c2;
  margin-bottom: 4px
}

.empty-question-state strong {
  color: var(--brand-ink)
}

@media(max-width:600px) {
  .upload-start-panel {
    display: block
  }
  .upload-start-panel .btn {
    max-width: none;
    margin-top: 14px
  }
  .selfie-modal {
    padding: 0
  }
  .selfie-modal-dialog {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    padding: 18px 14px 22px
  }
  .selfie-modal-close {
    right: 12px;
    top: 12px
  }
  .selfie-modal-head {
    padding-right: 48px
  }
  .camera-actions {
    grid-template-columns: 1fr 1fr
  }
  .camera-actions #selfieRetake {
    grid-column: 1/-1
  }
  .question-settings {
    grid-template-columns: 1fr
  }
  .challenge-admin-head {
    display: block
  }
  .challenge-admin-head .btn {
    width: 100%;
    margin-top: 12px
  }
  .option-editor-row {
    grid-template-columns: minmax(0, 1fr) 38px
  }
  .correct-choice {
    grid-column: 1/-1
  }
  .challenge-option {
    padding: 10px
  }
  .camera-stage {
    aspect-ratio: 3/4
  }
}

.auth-shell {
  min-height: 65vh;
  display: grid;
  place-items: center;
  padding: 30px 0
}

.auth-card {
  width: min(520px, 100%);
  padding: 28px
}

.auth-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px
}

.auth-brand h1 {
  margin: 2px 0 4px
}

.auth-brand p {
  margin: 0;
  color: var(--muted)
}

.auth-foot {
  text-align: center;
  margin: 18px 0 0
}

.admin-answer-list {
  display: grid;
  gap: 14px
}

.answer-review-card {
  padding: 18px
}

.answer-review-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start
}

.answer-review-head strong,
.answer-review-head small {
  display: block
}

.answer-review-head small {
  color: var(--muted);
  margin-top: 3px
}

.answer-question,
.answer-value {
  margin-top: 15px
}

.answer-question small,
.answer-value small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .7rem;
  margin-bottom: 5px
}

.answer-value>div {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  white-space: normal
}

.answer-review-actions {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px
}

.answer-review-actions textarea {
  margin-bottom: 9px
}

.answer-review-actions>div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.leaderboard-shell {
  max-width: 1120px;
  margin: 0 auto
}

.leaderboard-header {
  align-items: flex-end
}

.leaderboard-total {
  min-width: 130px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px
}

.leaderboard-total strong,
.leaderboard-total span {
  display: block
}

.leaderboard-total strong {
  font-size: 1.8rem;
  color: var(--primary)
}

.leaderboard-total span {
  font-size: .75rem;
  color: var(--muted)
}

.podium {
  margin: 20px 0
}

.podium h2 {
  color: var(--brand-ink)
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.podium-card {
  text-align: center;
  padding: 22px 15px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 38, 75, .08)
}

.podium-card.place-1 {
  transform: translateY(-8px);
  border-color: #f0c94a
}

.podium-card.place-2 {
  border-color: #c7d0dc
}

.podium-card.place-3 {
  border-color: #d9a77a
}

.podium-medal {
  font-weight: 950;
  font-size: 1.15rem;
  margin-bottom: 8px
}

.podium-name {
  font-weight: 950;
  font-size: 1.05rem;
  color: var(--brand-ink)
}

.podium-card small,
.podium-card strong,
.podium-card span {
  display: block
}

.podium-card small {
  color: var(--muted);
  min-height: 18px
}

.podium-card strong {
  margin-top: 12px
}

.podium-card span {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 4px
}

.leaderboard-table-card {
  padding: 0;
  overflow: hidden
}

.leaderboard-top {
  background: #fffaf0
}

.leaderboard-top td:first-child strong {
  color: #b47a00
}

@media(max-width:700px) {
  .podium-grid {
    grid-template-columns: 1fr
  }
  .podium-card.place-1 {
    transform: none
  }
  .leaderboard-header {
    display: block
  }
  .leaderboard-total {
    margin-top: 14px
  }
}

/* Challenge answer administration layout */

.admin-sidebar-wrap {
  min-width: 0
}

.admin-sidebar-wrap .sidebar {
  position: sticky;
  top: 92px
}

.admin-answer-list {
  min-width: 0
}

.answer-review-card {
  min-width: 0;
  overflow: hidden
}

.answer-review-actions textarea {
  box-sizing: border-box
}

.answer-review-actions>div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.answer-review-actions>div button {
  width: auto;
  min-width: 130px
}

@media(max-width:860px) {
  .admin-sidebar-wrap .sidebar {
    position: static
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr
  }
  .filter-bar>div:first-of-type {
    grid-column: 1/-1
  }
  .filter-bar button,
  .filter-bar>.btn {
    width: 100%
  }
}

@media(max-width:620px) {
  .filter-bar {
    grid-template-columns: 1fr
  }
  .filter-bar>div:first-of-type {
    grid-column: auto
  }
  .answer-review-head {
    display: block
  }
  .answer-review-head .badge {
    margin-top: 9px
  }
  .answer-review-actions>div {
    display: grid;
    grid-template-columns: 1fr
  }
  .answer-review-actions>div button {
    width: 100%
  }
}

/* Mobile hardening and secure installer */

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 10000;
  background: #fff;
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow)
}

.skip-link:focus {
  top: 12px
}

button:disabled,
.btn:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none !important
}

input,
select,
textarea,
button {
  touch-action: manipulation
}

.installer-shell {
  display: grid;
  place-items: center;
  padding-top: 34px;
  padding-bottom: 34px
}

.installer-card {
  width: min(760px, 100%);
  margin: 0
}

.installer-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px
}

.installer-heading img {
  width: 72px;
  height: 72px;
  object-fit: contain
}

.installer-heading h1 {
  margin: 3px 0 4px
}

.installer-heading p {
  margin: 0
}

.requirement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px
}

.requirement-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf2f7;
  color: #526174;
  font-size: .76rem;
  font-weight: 800
}

.requirement-list .pass {
  background: #e8f7ee;
  color: #166534
}

.requirement-list .fail {
  background: #feeceb;
  color: #b42318
}

.requirement-list b {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #168a4a;
  color: #fff;
  font-size: .68rem
}

.requirement-list .fail b {
  background: #cf2e2e
}

@media(max-width:620px) {
  body {
    overflow-x: hidden
  }
  .installer-shell {
    padding: 0;
    display: block
  }
  .installer-card {
    border-radius: 0;
    min-height: 100vh;
    margin: 0;
    padding: 22px 16px
  }
  .installer-heading {
    align-items: flex-start
  }
  .installer-heading img {
    width: 56px;
    height: 56px
  }
  .requirement-list {
    gap: 6px
  }
  .topbar-inner {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right))
  }
  .participant-bottom-nav {
    overscroll-behavior: contain
  }
  .selfie-modal-dialog {
    padding-bottom: calc(22px + env(safe-area-inset-bottom))
  }
  .camera-stage {
    max-height: 58vh
  }
  .site-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom))
  }
}

/* Participant submission shown on the location details page */

.participant-submission-detail {
  margin: 22px 0;
  border: 1px solid #cfe0f7;
  background: #f8fbff;
  border-radius: 18px;
  padding: 18px
}

.participant-submission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px
}

.participant-submission-head h2 {
  margin: 2px 0 0
}

.participant-submission-grid {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
  gap: 16px
}

.participant-selfie {
  margin: 0
}

.participant-selfie img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #0b1324;
  border-radius: 14px
}

.participant-selfie figcaption {
  color: var(--muted);
  font-size: .78rem;
  margin-top: 7px
}

.participant-answer-list {
  display: grid;
  gap: 10px;
  align-content: start
}

.participant-answer-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px
}

.participant-answer-list small,
.participant-answer-list strong {
  display: block
}

.participant-answer-list small {
  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--primary);
  font-weight: 900
}

.participant-answer-list strong {
  margin: 3px 0 8px
}

.participant-answer-list p {
  margin: 0;
  color: var(--text);
  padding: 9px 11px;
  background: #f6f8fb;
  border-radius: 9px
}

.submission-no-answers {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px
}

.location-preview-image-wrap>[hidden] {
  display: none !important
}

.public-bottom-nav {
  display: none
}

@media(max-width:860px) {
  body.guest-portal:has(.public-bottom-nav) {
    padding-bottom: 86px
  }
  body.guest-portal:has(.public-bottom-nav) .site-footer {
    display: none
  }
  .public-bottom-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid #dce3ed;
    box-shadow: 0 -8px 24px rgba(20, 35, 60, .1);
    padding: 7px max(7px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
    backdrop-filter: blur(15px)
  }
  .public-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 54px;
    border-radius: 13px;
    color: #778397;
    font-size: .62rem;
    font-weight: 800
  }
  .public-bottom-nav a.active {
    color: var(--primary)
  }
  .public-bottom-nav a.active .bottom-nav-icon {
    background: #eaf0ff
  }
  .participant-submission-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:620px) {
  .participant-submission-detail {
    margin: 18px -2px;
    padding: 14px
  }
  .participant-submission-head {
    display: block
  }
  .participant-submission-head .badge {
    margin-top: 8px
  }
  .participant-selfie img {
    max-height: 65vh
  }
  .participant-answer-list strong {
    font-size: .9rem
  }
}

@media(max-width:860px) {
  body.guest-portal:has(.public-bottom-nav) .top-actions {
    display: none
  }
}

/* Submission results, location photos, and mobile location hover state */

.submission-attempt-count {
  margin: 5px 0 0;
  font-size: .82rem
}

.answer-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.answer-result {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .7rem;
  font-weight: 900
}

.answer-result.correct {
  color: #166534;
  background: #dcfce7
}

.answer-result.wrong {
  color: #b42318;
  background: #fee2e2
}

.participant-location-photo {
  height: 180px;
  margin: -22px -22px 18px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #dce8f8
}

.participant-location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.participant-location-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 2.2rem
}

.mobile-location-row:not(.is-complete):hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff
}

.mobile-location-row:not(.is-complete):hover .location-row-copy strong,
.mobile-location-row:not(.is-complete):hover .location-row-copy small,
.mobile-location-row:not(.is-complete):hover .row-chevron,
.mobile-location-row:not(.is-complete):hover .badge {
  color: #fff
}

.mobile-location-row:not(.is-complete):hover .badge {
  background: rgba(255, 255, 255, .18)
}

.mobile-location-row:not(.is-complete):hover .location-row-icon {
  background: rgba(255, 255, 255, .18);
  color: #fff
}

@media(max-width:620px) {
  .participant-location-photo {
    height: clamp(180px, 52vw, 240px);
    margin: -18px -18px 16px
  }
  .answer-result-row {
    align-items: flex-start
  }
  .answer-result {
    flex: 0 0 auto
  }
}

/* Multiple-choice editor visibility and four-column directory */

.question-options-editor[hidden] {
  display: none !important
}

.camera-stage-placeholder[hidden] {
  display: none !important
}

.public-location-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.topbar .brand-mark{width:195px;height:auto;border-radius:0;background:transparent;box-shadow:none}.topbar .brand-mark img{width:195px;max-width:100%;height:auto;object-fit:contain}
.user-chip-photo,.profile-photo-preview img { width:40px;height:40px;border-radius:50%;object-fit:cover }
.profile-photo-preview{overflow:hidden}.profile-photo-preview img{width:100%;height:100%}
.gps-status{display:flex;gap:9px;align-items:center;margin:10px 0;padding:10px 12px;border-radius:10px;background:#eef5ff;color:#24476b;font-size:.9rem}
.table-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-actions form{margin:0}.btn.danger{background:#c62828;color:#fff;border-color:#c62828}
.submission-closed-notice{display:flex;align-items:flex-start;gap:14px;margin:16px 0;padding:16px 18px;border:1px solid #f1c56b;border-radius:14px;background:#fff8e6;color:#6b4a08}.submission-closed-notice>i{font-size:1.25rem;margin-top:2px}.submission-closed-notice strong{display:block}.submission-closed-notice p{margin:4px 0 0}.submission-control-card{margin-bottom:18px}
.rich-location-description img{display:block;max-width:100%;height:auto;margin:18px auto;border-radius:14px}.rich-location-description a{color:var(--primary);font-weight:700;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.rich-location-description figure{margin:20px 0}.rich-location-description figcaption{text-align:center;color:var(--muted);font-size:.88rem;margin-top:7px}.rich-location-description p:first-child{margin-top:0}.rich-location-description p:last-child{margin-bottom:0}
.crop-modal{position:fixed;inset:0;z-index:10000;background:rgba(8,16,35,.82);display:grid;place-items:center;padding:20px}.crop-modal[hidden]{display:none}.crop-dialog{width:min(560px,100%);background:#fff;border-radius:18px;padding:20px}.crop-stage{height:min(60vh,480px);background:#111;margin:14px 0}.crop-stage img{display:block;max-width:100%}.crop-actions{display:flex;gap:10px;justify-content:flex-end}

@media(max-width:1100px) {
  .public-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .public-location-grid {
    grid-template-columns: 1fr
  }
}

/* Completed location badge and participant selfie preview */

.location-completed-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #15803d;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  z-index: 2
}

.mobile-location-row {
  width: 100%;
  border: 0;
  text-align: left;
  font: inherit
}

.selfie-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px
}

.selfie-preview-modal[hidden] {
  display: none
}

.selfie-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  padding: 24px
}

.location-preview-image-wrap {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1324;
  border: 1px solid #1e2b42
}

.location-preview-image-wrap img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain
}

.location-preview-image-wrap>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #d9e5f7;
  text-align: center;
  padding: 30px
}

.location-preview-image-wrap i {
  font-size: 2.2rem
}

.preview-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end
}

.captured-preview-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #166534;
  font-size: .82rem;
  font-weight: 800
}

.camera-stage img[hidden] {
  display: none
}

.camera-stage video[hidden] {
  display: none
}

/* Submission GPS verification map */
.submission-map-trigger{display:block;width:100%;padding:0;border:0;text-align:left;cursor:pointer;background:#111}.submission-map-trigger:disabled{cursor:not-allowed}.map-photo-overlay{position:absolute;left:12px;right:12px;bottom:12px;display:flex;justify-content:center;align-items:center;gap:7px;padding:9px 12px;border-radius:10px;background:rgba(10,20,35,.82);color:#fff;font-weight:800;font-size:.82rem;backdrop-filter:blur(6px)}
.submission-map-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:18px}.submission-map-modal[hidden]{display:none}.submission-map-backdrop{position:absolute;inset:0;background:rgba(6,15,30,.76);backdrop-filter:blur(5px)}.submission-map-dialog{position:relative;z-index:1;width:min(920px,100%);max-height:94vh;overflow:auto;background:#fff;border-radius:20px;padding:20px;box-shadow:0 25px 70px rgba(0,0,0,.3)}
.submission-map-header{display:flex;align-items:center;gap:14px;padding-right:42px;margin-bottom:14px}.submission-map-header img{width:72px;height:72px;border-radius:14px;object-fit:cover}.submission-map-header h2,.submission-map-header p{margin:2px 0}.submission-leaflet-map{height:min(58vh,520px);min-height:340px;border-radius:15px;overflow:hidden;background:#e7edf3}.submission-map-legend{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding-top:14px;color:var(--muted);font-size:.88rem}.submission-map-legend span{display:flex;align-items:center;gap:7px}.submission-map-legend strong{margin-left:auto;color:var(--text)}.legend-dot{width:11px;height:11px;border-radius:50%;display:inline-block}.selfie-dot{background:#ef4444}.location-dot{background:#2563eb}
.gps-marker{background:none;border:0}.gps-marker span{display:grid;place-items:center;width:38px;height:38px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);color:#fff;border:3px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.3)}.gps-marker i{transform:rotate(45deg)}@media(max-width:620px){.submission-map-dialog{padding:14px}.submission-leaflet-map{min-height:360px}.submission-map-header img{width:58px;height:58px}.submission-map-legend strong{width:100%;margin-left:0}}
