#thj-analytics-controls {
  padding: 16px;
  text-align: center;
  font-family: var(--sans, "Instrument Sans", Arial, sans-serif);
}
#thj-analytics-controls button {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--muted, #69665f);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
#thj-analytics-choice {
  position: fixed;
  z-index: 50;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  width: 420px;
  max-width: calc(100vw - 48px);
  max-height: calc(100svh - 48px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  padding: 16px 20px 20px;
  border: 1px solid var(--rule, #d6d1c7);
  border-radius: 14px;
  background: var(--bone, #f5f2ea);
  color: var(--ink, #171715);
  box-shadow: 0 8px 32px rgb(23 23 21 / 12%), 0 1px 4px rgb(23 23 21 / 5%);
  font-family: var(--sans, "Instrument Sans", Arial, sans-serif);
  font-size: 13px;
  line-height: 1.55;
}
#thj-analytics-choice[hidden],
#thj-analytics-choice [hidden] { display: none !important; }
#thj-analytics-choice .thj-choice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
}
#thj-analytics-choice h2 {
  margin: 0;
  font-family: var(--serif, Newsreader, Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.015em;
}
#thj-analytics-choice p { margin: 0; }
#thj-analytics-choice #thj-analytics-description { color: var(--muted, #69665f); }
#thj-analytics-choice button {
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--ink, #171715);
  border-radius: 7px;
  background: transparent;
  color: var(--ink, #171715);
  font: 500 13px/1.4 var(--sans, "Instrument Sans", Arial, sans-serif);
  cursor: pointer;
}
#thj-analytics-choice [data-thj-analytics-preferences] {
  flex-shrink: 0;
  padding: 10px 0 10px 6px;
  border: 0;
  color: var(--muted, #69665f);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#thj-analytics-choice .thj-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
#thj-analytics-choice .thj-choice-actions button {
  width: 100%;
  background: var(--paper, #faf8f2);
}
#thj-analytics-choice .thj-choice-actions button:hover {
  background: var(--rule, #e9e5db);
}
#thj-analytics-preferences {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule, #d6d1c7);
  font-size: 12px;
}
#thj-analytics-preferences [role="status"] { margin: 8px 0; }
#thj-analytics-choice a { color: inherit; text-underline-offset: 3px; }
#thj-analytics-choice button:focus-visible,
#thj-analytics-choice a:focus-visible,
#thj-analytics-controls button:focus-visible {
  outline: 2px solid var(--red, #a52b29);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  #thj-analytics-choice {
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    max-height: calc(100svh - 28px - env(safe-area-inset-bottom, 0px));
    padding: 12px 16px 16px;
  }
  #thj-analytics-choice h2 { font-size: 21px; }
  #thj-analytics-choice .thj-choice-header { gap: 8px; }
  #thj-analytics-choice .thj-choice-actions { margin-top: 12px; }
}
