html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  height: 100%;
}

body {
  height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

body {
  background: #f5f6f8;
}

.montal-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.montal-brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #d1002a;
}

.montal-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding-top: 0.25rem;
}

.montal-nav__link {
  text-decoration: none;
  color: #6c757d;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.montal-nav__link.active {
  color: #d1002a;
  border-bottom-color: #d1002a;
}

.montal-main {
  min-height: calc(100vh - 56px);
}

.montal-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  border: 0;
  border-radius: 999px;
  background: #d1002a;
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.montal-fab:hover {
  background: #b80024;
}

.offcanvas#helpSidebar {
  width: 420px;
}

.montal-assistant-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1002a;
  display: inline-block;
}

.montal-assistant-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: #d1002a;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
}

.montal-assistant-btn:hover {
  background: rgba(209, 0, 42, 0.08);
}

.montal-help-tabs .nav-link {
  border: 0;
  color: #6c757d;
  font-weight: 600;
}

.montal-help-tabs .nav-link.active {
  color: #d1002a;
  border-bottom: 2px solid #d1002a;
}

.montal-live {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: #d1002a;
  color: #fff;
  text-transform: uppercase;
}

.montal-help-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #d1002a;
  margin-bottom: 0.5rem;
}

.montal-help-list {
  margin: 0;
  padding-left: 1.1rem;
}

.montal-help-glossary {
  display: grid;
  gap: 0.35rem;
}

.montal-help-key {
  font-weight: 800;
}

.montal-help-callout {
  border-left: 3px solid #d1002a;
  background: #fff;
  padding: 0.75rem 0.85rem;
  border-radius: 0.5rem;
}

.montal-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.montal-pill--ok {
  color: #137333;
  border-color: rgba(19, 115, 51, 0.35);
  background: rgba(19, 115, 51, 0.06);
}

.montal-pill--warn {
  color: #b26a00;
  border-color: rgba(178, 106, 0, 0.35);
  background: rgba(178, 106, 0, 0.08);
}

.montal-pill--danger {
  color: #b00020;
  border-color: rgba(176, 0, 32, 0.35);
  background: rgba(176, 0, 32, 0.08);
}

.montal-start {
  max-width: 1100px;
  margin: 0 auto;
}

.montal-start__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.montal-start__kicker {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #d1002a;
  margin-bottom: 0.5rem;
}

.montal-start__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.montal-start__subtitle {
  color: #6c757d;
}

.montal-choice {
  border-radius: 0.75rem;
}

.montal-choice__title {
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.montal-radio-card {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  display: block;
}

.montal-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.montal-radio-card:has(input[type="radio"]:checked) {
  border-color: rgba(209, 0, 42, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(209, 0, 42, 0.12);
}

.montal-radio-card__title {
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.montal-link {
  color: #d1002a;
  font-weight: 700;
  text-decoration: none;
}

.montal-link:hover {
  color: #b80024;
  text-decoration: none;
}

.montal-proto {
  border-radius: 0.75rem;
}

.app-chat-messages {
  height: 260px;
  overflow: auto;
  background: var(--bs-tertiary-bg);
}

.app-chat-msg {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  background: #fff;
}

.app-chat-msg.app-chat-msg--me {
  background: #e8f1ff;
}
