.measurement-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.measurement-links button { min-height: 44px; max-width: 100%; min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--muted); font: inherit; text-align: left; white-space: normal; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; }
.measurement-links button:hover { color: var(--orange); }
.analytics-choice { position: fixed; z-index: 20; inset: auto 16px 16px; max-width: 1120px; margin-inline: auto; padding: 20px 24px; background: var(--panel); border: 2px solid var(--orange); box-shadow: 0 6px 30px #0009; display: flex; align-items: center; gap: 24px; }
.analytics-choice > div { min-width: 0; }
.analytics-choice p { margin-top: 8px; color: var(--muted); font-size: var(--text-caption); line-height: 1.5; }
.measure-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.measure-actions button { min-height: 44px; }
.measure-actions .button { white-space: normal; min-height: 44px; }
.analytics-choice .measure-actions { flex: 0 0 340px; }
.measure-dialog { padding: 0; width: min(680px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: hidden; color: var(--ink); border: 1px solid var(--border); background: var(--bg); }
.measure-dialog[open] { display: flex; flex-direction: column; }
.measure-dialog::backdrop { background: #08070dcc; }
.measure-close-bar { display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--panel); color: var(--faint); font-size: var(--text-caption); }
.measure-close-bar .icon-button { width: 44px; height: 44px; font-size: 26px; }
.measure-body { padding: 24px; overflow-y: auto; min-height: 0; }
.measure-body :is(h2,h3,p,label,button) { overflow-wrap: anywhere; }
.measure-body h2 { font: 700 var(--text-lead)/1.6 var(--mono); margin-bottom: 20px; }
.measure-body h3 { font: 700 var(--text-body)/1.6 var(--mono); margin: 24px 0 12px; }
.measure-body > p { color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.measure-body .field { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.measure-body textarea { resize: vertical; min-height: 120px; }
.measure-body input, .measure-body textarea { max-width: 100%; }
.measure-status { padding: 14px; background: var(--panel); border-left: 3px solid var(--orange); }
.feedback-types { border: 1px solid var(--border); padding: 16px; min-width: 0; }
.feedback-types legend { padding-inline: 8px; color: var(--muted); }
.feedback-types label { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); }
.feedback-types input[type=radio] { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--orange); }
.feedback-inbox { display: grid; gap: 20px; }
.feedback-measurement-status { display: block; overflow-wrap: anywhere; }
.feedback-measurement-status a { min-height: 44px; max-width: 100%; }
.feedback-message { padding: 24px; background: var(--panel); border: 1px solid var(--border); min-width: 0; }
.feedback-message > p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); line-height: 1.6; margin-block: 16px; }
.feedback-message header { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.feedback-message code, .feedback-message a { overflow-wrap: anywhere; }
.feedback-message a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 700px) {
  .analytics-choice { display: block; inset-inline: 10px; padding: 16px; max-height: calc(100dvh - 20px); overflow-y: auto; }
  .analytics-choice .measure-actions { margin-top: 16px; }
  .measure-body { padding: 20px; }
  .measure-actions { align-items: stretch; }
  .measure-actions > .button { flex: 1 1 150px; }
}
