/* Notification settings follow the compact install-page design. */
.notification-page {
  --notification-text: light-dark(#202124, #e8eaed);
  --notification-muted: light-dark(#626872, #a3a7af);
  --notification-surface: light-dark(#ffffff, #202124);
  --notification-border: light-dark(#2021241c, #ffffff16);
  --notification-hover: light-dark(#20212405, #ffffff05);
  box-sizing: border-box;
  width: min(100%, 872px);
  margin: 0 auto;
  padding: 32px 28px calc(28px + env(safe-area-inset-bottom));
  color: var(--notification-text);
  font-family: 'Outfit-Regular', sans-serif;
  font-size: 13px;
  line-height: 1.6;
}
.notification-page *,
.notification-page *::before,
.notification-page *::after { box-sizing: border-box; }
.notification-page :is(h1, h2, p, dl, dd) { margin: 0; }
.notification-page svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-heading h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.6px;
}
.notification-heading > p { margin-top: 6px; color: var(--notification-muted); font-size: 14px; }
.notification-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--notification-border);
  border-radius: 8px;
  background: var(--notification-surface);
}
.notification-card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.notification-card-header h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 22px; font-weight: 600; }
.notification-card-header h2 svg { color: var(--notification-muted); }
.notification-state {
  padding: 3px 7px;
  border: 1px solid var(--notification-border);
  border-radius: 4px;
  color: var(--notification-muted);
  font-size: 11px;
  line-height: 18px;
}
.notification-state[data-push-state="on"] { color: light-dark(#17653a, #91c6a6); }
.notification-state[data-push-state="error"] { color: light-dark(#9a4815, #dfb28c); }
.notification-page .notification-description { margin-top: 12px; color: var(--notification-muted); font-size: 13px; line-height: 21px; }
.notification-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.notification-actions :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: light-dark(#ffffff, #202124);
  background: light-dark(#202124, #e8eaed);
  font: inherit;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.notification-actions :is(button, a):hover { opacity: 0.88; }
.notification-actions button:disabled { opacity: 0.5; cursor: default; }
.notification-actions :is(button, a)[hidden] { display: none; }
.notification-page .notification-status { margin-top: 10px; color: var(--notification-muted); font-size: 12px; line-height: 19px; overflow-wrap: anywhere; }
.notification-status:empty { display: none; }

.notification-details { margin-top: 26px; }
.notification-details h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.notification-details dl { margin-top: 10px; }
.notification-details dl > div { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 16px; padding: 11px 0; }
.notification-details dt { font-size: 13px; line-height: 21px; font-weight: 500; }
.notification-details dd { color: var(--notification-muted); font-size: 13px; line-height: 21px; }

.notification-example { margin-top: 14px; border-top: 1px solid var(--notification-border); border-bottom: 1px solid var(--notification-border); }
.notification-example summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 2px;
  color: var(--notification-muted);
  font-size: 12px;
  list-style: none;
  cursor: pointer;
}
.notification-example summary::-webkit-details-marker { display: none; }
.notification-example summary::marker { content: ''; }
.notification-example summary:hover { color: var(--notification-text); }
.notification-example summary svg { width: 14px; height: 14px; }
.notification-example[open] summary svg { transform: rotate(180deg); }
.notification-example-content { padding: 4px 0 16px; }
.notification-preview { width: min(100%, 360px); padding: 14px; border: 1px solid var(--notification-border); border-radius: 6px; background: var(--notification-surface); }
.notification-preview-app { display: flex; align-items: center; gap: 7px; color: var(--notification-muted); font-size: 11px; line-height: 18px; }
.notification-preview-app img { width: 18px; height: 18px; object-fit: contain; }
.notification-preview-app > span:last-child { margin-left: auto; font-size: 10px; }
.notification-page .notification-preview-title { margin-top: 10px; font-size: 13px; font-weight: 500; line-height: 20px; }
.notification-page .notification-preview-message { margin-top: 3px; color: var(--notification-muted); font-size: 12px; line-height: 18px; }
.notification-page .notification-preview-caption { margin-top: 8px; color: var(--notification-muted); font-size: 11px; line-height: 18px; }

.notification-install-note { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 16px 0; }
.notification-install-note > svg { color: var(--notification-muted); margin-left: 2px; }
.notification-install-note > div { flex: 1; min-width: 0; }
.notification-install-note h2 { font-size: 13px; line-height: 20px; font-weight: 500; }
.notification-install-note p { margin-top: 2px; color: var(--notification-muted); font-size: 12px; line-height: 18px; }
.notification-install-note a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--notification-text); font-size: 12px; text-decoration: none; }
.notification-install-note a:hover { text-decoration: underline; }
.notification-install-note a svg { width: 16px; height: 16px; }
.notification-page :is(a, button, summary):focus-visible { outline: 2px solid #f16f01; outline-offset: 3px; }
.notification-page :is(button, summary) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

@media (max-width: 600px) {
  .notification-page { padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); }
  .notification-heading h1 { font-size: 25px; }
  .notification-heading > p { font-size: 13px; }
  .notification-card { margin-top: 18px; padding: 16px; }
  .notification-card-header h2 { font-size: 13px; }
  .notification-actions :is(button, a) { min-height: 42px; }
  .notification-details { margin-top: 24px; }
  .notification-details dl > div { grid-template-columns: 1fr; gap: 3px; padding: 10px 0; }
  .notification-install-note { flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
  .notification-install-note > div { flex-basis: calc(100% - 32px); }
  .notification-install-note a { min-height: 44px; margin-left: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .notification-actions :is(button, a) { transition: opacity 120ms ease; }
}
