:root {
  --paper: #fbf8f1;
  --paper-alt: #f3ede0;
  --ink: #1c1a17;
  --ink-70: rgba(28, 26, 23, 0.72);
  --ink-50: rgba(28, 26, 23, 0.5);
  --ink-30: rgba(28, 26, 23, 0.3);
  --ink-12: rgba(28, 26, 23, 0.12);
  --navy: #223a55;
  --navy-soft: rgba(34, 58, 85, 0.12);
  --ochre: #b08948;
  --ochre-soft: rgba(176, 137, 72, 0.16);
  --green: #2e6f55;
  --green-soft: rgba(46, 111, 85, 0.12);
  --red: #a43a35;
  --red-soft: rgba(164, 58, 53, 0.12);
  --blue: #27749a;
  --blue-soft: rgba(39, 116, 154, 0.12);
  --shadow: 0 18px 48px rgba(34, 58, 85, 0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18px 18px, rgba(28, 26, 23, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #fbf8f1 0%, #f7f3ea 100%);
  background-size: 72px 72px, auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

.app-root {
  min-height: 100vh;
}

.demo-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 448px) minmax(440px, 1fr);
  gap: 28px;
  padding: 22px;
}

.device {
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  min-height: 740px;
  max-height: 940px;
  border: 1px solid var(--ink);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-direction: column;
}

.app-status {
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--ink-12);
  color: var(--ink-70);
  font-size: 12px;
  font-weight: 700;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--ink);
  background: rgba(251, 248, 241, 0.94);
}

.back-btn,
.icon-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-subtitle {
  color: var(--ink-70);
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.screen-title {
  min-width: 0;
  flex: 1;
}

.screen-title h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.16;
}

.screen-title p {
  margin: 3px 0 0;
  color: var(--ink-70);
  font-size: 12px;
  font-weight: 600;
}

.screen {
  min-height: 0;
  overflow: auto;
  padding: 18px 18px 120px;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 8px calc(8px + var(--safe-bottom));
  border-top: 1px solid var(--ink);
  background: rgba(251, 248, 241, 0.98);
}

.tabbar button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--ink-70);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.tabbar button svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: inherit;
  stroke: currentColor;
  fill: none;
}

.tabbar button.active {
  color: var(--navy);
  background: var(--navy-soft);
}

.tabbar svg,
.icon svg,
.back-btn svg,
.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.3;
}

.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.workspace-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.workspace-top h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 0.98;
  letter-spacing: 0;
}

.workspace-top p {
  margin: 10px 0 0;
  max-width: 780px;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.5;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.segmented button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.segmented button.active {
  color: var(--paper);
  background: var(--ink);
}

.panel {
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.9);
  overflow: hidden;
}

.library-governance {
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.9);
  overflow: hidden;
  margin-bottom: 18px;
}

.library-governance .metric-card {
  min-height: 92px;
  padding: 14px;
}

.library-governance .metric-card strong,
.library-governance .metric-card span,
.library-governance .metric-card small {
  display: block;
}

.library-governance .metric-card strong {
  font-size: 24px;
  line-height: 1;
}

.library-governance .metric-card span {
  margin-top: 7px;
  font-weight: 800;
}

.library-governance .metric-card small {
  margin-top: 4px;
  color: var(--ink-70);
}

.panel-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.panel-head h3 {
  margin: 0;
  font-size: 18px;
}

.panel-body {
  padding: 18px;
}

.source-map-card {
  margin-bottom: 18px;
}

.source-map-card .panel-head {
  align-items: flex-start;
}

.source-map-card .panel-head h2 {
  margin: 8px 0 0;
  font-size: 20px;
}

.source-map-card .metric-card {
  min-height: 96px;
  padding: 14px;
}

.source-map-card .metric-card strong,
.source-map-card .metric-card span,
.source-map-card .metric-card small {
  display: block;
}

.source-map-card .metric-card span {
  margin-top: 6px;
  font-weight: 800;
}

