.web-push-section [hidden] {
  display: none !important;
}

.web-push-section {
  padding-block: clamp(48px, 7vw, 88px);
}

.web-push-hero {
  padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 68px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.web-push-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
}

.web-push-hero p:last-child {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.web-push-card {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(125, 211, 252, .24);
  border-radius: 24px;
  background: var(--surface);
}

.web-push-heading h2 {
  margin-top: 8px;
}

.web-push-heading > :last-child {
  color: var(--muted);
}

.web-push-content {
  max-width: 65ch;
}

.web-push-content > :first-child {
  margin-top: 0;
}

.web-push-status {
  display: block;
  margin-bottom: 1em;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.web-push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.web-push-copy-fallback {
  margin-top: 1rem;
}

.web-push-copy-fallback input {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.web-push-copy-note,
.web-push-copy-feedback {
  display: block;
  margin-top: .75rem;
}

.web-push-actions button,
.web-push-recovery button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: #071321;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.web-push-actions button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.web-push-consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 18px;
}

.web-push-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.web-push-recovery {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 0;
  border: 0;
}

.web-push-recovery legend {
  margin-bottom: 14px;
  padding: 0;
  color: var(--text);
  font-weight: 700;
}

.web-push-recovery label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.web-push-recovery input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, .42);
  border-radius: 8px;
  color: var(--text);
  background: #0b1220;
  font: inherit;
}

.web-push-actions button:focus-visible,
.web-push-recovery button:focus-visible,
.web-push-recovery input:focus-visible,
.web-push-consent input:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.web-push-contact {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .94rem;
}

.web-push-privacy-link {
  margin-bottom: 0;
}

.web-push-install-help {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
}

.web-push-install-help summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.web-push-install-help ol {
  margin-bottom: 0;
  padding-left: 22px;
  color: var(--muted);
}

.web-push-guidance {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.web-push-guidance-grid {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 80px);
}

.web-push-guidance h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.web-push-guidance-grid > div:last-child {
  color: var(--muted);
}

.web-push-guidance-grid strong,
.web-push-guidance-grid a {
  color: var(--text);
}

.web-push-privacy-card {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface-soft);
}

.web-push-privacy-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.web-push-privacy-heading > :last-child,
.web-push-privacy-content p {
  color: var(--muted);
}

.web-push-privacy-content {
  max-width: 72ch;
}

.web-push-privacy-content h2 {
  margin: 28px 0 8px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.web-push-privacy-content > :first-child {
  margin-top: 0;
}

.web-push-privacy-content code {
  color: var(--text);
}

.web-push-privacy-status {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: rgba(125, 211, 252, .06);
}

.web-push-privacy-status strong {
  color: var(--text);
}

@media (max-width: 768px) {
  .web-push-card,
  .web-push-privacy-card,
  .web-push-guidance-grid {
    grid-template-columns: 1fr;
  }
}

@media (forced-colors: active) {
  .web-push-card,
  .web-push-privacy-card,
  .web-push-actions button,
  .web-push-recovery button,
  .web-push-recovery input {
    border: 1px solid CanvasText;
  }
}
