/* The icon face is the existing portal asset pinned by the 11/6 static manifest. */
@font-face {
  font-family: StampReliefIcons;
  src: url("assets/5504655c1cbcf887a7ce.woff2?v=9fc85f3a4544ab0d") format("woff2");
  font-weight: 900;
  font-display: block;
}

.nov5-dialog, .nov5-detail-body {
  --relief-navy: #163982;
  --relief-ink: #382014;
  --relief-paper: #fff7e4;
  --relief-paper-edge: #aa702e;
  --relief-mint: #99ddd0;
  --relief-teal: #207e71;
  color: var(--relief-ink);
  font: 16px/1.65 system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  overflow-wrap: anywhere;
}

.nov5-icon {
  flex: none;
  font-family: StampReliefIcons;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.nov5-icon-notice::before { content: "\f06a"; }
.nov5-icon-success::before { content: "\f058"; }
.nov5-icon-next::before { content: "\f054"; }
.nov5-icon-mail::before { content: "\f0e0"; }
.nov5-icon-person::before { content: "\f007"; }
.nov5-icon-building::before { content: "\f19c"; }

[data-nov5-map-application][hidden], #nov5-detail-status[hidden] { display: none !important; }

.nov5-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.nov5-actions > * { flex: 1 1 150px; }

.nov5-button, .nov5-dialog button, .nov5-admin button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #172e4b;
  border-radius: 10px;
  background: #172e4b;
  color: #fff;
  font: 700 15px/1.5 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.nov5-button:focus-visible, .nov5-dialog button:focus-visible,
.nov5-detail-header a:focus-visible, .nov5-page a:focus-visible,
.nov5-admin :focus-visible {
  outline: 3px solid #146d78;
  outline-offset: 3px;
}

.nov5-dialog {
  box-sizing: border-box;
  inset: 0;
  width: min(430px, calc(100vw - 34px));
  margin: min(38dvh, 315px) auto auto;
  max-height: calc(100dvh - min(38dvh, 315px) - 20px);
  padding: clamp(17px, 4.8vw, 24px);
  border: 1.5px solid var(--relief-paper-edge);
  border-radius: 16px;
  background: var(--relief-paper);
  box-shadow: 0 8px 18px #4e2a1b2e;
  overscroll-behavior: contain;
}

.nov5-dialog::backdrop { background: #13274d12; }
.nov5-dialog[open] { border: 1.5px solid var(--relief-paper-edge); }

.nov5-dialog-heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.nov5-dialog-heading h2 {
  margin: 0;
  color: var(--relief-ink);
  font: 800 clamp(18px, 5.1vw, 23px)/1.36 system-ui, sans-serif;
  letter-spacing: .02em;
  outline: none;
}
.nov5-dialog-heading h2 span { display: block; }
.nov5-dialog-completion .nov5-dialog-heading h2 span { text-wrap: balance; }

.nov5-dialog-heading .nov5-icon {
  color: #a2652c;
  font-size: 30px;
}

.nov5-dialog-heading .nov5-icon-success { color: var(--relief-teal); }

.nov5-dialog .nov5-dialog-close {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-height: 44px;
  align-self: start;
  padding: 0;
  border: 4px solid transparent;
  border-radius: 50%;
  background: #eef2f5 padding-box;
  color: #172e4b;
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
}

.nov5-dialog-completion .nov5-dialog-close {
  background: #e9dfc9 padding-box;
  color: #4a200c;
}

.nov5-dialog.nov5-dialog-reception[open] {
  margin: auto;
  max-height: calc(100dvh - 28px);
  border: 1px solid #d6dfec;
  border-radius: 17px;
  background: #fff;
  color: #172e4b;
  box-shadow: 0 15px 40px #0e284935;
}

.nov5-dialog-reception::backdrop { background: #13274d38; }
.nov5-dialog-reception .nov5-dialog-heading { grid-template-columns: 44px minmax(0, 1fr) 44px; }
.nov5-dialog-reception .nov5-dialog-heading h2 {
  grid-column: 2;
  color: #172e4b;
  font-size: clamp(20px, 5.4vw, 22px);
  text-align: center;
}
.nov5-dialog-reception .nov5-reception-copy {
  margin: 13px 0 0;
  color: #172e4b;
  font-size: clamp(15px, 4.2vw, 16px);
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
}
.nov5-dialog-reception a.nov5-primary {
  min-height: 52px;
  border-color: #007b73;
  background: #007b73;
  color: white;
  font-size: clamp(14px, 4vw, 16px);
  text-wrap: balance;
}
.nov5-store-summary {
  margin: 16px 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: #f5e7c6;
  text-align: center;
}

.nov5-store-summary p { margin: 0; font-weight: 700; }
.nov5-store-summary ul { margin: 3px 0 0; padding: 0; list-style: none; }
.nov5-store-summary li { margin: 2px 0; font-weight: 800; }

.nov5-dialog .nov5-actions, .nov5-page .nov5-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.nov5-dialog .nov5-primary, .nov5-page a.nov5-primary {
  min-height: 50px;
  gap: 10px;
  border: 1.5px solid #245650;
  border-radius: 12px;
  background: var(--relief-mint);
  color: #092d2d;
  font-size: 17px;
  font-weight: 800;
}

.nov5-page a.nov5-quiet, .nov5-admin .nov5-quiet {
  border-color: #a37958;
  background: transparent;
  color: var(--relief-ink, #172e4b);
}

.nov5-page a.nov5-quiet { gap: 10px; }


.nov5-dialog [role="status"] { margin: 8px 0 0; font-size: 14px; color: #88451e; }
.nov5-dialog [role="status"]:empty { margin: 0; }

.nov5-detail-body { margin: 0; background: var(--relief-navy); }

.nov5-detail-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 660px);
  min-height: 76px;
  margin: auto;
  padding: 14px 16px 10px;
  color: #fff;
  font-weight: 750;
}

#nov5-detail-back {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 4px solid transparent;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16) padding-box;
  color: #fff;
  font: 650 24px/1 system-ui, sans-serif;
  text-decoration: none;
}

#map-stamp-demo .msd-header > button.msd-back:not([hidden]) {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  position: static;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 4px solid transparent;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16) padding-box;
  box-shadow: none;
  clip-path: none;
  color: #fff;
  font: 650 24px/1 system-ui, sans-serif;
  letter-spacing: 0;
}

#map-stamp-demo:is(.msd-floating-view, .msd-personal-view) .msd-header > button.msd-back:not([hidden]) {
  background: #e9dfc9 padding-box;
  color: #4a200c;
}