.source-map-card .metric-card small {
  margin-top: 4px;
  color: var(--ink-70);
  line-height: 1.35;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-card,
.tile,
.row,
.notice,
.coupon,
.admin-row,
.form-box,
.state-box,
.metric-card,
.journey-usage-row,
.analytics-events {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.hero-card {
  padding: 18px;
  background: var(--navy-soft);
}

.hero-card h2,
.hero-card h3 {
  margin: 0;
}

.hero-card h2 {
  font-size: 25px;
  line-height: 1.08;
}

.hero-card p {
  color: var(--ink-70);
  line-height: 1.45;
}

.tile {
  min-height: 102px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.tile.compact {
  min-height: 78px;
}

.tile:hover,
button.row:hover,
a.row:hover,
button.admin-row:hover,
a.admin-row:hover {
  background: white;
}

.tile strong,
.row strong,
.info-row strong {
  display: block;
  font-size: 16px;
  line-height: 1.16;
}

.tile span,
.row span,
.info-row span,
.muted {
  color: var(--ink-70);
}

.row {
  min-height: 72px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  cursor: default;
}

button.row,
a.row {
  cursor: pointer;
}

.row + .row {
  margin-top: 8px;
}

.info-row {
  min-height: 64px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  cursor: default;
}

.info-row + .info-row {
  margin-top: 8px;
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ochre-soft);
  color: var(--navy);
}

.badge,
.pill,
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  background: var(--paper);
}

.badge.navy {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.badge.green {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.badge.warn {
  background: var(--ochre-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-row {
  margin-bottom: 12px;
}

.badge svg,
.source-chip svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

button.badge,
button.state-box {
  cursor: pointer;
  text-align: left;
}

.progress {
  height: 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.progress div {
  height: 100%;
  background: var(--green);
}

.btn {
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.btn.secondary {
  background: var(--paper);
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-30);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.section-label {
  margin: 22px 0 10px;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-12);
}

.day {
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  font-weight: 900;
}

.timeline-item h4,
.admin-row h4,
.notice h4,
.coupon h4 {
  margin: 0 0 4px;
}

.timeline-item p,
.notice p,
.coupon p,
.admin-row p,
.form-box p,
.state-box p {
  margin: 0;
  color: var(--ink-70);
  line-height: 1.45;
}

.notice {
  padding: 14px;
  border-color: var(--navy);
  background: var(--navy-soft);
}

.notice.offline {
  border-color: var(--green);
  background: var(--green-soft);
}

.notice.warn {
  border-color: var(--ochre);
  background: var(--ochre-soft);
}

.notice.error {
  border-color: var(--red);
  background: var(--red-soft);
}

body.surface-mobile .notice:not(:has(button)):not(.error):not(.success):not([role="alert"]):not([role="status"]),
body.surface-home .notice:not(:has(button)):not(.error):not(.success):not([role="alert"]):not([role="status"]) {
  display: none;
}

.mock-media {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 58, 85, 0.9), rgba(176, 137, 72, 0.7)),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.6), transparent 24%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: white;
  font-weight: 900;
}

.form-box {
  padding: 14px;
}

.form-box h3,
.state-box h4 {
  margin: 0 0 8px;
}

.coupon {
  padding: 14px;
}

.segmented + .notice {
  margin-top: 12px;
}

.admin-row h4 svg {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}

.field {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.field label {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink-70);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 800;
  z-index: 20;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.admin-row {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

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

.info-list,
.grid:has(> .info-row),
.admin-list:has(> .info-row) {
  gap: 8px;
}

.info-list {
  display: grid;
}

.before-checklist {
  display: grid;
  gap: 12px;
  margin: 14px 0 20px;
}

.before-checklist-head {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 100%);
  box-shadow: var(--shadow-card);
}

.before-checklist-head .source-chip {
  order: 1;
}

.before-checklist-head h3 {
  order: 2;
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.before-checklist-head p:not(.before-checklist-note) {
  order: 3;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.before-checklist-head .before-checklist-note {
  order: 4;
  margin-top: 10px !important;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.35;
}

.before-checklist-toggle {
  order: 5;
  margin-top: 12px;
}

.before-checklist-body {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(254, 199, 47, 0.56);
  border-left-width: 5px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(254, 199, 47, 0.18) 0%, rgba(255, 248, 226, 0.86) 100%);
  box-shadow: 0 18px 34px rgba(22, 22, 42, 0.08);
}

.before-checklist-body-head {
  min-height: 48px;
  padding: 8px 10px 8px 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.before-checklist-body-head > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--ink);
  background: var(--gold);
}

.before-checklist-body-head svg {
  width: 18px;
  height: 18px;
}

.before-checklist-body-head strong,
.before-checklist-body-head small {
  display: block;
}

.before-checklist-body-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.before-checklist-collapsed {
  min-height: 52px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.before-checklist-collapsed strong {
  font-size: 18px;
}

.before-checklist-collapsed span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.before-check-progress {
  min-height: 58px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(22, 22, 42, 0.08);
  box-shadow: none;
}

.before-check-progress strong {
  display: block;
  font-size: 18px;
}

.before-check-progress span {
  color: var(--muted);
  font-size: 11px;
}

.before-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef4;
}

.before-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.before-check-groups {
  display: grid;
  gap: 10px;
}

.before-check-group {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(22, 22, 42, 0.08);
  box-shadow: none;
}

.collapsible-section-head {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.collapsible-section-head strong,
.collapsible-section-head small {
  display: block;
}

.collapsible-section-head small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.medal-request-panel form {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.before-check-group summary {
  min-height: 64px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.before-check-group summary strong,
.before-check-section h4,
.before-check-item strong {
  display: block;
}

.before-check-group summary small,
.before-check-section p,
.before-check-item small {
  color: var(--muted);
  line-height: 1.35;
}

.before-check-section {
  padding: 0 14px 14px;
}

.before-check-section + .before-check-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.before-check-section h4 {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
}

.before-check-section p {
  margin: 0 0 10px;
}

.before-check-items {
  display: grid;
  gap: 8px;
}

.before-check-item {
  min-height: 64px;
  padding: 10px 10px 10px 8px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.before-check-label {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.before-check-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.before-check-control {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #cfd5df;
  border-radius: 10px;
  color: transparent;
  background: #ffffff;
}

.before-check-control svg {
  width: 18px;
  height: 18px;
}

.before-check-item.checked {
  border-color: rgba(45, 123, 78, 0.32);
  background: #f5fbf7;
}

.before-check-item.checked .before-check-control {
  border-color: var(--green);
  color: #ffffff;
  background: var(--green);
}

.before-check-item.checked strong {
  color: var(--green);
}

.before-check-link {
  width: fit-content;
  min-height: 30px;
  margin-left: 44px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(36, 126, 193, 0.2);
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 850;
}

.before-check-link svg {
  width: 13px;
  height: 13px;
}

.grid.two:has(> .info-row),
.grid.three:has(> .info-row) {
  grid-template-columns: 1fr;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  min-height: 168px;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.metric-card > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.metric-card strong {
  font-size: 30px;
  line-height: 1;
}

.metric-card h4 {
  margin: 0;
  font-size: 15px;
}

.metric-card p {
  margin: 0;
  color: var(--ink-70);
  line-height: 1.35;
}

.metric-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: white;
}

.metric-icon svg {
  width: 20px;
  height: 20px;
}

.journey-usage {
  display: grid;
  gap: 8px;
}

.journey-usage-row {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(160px, 1.15fr) minmax(120px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.journey-usage-row div:first-child {
  display: grid;
  gap: 2px;
}

.journey-usage-row span {
  min-width: 0;
}

.journey-usage-row div:first-child span {
  color: var(--ink-70);
  font-size: 14px;
}

.usage-bar {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: white;
}

.usage-bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.analytics-events {
  overflow: hidden;
}

.analytics-event-row {
  display: grid;
  grid-template-columns: 1fr 0.65fr 1.55fr 1.25fr;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink-12);
  line-height: 1.35;
}

.analytics-event-row:last-child {
  border-bottom: 0;
}

.analytics-event-head {
  color: var(--paper);
  background: var(--navy);
  font-weight: 800;
}

.preview-phone {
  max-width: 270px;
  margin: 0 auto;
  border: 1px solid var(--ink);
  border-radius: 24px;
  padding: 12px;
  background: var(--paper);
}

.preview-card {
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 12px;
  background: white;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.state-box {
  padding: 12px;
  min-height: 116px;
}

.skeleton {
  display: grid;
  gap: 8px;
}

.skeleton span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink-12), rgba(255, 255, 255, 0.85), var(--ink-12));
  background-size: 180% 100%;
  animation: shimmer 1.3s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -180% 0;
  }
}

.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;
}

@media (max-width: 1040px) {
  .demo-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .device {
    position: relative;
    top: auto;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .workspace {
    padding: 18px;
  }

  .workspace-top {
    flex-direction: column;
  }

  .demo-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .screen {
    padding: 14px 14px 112px;
  }

  .grid.two,
  .grid.three,
  .admin-layout,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    display: none;
  }

  .brand-title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visual direction from https://peregrinaciones.mx/. Applies to every demo surface. */
:root {
  --brand-web-navy: #16162a;
  --brand-web-navy-2: #16172a;
  --brand-web-yellow: #fec72f;
  --brand-web-blue: #247ec1;
  --brand-web-blue-2: #2287cd;
  --paper: #ffffff;
  --paper-alt: #f5f7fb;
  --surface: #ffffff;
  --surface-strong: #f7f9fc;
  --ink: #16162a;
  --ink-70: rgba(22, 22, 42, 0.72);
  --ink-50: rgba(22, 22, 42, 0.52);
  --ink-30: rgba(22, 22, 42, 0.28);
  --ink-12: rgba(22, 22, 42, 0.1);
  --navy: var(--brand-web-navy);
  --navy-2: var(--brand-web-navy-2);
  --navy-soft: rgba(22, 22, 42, 0.08);
  --ochre: var(--brand-web-yellow);
  --ochre-dark: var(--navy);
  --ochre-soft: rgba(254, 199, 47, 0.18);
  --blue: var(--brand-web-blue);
  --blue-soft: rgba(36, 126, 193, 0.12);
  --green: #3d7b53;
  --green-soft: rgba(61, 123, 83, 0.13);
  --red: #b5533d;
  --red-soft: rgba(181, 83, 61, 0.12);
  --border: #e2e7ef;
  --shadow: 0 28px 70px rgba(22, 22, 42, 0.18);
  --shadow-card: 0 12px 28px rgba(22, 22, 42, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

html,
body {
  background: #ffffff;
}

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 251, 0.98) 100%),
    radial-gradient(circle at 14px 14px, rgba(22, 22, 42, 0.035) 1px, transparent 1px);
  background-size: auto, 68px 68px;
}

.demo-shell {
  grid-template-columns: minmax(320px, 420px) minmax(440px, 1fr);
  gap: 32px;
  padding: 24px;
}

.device {
  border: 0;
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
  min-height: 760px;
  overflow: hidden;
  overflow: clip;
}

.app-status {
  flex: 0 0 auto;
  height: 52px;
  padding: 18px 24px 0;
  border: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.app-header {
  flex: 0 0 auto;
  min-height: 54px;
  justify-content: center;
  padding: 0 18px 12px;
  border-bottom: 1px solid rgba(22, 22, 42, 0.08);
  background: var(--paper);
}

.home-header {
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  padding: 16px 18px 16px;
  border-bottom: 0;
}

.home-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-brand-symbol {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.home-greeting {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-greeting span,
.screen-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-greeting strong {
  font-family: Georgia, "Times New Roman", serif;
  max-width: min(48vw, 230px);
  font-size: clamp(18px, 5.5vw, 28px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  .home-header {
    padding-inline: 14px;
  }

  .home-identity {
    gap: 7px;
  }

  .section-brand-symbol {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .home-greeting strong {
    max-width: 34vw;
    font-size: 18px;
  }

  .header-actions {
    gap: 6px;
  }
}

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

.back-btn,
.icon-btn,
.avatar-btn {
  border: 0;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(22, 22, 42, 0.08);
}

.back-btn,
.icon-btn {
  color: var(--navy);
}

.icon-btn.subtle {
  width: 42px;
  height: 42px;
}

.icon-btn {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--ochre);
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.notification-row {
  align-items: start;
}

.notification-row > span:nth-child(2) {
  display: grid;
  gap: 6px;
}

.notification-image {
  width: 100%;
  max-height: 180px;
  margin-top: 4px;
  border: 1px solid var(--ink-12);
  border-radius: 10px;
  object-fit: cover;
  background: var(--paper);
}

.notification-preference[aria-checked="false"] .icon {
  color: var(--ink-50);
  background: var(--paper);
}

.avatar-btn,
.avatar-lg {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--ochre);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.avatar-btn {
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.avatar-lg {
  width: 76px;
  height: 76px;
  font-size: 25px;
}

.screen-title {
  text-align: center;
}

.screen-title h1 {
  font-size: 16px;
  font-weight: 850;
}

.screen-title p {
  display: none;
}

.screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 18px 112px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen-heading {
  margin: 4px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.02;
}

.lead {
  margin: 0 0 18px;
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.5;
}

.tabbar {
  flex: 0 0 auto;
  gap: 0;
  padding: 8px 8px calc(12px + var(--safe-bottom));
  border-top: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(22, 22, 42, 0.08);
  position: relative;
  z-index: 10;
}

.tabbar button {
  position: relative;
  z-index: 1;
  min-height: 64px;
  height: 64px;
  padding: 8px 2px;
  color: var(--ink-50);
  border-radius: 16px;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tabbar button svg,
.tabbar button span {
  pointer-events: none;
}

.tabbar button span {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.05;
}

.tabbar button.active {
  color: var(--navy);
  background: var(--ochre-soft);
}

.tabbar svg,
.icon svg,
.back-btn svg,
.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.btn svg,
.saint-card > svg,
.feature-card > svg,
.row-chevron svg,
.admin-row h4 svg,
.muted-line svg,
.fine-print svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.btn svg {
  width: 23px;
  height: 23px;
}

.saint-card > svg,
.feature-card > svg {
  width: 24px;
  height: 24px;
}

.source-row {
  align-items: center;
  margin: 0 0 12px;
  gap: 8px;
}

.badge,
.pill,
.source-chip {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 900;
}

.badge.navy,
.segmented button.active {
  color: white;
  background: var(--navy);
}

.badge.green {
  color: white;
  background: var(--green);
}

.badge.warn {
  color: var(--ochre-dark);
  background: var(--ochre-soft);
}

.trip-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: var(--shadow-card);
}

.trip-photo {
  min-height: 152px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: white;
  background:
    linear-gradient(180deg, rgba(22, 22, 42, 0.12), rgba(22, 22, 42, 0.96)),
    linear-gradient(135deg, #ffffff 0%, var(--blue) 44%, var(--navy-2) 100%);
}

.days-badge {
  width: 50px;
  min-height: 48px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px;
  color: white;
  background: var(--ochre);
  text-transform: uppercase;
  flex: 0 0 auto;
}

.days-badge strong {
  font-size: 19px;
  line-height: 1;
}

.days-badge small {
  font-size: 9px;
  font-weight: 900;
}

.days-badge.pending {
  width: 92px;
}

.days-badge.pending small {
  font-size: 8px;
  white-space: nowrap;
}

.trip-body {
  padding: 18px;
  color: white;
  background: var(--navy);
}

.trip-body h2,
.balance-card h2,
.sanctuary-hero h2,
.liturgy-screen h2,
.profile-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.trip-body h2 {
  font-size: 26px;
  line-height: 1.06;
}

.trip-body p {
  margin: 8px 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.pill-action {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.pill-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.pill-action.active {
  color: var(--navy);
  background: var(--ochre);
}

.home-action-grid {
  grid-template-columns: minmax(0, 1fr);
}

.home-action-grid .tile {
  min-height: 88px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.home-assistance-tile {
  min-height: 104px !important;
  border: 2px solid var(--ochre) !important;
  background: linear-gradient(135deg, var(--ochre-soft), var(--surface));
}

.home-assistance-tile .icon {
  flex: 0 0 auto;
  color: var(--navy);
  background: var(--ochre);
}

.hero-card,
.tile,
.row,
.notice,
.coupon,
.admin-row,
.form-box,
.state-box,
.profile-card,
.reading-card {
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.hero-card {
  padding: 18px;
  background: var(--surface);
}

.revista-hero {
  display: grid;
  gap: 12px;
}

.revista-cover-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
  background: #10152c;
}

.revista-legal-notice,
.revista-legal-footnote {
  margin-top: 14px;
}

.revista-form {
  display: grid;
  gap: 0;
}

.post-journey-hero,
.post-journey-form,
.post-journey-success {
  display: grid;
  gap: 12px;
}

.post-journey-form {
  padding: 14px;
}

.post-journey-letter,
.post-journey-metadata {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.post-journey-letter p {
  margin: 0 0 10px;
  color: var(--ink-70);
  line-height: 1.5;
}

.post-journey-letter p:last-child {
  margin-bottom: 0;
}

.post-journey-letter h3,
.post-journey-metadata h3,
.post-journey-success h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
}

.post-journey-fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.post-journey-fieldset legend {
  padding: 0 4px;
  color: var(--ink);
  font-weight: 900;
}

.post-journey-help,
.post-journey-scale-help {
  margin: 6px 0 10px;
  color: var(--ink-70);
  font-size: 13px;
  line-height: 1.45;
}

.post-journey-choice-options {
  display: grid;
  gap: 8px;
}

.post-journey-choice-options-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-journey-choice-option,
.post-journey-consent {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.35;
}

.post-journey-choice-option:focus-within,
.post-journey-consent:focus-within {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}

.post-journey-choice-option:has(input:checked) {
  border-color: var(--navy);
  background: var(--ochre-soft);
}

.post-journey-choice-option input,
.post-journey-consent input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--navy);
}

.post-journey-rating-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.post-journey-rating-option {
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: start;
  min-height: 76px;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

.post-journey-rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.post-journey-rating-option span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-strong);
  font-weight: 900;
}

.post-journey-rating-option small {
  color: var(--ink-70);
  font-size: 10px;
  line-height: 1.2;
}

.post-journey-rating-option:focus-within {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}

.post-journey-rating-option:has(input:checked) {
  border-color: var(--navy);
  background: var(--ochre-soft);
}

.post-journey-metadata dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.post-journey-metadata dl div {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-strong);
}

.post-journey-metadata dt {
  color: var(--ink-70);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-journey-metadata dd {
  margin: 4px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.post-journey-metadata p {
  margin: 12px 0 0;
  color: var(--ink-70);
  font-size: 13px;
}

.post-journey-consent {
  margin-top: 2px;
}

.post-journey-testimonial-field textarea {
  min-height: 190px;
}

.post-journey-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.post-journey-success h3 {
  font-size: 26px;
}

.post-journey-success p {
  margin: 0;
}

.post-journey-feedback {
  margin: 14px 0;
}

.post-journey-feedback:focus {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

.revista-checkbox {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 4px 0 14px;
  color: var(--ink-70);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.revista-checkbox input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--navy);
}

.notice.success {
  border-left: 4px solid #2d7a48;
  background: #eef8f0;
}

.notice.success h4 {
  color: #215d36;
}

.hero-card h2,
.hero-card h3,
.form-box h3,
.notice h4,
.coupon h4,
.admin-row h4 {
  font-family: Georgia, "Times New Roman", serif;
}

.hero-card h2 {
  font-size: 27px;
}

.hifi-tile,
.tile {
  min-height: 114px;
  padding: 14px;
  gap: 10px;
}

.contact-action {
  text-decoration: none;
}

.contact-action:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

.tile strong,
.row strong,
.info-row strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.12;
}

.tile span,
.row span,
.info-row span,
.muted,
.fine-print {
  color: var(--ink-70);
}

.icon {
  width: 39px;
  height: 39px;
  color: var(--navy);
  background: var(--ochre-soft);
}

.row {
  min-height: 68px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 12px 14px;
  align-items: center;
  column-gap: 12px;
  overflow: hidden;
}

.info-row {
  min-height: 68px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 12px 14px;
  align-items: center;
  column-gap: 12px;
  overflow: hidden;
  background: var(--surface);
}

.row.flat {
  box-shadow: none;
  background: transparent;
}

.recipient-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.recipient-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: default;
}

button.recipient-row {
  cursor: pointer;
}

.recipient-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.recipient-row > span:nth-child(2) > span {
  display: block;
}

.recipient-row.selected {
  border-color: rgba(254, 199, 47, 0.85);
  background: #fff8df;
}

.push-group-selector {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
}

.push-group-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.push-group-selector-help {
  margin: 0;
  color: var(--ink-70);
  font-size: 13px;
  line-height: 1.45;
}

.push-group-row {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  min-height: 68px;
}

.push-group-check {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink-30);
  border-radius: 7px;
  color: var(--navy);
  background: var(--surface);
}

.push-group-row.selected .push-group-check {
  border-color: var(--navy);
  background: var(--yellow);
}

.push-group-check svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

@media (max-width: 600px) {
  .push-group-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .push-group-row > .badge {
    grid-column: 2;
    justify-self: start;
  }
}

.row + .row,
.form-box + .row,
.notice + .row,
.notice + .grid,
.hero-card + .row,
.hero-card + .form-box,
.profile-card + .row,
.reading-card + .row,
.balance-card + .row,
.liturgy-screen + .notice,
.notice + .form-box,
.form-box + .form-box,
.form-box + .info-list,
.notice + .info-list,
.hero-card + .info-list,
.info-list + .info-list,
.grid + .row,
.trip-rail + .row,
.feature-card + .row {
  margin-top: 10px;
}

.row > span:nth-child(2) {
  min-width: 0;
}

.info-row > span:nth-child(2) {
  min-width: 0;
}

.row > span:nth-child(2) strong,
.row > span:nth-child(2) span,
.info-row > span:nth-child(2) strong,
.info-row > span:nth-child(2) span,
.tile strong,
.tile span {
  overflow-wrap: break-word;
  word-break: normal;
}

.row > .badge,
.info-row > .badge {
  justify-self: end;
  white-space: nowrap;
  font-size: 9px;
  padding: 6px 8px;
}

.sanctuary-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
}

.library-row.cantoral-song-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.cantoral-song-number {
  width: 48px;
  min-height: 48px;
  display: grid;
  place-content: center;
  gap: 2px;
  border: 1px solid rgba(254, 199, 47, 0.7);
  border-radius: 14px;
  color: var(--navy);
  background: var(--ochre-soft);
  text-align: center;
}

.cantoral-song-number small,
.cantoral-song-number strong {
  margin: 0;
  color: var(--navy);
  line-height: 1;
}

.cantoral-song-number small {
  font-size: 10px;
  font-weight: 800;
}

.cantoral-song-number strong {
  font-size: 19px;
}

.sanctuary-row .badge,
.library-row .badge {
  grid-column: 2;
  justify-self: start;
  max-width: 100%;
  margin-top: 4px;
  white-space: normal;
}

.sanctuary-row .row-chevron,
.library-row .row-chevron {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}

.sanctuary-city-group {
  margin: 14px 0 20px;
}

.sanctuary-city-group h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 16px;
}

.sanctuary-category-introduction {
  margin: 14px 0;
  padding: 20px;
  border: 1px solid rgba(36, 126, 193, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, rgba(36, 126, 193, 0.06));
  box-shadow: var(--shadow-soft);
}

.sanctuary-category-introduction h2 {
  margin: 12px 0 8px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.12;
}

.sanctuary-category-introduction .lead {
  margin: 0;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.55;
}

.sanctuary-introduction-attribution {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
}

.sanctuary-introduction-details {
  margin-top: 16px;
  border-top: 1px solid rgba(22, 22, 42, 0.1);
}

.sanctuary-introduction-details summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--brand-web-blue);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.sanctuary-introduction-details summary::-webkit-details-marker {
  display: none;
}

.sanctuary-introduction-details summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 8px;
}

.sanctuary-introduction-details .row-chevron {
  display: inline-flex;
  transition: transform 0.18s ease;
}

.sanctuary-introduction-details[open] .row-chevron {
  transform: rotate(90deg);
}

.sanctuary-introduction-copy {
  display: grid;
  gap: 14px;
  padding: 2px 0 6px;
}

.sanctuary-introduction-copy p {
  margin: 0;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.58;
}

.row-chevron {
  color: var(--ink-30);
}

.finance-row {
  grid-template-columns: 42px 1fr auto;
}

.finance-row > strong {
  color: var(--ink);
  white-space: nowrap;
}

.payment-method-row {
  align-items: flex-start;
}

.payment-method-row > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.payment-inline-badge {
  justify-self: start;
}

.payment-lines {
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  word-break: break-word;
}

.danger {
  color: var(--red) !important;
}

.section-label {
  margin: 22px 0 10px;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.saint-card,
.feature-card {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.saint-card {
  margin-top: 12px;
  color: var(--navy);
}

.saint-card small,
.feature-card span,
.sanctuary-hero span {
  display: block;
  color: var(--ochre-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.saint-card strong,
.feature-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.08;
}

.external-action-note {
  display: block;
  margin-top: 5px;
  color: var(--ink-70);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.resource-action .external-action-note {
  margin: 0 0 0 4px;
  color: currentColor;
  font-size: 10px;
  opacity: 0.78;
}

.muted-line {
  margin: 0 0 14px;
  color: var(--ink-50);
  font-size: 12px;
}

.muted-line svg,
.fine-print svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.journey-line {
  position: relative;
  display: grid;
  gap: 10px;
}

.journey-line::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--ochre);
}

.timeline-item {
  border-bottom: 0;
}

.hifi-timeline {
  position: relative;
  grid-template-columns: 38px 1fr;
  padding: 0;
}

.day {
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ochre);
  color: var(--ochre-dark);
  background: var(--surface);
}

.hifi-timeline > div:last-child {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.hifi-timeline small {
  color: var(--ochre-dark);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.hifi-timeline h4 {
  margin: 4px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.hifi-timeline p {
  margin: 0;
  color: var(--ink-70);
  font-size: 12px;
}

.balance-card {
  padding: 18px;
  border-radius: var(--radius);
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow-card);
}

.balance-card.compact {
  margin-bottom: 12px;
}

.balance-card > span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.balance-card h2 {
  font-size: 44px;
  line-height: 1;
}

.balance-card h2 small {
  margin-left: 5px;
  font-family: inherit;
  font-size: 14px;
}

.balance-card p {
  color: rgba(255, 255, 255, 0.72);
}

.balance-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--ochre);
}

.progress {
  height: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
}

.progress div {
  background: var(--ochre);
}

.btn {
  border: 0;
  box-shadow: var(--shadow-card);
}

.btn.gold {
  color: var(--navy);
  background: var(--ochre);
}

.btn.full {
  width: 100%;
  margin-top: 12px;
}

.form-action-help {
  margin: 20px 2px 0;
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.45;
}

.promoter-submit {
  min-height: 58px;
  justify-content: center;
  border: 2px solid var(--navy);
  font-size: 17px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(22, 22, 42, 0.2);
}

.promoter-submit:hover {
  background: #ffdc69;
}

.promoter-submit:focus-visible {
  outline: 4px solid var(--link);
  outline-offset: 4px;
}

.btn.secondary {
  background: var(--surface);
  color: var(--navy);
}

.fine-print {
  margin: 8px 0 0;
  text-align: center;
  font-size: 11px;
}

.feature-card {
  margin-bottom: 10px;
  min-height: 112px;
  align-items: flex-end;
  gap: 12px;
  overflow: hidden;
}

.feature-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.feature-copy small,
.feature-copy em {
  display: block;
  font-style: normal;
  overflow-wrap: anywhere;
}

.feature-copy strong {
  overflow-wrap: anywhere;
}

.feature-card.sanctuary-feature {
  color: white;
  background:
    linear-gradient(180deg, rgba(254, 199, 47, 0.18), rgba(22, 22, 42, 0.64)),
    linear-gradient(135deg, var(--blue) 0%, var(--navy-2) 100%);
}

.feature-card.sanctuary-feature .feature-copy,
.feature-card.sanctuary-feature small,
.feature-card.sanctuary-feature strong,
.feature-card.sanctuary-feature em {
  color: white;
}

.feature-card.dark {
  color: white;
  background: var(--navy);
}

.feature-card.dark .feature-copy,
.feature-card.dark small,
.feature-card.dark strong {
  color: white;
}

.resource-hero {
  background: linear-gradient(180deg, #ffffff 0%, #fff8df 100%);
}

.resource-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.resource-social-spotlight {
  margin-top: 12px;
  border: 1px solid rgba(22, 22, 42, 0.1);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  color: var(--navy);
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: var(--shadow-card);
}

.resource-social-spotlight h2,
.resource-social-spotlight p {
  margin: 8px 0 0;
}

.resource-social-spotlight p {
  color: var(--ink-70);
  line-height: 1.45;
}

.resource-social-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 10px;
}

.resource-social-link {
  min-height: 60px;
  border: 0;
  border-radius: 18px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.resource-social-link.facebook {
  background: #1877f2;
}

.resource-social-link.instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.resource-social-link svg {
  width: 24px;
  height: 24px;
}

.resource-card {
  border: 0;
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.resource-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.resource-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.1;
}

.resource-card p {
  margin: 0;
  color: var(--ink-70);
  line-height: 1.45;
}

.resource-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.resource-actions:has(> :only-child) {
  grid-template-columns: 1fr;
}

.resource-detail-list {
  display: grid;
  gap: 10px;
}

.resource-action {
  min-height: 60px;
  margin-top: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.resource-topic-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink-70);
  line-height: 1.35;
}

.course-purpose {
  margin-top: 12px;
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.course-purpose h2,
.course-purpose p {
  margin: 0;
}

.course-purpose p {
  margin-top: 8px;
  color: var(--ink-70);
  line-height: 1.5;
}

.course-module-list {
  display: grid;
  gap: 12px;
}

.course-module {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.course-module-button {
  min-height: 78px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.course-module-button::-webkit-details-marker {
  display: none;
}

.course-module-button:focus-visible {
  outline: 4px solid rgba(36, 126, 193, 0.35);
  outline-offset: -4px;
}

.course-module-summary {
  display: grid;
  gap: 5px;
}

.course-module-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.2;
}

.course-module-summary small {
  color: var(--ink-70);
  font-size: 13px;
}

.course-module-chevron {
  display: inline-flex;
  transition: transform 160ms ease;
}

.course-module[open] .course-module-chevron {
  transform: rotate(90deg);
}

.course-module-content {
  border-top: 1px solid rgba(22, 22, 42, 0.08);
  padding: 0 16px 18px;
}

.course-module-content h3 {
  margin: 18px 0 10px;
  color: var(--navy);
  font-size: 17px;
}

.course-module-meta {
  padding-top: 14px;
  display: grid;
  gap: 8px;
  color: var(--ink-70);
}

.course-module-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-module-meta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--blue);
}

@media (max-width: 720px) {
  .resource-social-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .resource-social-actions {
    grid-template-columns: 1fr;
  }
}

.resource-video-row {
  text-decoration: none;
}

.resource-video-row .external-action-note {
  margin-top: 6px;
}

.media-card,
.song-row,
.pdf-row {
  width: 100%;
  min-height: 78px;
  border: 0;
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
  text-decoration: none;
}

.media-card {
  cursor: pointer;
}

.media-card.pending {
  cursor: default;
}

.media-thumb,
.song-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--ochre-soft);
  font-weight: 950;
}

.media-thumb[style*="background-image"] {
  overflow: hidden;
  color: #fff;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  position: relative;
}

.media-thumb[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 42, 0.36);
}

.media-thumb svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.media-thumb-poster {
  position: relative;
  overflow: hidden;
}

.media-thumb-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb-poster svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.media-card strong,
.song-row strong,
.pdf-row strong,
.media-card small,
.song-row small,
.pdf-row small {
  display: block;
}

.media-card strong,
.song-row strong,
.pdf-row strong {
  line-height: 1.15;
}

.media-card small,
.song-row small,
.pdf-row small {
  margin-top: 4px;
  color: var(--ink-70);
  line-height: 1.35;
}

.song-list {
  display: grid;
  gap: 18px;
}

.cantoral-category-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.cantoral-category-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.cantoral-category-summary strong {
  color: var(--navy);
  font-size: 13px;
  overflow-wrap: break-word;
}

.cantoral-category-summary small {
  color: var(--ink-70);
}

.cantoral-group,
.hora-santa-songs {
  display: grid;
  gap: 8px;
}

.hora-santa-songs {
  margin-top: 18px;
}

.cantoral-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.cantoral-group-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.cantoral-group-heading span {
  min-width: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ochre-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 760px) {
  .cantoral-category-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-card .feature-copy small {
  margin-top: 0;
  color: var(--ink-70);
}

.feature-card .feature-copy em {
  margin-top: 4px;
  color: var(--ink-70);
}

.field label {
  color: var(--ochre-dark);
}

.field input,
.field textarea,
.field select {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(22, 22, 42, 0.06);
}

.practical-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.practical-card {
  min-height: auto;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.practical-card > span:last-child {
  display: grid;
  gap: 4px;
}

.practical-card .badge {
  justify-self: start;
}

.guide-hero {
  margin-bottom: 12px;
}

.guide-list {
  display: grid;
  gap: 10px;
}

.guide-section {
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.guide-section summary {
  min-height: 66px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.guide-section summary::-webkit-details-marker {
  display: none;
}

.guide-section summary span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.guide-section summary .guide-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-section-swatch {
  display: block;
  width: 9px;
  min-width: 9px;
  height: 38px;
  gap: 0;
  border-radius: 999px;
  background: var(--guide-accent, var(--brand-web-blue));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--guide-accent, var(--brand-web-blue)) 14%, transparent);
}

.guide-section summary strong {
  color: var(--ink);
  line-height: 1.16;
}

.guide-section summary small {
  color: var(--muted);
  font-size: 12px;
}

.guide-section summary svg {
  width: 22px;
  height: 22px;
  color: var(--brand-web-blue);
  transition: transform 0.18s ease;
}

.guide-section[open] summary svg {
  transform: rotate(90deg);
}

.guide-section-body {
  padding: 0 16px 16px;
  display: grid;
  gap: 10px;
}

.guide-section-body p {
  margin: 0;
  color: var(--ink-70);
  line-height: 1.46;
}

.insurance-app-guide {
  border-color: rgba(36, 126, 193, 0.34);
}

.insurance-manual-index {
  display: grid;
  gap: 10px;
}

.insurance-manual-section {
  border: 1px solid rgba(22, 22, 42, 0.09);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.insurance-manual-section summary {
  min-height: 72px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 30px 39px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.insurance-manual-section summary::-webkit-details-marker {
  display: none;
}

.insurance-manual-section summary strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.insurance-manual-section .manual-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.insurance-manual-section summary .icon {
  width: 39px;
  height: 39px;
}

.insurance-manual-section summary .row-chevron {
  display: grid;
  place-items: center;
  transition: transform 0.18s ease;
}

.insurance-manual-section[open] summary .row-chevron {
  transform: rotate(90deg);
}

.insurance-manual-content {
  padding: 0 16px 16px 94px;
  color: var(--ink-70);
}

.insurance-manual-content p {
  margin: 0 0 8px;
  line-height: 1.48;
}

.insurance-manual-content ul {
  margin: 0;
  padding-left: 18px;
}

.insurance-manual-content li + li {
  margin-top: 6px;
}

.guide-subheading {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.24;
}

.guide-link {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  color: var(--navy);
  background: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.guide-link:hover,
.guide-link:focus-visible {
  background: #ffd866;
  outline: 3px solid rgba(36, 126, 193, 0.24);
  outline-offset: 2px;
}

.guide-link svg {
  width: 18px;
  height: 18px;
}

.guide-note {
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: rgba(254, 199, 47, 0.14);
}

.guide-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ochre-dark);
}

.guide-emergency {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--navy);
  background: rgba(36, 126, 193, 0.1);
  font-weight: 800;
}

.guide-link-modal {
  width: min(1120px, 100%);
  max-height: min(900px, calc(100vh - 32px));
}

.guide-link-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 22px;
  display: grid;
  gap: 14px;
}

.guide-link-frame-wrap {
  min-height: min(62vh, 620px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f5f7fa;
}

.guide-link-frame-wrap iframe {
  width: 100%;
  height: min(62vh, 620px);
  display: block;
  border: 0;
  background: white;
}

.guide-link-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-link-modal-actions p {
  flex: 1 1 280px;
  margin: 0;
  color: var(--ink-70);
  font-size: 13px;
  line-height: 1.4;
}

.document-viewer-modal {
  width: min(1180px, 100%);
  height: min(900px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
}

.document-viewer-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 22px;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  gap: 14px;
}

.document-viewer-frame-wrap {
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #eef2f6;
}

.document-viewer-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  border: 0;
  background: white;
}

.document-viewer-actions,
.external-link-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.document-viewer-actions p {
  flex: 1 1 280px;
  margin: 0;
  color: var(--ink-70);
  font-size: 13px;
  line-height: 1.4;
}

.external-link-modal {
  width: min(680px, 100%);
}

.external-link-modal-body {
  padding: 20px 22px 22px;
  display: grid;
  gap: 18px;
}

.external-link-notice {
  margin: 0;
}

.modal-close-glyph span {
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
}

.sanctuary-hero {
  margin: -14px -18px 12px;
  min-height: 238px;
  padding: 132px 18px 22px;
  color: white;
  background:
    linear-gradient(180deg, rgba(22, 22, 42, 0.1), rgba(22, 22, 42, 0.98)),
    linear-gradient(135deg, var(--brand-web-blue-2), var(--navy-2));
  background-position: center;
  background-size: cover;
}

.sanctuary-hero.has-photo {
  background-image:
    linear-gradient(180deg, rgba(22, 22, 42, 0.16), rgba(22, 22, 42, 0.96)),
    var(--sanctuary-hero-image);
}

.sanctuary-hero h2 {
  max-width: 320px;
  font-size: 34px;
  line-height: 1.02;
}

.sanctuary-hero small {
  display: block;
  max-width: 320px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.3;
}

.sanctuary-photo {
  margin: -4px 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}

.sanctuary-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sanctuary-photo figcaption {
  padding: 8px 12px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.sanctuary-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-bottom: 12px;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  overflow: visible;
}

.sanctuary-tabs button {
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  color: var(--ink);
  line-height: 1.15;
  white-space: normal;
  background: transparent;
}

.sanctuary-tabs button.needs-content {
  color: var(--ochre-dark);
  background: var(--ochre-soft);
}

.sanctuary-tabs button.active {
  color: white;
  background: var(--navy);
}

.reading-card {
  padding: 18px;
}

.reading-card h4 {
  margin: 0 0 10px;
  color: var(--ochre-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.reading-card p {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.75;
}

.reading-card .reading-text {
  white-space: pre-line;
}

.sanctuary-audio {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sanctuary-audio-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.sanctuary-audio-actions .btn {
  min-height: 48px;
}

.sanctuary-audio-actions .btn:first-child {
  width: 100%;
}

.sanctuary-audio-status {
  margin: 0;
  color: var(--muted) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.sanctuary-audio-status.is-error {
  color: var(--danger, #9f2f2f) !important;
  font-weight: 750;
}

@media (max-width: 380px) {
  .sanctuary-audio-actions {
    grid-template-columns: 1fr;
  }

  .sanctuary-audio-actions .btn {
    width: 100%;
  }
}

.reading-card p + p,
.reading-card blockquote + p,
.reading-card p + blockquote,
.reading-card blockquote + blockquote {
  margin-top: 12px;
}

.reading-card .reading-source {
  color: var(--blue);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.reading-card .rt-color-azul {
  color: var(--blue);
  font-weight: 800;
}

.reading-card .rt-color-amarillo {
  color: #7a5a00;
  background: #fff4c6;
  font-weight: 800;
}

.reading-card .rt-color-marino {
  color: var(--navy);
  font-weight: 800;
}

.reading-card .rt-color-verde {
  color: #2f6a48;
  font-weight: 800;
}

.reading-card .rt-font-institucional {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reading-card .rt-font-lectura {
  font-family: Georgia, "Times New Roman", serif;
}

.reading-card .rt-font-clasica {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.reading-card .rt-font-moderna {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reading-card .rt-bg-crema {
  background: #fff4c6;
}

.reading-card .rt-bg-azul {
  background: #eaf4fb;
}

.reading-card .rt-bg-verde {
  background: #eaf7ef;
}

.reading-card .rt-block-subtitulo {
  color: var(--navy);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.42;
}

.reading-card .rt-block-cita {
  padding-left: 14px;
  border-left: 3px solid var(--ochre);
  font-style: italic;
}

.reading-card .rt-indent-1 {
  margin-left: 20px;
}

.reading-card .rt-indent-2 {
  margin-left: 40px;
}

.reading-card .rt-indent-3 {
  margin-left: 60px;
}

@media (max-width: 480px) {
  .reading-card .rt-indent-1 { margin-left: 12px; }
  .reading-card .rt-indent-2 { margin-left: 24px; }
  .reading-card .rt-indent-3 { margin-left: 36px; }
}

.reading-quote {
  margin: 12px 0 0;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--ochre);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.75;
}

.liturgy-screen {
  margin: -14px -18px 14px;
  min-height: calc(100vh - 210px);
  padding: 22px 18px;
  color: white;
  background: var(--navy);
}

.liturgy-screen h2 {
  margin-top: 10px;
  font-size: 27px;
}

.liturgy-screen p {
  color: rgba(255, 255, 255, 0.74);
}

.prayer-tile {
  min-height: 104px;
  border: 0;
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 8px;
  text-align: left;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.prayer-tile svg {
  color: var(--ochre);
}

.prayer-tile span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.liturgy-portal {
  position: relative;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 22px;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(254, 199, 47, 0.24), transparent 42%),
    linear-gradient(145deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-card);
}

.liturgy-brand-row,
.liturgy-availability {
  display: flex;
  align-items: center;
}

.liturgy-brand-row {
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.liturgy-brand-row img {
  width: 48px;
  height: 48px;
  padding: 7px;
  border-radius: 14px;
  object-fit: contain;
  background: white;
}

.liturgy-portal h2 {
  margin: 18px 0 8px;
  font-size: 29px;
  line-height: 1.08;
}

.liturgy-portal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.55;
}

.liturgy-availability {
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.liturgy-availability span {
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 750;
}

.liturgy-hour-tabs {
  display: flex;
  gap: 8px;
  margin: 0 -2px 16px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.liturgy-hour-tabs button {
  min-width: 126px;
  padding: 11px 12px;
  display: grid;
  gap: 3px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-70);
  background: var(--surface);
  text-align: left;
}

.liturgy-hour-tabs button.active {
  border-color: var(--navy);
  color: white;
  background: var(--navy);
}

.liturgy-hour-tabs strong {
  font-size: 13px;
}

.liturgy-hour-tabs small,
.liturgy-hour-tabs em {
  font-size: 11px;
  font-style: normal;
}

.liturgy-hour-tabs em {
  color: var(--ochre-dark);
}

.liturgy-hour-tabs button.active em,
.liturgy-hour-tabs button.active small {
  color: rgba(255, 255, 255, 0.72);
}

.liturgy-sections {
  display: grid;
  gap: 10px;
}

.liturgy-reading-block {
  margin: 0;
  box-shadow: none;
}

.liturgy-readings {
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
}

.liturgy-readings .panel-head {
  padding: 0 0 14px;
}

.liturgy-readings h3 {
  margin: 4px 0 0;
  color: var(--navy);
}

.liturgy-availability svg,
.liturgy-portal .btn svg,
.eprex-reading-card .btn svg {
  width: 17px;
  height: 17px;
}

.liturgy-day-plan,
.eprex-reading-card {
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
}

.liturgy-day-plan .panel-head {
  padding: 0 0 14px;
}

.liturgy-day-plan h3,
.eprex-reading-card h3 {
  margin: 4px 0 0;
  color: var(--navy);
}

.liturgy-timeline {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.liturgy-timeline li {
  min-height: 64px;
  border-top: 1px solid var(--ink-12);
}

.liturgy-hour-link {
  width: 100%;
  min-height: 64px;
  padding: 10px 4px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.liturgy-hour-link:hover {
  background: var(--ochre-soft);
}

.liturgy-hour-link:active {
  transform: translateY(1px);
}

.liturgy-hour-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  background: #eff7ff;
}

.liturgy-time {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--ochre-soft);
  font-size: 12px;
  font-weight: 900;
}

.liturgy-hour-copy strong,
.liturgy-hour-copy small {
  display: block;
}

.liturgy-hour-copy small {
  margin-top: 2px;
  color: var(--ink-70);
  font-size: 13px;
}

.liturgy-hour-action {
  min-width: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--link);
  font-size: 13px;
  font-weight: 800;
}

.liturgy-hour-action svg {
  width: 17px;
  height: 17px;
}

.tierra-santa-note {
  border-left: 5px solid var(--ochre);
  background: #fffaf0;
}

.eprex-reading-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
}

.eprex-reading-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: var(--navy);
}

.eprex-reading-icon svg {
  width: 24px;
  height: 24px;
}

.eprex-reading-card p {
  margin: 7px 0 0;
  color: var(--ink-70);
  line-height: 1.5;
}

.eprex-reading-card .btn {
  grid-column: 1 / -1;
}

.coupon {
  background: var(--surface);
}

.trip-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ochre) var(--paper-alt);
  scrollbar-width: thin;
  padding: 2px 2px 12px;
  margin-bottom: 12px;
}

.trip-rail:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

.trip-rail-hint {
  margin: -4px 0 10px;
  color: var(--ink-70);
  font-size: 13px;
  font-weight: 700;
}

.small-trip-card {
  flex: 0 0 min(78%, 272px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
}

.small-trip-card div {
  min-height: 86px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--brand-web-blue-2), var(--navy-2));
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.small-trip-card strong,
.small-trip-card span {
  display: block;
  padding: 0 12px;
}

.small-trip-card strong {
  padding-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.small-trip-card span {
  padding-bottom: 12px;
  color: var(--ochre-dark);
  font-size: 12px;
  font-weight: 900;
}

.public-commercial-list {
  margin-top: 12px;
}

.public-commercial-card {
  align-content: start;
}

.public-commercial-cover {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--paper-alt);
}

.public-commercial-highlight {
  color: var(--navy) !important;
  font-size: 21px;
  font-weight: 900;
}

.public-commercial-meta {
  margin: 8px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-70);
  font-size: 13px;
  font-weight: 700;
}

.public-commercial-meta .link-button {
  min-height: 44px;
}

.public-departure-card {
  display: grid;
  align-content: start;
}

.public-departure-card .public-commercial-cover {
  height: 124px;
  border-radius: 0;
}

.public-departure-action {
  min-height: 46px;
  margin: 0 12px 12px;
}

.public-commercial-state .btn {
  margin-top: 10px;
}

.profile-head {
  padding: 12px 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-head h2 {
  margin-bottom: 8px;
  font-size: 25px;
}

.profile-card {
  padding: 8px;
  margin-bottom: 10px;
}

.login-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.login-card h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.05;
}

.login-card p {
  margin: 0;
  color: var(--ink-70);
}

.session-restoring-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.session-restoring-indicator {
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-soft);
}

.session-restoring-indicator span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  animation: session-restoring 1.1s ease-in-out infinite alternate;
}

@keyframes session-restoring {
  from { transform: translateX(0); }
  to { transform: translateX(138%); }
}

.login-options {
  display: grid;
  gap: 10px;
}

.login-option {
  width: 100%;
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  text-align: left;
  cursor: pointer;
}

.login-option strong,
.login-option small {
  display: block;
}

.login-option small {
  margin-top: 3px;
  color: var(--ink-70);
  line-height: 1.3;
}

.notice {
  color: var(--navy);
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
}

.notice.offline {
  color: var(--green);
  background: var(--green-soft);
}

.notice.warn {
  color: var(--ochre-dark);
  background: var(--ochre-soft);
}

.notice.error {
  color: var(--red);
  background: var(--red-soft);
}

.mock-media {
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(22, 22, 42, 0), rgba(22, 22, 42, 0.88)),
    linear-gradient(135deg, var(--blue), var(--navy-2));
  box-shadow: var(--shadow-card);
}

.panel,
.admin-row,
.state-box,
.form-box,
.preview-phone,
.preview-card {
  border: 0;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.panel {
  border-radius: var(--radius-lg);
}

.panel-head {
  border-bottom: 1px solid var(--border);
}

.workspace-top {
  border-bottom-color: var(--border);
}

.workspace-top h2 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
}

.segmented {
  border: 0;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.segmented button {
  color: var(--navy);
}

.toast {
  border: 0;
  border-radius: 18px;
  background: var(--navy);
}

@media (max-width: 1040px) {
  .demo-shell {
    background: var(--paper);
  }

  .device {
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 680px) {
  .app-status {
    padding-left: 18px;
    padding-right: 18px;
  }

  .screen {
    padding: 12px 14px 108px;
  }

  .sanctuary-hero,
  .liturgy-screen {
    margin-left: -14px;
    margin-right: -14px;
  }
}

/* Final responsive guard: the hi-fi shell must become the actual PWA viewport below desktop widths. */
@media (max-width: 1040px) {
  .demo-shell {
    display: block;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    background: var(--paper);
  }

  .workspace {
    display: none;
  }

  .device {
    position: relative;
    top: auto;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
}

.screen > .trip-card + .grid,
.screen > .grid + .saint-card,
.screen > .notice + .hero-card,
.screen > .notice + .grid,
.screen > .notice + .form-box,
.screen > .hero-card + .form-box,
.screen > .form-box + .row,
.screen > .hero-card + .row,
.screen > .feature-card + .feature-card,
.screen > .feature-card + .row {
  margin-top: 14px;
}

.feature-card {
  min-height: 112px;
  align-items: flex-end;
}

.feature-copy {
  min-width: 0;
  color: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.feature-copy small {
  margin: 0;
  color: currentColor;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-copy strong {
  margin-top: 0;
  line-height: 1.08;
}

.feature-copy em {
  margin-top: 0;
  color: currentColor;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.feature-card.sanctuary-feature .feature-copy,
.feature-card.sanctuary-feature .feature-copy small,
.feature-card.sanctuary-feature .feature-copy strong,
.feature-card.sanctuary-feature .feature-copy em,
.feature-card.dark .feature-copy,
.feature-card.dark .feature-copy small,
.feature-card.dark .feature-copy strong,
.feature-card.dark .feature-copy em {
  color: white;
}

.workspace-top {
  flex-wrap: wrap;
}

.workspace-top > div:first-child {
  flex: 1 1 420px;
  min-width: 0;
}

.demo-controls {
  flex: 1 1 320px;
  min-width: 0;
  justify-content: flex-start;
}

.demo-controls .segmented {
  max-width: 100%;
  flex-wrap: wrap;
}

.surface-home .app-root,
.home-surface {
  min-height: 100vh;
}

body.surface-home {
  overflow-x: hidden;
}

.home-surface {
  width: min(100%, 1180px);
  max-width: 100%;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
}

.home-nav,
.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-brand,
.home-link,
.home-choice {
  color: inherit;
  text-decoration: none;
}

.home-brand strong {
  font-size: 15px;
}

.home-link {
  border: 1px solid var(--ochre);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--ochre);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 42px;
  min-width: 0;
}

.home-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
}

.home-copy h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.home-copy p {
  margin: 0;
  max-width: 640px;
  color: var(--ink-70);
  font-size: 22px;
  line-height: 1.35;
}

.home-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.home-choice {
  min-height: 152px;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.home-choice:hover {
  transform: translateY(-2px);
}

.home-choice-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ochre-soft);
  color: var(--navy);
}

.home-choice-icon svg,
.home-choice > svg,
.home-footer svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.home-choice strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.home-choice small {
  display: block;
  margin-top: 8px;
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.35;
}

.home-preview {
  min-height: 460px;
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.home-phone-preview,
.home-panel-preview {
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.home-phone-preview {
  position: relative;
  width: min(100%, 286px);
  min-height: 420px;
  border-radius: 34px;
  padding: 34px 22px 24px;
  display: grid;
  align-content: end;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(22, 22, 42, 0.2)),
    linear-gradient(145deg, var(--navy), var(--brand-web-blue) 64%, var(--brand-web-yellow));
  color: white;
}

.home-phone-preview .mini-status {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 76px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.home-phone-preview h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 0.95;
  letter-spacing: 0;
}

.home-phone-preview p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.35;
}

.home-phone-preview > span:last-child {
  width: max-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--ochre);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-panel-preview {
  position: absolute;
  top: 56px;
  right: 0;
  bottom: auto;
  width: min(58%, 280px);
  min-height: 180px;
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 10px;
  background: #ffffff;
}

.home-panel-preview div {
  height: 28px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--navy-soft), var(--ochre-soft));
}

.home-panel-preview strong {
  margin-top: 8px;
  color: var(--navy);
  font-size: 18px;
}

.home-footer {
  flex-wrap: wrap;
  color: var(--ink-70);
  font-size: 13px;
  font-weight: 800;
}

.home-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.surface-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.surface-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 10px 8px 14px;
  box-shadow: var(--shadow);
}

.surface-nav > span {
  min-width: 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.surface-nav > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.surface-nav-link {
  min-height: 38px;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.api-info-btn {
  min-height: 38px;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--navy);
  background: var(--ochre-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
}

.home-api-info {
  min-height: 41px;
  padding-inline: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.api-info-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.surface-nav-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(22, 22, 42, 0.48);
}

.api-modal {
  width: min(1120px, 100%);
  max-height: min(880px, calc(100vh - 44px));
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.api-modal-head {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.api-modal-head h2 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.api-modal-head p {
  margin: 0;
  max-width: 760px;
  color: var(--ink-70);
  line-height: 1.45;
}

.api-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 22px;
}

.push-confirmation-modal {
  width: min(760px, 100%);
}

.push-confirmation-body {
  display: grid;
  gap: 18px;
}

.push-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.push-review-grid > div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
}

.push-review-audience {
  grid-column: 1 / -1;
}

.push-review-audience ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.push-review-audience li {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--surface);
}

.push-review-audience li span {
  color: var(--ink-70);
  font-size: 13px;
}

.push-review-grid .push-review-message {
  grid-column: 1 / -1;
}

.push-review-grid dt {
  margin-bottom: 5px;
  color: var(--ink-70);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.push-review-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.push-bulk-confirmation {
  padding: 14px 16px;
  border: 2px solid var(--yellow);
  border-radius: 14px;
  background: #fff9df;
}

.push-confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.welcome-video-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: #16162a;
}

.welcome-video-modal {
  width: min(980px, 100%);
  height: min(920px, 100%);
  max-height: calc(100vh - 24px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: #050511;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
}

.welcome-video-frame {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  background: #070716;
}

.welcome-video-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.welcome-video-cover {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: #fff;
  background: #16162a;
  cursor: pointer;
}

.welcome-video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 17, 0.08), rgba(5, 5, 17, 0.62));
}

.welcome-video-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-video-cover strong,
.welcome-video-play-icon {
  position: relative;
  z-index: 1;
}

.welcome-video-cover strong {
  align-self: end;
  margin-bottom: 36px;
  font-size: 17px;
}

.welcome-video-play-icon {
  align-self: end;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: -8px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

.welcome-video-play-icon svg {
  width: 30px;
  height: 30px;
}

.welcome-video-player {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #000;
}

.welcome-video-loading {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(22, 22, 42, 0.9);
  font-weight: 800;
}

.welcome-video-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(180deg, rgba(22, 22, 42, 0.62), rgba(22, 22, 42, 0.94));
}

.welcome-video-copy span {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold);
  font-weight: 900;
  font-size: 13px;
}

.welcome-video-copy h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.98;
}

.welcome-video-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.45;
}

.welcome-video-error {
  margin-top: 14px !important;
  color: #ffe6a3 !important;
  font-weight: 800;
}

.welcome-video-retry {
  width: fit-content;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.welcome-video-actions {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fff;
}

.api-demo-warning {
  margin-bottom: 16px;
}

.api-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 16px;
}

.api-modal-grid h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 17px;
}

.api-field-group {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px rgba(22, 22, 42, 0.06);
}

.api-field-group + .api-field-group {
  margin-top: 10px;
}

.api-field-group > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.api-field-group h4 {
  margin: 0;
  font-size: 15px;
}

.api-field-group > div:first-child span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

.api-field-group p {
  margin: 10px 0 0;
  color: var(--ink-70);
  font-size: 13px;
  line-height: 1.4;
}

.field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.field-list code {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--navy);
  background: white;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.surface-mobile .app-root,
.mobile-surface {
  min-height: 100vh;
}

.mobile-surface {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  justify-content: center;
  gap: 0;
  padding: 0;
  background: var(--paper);
}

.surface-mobile .device {
  position: relative;
  top: auto;
  width: min(100vw, 430px);
  min-height: 0;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

.surface-panel .app-root {
  min-height: 100vh;
}

@media (max-width: 640px) {
  .nohuman-feedback-widget {
    bottom: 86px !important;
    left: auto !important;
    right: 12px !important;
    z-index: 20 !important;
  }
}

.panel-surface {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 36px);
  display: grid;
  gap: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.panel-surface-top {
  align-items: flex-start;
  gap: 24px;
  padding: 26px clamp(20px, 3vw, 34px);
  border: 1px solid rgba(22, 22, 42, .1);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
  box-shadow: 0 16px 45px rgba(22, 22, 42, .07);
}

.panel-surface-top h1 {
  max-width: 680px;
  margin: 8px 0 10px;
  color: var(--navy);
  font-family: inherit;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.panel-surface-top p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-70);
  font-size: 17px;
}

.panel-eyebrow,
.panel-nav-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.panel-header-actions,
.panel-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.panel-header-actions {
  justify-content: flex-end;
}

.panel-header-actions .btn {
  white-space: nowrap;
}

.panel-surface-top .surface-nav {
  box-shadow: none;
}

.panel-source-row {
  margin: 0;
}

.panel-surface .panel {
  width: 100%;
}

.panel-admin-workspace {
  overflow: hidden;
  border: 1px solid rgba(22, 22, 42, .1);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(22, 22, 42, .06);
}

.panel-admin-nav {
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: #fff;
}

.panel-admin-nav p {
  margin: 4px 0 0;
  color: var(--ink-70);
}

.panel-admin-workspace > .panel-body {
  padding: clamp(18px, 2.5vw, 24px);
  background: #f7f9fc;
}

.panel-app-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: 20px;
  color: #fff;
  background: var(--navy);
}

