.consents { display: grid; gap: 11px; }
.consents legend { padding-bottom: 5px; }
.consent-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; }
.consent-link-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 8px; }
.consent-link-line a { font-weight: 650; min-height: 36px; padding-block: 5px; }
.consent-state { font-size: .8rem; color: var(--muted); }
.consent-row .check { margin-top: 5px; }
.consent-row .check:has(input:disabled) { color: var(--muted); }
.consent-feedback, .consent-footer [role="status"] { color: var(--muted); font-size: .875rem; }
.consent-feedback:empty, .consent-footer [role="status"]:empty, .consent-dialog:not([open]) { display: none; }
.consent-dialog[open] {
  position: fixed; inset: 0; display: flex; flex-direction: column; margin: auto;
  width: min(34rem, calc(100% - 24px)); height: fit-content; max-width: none;
  max-height: calc(100vh - 30px); max-height: calc(100dvh - 30px);
  padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink);
}
.consent-dialog::backdrop { background: rgba(14,31,57,.65); }
html:has(.consent-dialog[open]) { overflow: hidden; }
.consent-header, .consent-footer { flex: none; padding: 14px 18px; }
.consent-header { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.consent-dialog .consent-header h2 { margin: 0; font-size: 1.2rem; }
.consent-close { min-height: 44px; padding: 4px 8px; border: none; color: var(--blue); background: none; }
.consent-dialog .consent-instruction { margin: 0 18px 9px; color: var(--muted); font-size: .875rem; }
.consent-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 14px 18px;
  border-block: 1px solid var(--line); }
.consent-scroll section + section { margin-top: 1em; }
.consent-scroll h3 { font-size: 1rem; margin-bottom: .3em; }
.consent-scroll p { white-space: pre-line; line-height: 1.7; }
.consent-end { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.consent-footer { padding-bottom: max(14px,env(safe-area-inset-bottom)); }
.consent-footer [role="status"] { margin: 0 0 8px; }
.consent-footer .btn { width: 100%; }