/* The star image includes a remnant of the former back button in its top-left corner. */
#map-stamp-demo .msd-book-art-stars {
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 0 31%, 13% 31%);
}

.nov5-page {
  box-sizing: border-box;
  width: min(calc(100% - 22px), 638px);
  margin: 0 auto 14px;
  padding: clamp(16px, 4.8vw, 28px);
  border: 2px solid #ca9650;
  border-radius: 21px;
  background: var(--relief-paper);
  box-shadow: inset 0 0 0 2px #f7e4b5;
}

.nov5-page h1 {
  margin: 0 0 9px;
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: .015em;
  text-wrap: balance;
}

.nov5-page h1 > span { display: inline-block; }

.nov5-page p { margin: 0; }
.nov5-detail-section { margin-top: 12px; }
.nov5-detail-section p { font-size: 15px; }
.nov5-page .nov5-intro { margin-top: 6px; }

.nov5-detail-band {
  margin: 0;
  padding: 3px 10px;
  border-radius: 6px;
  background: #efdfb9;
  font-size: 17px;
  font-weight: 800;
}

.nov5-detail-subheading {
  margin: 8px 0 3px;
  font-size: 15px;
  font-weight: 800;
}

.nov5-page .nov5-detail-recipient { margin: 6px 0 10px; }
.nov5-detail-recipient span { display: block; }

.nov5-detail-list { margin: 0; padding: 0; list-style: none; }
.nov5-detail-list li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 7px 0;
  border-bottom: 1px dashed #d1ac78;
}
.nov5-detail-list li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--relief-teal);
  color: white;
  font-size: 14px;
  font-weight: 750;
}
.nov5-detail-list p { font-size: 14px; line-height: 1.5; }
.nov5-page .nov5-detail-id {
  max-width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 6px 10px;
  font-size: 14px;
}