.panel-app-overview h2 {
  max-width: 680px;
  margin: 10px 0 9px;
  color: #fff;
  font-family: inherit;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.panel-app-overview p {
  max-width: 700px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 1.5;
}

.panel-app-overview .panel-section-kicker { color: var(--yellow); }
.panel-app-overview .btn.gold { color: var(--navy); }

.panel-app-boundary {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
}

.panel-app-boundary strong {
  margin-top: 7px;
  color: var(--yellow);
  font-size: 14px;
}

.panel-app-boundary strong:first-child { margin-top: 0; }

.panel-app-boundary span {
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  line-height: 1.4;
}

.panel-sections-section { margin-top: 22px; }

.panel-sections-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel-sections-heading h3 {
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: clamp(20px, 2.5vw, 27px);
  letter-spacing: -.02em;
}

.panel-sections-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.panel-section-card {
  display: grid;
  min-width: 0;
  min-height: 148px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(22, 22, 42, .12);
  border-radius: 16px;
  color: var(--navy);
  text-align: left;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 22, 42, .045);
  cursor: pointer;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.panel-section-card:hover,
.panel-section-card:focus-visible,
.panel-section-card.is-ready:hover,
.panel-section-card.is-ready:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 10px 26px rgba(36, 126, 193, .16);
  transform: translateY(-1px);
}

