/* measurement-choices.css — "Your Privacy Choices" panel (unified privacy pass, Task A2).
   Inlined into a <style> tag by build-kit-panel.sh. Zero external dependencies,
   no @import, no web fonts. Kept intentionally small (soft budget: whole
   component, JS+CSS, minified, <= 6 KB — checked informally, not gated). */

.mc-overlay {
  --mc-fg: #1a1f27;
  --mc-muted: #5b6770;
  --mc-accent: #14337B;
  --mc-border: #d7dbe0;
  --mc-bg: #ffffff;
}

.mc-dialog {
  max-width: 420px;
  width: calc(100vw - 2rem);
  padding: 1.5rem;
  border: none;
  border-radius: 12px;
  color: var(--mc-fg);
  background: var(--mc-bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mc-dialog::backdrop {
  background: rgba(10, 14, 20, 0.55);
}

.mc-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.mc-copy {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--mc-muted);
}

.mc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--mc-border);
  border-bottom: 1px solid var(--mc-border);
}

.mc-switch-label {
  font-size: 0.9rem;
  line-height: 1.4;
}

.mc-switch {
  flex: 0 0 auto;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.mc-switch:focus-visible {
  outline: 2px solid var(--mc-accent);
  outline-offset: 3px;
  border-radius: 999px;
}

.mc-switch[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.mc-switch-track {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #c7cdd3;
  position: relative;
  transition: background-color 0.15s ease;
}

.mc-switch.is-on .mc-switch-track {
  background: var(--mc-accent);
}

.mc-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.mc-switch.is-on .mc-switch-thumb {
  transform: translateX(20px);
}

.mc-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--mc-muted);
}

.mc-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.mc-done {
  border: 1px solid var(--mc-accent);
  background: var(--mc-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
}

.mc-done:focus-visible {
  outline: 2px solid var(--mc-fg);
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .mc-overlay {
    --mc-fg: #f0f2f5;
    --mc-muted: #b7c0c9;
    --mc-border: #333a44;
    --mc-bg: #1c2027;
  }
}