.nov5-detail-help {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d9daca;
  border-radius: 11px;
  background: #edeee1;
  font-size: 14px;
}
.nov5-detail-help .nov5-icon { color: #705846; font-size: 22px; }
.nov5-page .nov5-detail-followup { margin-top: 11px; font-size: 15px; text-align: center; }
.nov5-page .nov5-detail-reopen { margin-top: 12px; font-size: 13px; color: #674d3d; }

.nov5-box {
  margin: 14px 0;
  padding: 13px;
  border: 1px solid #dcd1b8;
  border-radius: 10px;
  background: #f1ecdf;
}

.nov5-inline-link {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  color: #286a67;
  font-weight: 700;
}

/* In relief mode only, hide the separate standard participant operations. */
#participant-support-panel[data-nov5-relief-open="true"] > :not(#nov5-relief-admin):not(h2) {
  display: none !important;
}

.nov5-admin {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #b8c9c7;
  border-radius: 12px;
  background: #f6f8f4;
  color: #172e4b;
  font: 16px/1.7 system-ui, sans-serif;
  overflow-wrap: anywhere;
}

.nov5-admin summary { min-height: 44px; font-size: 18px; font-weight: 700; cursor: pointer; }
.nov5-admin h3 { font-size: 19px; }
.nov5-admin label { display: block; margin: 12px 0; font-size: 14px; font-weight: 700; }

.nov5-admin input:not([type="checkbox"]), .nov5-admin select, .nov5-admin textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #aab6b4;
  border-radius: 6px;
  background: white;
  color: #172e4b;
  font: 16px/1.5 system-ui, sans-serif;
}

.nov5-admin input[type="checkbox"] { min-width: 20px; min-height: 20px; margin-right: 8px; }
.nov5-admin .nov5-store { padding: 12px 0; border-bottom: 1px solid #d4ddd9; }
.nov5-admin .nov5-store label { margin: 0 0 8px; }
.nov5-admin .nov5-meta { color: #4a605f; font-size: 14px; }
.nov5-admin .nov5-status { min-height: 24px; padding: 10px 0; }
.nov5-admin .nov5-results { display: grid; gap: 12px; }
.nov5-admin article { padding: 16px; border: 1px solid #d0d8d2; border-radius: 10px; background: white; }
.nov5-admin article p { margin: 6px 0; }
.nov5-admin .nov5-counts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.nov5-admin .nov5-counts span { padding: 4px 8px; border-radius: 5px; background: #eef2ec; }
.nov5-admin button:disabled, .nov5-dialog button:disabled { opacity: .55; cursor: not-allowed; }
.nov5-admin [hidden], .nov5-dialog [hidden] { display: none !important; }

@media (max-width: 430px) {
  .nov5-actions { flex-direction: column; }
  .nov5-actions > * { flex: auto; width: 100%; }
  .nov5-admin { padding: 12px; }
  .nov5-detail-header { min-height: 62px; padding: 10px 13px; font-size: 14px; }
}

@media (max-height: 655px) {
  .nov5-dialog { margin: 14dvh auto auto; max-height: calc(86dvh - 16px); }
}

/* r3: retain the R9 input/table sizes; compact only participant cards and relief. */
@media (min-width: 1000px) {
  #participant-support-panel #participant-list .participant-card { padding-block: 6px; }
  #participant-support-panel #participant-list .participant-card :is(p, summary, strong) {
    font-size: 14px;
    line-height: 1.5;
  }
  #participant-support-panel #participant-list .participant-card p { margin-block: 5px; }
  #participant-support-panel #participant-list .participant-card li { font-size: 13px; }
  #participant-support-panel .nov5-admin {
    margin: 12px 0;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
  }
  #participant-support-panel .nov5-admin summary { min-height: 34px; font-size: 16px; }
  #participant-support-panel .nov5-admin h3 { margin: 10px 0 5px; font-size: 16px; }
  #participant-support-panel .nov5-admin label { margin: 6px 0; }
  #participant-support-panel .nov5-admin :is(button, input:not([type="checkbox"]), select) {
    min-height: 34px;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 1.4;
  }
  #participant-support-panel .nov5-admin textarea { padding: 6px 9px; font-size: 14px; }
  #participant-support-panel .nov5-admin :is(.nov5-store, .nov5-status) { padding-block: 5px; }
  #participant-support-panel .nov5-admin :is(.nov5-box, article) { padding: 10px; }
  #participant-support-panel .nov5-admin .nov5-results { gap: 7px; }
  #participant-support-panel .nov5-admin .nov5-results li { padding-block: 5px; font-size: 13px; }
}