.panel-section-card:focus-visible {
  outline: 3px solid rgba(36, 126, 193, .3);
  outline-offset: 2px;
}

.panel-section-card.is-ready { border-color: rgba(36, 126, 193, .35); }

.panel-section-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: #eef5fb;
}

.panel-section-card-icon svg { width: 20px; height: 20px; }

.panel-section-card-copy,
.panel-section-card-copy strong,
.panel-section-card-copy small { display: block; min-width: 0; }

.panel-section-card-copy strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.panel-section-card-copy small {
  color: var(--ink-70);
  font-size: 13px;
  line-height: 1.35;
}

.panel-section-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.panel-section-card-footer > svg { width: 17px; height: 17px; color: var(--blue); flex: 0 0 auto; }

.panel-home-hint {
  margin: 16px 0 0;
  color: var(--ink-70);
  font-size: 14px;
}

.panel-module-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.panel-task-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(22px, 4vw, 40px);
  border-radius: 20px;
  color: #fff;
  background: var(--navy);
}

.panel-task-hero h2 {
  max-width: 650px;
  margin: 13px 0 10px;
  color: #fff;
  font-family: inherit;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.panel-task-hero > div:first-child > p {
  max-width: 670px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
}

.panel-task-hero .btn.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .08);
}

.panel-scope-card {
  align-self: stretch;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
}

