:root {
  font-family: ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: #17202e;
  background: #f4f6fa;
  font-synthesis: none;
  --blue: #234ad8;
  --red: #c52c39;
  --muted: #586479;
  --border: #dce2ec;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,input,a {
  -webkit-tap-highlight-color: transparent;
}
button,input {
  font: inherit;
}
button,a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: .5;
}
a {
  color: var(--blue);
}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline: 3px solid #7894ff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.shell {
  margin: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #17202e;
  font-weight: 850;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand-mark {
  background: var(--red);
  color: white;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}
.brand-period {
  color: var(--red);
}
h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.8px;
  margin: 0 0 12px;
}
h2 {
  letter-spacing: -.3px;
  margin: 0 0 12px;
}
p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.card {
  background: white;
  border: 1px solid var(--border);
}
.intro h1 {
  max-width: 390px;
}
.intro p {
  max-width: 450px;
}
.primary,.secondary {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 650;
  gap: 8px;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.secondary {
  background: #eaf0ff;
  color: #193fb9;
}
.quiet {
  background: none;
  border: 0;
  color: var(--muted);
}
.wide {
  width: 100%;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
}
.section-heading h1 {
  margin: 0;
  font-size: 28px;
}
.section-heading p {
  margin: 6px 0 0;
}
.notice {
  background: #eef2ff;
  border-color: #d5defe;
}
.notice h2 {
  font-size: 17px;
}
.notice ol {
  margin: 0;
}
.notice li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 5px;
}
.status-label {
  font-size: 14px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9b650b;
  flex-shrink: 0;
}
.status-label.ready::before {
  background: #21874a;
}
.notification-panel p {
  font-size: 14px;
  color: var(--muted);
}
.notification-panel {
  border-left: 4px solid var(--blue);
}
.hook-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.hook-name {
  font-weight: 650;
  margin: 0 0 7px;
}
.hook-meta {
  color: var(--muted);
}
.hook-url {
  font-family: ui-monospace,SFMono-Regular,monospace;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 12px 0 0;
}
.hook-card {
  transition: border-color .15s;
}
.hook-card:hover {
  border-color: #7894ff;
}
.arrow {
  font-size: 24px;
  color: var(--blue);
}
.empty {
  text-align: center;
}
.empty p {
  max-width: 380px;
  margin: 0 auto 20px;
}
.form label {
  font-size: 14px;
  font-weight: 650;
  display: block;
  margin-bottom: 8px;
}
.form input {
  width: 100%;
  font-size: 16px;
  border: 1px solid #bfc9da;
  border-radius: 10px;
  background: white;
  padding: 13px;
  color: inherit;
  margin-bottom: 14px;
}
.url-box {
  display: block;
  width: 100%;
  font-size: 13px;
  color: #35425c;
  line-height: 1.6;
  overflow-wrap: anywhere;
  user-select: all;
  padding: 13px;
  background: #f4f6fa;
  border-radius: 10px;
  margin: 14px 0;
}
.back {
  text-decoration: none;
}
.steps {
  color: #48556b;
  line-height: 1.7;
  padding-left: 20px;
}
.steps li {
  padding-left: 3px;
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: .03em;
  font-weight: 750;
  background: #fff0f0;
  color: #b72735;
}
.pill.resolved {
  background: #eaf7ed;
  color: #176336;
}
.pill.test {
  background: #edf1ff;
  color: #2744a0;
}
.time {
  font-size: 12px;
  color: var(--muted);
}
.event-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  margin-bottom: 14px;
}
.delivery {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0;
}
.highlight {
  border: 2px solid var(--blue);
}
details {
  border-top: 1px solid #edf0f5;
  padding-top: 12px;
  margin-top: 12px;
}
summary {
  font-size: 14px;
  cursor: pointer;
  color: var(--blue);
  padding: 4px 0;
}
pre {
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #48556b;
  max-height: 380px;
  overflow: auto;
}
.error {
  color: #a92031;
  background: #fff0f0;
  border: 1px solid #ffd0d6;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.toast {
  position: fixed;
  bottom: max(24px,env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #192236;
  color: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 8px 35px #17202e30;
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 40px);
}
.account {
  color: var(--muted);
  margin-top: 4px;
}
.login-note {
  color: var(--muted);
  margin: 14px 0 0;
}
.loading {
  padding: 25px 0;
  color: var(--muted);
}
/* Compact working layout: detail is disclosed only when an alert is opened. */
.shell {
  max-width: 760px;
  padding: calc(12px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom));
}
.topbar {
  margin-bottom: 12px;
  min-height: 40px;
}
.brand {
  font-size: 25px;
}
.brand-mark {
  width: 27px;
  height: 27px;
  font-size: 21px;
  border-radius: 7px;
  margin-right: 7px;
}
.card {
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
h1,.section-heading h1 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.45px;
}
h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
p {
  margin-bottom: 10px;
}
.section-heading {
  margin: 12px 0 10px;
  gap: 8px;
}
.section-heading h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.section-heading p {
  margin-top: 3px;
}
.primary,.secondary {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 8px;
}
.quiet {
  font-size: 13px;
  min-height: 40px;
  padding: 8px 4px;
}
.actions {
  gap: 8px;
}
.connected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dce9df;
  background: #f5faf6;
  min-height: 40px;
}
.connected .status-label {
  font-size: 13px;
}
.notification-panel:not(.connected) {
  padding: 10px 12px;
}
.notification-panel p {
  margin: 5px 0 8px;
}
.hook-card {
  padding: 11px 12px;
}
.hook-name {
  font-size: 16px;
  margin-bottom: 3px;
}
.hook-url {
  margin-top: 5px;
}
.hook-meta {
  font-size: 12px;
}
.hook-card .arrow {
  font-size: 20px;
}
.back {
  font-size: 14px;
  margin-bottom: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.hook-setup {
  margin: 0 0 12px;
  padding: 0 12px;
  border-top: 1px solid var(--border);
}
.hook-setup>summary {
  padding: 11px 0;
  font-size: 14px;
}
.hook-setup .url-box {
  margin-top: 0;
  font-size: 12px;
  padding: 9px;
}
.steps {
  font-size: 14px;
  margin: 12px 0;
}
.steps li {
  margin: 3px 0;
}
.history-label {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 7px;
}
.event-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  overflow: hidden;
}
.event-row {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e5e9f0;
}
.event-row:last-child {
  border-bottom: 0;
}
.event-summary {
  display: grid;
  grid-template-columns: max-content minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  min-height: 62px;
  color: inherit;
  list-style: none;
  cursor: pointer;
}
.event-summary::-webkit-details-marker {
  display: none;
}
.event-text {
  min-width: 0;
  display: block;
}
.event-title {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-preview {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.event-summary .pill {
  font-size: 11px;
  letter-spacing: .02em;
  padding: 4px 6px;
  min-width: 72px;
  white-space: nowrap;
  text-align: center;
}
.event-summary .time {
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.event-content {
  padding: 0 12px 12px;
}
.event-content .event-body {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  margin: 0 0 7px;
}
.event-content .delivery {
  font-size: 12px;
  line-height: 1.4;
  margin: 4px 0;
}
.event-row[open]>.event-summary {
  background: #f5f7fc;
  margin-bottom: 9px;
}
.event-row.highlight {
  background: #f3f6ff;
  box-shadow: inset 3px 0 var(--blue);
  border-width: 0 0 1px;
}
.raw-payload {
  margin-top: 8px;
  padding-top: 6px;
}
.raw-payload summary {
  font-size: 13px;
}
.raw-payload pre {
  margin: 8px 0 0;
}
.selected-alert:not(:empty) {
  margin-bottom: 14px;
}
.selected-alert>.event-row {
  border: 1px solid var(--border);
  border-radius: 8px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  gap: 10px;
}
.pagination button:disabled {
  cursor: default;
}
.empty-history {
  padding: 18px 12px;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.empty {
  padding: 22px 14px;
}
.empty h2 {
  font-size: 17px;
}
.empty p {
  font-size: 14px;
  margin-bottom: 14px;
}
.intro {
  margin: 24px 0 20px;
}
.intro h1 {
  font-size: 31px;
}
.intro .eyebrow {
  margin-bottom: 8px;
}
.form {
  margin: 10px 0;
}
.account {
  font-size: 12px;
}
.login-note {
  font-size: 12px;
}
.notice {
  padding: 12px;
}
.notice ol {
  padding-left: 18px;
}
@media (min-width:600px) {
  .shell {
    padding: calc(18px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  }
  .topbar {
    margin-bottom: 16px;
  }
  .intro {
    margin-top: 40px;
  }
  .intro h1 {
    font-size: 36px;
  }
  .event-summary {
    padding: 10px 14px;
    grid-template-columns: max-content minmax(0,1fr) auto;
  }
  .event-title {
    font-size: 15px;
  }
  .card {
    padding: 12px;
  }
  .connected {
    padding: 0 12px;
  }
  .hook-setup {
    padding: 0 12px;
  }
}
/* Keep content clear of the iOS status area and use uniform native-free controls. */
html {
  background: #f4f6fa;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top);
  background: #f4f6fa;
  z-index: 10;
  pointer-events: none;
}
button {
  -webkit-appearance: none;
  appearance: none;
}
.connected {
  overflow: hidden;
}
.connected .quiet {
  flex: none;
  border: 0;
  box-shadow: none;
  border-radius: 6px;
}
.event-summary {
  touch-action: pan-y;
  transition: transform .15s ease;
}
.event-row.swipe-ready>.event-summary {
  transform: translateX(-48px);
  background: #eef2f7;
}
.event-row.dismissing {
  opacity: .45;
  pointer-events: none;
}
.dismiss-alert {
  margin-top: 8px;
  color: var(--muted);
}
@media (prefers-reduced-motion:reduce) {
  .event-summary {
    transition: none;
  }
}
