.alerts-page {
  --al-ink: #173044;
  --al-muted: #617585;
  --al-blue: #1765d4;
  background: linear-gradient(#edf3f4, #f7f9fc 1000px, #fff);
  color: var(--al-ink);
  font: 14px/1.65 system-ui, -apple-system, sans-serif;
}
.al-shell {
  max-width: 1300px;
  margin: auto;
  padding: 28px 32px 48px;
}
.alerts-page * {
  box-sizing: border-box;
}
.alerts-page section::before,
.alerts-page section::after {
  content: none;
  display: none;
}
.alerts-page section {
  margin: 0;
}
.alerts-page h1,
.alerts-page h2,
.alerts-page h3,
.alerts-page p {
  margin: 0;
}
.alerts-page h2 {
  font-size: 20px;
  font-weight: 750;
  line-height: 1.5;
}
.alerts-page h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.alerts-page a {
  color: var(--al-blue);
  text-decoration: none;
}
.alerts-page button,
.alerts-page input,
.alerts-page select {
  font: inherit;
}
.alerts-page :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid #d9a847;
  outline-offset: 3px;
}
.al-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #102e3b;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 22px;
  color: white;
}
.al-hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 65%;
  height: 100%;
  object-fit: cover;
  object-position: right 42%;
  z-index: -2;
}
.al-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d2835f5 20%, #0d2835cd 55%, #0d283522);
  z-index: -1;
}
.al-eyebrow {
  color: var(--al-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
}
.al-hero .al-eyebrow {
  color: #e1c995;
}
.al-hero h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 7px 0;
  line-height: 1.45;
}
.al-hero h1 span {
  display: inline-block;
}
.al-hero p {
  color: #d7e4e8;
  font-size: 13px;
}
.al-hero .al-back {
  display: inline-block;
  color: #e6eff3;
  font-size: 12px;
  margin-top: 16px;
}
.al-account-note {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1px solid #d4e2e9;
  border-radius: 12px;
  background: #f8fcff;
}
.al-account-note p,
.al-muted {
  color: var(--al-muted);
  font-size: 12px;
}
.al-account-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.alerts-page .al-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1dce5;
  border-radius: 7px;
  min-height: 42px;
  padding: 8px 15px;
  font-size: 13px;
  background: white;
  color: var(--al-ink);
  font-weight: 650;
  cursor: pointer;
  text-align: center;
}
.alerts-page .al-primary {
  background: var(--al-blue);
  border-color: var(--al-blue);
  color: white;
}
.alerts-page .al-primary:hover {
  background: #1058bd;
}
.al-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.al-builder,
.al-review {
  min-width: 0;
}
.al-card {
  background: #fff;
  border: 1px solid #dae4eb;
  border-radius: 13px;
  padding: 24px;
  box-shadow: 0 4px 16px #172e4c05;
  min-width: 0;
}
.al-builder .al-card + .al-card {
  margin-top: 18px;
}
.al-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.al-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.al-preset {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #d5e3e8;
  border-radius: 8px;
  background: #f5f9fa;
  color: var(--al-ink);
  cursor: pointer;
}
.al-preset:hover {
  background: #e9f2f6;
  border-color: #7396a5;
}
.al-preset span,
.al-preset strong,
.al-preset small {
  display: block;
}
.al-preset span {
  font-size: 11px;
  color: #526e7e;
}
.al-preset strong {
  font-size: 13px;
  margin: 2px 0;
}
.al-preset small {
  font-size: 11px;
  color: var(--al-muted);
}
.alerts-page .al-help {
  color: var(--al-muted);
  font-size: 12px;
  margin-top: 12px;
}
.al-step fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.al-step legend {
  border: 0;
  margin: 0 0 18px;
  color: var(--al-ink);
  font-size: 17px;
  font-weight: 750;
  width: 100%;
}
.al-step-number {
  color: #a18651;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-right: 10px;
  vertical-align: middle;
}
.al-race-options,
.al-timing-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.al-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  background: white;
  min-height: 44px;
}
.al-choice.is-selected {
  border-color: #5991d2;
  background: #f0f6ff;
  box-shadow: inset 0 0 0 1px #5991d2;
}
.al-choice:has(input:disabled) {
  opacity: 0.55;
  cursor: default;
}
.al-choice input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  accent-color: var(--al-blue);
}
.al-condition {
  align-items: flex-start;
}
.al-condition input {
  margin-top: 4px !important;
}
.al-condition strong,
.al-condition small {
  display: block;
}
.al-condition small {
  color: var(--al-muted);
  font-size: 12px;
  margin-top: 3px;
  font-weight: 400;
}
.al-condition-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.al-odds-fields,
.al-schedule-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 14px;
  margin-top: 18px;
}
.al-field {
  display: block;
  margin: 0;
  min-width: 0;
  font-weight: 600;
  font-size: 12px;
}
.al-field > span {
  display: block;
  margin-bottom: 7px;
}
.al-field select,
.al-field input[type="number"] {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--al-ink);
  border: 1px solid #cddae4;
  border-radius: 7px;
  background: white;
  font-size: 14px;
  font-weight: 500;
}
.al-input-unit {
  display: flex;
  align-items: center;
  gap: 9px;
}
.al-field input[aria-invalid="true"] {
  border-color: #b65449;
  background: #fff8f6;
}
.al-recipient {
  overflow-wrap: anywhere;
}
.al-input-unit input {
  flex: 1;
  min-width: 0;
}
.al-input-unit span {
  flex-shrink: 0;
  font-weight: 500;
  font-size: 12px;
}
.al-advanced {
  grid-column: 1 / -1;
  border-top: 1px solid #e4ebef;
  padding-top: 14px;
  margin-top: 3px;
}
.al-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #476174;
  font-size: 12px;
  cursor: pointer;
  padding: 3px 0;
  min-height: 44px;
}
.al-advanced summary::after {
  content: "＋";
  color: var(--al-blue);
  font-size: 16px;
}
.al-advanced[open] > summary::after {
  content: "−";
}
.al-advanced .al-field {
  margin-top: 12px;
  max-width: 300px;
}
.al-other-conditions {
  margin-top: 20px;
}
.al-timing-options .al-choice {
  flex: 1;
  font-size: 13px;
}
.al-push-hint {
  margin-top: 12px !important;
  padding: 12px;
  border-radius: 7px;
  background: #f0f6ff;
  color: #37556d;
  font-size: 12px;
}
.al-push-hint a {
  display: block;
  margin-top: 4px;
}
.al-review {
  position: sticky;
  top: 72px;
}
.al-review-card {
  border-top: 3px solid #b99b61;
}
.al-review-text {
  margin-top: 18px !important;
  font-size: 18px;
  line-height: 1.85;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.al-review-details {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px 10px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid #e4ebef;
  border-bottom: 1px solid #e4ebef;
  font-size: 12px;
}
.al-review-details dt {
  font-weight: 500;
  color: var(--al-muted);
}
.al-review-details dd {
  margin: 0;
  font-weight: 650;
}
.alerts-page .al-save {
  width: 100%;
  margin-top: 10px;
  min-height: 46px;
  font-size: 14px;
}
.al-note {
  padding: 22px 12px;
  color: var(--al-muted);
  font-size: 12px;
}
.al-note strong {
  color: #476174;
  font-size: 13px;
}
.al-note p {
  margin-top: 6px;
}
.al-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}
.al-count {
  background: #eef3f7;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 12px;
  color: #546b7d;
}
.al-saved-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.al-saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid #e2e9ef;
}
.al-saved-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.al-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}
.al-badges span {
  background: #edf4f7;
  border-radius: 4px;
  padding: 2px 7px;
  color: #486675;
  font-size: 11px;
}
.al-saved-copy p,
.al-saved-copy small {
  color: var(--al-muted);
  font-size: 12px;
}
.al-delete {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  color: #925047 !important;
  font-size: 12px;
  flex-shrink: 0;
}
.al-empty {
  padding: 20px 4px 8px;
  color: #5c7284;
}
.al-empty p {
  margin-top: 7px;
  font-size: 12px;
}
#device-notifications {
  scroll-margin-top: 78px;
}
.alerts-page .push-panel {
  margin: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid #dae4eb;
  border-radius: 13px;
}
.alerts-page .push-panel h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.alerts-page .push-panel p {
  font-size: 12px;
  margin-top: 10px;
}
.alerts-page .push-panel .push-status {
  padding: 11px;
  border-radius: 7px;
  background: #f2f6f9;
  color: #466477;
}
.alerts-page .push-panel button,
.alerts-page .push-panel .btn {
  white-space: normal;
  font-size: 12px;
}
.alerts-page .push-panel .btn-primary {
  color: #fff;
}
body:has(.alerts-page) #footer-app .footer-1-1 {
  max-width: 100%;
}
@media (max-width: 1000px) {
  .al-shell {
    padding: 22px;
  }
  .al-form,
  .al-lower-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
  }
  .al-card {
    padding: 20px;
  }
  .al-card-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .al-form,
  .al-lower-grid {
    grid-template-columns: 1fr;
  }
  .al-review {
    position: static;
  }
  .al-note {
    display: none;
  }
  .al-account-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .al-review-details {
    grid-template-columns: 100px 1fr;
  }
}
@media (max-width: 480px) {
  .al-shell {
    padding: 16px 10px 30px;
  }
  .al-hero {
    padding: 24px 19px;
    border-radius: 12px;
  }
  .al-hero h1 {
    font-size: 25px;
  }
  .al-hero-art {
    width: 100%;
    opacity: 0.5;
  }
  .al-hero::after {
    background: linear-gradient(90deg, #0d2835eb, #0d283590);
  }
  .al-hero p {
    font-size: 12px;
  }
  .al-card {
    padding: 17px 14px;
  }
  .alerts-page h2 {
    font-size: 18px;
  }
  .al-card-heading {
    gap: 6px;
  }
  .al-preset-grid {
    gap: 7px;
  }
  .al-preset {
    padding: 10px;
  }
  .al-preset strong {
    font-size: 12px;
  }
  .al-race-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .al-choice {
    padding: 10px;
    font-size: 12px;
  }
  .al-step legend {
    font-size: 16px;
  }
  .al-timing-options {
    flex-direction: column;
  }
  .al-odds-fields,
  .al-schedule-fields {
    grid-template-columns: 1fr;
  }
  .al-field input[type="number"],
  .al-field select {
    font-size: 16px;
  }
  .al-account-note {
    padding: 15px;
  }
  .al-review-text {
    font-size: 17px;
  }
  .al-hero .al-back {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

