.analytics-consent {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px 24px;
  align-items:center;
  margin:24px 0;
  padding:16px 20px;
  background:var(--soft-surface);
  border:1px solid var(--warm-line);
  border-radius:14px;
}
.analytics-consent h2 {
  font-size:clamp(1.2rem,2.4vw,1.45rem);
  line-height:1.15;
}
.analytics-consent p,.analytics-privacy p {
  margin-top:6px;
  color:var(--muted);
  font-size:.94rem;
  line-height:1.5;
}
.analytics-actions {display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.analytics-actions button {min-height:44px;white-space:normal}
.analytics-privacy {padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
.analytics-privacy h3 {font-size:1.18rem}
.analytics-privacy .secondary {margin-top:8px}

dialog.feedback-dialog {
  width:min(530px,calc(100% - 24px));
  max-width:none;
  padding:clamp(17px,5vw,30px);
  border:1px solid var(--warm-line);
  border-radius:18px;
  color:var(--ink);
  background:#fffaf4;
  text-align:left;
}
.feedback-dialog::backdrop {background:#18273f83}
.feedback-dialog .feedback-context {
  font-size:.86rem;
  font-weight:700;
  color:var(--muted);
  margin:0 0 5px;
}
.feedback-dialog h2 {margin:0;font-size:clamp(1.7rem,6vw,2.3rem);line-height:1.05}
.feedback-form {display:grid;gap:14px;margin-top:20px}
.feedback-options {min-width:0;border:0;display:grid;gap:6px;padding:0;margin:0}
.feedback-options legend,.feedback-reason {font-weight:700;font-size:.92rem}
.feedback-options legend {margin-bottom:6px}
.feedback-option {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:7px 11px;
  background:white;
  border:1px solid var(--control-border);
  border-radius:8px;
  cursor:pointer;
}
.feedback-option:has(input:checked) {background:#ffdfbd;border-color:var(--ink)}
.feedback-option:has(input:focus-visible) {outline:3px solid var(--focus);outline-offset:2px}
.feedback-option input {width:17px;height:17px;margin:0;accent-color:var(--ink)}
.feedback-reason {display:grid;gap:5px}
.feedback-reason select {
  width:100%;
  min-height:44px;
  padding:7px 11px;
  border:1px solid var(--control-border);
  border-radius:8px;
  color:var(--ink);
  background:white;
  font-size:1rem;
}
.feedback-dialog .analytics-status {margin:0;color:var(--muted);font-size:.9rem}
.feedback-dialog .analytics-status:empty {display:none}
.feedback-dialog .analytics-actions {justify-content:flex-end}
@media(max-width:720px) {
  .analytics-consent {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:360px) {
  .analytics-consent {padding-inline:13px}
  .feedback-dialog .analytics-actions button {padding-inline:10px}
}
