.app-page {
  --app-success: #197548;
  --app-warning: #8b5b00;
  --app-danger: #a43131;
}

.app-page [id] {
  scroll-margin-top: 28px;
}

.app-page .guide-section--navy .guide-card h2,
.app-page .guide-section--navy .guide-card h3,
.app-page .guide-section--navy .guide-card h4 {
  color: var(--guide-navy);
}

.app-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.app-hero__proof div {
  padding: 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
}

.app-hero__proof strong,
.app-hero__proof span {
  display: block;
  color: #fff;
}

.app-hero__proof strong {
  font-size: 23px;
  line-height: 1.1;
}

.app-hero__proof span {
  margin-top: 5px;
  color: #d8efff;
  font-size: 13px;
  font-weight: 650;
}

.app-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-process-card {
  position: relative;
  min-width: 0;
  padding: 25px;
  color: var(--guide-ink);
  background: #fff;
  border: 1px solid var(--guide-line);
  border-top: 5px solid #1b92c9;
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(8, 47, 87, .08);
}

.app-process-card__number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 17px;
  place-items: center;
  color: #fff;
  background: var(--guide-navy);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
}

.app-process-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.app-process-card p {
  margin-bottom: 12px;
  color: var(--guide-muted);
  font-size: 15px;
}

.app-process-card a {
  font-size: 14px;
}

.app-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.app-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-page .app-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--guide-navy);
  font-size: 14px;
  font-weight: 850;
}

.app-page .app-field input,
.app-page .app-field select {
  width: 100%;
  min-height: 49px;
  padding: 10px 12px;
  color: var(--guide-ink);
  background: #fff;
  border: 2px solid #b8cddd;
  border-radius: 8px;
  font-size: 16px;
}

.app-page .app-field input:focus,
.app-page .app-field select:focus {
  border-color: #087fc0;
  box-shadow: 0 0 0 3px rgba(8, 127, 192, .15);
  outline: 0;
}

.app-route-output {
  min-height: 300px;
  padding: 24px;
  color: var(--guide-ink);
  background: #f5fbff;
  border: 2px solid #b8dff1;
  border-radius: 13px;
}

.app-route-output[hidden] {
  display: none;
}

.app-route-output__empty {
  display: grid;
  min-height: 250px;
  place-items: center;
  color: var(--guide-muted);
  text-align: center;
}

.app-route-output h3 {
  margin-bottom: 8px;
}

.app-route-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 19px 0;
}

.app-route-meta div {
  padding: 13px;
  background: #fff;
  border: 1px solid var(--guide-line);
  border-radius: 9px;
}

.app-route-meta span,
.app-route-meta strong {
  display: block;
}

.app-route-meta span {
  margin-bottom: 3px;
  color: var(--guide-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.app-route-meta strong {
  color: var(--guide-navy);
  font-size: 15px;
}

.app-fee-lines {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--guide-muted);
  font-size: 14px;
}

.app-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: #155d3b;
  background: #dbf4e7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.app-status--closed {
  color: #7a3030;
  background: #fce3e3;
}

.app-calculator-total {
  margin-top: 20px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(120deg, #082f57, #087cb9);
  border-radius: 12px;
}

.app-calculator-total span,
.app-calculator-total strong {
  display: block;
  color: #fff;
}

.app-calculator-total span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.app-calculator-total strong {
  margin-top: 5px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
}

.app-calculator-total small {
  display: block;
  margin-top: 9px;
  color: #d8efff;
}

.app-result {
  margin-top: 18px;
  padding: 18px;
  color: var(--guide-ink);
  background: #eef8fe;
  border: 2px solid #9fd7f2;
  border-radius: 10px;
}

.app-result--success {
  color: #17422e;
  background: #e7f8ee;
  border-color: #75c994;
}

.app-result--warning {
  color: #674300;
  background: #fff6d5;
  border-color: #e0bd4c;
}

.app-result--danger {
  color: #762929;
  background: #fde8e8;
  border-color: #e69b9b;
}

.app-result strong,
.app-result span {
  display: block;
}

.app-result span {
  margin-top: 6px;
  font-size: 14px;
}

.app-discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.app-discipline-card {
  padding: 21px;
  color: var(--guide-ink);
  background: #fff;
  border: 1px solid var(--guide-line);
  border-radius: 11px;
}

.app-discipline-card strong,
.app-discipline-card span {
  display: block;
}

.app-discipline-card strong {
  color: var(--guide-navy);
  font-size: 20px;
}

.app-discipline-card span {
  margin-top: 7px;
  color: var(--guide-muted);
  font-size: 14px;
}

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

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

.app-safety-strip div {
  padding: 18px;
  color: var(--guide-ink);
  background: #fff;
  border: 1px solid var(--guide-line);
  border-radius: 10px;
}

.app-safety-strip strong,
.app-safety-strip span {
  display: block;
}

.app-safety-strip strong {
  color: var(--guide-navy);
}

.app-safety-strip span {
  margin-top: 6px;
  color: var(--guide-muted);
  font-size: 14px;
}

.app-page .guide-table td {
  color: var(--guide-ink);
}

.app-page noscript {
  display: block;
  margin-top: 16px;
  padding: 14px;
  color: #674300;
  background: #fff6d5;
  border: 1px solid #e0bd4c;
  border-radius: 8px;
}

@media (max-width: 960px) {
  .app-process-grid,
  .app-discipline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-tool-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .app-hero__proof,
  .app-process-grid,
  .app-field-grid,
  .app-route-meta,
  .app-discipline-grid,
  .app-checklist-columns,
  .app-safety-strip {
    grid-template-columns: 1fr;
  }

  .app-route-output,
  .app-process-card,
  .app-discipline-card {
    padding: 19px;
  }
}

@media print {
  .app-page .guide-button,
  .app-page .guide-tool__actions,
  .app-page [data-application-fee-calculator],
  .app-page [data-nts-planner] {
    display: none !important;
  }
}
