#source-preferences {
  position: fixed;
  inset: auto 0 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px max(24px, calc((100vw - 1180px) / 2)) max(22px, env(safe-area-inset-bottom));
  max-height: 55dvh;
  overflow: auto;
  border-top: 4px solid #ff5a2c;
  background: #111f2e;
  color: #fff;
  box-shadow: 0 -8px 32px rgb(9 17 27 / 25%);
}
#source-preferences[hidden] { display: none; }
#source-preferences h2 {
  margin: 0 0 6px;
  color: inherit;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
}
#source-preferences p {
  max-width: 660px;
  margin: 0;
  color: inherit;
  font-size: 15px;
  line-height: 1.55;
}
#source-preferences a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.source-preferences-actions { display: flex; flex-shrink: 0; gap: 12px; }
.source-preferences-actions button {
  min-width: 120px;
  min-height: 48px;
  padding: 9px 18px;
  border: 1px solid #c3cbd3;
  border-radius: 6px;
  background: #1e3143;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.source-preferences-actions button:hover { background: #2a4258; }
.source-preferences-actions [data-source-choice="accepted"] {
  background: #70e69b;
  border-color: #70e69b;
  color: #102b1d;
}
.source-preferences-actions [data-source-choice="accepted"]:hover {
  background: #8aedac;
  border-color: #8aedac;
}
#source-preferences :focus-visible { outline: 3px solid #ffb398; outline-offset: 3px; }

@media (max-width: 760px) {
  #source-preferences {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 20px max(16px, env(safe-area-inset-bottom));
  }
  #source-preferences h2 { font-size: 18px; }
  #source-preferences p { font-size: 14px; }
  .source-preferences-actions button { flex: 1; min-width: 0; }
}

.traffic-source-privacy {
  max-width: 680px;
  margin: 48px auto;
  padding: 0 24px;
  line-height: 1.6;
}
.traffic-source-privacy :focus-visible { outline: 3px solid #b74323; outline-offset: 3px; }
