#lc-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, calc(100vw - 32px));
  max-width: 600px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: none;
  border-radius: 18px;
  background: var(--lc-bg, #fff);
  color: var(--lc-text, #18251f);
  box-shadow: 0 24px 100px #0004;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  text-align: start;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#lc-dialog::backdrop { background: rgb(0 0 0 / 55%); }
#lc-dialog, #lc-dialog *, #lc-dialog *::before, #lc-dialog *::after { box-sizing: border-box; }
html:has(#lc-dialog[open]) { overflow: hidden; }
#lc-dialog .lc-content { min-width: 0; padding: 32px; overflow-wrap: anywhere; }
#lc-dialog h2 { margin: 0 0 16px; font-size: 28px; font-weight: 700; line-height: 1.25; color: inherit; }
#lc-dialog p { margin: 0 0 16px; color: inherit; font: inherit; }
#lc-dialog a, .lc-form-notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
#lc-dialog .lc-policy-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 22px; font-size: 14px; }
#lc-dialog details { margin: 20px 0; border-top: 1px solid color-mix(in srgb, var(--lc-text) 20%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--lc-text) 20%, transparent); }
#lc-dialog summary { cursor: pointer; padding: 14px 0; color: inherit; font-weight: 600; }
#lc-dialog .lc-category { padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--lc-text) 15%, transparent); }
#lc-dialog .lc-category p { font-size: 14px; margin: 6px 0 0; }
#lc-dialog label { display: flex; gap: 10px; align-items: center; cursor: pointer; color: inherit; }
#lc-dialog input[type=checkbox] { appearance: auto; width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: var(--lc-accent); }
#lc-dialog .lc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
#lc-dialog .lc-button { display: inline-flex; align-items: center; justify-content: center; min-width: 0; max-width: 100%; min-height: 48px; padding: 12px 18px; border: 2px solid var(--lc-accent); border-radius: 10px; background: var(--lc-accent); color: var(--lc-button-text); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; text-align: center; text-transform: none; letter-spacing: normal; cursor: pointer; white-space: normal; box-shadow: none; }
#lc-dialog .lc-button:hover { filter: brightness(.94); }
#lc-dialog .lc-save { width: 100%; margin-bottom: 16px; }
#lc-dialog .lc-close { display: block; margin: 16px auto 0; padding: 6px 14px; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
#lc-dialog [hidden], #lc-reopen[hidden] { display: none !important; }
#lc-dialog .lc-error { border-left: 3px solid currentColor; padding-left: 12px; font-size: 14px; }
#lc-dialog :focus-visible, #lc-reopen:focus-visible, .lc-settings-link:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
#lc-reopen { position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); z-index: 99999; max-width: calc(100vw - 32px); padding: 10px 16px; border: 1px solid var(--lc-accent); border-radius: 24px; background: var(--lc-bg); color: var(--lc-text); box-shadow: 0 3px 18px #0002; font: inherit; font-size: 13px; line-height: 1.4; cursor: pointer; }
.lc-settings-link { padding: 4px; background: transparent; color: inherit; border: none; font: inherit; text-decoration: underline; cursor: pointer; }
.lc-form-notice { font: inherit; font-size: 13px; line-height: 1.5; margin: 12px 0; flex-basis: 100%; width: 100%; }
@media (max-width: 480px) {
  #lc-dialog .lc-content { padding: 24px 20px; }
  #lc-dialog h2 { font-size: 23px; }
  #lc-dialog .lc-actions { grid-template-columns: 1fr; }
}