.panel-scope-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--yellow);
}

.panel-scope-card p {
  margin: 0 0 17px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.panel-scope-card p:last-child { margin-bottom: 0; }

.panel-empty-state {
  display: grid;
  justify-items: start;
  min-height: 220px;
  align-content: center;
  padding: clamp(24px, 5vw, 48px);
  border: 1px dashed #b8c5d6;
  border-radius: 18px;
  background: #fff;
}

.panel-empty-state .icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: #eef5fb;
}

.panel-empty-state h2 {
  margin: 16px 0 6px;
  font-family: inherit;
  font-size: 24px;
}

.panel-empty-state p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-70);
}

@media (max-width: 900px) {
  .panel-surface-top,
  .panel-admin-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-surface-top > div:first-child { flex: 0 1 auto; }
  .panel-header-actions { justify-content: flex-start; }
  .panel-app-overview { grid-template-columns: 1fr; }
  .panel-task-hero { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .panel-sections-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .panel-surface { padding: 12px; }
  .panel-surface-top,
  .panel-admin-workspace { border-radius: 18px; }
  .panel-header-actions,
  .panel-task-actions { flex-direction: column; }
  .panel-header-actions .btn,
  .panel-task-actions .btn { width: 100%; }
  .panel-admin-nav .segmented { width: 100%; }
  .panel-admin-nav .segmented button { flex: 1 1 44%; }
  .panel-sections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-sections-heading { align-items: flex-start; flex-direction: column; }
  .panel-task-hero { padding: 22px 18px; }
}

@media (max-width: 460px) {
  .panel-sections-grid { grid-template-columns: 1fr; }
  .panel-section-card { min-height: 126px; }
}

.row {
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

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

  .row,
  .info-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .row > .badge,
  .info-row > .badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .row > .row-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* Objetivos táctiles mínimos para los recorridos principales de app y panel. */
button.badge,
.segmented button,
.sanctuary-tabs button,
.surface-nav-link,
.before-check-link {
  min-height: 44px;
}

.icon-btn,
.back-btn,
.avatar-btn {
  min-width: 44px;
  min-height: 44px;
}

@media (min-width: 700px) {
  .surface-mobile .mobile-surface {
    min-height: 100vh;
    padding: 20px;
    gap: 14px;
    align-content: start;
  }

  .surface-mobile .device {
    height: calc(100vh - 96px);
    min-height: 760px;
    border-radius: 38px;
    box-shadow: var(--shadow);
  }
}

.commercial-manager {
  margin-top: 22px;
}

.before-content-manager {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
}

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

.before-content-manager-head h3 {
  margin: 0 0 6px;
}

.before-content-manager-head p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-70);
}

