.ads-consent-banner {
  position: fixed;
  z-index: 1000;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(520px, calc(100vw - 24px));
  padding: 8px 10px 8px 14px;
  border: 1px solid #38564e;
  border-radius: 10px;
  background: #102024;
  box-shadow: 0 8px 28px #0008;
  color: #dcebe7;
  font: 12px/1.35 Manrope, system-ui, sans-serif;
}
.ads-consent-copy { min-width: 0; flex: 1 1 auto; }
.ads-consent-copy a { color: #a2dfab; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ads-consent-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ads-consent-actions button {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #5d7970;
  border-radius: 7px;
  background: #162b2d;
  color: #e3f0ea;
  font: 700 12px Manrope, system-ui, sans-serif;
  cursor: pointer;
}
.ads-consent-actions .ads-consent-allow { border-color: #65bf6d; background: #193d2a; color: #b6f4b7; }
.ads-consent-actions button:focus-visible, .ads-consent-copy a:focus-visible,
.ads-consent-settings:focus-visible { outline: 2px solid #9cff9b; outline-offset: 3px; }
.ads-consent-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b5c7ce;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  font: inherit;
}
.ads-consent-settings:hover { color: #65ff79; }
.guide-footer .ads-consent-settings { margin: 0 8px; }

#check-confirm-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px;
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: 0 auto;
  padding: 16px 18px;
  overflow: auto;
  border: 1px solid #38564e;
  border-radius: 14px;
  background: #102024;
  box-shadow: 0 12px 42px #000a;
  color: #e3efeb;
  font: 13px/1.4 Manrope, system-ui, sans-serif;
}
#check-confirm-dialog::backdrop { background: #0007; }
#check-confirm-dialog h2 { margin: 0 0 4px; color: #f4fff7; font-size: 17px; line-height: 1.3; }
#check-confirm-intro { margin: 0 0 12px; color: #b7c9c8; }
.check-confirm-option { display: flex; align-items: flex-start; gap: 10px; margin: 9px 0; cursor: pointer; }
.check-confirm-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #69eb70; }
.check-confirm-option span { flex: 1 1 auto; }
#check-confirm-dialog a { color: #9beaab; text-decoration: underline; text-underline-offset: 2px; }
.check-confirm-ads { margin-top: 12px; padding-top: 10px; border-top: 1px solid #344f4c; color: #c4d5d2; }
.check-confirm-ads > a { display: inline-block; margin-left: 28px; font-size: 12px; }
.check-confirm-ads-status { margin: 12px 0; color: #b7c9c8; }
.check-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.check-confirm-actions button { min-height: 38px; padding: 7px 12px; border: 1px solid #607d70; border-radius: 8px; background: #18302c; color: #ebfff0; font: 700 13px Manrope, system-ui, sans-serif; cursor: pointer; }
.check-confirm-actions button[type="submit"] { border-color: #63d86e; background: #6afb64; color: #06160d; }
#check-confirm-dialog :focus-visible { outline: 2px solid #9cff9b; outline-offset: 2px; }
@media (max-width: 520px) {
  .ads-consent-banner {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    flex-wrap: wrap;
    gap: 5px 10px;
    width: auto;
    padding: 8px 10px;
  }
  .ads-consent-copy { flex: 1 1 100%; }
  .ads-consent-actions { width: 100%; justify-content: flex-end; }
  #check-confirm-dialog { padding: 14px; font-size: 12px; }
}
