#notification-patcher {
  margin: 2rem 0;
}
#notification-patcher label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}
#notification-patcher textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  font: 13px/1.5 monospace;
  padding: 12px;
  border: 1px solid #888;
  border-radius: 6px;
  resize: vertical;
  background: #fff;
  color: #111;
}
.patch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
#notification-patcher button {
  padding: 10px 14px;
  border: 1px solid #111;
  border-radius: 5px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
}
#notification-patcher button[type='submit'] {
  background: #111;
  color: #fff;
}
#notification-patcher button:disabled {
  opacity: 0.45;
  cursor: default;
}
#notification-patcher pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 32rem;
  overflow: auto;
}
#notification-patcher details {
  margin-top: 20px;
}
#notification-patcher :focus-visible {
  outline: 3px solid #2674be;
  outline-offset: 3px;
}

/* Notification guide only; other help pages keep their existing layout. */
.patch-page {
  max-width: 1120px;
  padding: 40px 24px;
  overflow-wrap: anywhere;
}
.patch-intro {
  max-width: 780px;
  font-size: 18px;
}
.patch-privacy,
.patch-screenshot-note {
  color: #56665d;
  font-size: 14px;
}
.patch-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  color: var(--ink);
}
.patch-benefits li {
  margin: 0;
}
.patch-step {
  padding: 28px;
  margin: 24px 0;
}
.patch-step > p {
  max-width: 900px;
}
.patch-path {
  padding: 14px 18px;
  background: #eff5f1;
  border-radius: 8px;
  font-weight: 650;
}
.patch-warning {
  border-left: 4px solid #b47d14;
  padding: 14px 18px;
  background: #fff8e8;
  border-radius: 0 8px 8px 0;
}
.patch-page .instruction-diagram {
  grid-template-columns: minmax(0, 1fr);
}
.patch-page .image-callouts {
  grid-template-columns: minmax(0, 1fr);
}
.patch-page .instruction-figure {
  margin: 24px 0;
}
.patch-body-frame {
  stroke: #cb202e;
  stroke-width: 4;
  fill: none;
}
.patch-help {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.patch-help summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 650;
}
.patch-help h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}
#patch-capabilities {
  list-style: none;
  padding: 0;
}
#patch-capabilities:empty {
  display: none;
}
#notification-patcher button {
  min-height: 44px;
  max-width: 100%;
}
#notification-patcher #patch-copy {
  background: #185c48;
  color: white;
  border-color: #185c48;
}
#install-5:has(#patch-copy:disabled) label,
#install-5:has(#patch-copy:disabled) textarea {
  display: none;
}
body[data-help-page='notification-patcher'] .diagram-modal .shot {
  min-width: 0;
}
body[data-help-page='notification-patcher'] .diagram-modal .shot-viewport {
  overflow: visible;
}
@media (min-width: 1000px) {
  .patch-page .instruction-diagram {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
  }
  .patch-page .image-callouts {
    grid-column: 1;
    grid-row: 1;
  }
  .patch-page .shot-viewport {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 600px) {
  .patch-page {
    padding: 28px 14px;
  }
  .patch-step {
    padding: 20px 14px;
  }
  .patch-page .instruction-diagram {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .patch-page .image-callouts {
    order: -1;
  }
  .patch-page .instruction-figure {
    padding: 8px;
  }
  .patch-page h2 {
    align-items: flex-start;
  }
  .patch-benefits {
    display: grid;
    gap: 8px;
  }
  .patch-path,
  .patch-warning {
    padding: 12px;
  }
}