.before-content-row {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(22, 22, 42, .08);
  border-radius: 14px;
  background: #fbfcfe;
}

.before-content-row-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.before-content-row-main .icon {
  flex: 0 0 auto;
}

.before-content-row h4,
.before-content-row p {
  margin: 0;
}

.before-content-row p {
  margin-top: 4px;
  color: var(--ink-70);
  font-size: 13px;
}

.before-content-link {
  white-space: nowrap;
}

.content-area-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.content-area-directory-card { display: grid; gap: 6px; min-height: 142px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); text-decoration: none; }
.content-area-directory-card:hover, .content-area-directory-card:focus-visible { border-color: var(--link); box-shadow: 0 0 0 3px rgba(36, 126, 193, .14); }
.content-area-directory-card strong { font-size: 20px; }
.content-area-directory-card > span:not(.panel-section-kicker) { color: var(--muted); line-height: 1.4; }
.content-area-directory-action { align-self: end; color: var(--link) !important; font-weight: 800; }

.commercial-manager-head,
.commercial-form-actions,
.commercial-item-actions,
.commercial-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.commercial-manager-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.commercial-wide {
  grid-column: 1 / -1;
}

.commercial-form-actions {
  justify-content: flex-end;
}

.commercial-admin-list {
  margin-top: 18px;
}

