.signup-consent { margin: 0.65rem 0 0.85rem; text-align: left; overflow-wrap: anywhere; }
.signup-consent[hidden] { display: none; }
.consent-title { font-size: 1.1rem; line-height: 1.5; margin: 0 0 0.65rem; }
.consent-summary { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.65; }
.consent-controls { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; min-height: 44px; border-bottom: 1px solid var(--border-color); }
.consent-action { padding: 0.5rem 0.4rem; color: var(--secondary-color); background: transparent; border: 0; border-radius: 6px; font-size: 0.875rem; cursor: pointer; white-space: nowrap; min-height: 44px; }
.consent-hint { margin: 0.1rem 0 0.35rem; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.45; }
.consent-error { margin: 0.35rem 0; color: var(--red-text); font-size: 0.8rem; }
.consent-required { padding: 0.3rem 0; }
.consent-optional { margin-top: 0.3rem; padding: 0.6rem 0.65rem 0.3rem; border-radius: 8px; background: var(--card-bg-2); }
.consent-group-title { margin: 0; color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; line-height: 1.4; }
.consent-item { display: flex; align-items: center; gap: 0.3rem; min-height: 36px; }
.consent-label { display: flex; align-items: center; gap: 0.45rem; min-height: 36px; flex: 1; min-width: 0; font-size: 0.875rem; line-height: 1.35; cursor: pointer; }
.consent-label input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--primary-color); }
.consent-label:has(input:disabled) { color: var(--text-muted); cursor: default; }
.consent-all { min-height: 44px; font-size: 0.875rem; font-weight: 700; }
.consent-view { flex-shrink: 0; min-width: 36px; min-height: 36px; padding: 0.2rem 0; background: none; border: 0; color: var(--text-secondary); font-size: 0.8rem; cursor: pointer; }
.consent-optional .consent-item, .consent-optional .consent-label, .consent-optional .consent-view { min-height: 32px; }
.consent-optional .consent-label, .consent-optional .consent-view { font-size: 0.78rem; }
.consent-optional .consent-label input { width: 16px; height: 16px; }
.consent-optional .consent-channel-item, .consent-optional .consent-channel-item .consent-label { min-height: 44px; }
.consent-channel-summary { display: block; margin-top: 1px; color: var(--text-secondary); font-size: 0.69rem; line-height: 1.35; }
.consent-channel-section + .consent-channel-section { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border-color); }
.consent-channel-section > .consent-label { margin-bottom: 0.75rem; font-weight: 700; }
.consent-channel-link { display: inline-block; margin-top: 0.85rem; }
.consent-view:hover, .consent-action:hover { color: var(--primary-color); }
.consent-status { font-size: 0.86rem; line-height: 1.65; color: var(--text-secondary); }
.consent-receipt { padding-left: 1.15rem; font-size: 0.84rem; line-height: 1.7; }
.consent-receipt-view { display: block; margin-bottom: 0.8rem; }
.consent-dialog { width: min(560px, calc(100vw - 32px)); max-height: min(86dvh, 780px); padding: 0; border: 1px solid var(--border-color); border-radius: 16px; background: var(--card-bg); color: var(--text-primary); overflow: hidden; }
.consent-dialog[open] { display: flex; flex-direction: column; }
.consent-dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.consent-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.consent-dialog-header h2 { margin: 0; font-size: 1rem; line-height: 1.5; }
.consent-dialog-body { padding: 1.2rem 1.25rem; overflow-y: auto; overscroll-behavior: contain; font-size: 0.88rem; line-height: 1.75; }
.consent-dialog-body dl { margin: 0; }
.consent-dialog-body dt { font-weight: 700; margin-top: 1.1rem; }
.consent-dialog-body dt:first-child { margin-top: 0; }
.consent-dialog-body dd { white-space: pre-line; margin: 0.3rem 0 0; color: var(--text-secondary); overflow-wrap: anywhere; }
.consent-dialog a { color: var(--secondary-color); text-decoration: underline; }
.consent-page-link { padding: 0.9rem 1.25rem; border-top: 1px solid var(--border-color); flex-shrink: 0; font-size: 0.84rem; }
.auth-input:disabled { opacity: 0.55; }
@media (max-width: 480px) {
    .auth-wrap:has(.signup-consent) { margin: 1rem auto; padding: 1.2rem; }
    .consent-dialog { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}