.commercial-admin-item {
  align-items: center;
}

.commercial-admin-item > div:first-child {
  min-width: 0;
}

.commercial-item-actions {
  flex: 0 0 auto;
}

.commercial-code-row {
  margin: 14px 0;
  padding: 10px;
  border-radius: 12px;
  background: #f4f7fb;
}

.commercial-code-row code {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
}

.commercial-app-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .before-content-manager-head,
  .before-content-row {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .before-content-row .before-content-link {
    width: 100%;
  }

  .commercial-manager-head,
  .commercial-form-actions,
  .commercial-item-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .commercial-form-actions .btn,
  .commercial-item-actions .btn {
    width: 100%;
  }

  .content-area-directory-grid { grid-template-columns: 1fr; }
  .welcome-video-backdrop {
    padding: 0;
  }

  .welcome-video-modal {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .welcome-video-frame {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .welcome-video-copy {
    padding: 18px;
  }

  .welcome-video-copy h2 {
    font-size: 34px;
  }

  .welcome-video-copy p {
    font-size: 15px;
  }

  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-usage-row,
  .analytics-event-row {
    grid-template-columns: 1fr;
  }

  .analytics-event-head {
    display: none;
  }

  .analytics-event-row span:nth-child(1) {
    font-weight: 800;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-head .segmented {
    align-self: stretch;
    flex-wrap: wrap;
    border-radius: var(--radius);
  }

  .panel-head .segmented button {
    flex: 1 1 96px;
    min-height: 38px;
  }

  .surface-nav {
    align-items: stretch;
    border-radius: var(--radius);
  }

  .surface-nav > div {
    flex-wrap: wrap;
  }

  .surface-nav-link {
    min-height: 36px;
  }

  .api-info-btn {
    min-height: 36px;
  }

  .modal-backdrop {
    padding: 10px;
    align-items: end;
  }

  .api-modal {
    max-height: calc(100vh - 20px);
    border-radius: 18px 18px 0 0;
  }

  .api-modal-head {
    padding: 16px;
  }

  .api-modal-head h2 {
    font-size: 25px;
  }

  .api-modal-body {
    padding: 14px 16px 18px;
  }

  .document-viewer-modal {
    height: calc(100vh - 20px);
  }

  .document-viewer-body {
    padding: 12px 14px 16px;
    grid-template-rows: minmax(260px, 1fr) auto;
  }

  .document-viewer-frame-wrap,
  .document-viewer-frame-wrap iframe {
    min-height: 300px;
  }

  .document-viewer-actions,
  .external-link-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .document-viewer-actions p {
    flex-basis: auto;
  }

  .document-viewer-actions .btn,
  .external-link-modal-actions .btn {
    width: 100%;
  }

  .api-modal-grid {
    grid-template-columns: 1fr;
  }

  .push-review-grid {
    grid-template-columns: 1fr;
  }

  .push-review-grid .push-review-message {
    grid-column: auto;
  }

  .push-confirmation-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .push-confirmation-actions .btn {
    width: 100%;
  }

  .api-field-group > div:first-child {
    display: grid;
  }

  .api-field-group > div:first-child span {
    text-align: left;
  }

  .home-surface {
    padding: 20px;
    gap: 22px;
  }

  .home-nav {
    align-items: flex-start;
  }

  .home-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .home-copy h1 {
    font-size: 32px;
    line-height: 1;
  }

  .home-copy p {
    font-size: 18px;
  }

  .home-choice-grid {
    grid-template-columns: 1fr;
  }

  .home-choice {
    min-height: 124px;
  }

  .home-preview {
    min-height: 330px;
    place-items: start center;
  }

  .home-phone-preview {
    min-height: 320px;
  }

  .home-panel-preview {
    width: min(68%, 260px);
    right: 8px;
    bottom: 0;
  }

  .panel-surface {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .home-copy h1 {
    font-size: 31px;
  }

  .media-card,
  .song-row,
  .pdf-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .resource-actions {
    grid-template-columns: 1fr;
  }

  .media-card > .badge,
  .song-row > .badge,
  .pdf-row > .btn {
    grid-column: 2;
    justify-self: start;
  }

  .insurance-manual-section summary {
    grid-template-columns: 28px 36px minmax(0, 1fr) 20px;
    gap: 8px;
    padding-inline: 10px;
  }

  .insurance-manual-content {
    padding-left: 82px;
  }
}

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

.document-safety-grid {
  margin-top: 14px;
}

.document-preparation-list {
  display: grid;
  gap: 14px;
}

.document-preparation-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.document-preparation-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.document-preparation-head .icon {
  width: 44px;
  height: 44px;
}

.document-preparation-head h3,
.document-preparation-head p {
  margin: 0;
}

.document-preparation-head p {
  margin-top: 4px;
  color: var(--ink-70);
  line-height: 1.45;
}

.document-preparation-input {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(22, 23, 42, 0.22);
  border-radius: 14px;
  background: #f8fafc;
}

.document-preparation-input small {
  color: var(--ink-70);
  line-height: 1.45;
}

.document-file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.document-file-native:focus + .document-file-trigger {
  outline: 3px solid rgba(36, 126, 193, 0.35);
  outline-offset: 3px;
}

.document-file-trigger {
  margin: 0;
  cursor: pointer;
}

.document-preparation-result {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(32, 122, 74, 0.25);
  border-radius: 14px;
  background: #effaf3;
}

.document-preparation-result > span {
  color: #207a4a;
}

.document-preparation-result strong,
.document-preparation-result small {
  display: block;
  overflow-wrap: anywhere;
}

.document-preparation-result small {
  margin-top: 3px;
  color: var(--ink-70);
}

.document-contract-pending,
.document-preparation-card > .notice {
  margin: 0;
}

@media (max-width: 560px) {
  .post-journey-choice-options-inline,
  .post-journey-metadata dl {
    grid-template-columns: 1fr;
  }

  .post-journey-rating-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .document-preparation-card {
    padding: 14px;
  }

  .document-preparation-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .document-preparation-head .badge {
    grid-column: 2;
    justify-self: start;
  }

  .document-preparation-result {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .document-preparation-result .btn {
    grid-column: 2;
    width: 100%;
  }
}

.panel-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.commercial-manager {
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
}

.commercial-manager-head h3 {
  margin: 0 0 6px;
  font-family: inherit;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.025em;
}

.commercial-manager-head p,
.commercial-choice-intro p,
.commercial-editor-intro p,
.commercial-validity p {
  color: var(--ink-70);
}

.commercial-choice-intro { margin: 22px 0 12px; }

.commercial-choice-intro h4,
.commercial-created-heading h4,
.commercial-editor-intro h4 {
  margin: 0 0 5px;
  color: var(--navy);
  font-family: inherit;
  font-size: 19px;
}

.commercial-choice-intro p,
.commercial-editor-intro p,
.commercial-validity p {
  margin: 0;
  font-size: 14px;
}

.commercial-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.commercial-choice-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(22, 22, 42, .13);
  border-radius: 16px;
  color: var(--navy);
  text-align: left;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 22, 42, .04);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.commercial-choice-card:hover,
.commercial-choice-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 10px 26px rgba(36, 126, 193, .15);
  transform: translateY(-1px);
}

.commercial-choice-card:focus-visible {
  outline: 3px solid rgba(36, 126, 193, .3);
  outline-offset: 2px;
}

.commercial-choice-card strong,
.commercial-choice-card small { display: block; }

.commercial-choice-card strong { margin-bottom: 5px; font-size: 16px; }

.commercial-choice-card small {
  color: var(--ink-70);
  font-size: 13px;
  line-height: 1.35;
}

.commercial-type-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--blue);
  background: #eef5fb;
}

.commercial-type-icon svg { width: 22px; height: 22px; }
.commercial-choice-arrow { color: var(--blue); }
.commercial-choice-arrow svg { width: 18px; height: 18px; }

.commercial-sco-boundary { margin-top: 16px; }
.commercial-sco-boundary strong { display: block; margin-bottom: 4px; }
.commercial-sco-boundary p { margin: 0; }

.commercial-editor-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 18px;
  padding: 16px;
  border-radius: 14px;
  background: #f5f8fc;
}

.commercial-editor-intro .commercial-type-icon { flex: 0 0 auto; }

.commercial-validity {
  min-width: 0;
  margin: 4px 0 0;
  padding: 16px;
  border: 1px solid rgba(22, 22, 42, .12);
  border-radius: 14px;
}

.commercial-validity legend {
  padding: 0 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.commercial-validity .grid { margin-top: 12px; }

.commercial-editor-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.commercial-created-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 22, 42, .1);
}

.commercial-created-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.commercial-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.commercial-content-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(22, 22, 42, .11);
  border-radius: 15px;
  background: #fff;
}

.commercial-content-card-top,
.commercial-content-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.commercial-content-card h4 {
  margin: 14px 0 5px;
  color: var(--navy);
  font-family: inherit;
  font-size: 18px;
}

.commercial-content-card p {
  margin: 0 0 9px;
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.45;
}

.commercial-content-card small { margin-top: auto; color: var(--muted); font-size: 12px; }
.commercial-content-card-actions { margin-top: 16px; }
.commercial-content-card-actions .btn { flex: 1 1 auto; }

.commercial-empty-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px dashed #b8c5d6;
  border-radius: 15px;
  background: #fafcff;
}

.commercial-empty-state h4 { margin: 0 0 4px; color: var(--navy); font-family: inherit; font-size: 16px; }
.commercial-empty-state p { margin: 0; color: var(--ink-70); font-size: 14px; }

@media (max-width: 760px) {
  .commercial-choice-grid,
  .commercial-list-grid { grid-template-columns: 1fr; }

  .commercial-choice-card { min-height: 96px; }

  .commercial-created-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .commercial-editor-actions { width: 100%; }
  .commercial-editor-actions .btn { flex: 1 1 100%; }
}

.pilgrimage-video-admin-row {
  grid-template-columns: 24px 42px minmax(0, 1fr);
  cursor: grab;
  touch-action: manipulation;
  transition: border-color .16s ease, background .16s ease, opacity .16s ease, transform .16s ease;
}

.pilgrimage-video-admin-row:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.pilgrimage-video-admin-row.is-dragging {
  opacity: .45;
  cursor: grabbing;
}

.pilgrimage-video-admin-row.is-drop-target {
  border-color: var(--link);
  background: #eef7ff;
  transform: translateY(-2px);
}

.pilgrimage-video-drag-handle {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -4px;
  user-select: none;
}

.pilgrimage-video-order-help {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.pilgrimage-video-admin-row > .chip-row {
  grid-column: 3;
  justify-content: flex-start;
  min-width: 0;
}

.pilgrimage-video-admin-row > span:nth-child(3) {
  min-width: 0;
}

.pilgrimage-video-admin-row > span:nth-child(3) strong,
.pilgrimage-video-admin-row > span:nth-child(3) span {
  overflow-wrap: anywhere;
}
