.editor-library-placement {
  --elpd-bg: #fbfdff;
  --elpd-surface: #f0f6fa;
  --elpd-ink: #153345;
  --elpd-muted: #526b7c;
  --elpd-line: #cedde6;
  --elpd-accent: #087d96;
  --elpd-selected: #e0f6fb;
  --elpd-focus: #0585a3;
  position: fixed;
  left: var(--elpd-center-left, 50%);
  top: var(--elpd-center-top, 50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: var(--elpd-width, min(560px, calc(100vw - 32px)));
  max-width: calc(100vw - 32px);
  max-height: var(--elpd-max-height, calc(100dvh - 32px));
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--elpd-line);
  border-radius: 18px;
  background: var(--elpd-bg);
  color: var(--elpd-ink);
  box-shadow: 0 24px 80px #001b3540;
  text-align: left;
  box-sizing: border-box;
}
.editor-library-placement.dark {
  --elpd-bg: #0a1724;
  --elpd-surface: #102434;
  --elpd-ink: #e6f2fa;
  --elpd-muted: #a1b9cb;
  --elpd-line: #294659;
  --elpd-accent: #79ddec;
  --elpd-selected: #143749;
  --elpd-focus: #7ce8f4;
}
.editor-library-placement[data-state] { animation: none; }
.editor-library-placement :is(button, summary) { font: inherit; color: inherit; box-sizing: border-box; touch-action: manipulation; }
.editor-library-placement button { cursor: pointer; }
.editor-library-placement button:disabled { cursor: not-allowed; }
.editor-library-placement :is(button, summary):focus-visible { outline: 3px solid var(--elpd-focus); outline-offset: 2px; }
.editor-library-placement svg { width: 18px; height: 18px; flex-shrink: 0; }
.editor-library-placement .elpd-header { display: flex; align-items: flex-start; gap: 12px; flex-shrink: 0; padding: 20px; border-bottom: 1px solid var(--elpd-line); }
.editor-library-placement .elpd-heading { min-width: 0; flex: 1; }
.editor-library-placement .elpd-eyebrow { display: flex; align-items: center; gap: 7px; color: var(--elpd-accent); font-size: 11px; font-weight: 700; }
.editor-library-placement .elpd-eyebrow svg { width: 15px; height: 15px; }
.editor-library-placement .elpd-title { margin: 8px 0 0; font-size: 20px; font-weight: 750; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.editor-library-placement .elpd-description { margin: 8px 0 0; color: var(--elpd-muted); font-size: 12px; line-height: 1.5; }
.editor-library-placement .elpd-close { display: grid; place-items: center; min-width: 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--elpd-line); border-radius: 11px; background: var(--elpd-surface); }
.editor-library-placement .elpd-body { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 18px; }
.editor-library-placement .elpd-body > * + * { margin-top: 16px; }
.editor-library-placement .elpd-section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 9px; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.editor-library-placement .elpd-section-title > span { color: var(--elpd-muted); font-size: 10px; font-weight: 500; }
.editor-library-placement .elpd-choice-list { display: grid; gap: 7px; }
.editor-library-placement .elpd-choice { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 58px; padding: 11px; border: 1px solid var(--elpd-line); border-radius: 11px; background: var(--elpd-bg); text-align: left; transition: border-color 120ms ease, background-color 120ms ease; }
.editor-library-placement .elpd-choice-primary { padding: 13px; background: var(--elpd-surface); }
.editor-library-placement .elpd-choice[aria-pressed="true"] { border-color: var(--elpd-accent); background: var(--elpd-selected); box-shadow: inset 0 0 0 1px var(--elpd-accent); }
.editor-library-placement .elpd-choice-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--elpd-line); border-radius: 9px; color: var(--elpd-accent); }
.editor-library-placement .elpd-choice-copy { display: grid; min-width: 0; gap: 4px; flex: 1; overflow-wrap: anywhere; }
.editor-library-placement .elpd-choice-copy strong { font-size: 12px; font-weight: 700; line-height: 1.35; }
.editor-library-placement .elpd-choice-copy > span { color: var(--elpd-muted); font-size: 11px; line-height: 1.4; }
.editor-library-placement .elpd-choice-copy small { color: var(--elpd-muted); font-size: 10px; line-height: 1.4; }
.editor-library-placement .elpd-choice-check { display: grid; place-items: center; width: 21px; height: 21px; flex-shrink: 0; border: 1px solid var(--elpd-line); border-radius: 50%; color: var(--elpd-accent); }
.editor-library-placement .elpd-choice-check svg { width: 14px; height: 14px; }
.editor-library-placement .elpd-choice[aria-pressed="true"] .elpd-choice-check { border-color: var(--elpd-accent); }
.editor-library-placement .elpd-choice:disabled { opacity: .6; }
.editor-library-placement .elpd-nested { border: 1px solid var(--elpd-line); border-radius: 12px; }
.editor-library-placement .elpd-nested > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 12px; border-radius: 11px; list-style: none; cursor: pointer; }
.editor-library-placement .elpd-nested > summary::-webkit-details-marker { display: none; }
.editor-library-placement .elpd-nested > summary > span { display: grid; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
.editor-library-placement .elpd-nested > summary strong { font-size: 12px; font-weight: 700; }
.editor-library-placement .elpd-nested > summary small { color: var(--elpd-muted); font-size: 11px; }
.editor-library-placement .elpd-nested[open] > summary > svg { transform: rotate(180deg); }
.editor-library-placement .elpd-nested-body { padding: 0 11px 11px; }
.editor-library-placement .elpd-destination-group + .elpd-destination-group { margin-top: 14px; }
.editor-library-placement .elpd-destination-group > h3 { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 7px; font-size: 11px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.editor-library-placement .elpd-destination-group > h3 svg { width: 15px; height: 15px; margin-top: 1px; color: var(--elpd-accent); }
.editor-library-placement .elpd-section-context { margin: 0 0 8px; color: var(--elpd-muted); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.editor-library-placement .elpd-empty { display: grid; justify-items: center; gap: 10px; padding: 18px 8px; text-align: center; }
.editor-library-placement .elpd-empty > svg { color: var(--elpd-accent); }
.editor-library-placement .elpd-empty strong { font-size: 13px; }
.editor-library-placement .elpd-empty p { margin: 0; color: var(--elpd-muted); font-size: 12px; line-height: 1.5; }
.editor-library-placement .elpd-footer { display: grid; flex-shrink: 0; gap: 12px; padding: 14px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--elpd-line); background: var(--elpd-bg); }
.editor-library-placement .elpd-summary { display: grid; gap: 4px; min-width: 0; }
.editor-library-placement .elpd-summary > span { color: var(--elpd-muted); font-size: 10px; }
.editor-library-placement .elpd-summary strong { font-size: 11px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; max-height: 3em; overflow: hidden; }
.editor-library-placement .elpd-actions { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr); gap: 9px; }
.editor-library-placement .elpd-actions > button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--elpd-line); border-radius: 10px; font-size: 12px; font-weight: 700; }
.editor-library-placement .elpd-cancel { background: var(--elpd-surface); }
.editor-library-placement .elpd-confirm { background: #b1edf4; border-color: #75cad8 !important; color: #103747 !important; }
.editor-library-placement .elpd-confirm:disabled { background: var(--elpd-surface); border-color: var(--elpd-line) !important; color: var(--elpd-muted) !important; opacity: .7; }
@media (hover: hover) and (pointer: fine) {
  .editor-library-placement :is(.elpd-choice, .elpd-close, .elpd-cancel, .elpd-nested > summary):hover { border-color: var(--elpd-accent); background: var(--elpd-selected); }
  .editor-library-placement .elpd-confirm:not(:disabled):hover { background: #8ee2ef; }
}
@media (max-width: 767px) {
  .editor-library-placement {
    left: calc(var(--elpd-viewport-left, 0px) + 8px);
    top: auto;
    bottom: var(--elpd-mobile-bottom, 8px);
    width: calc(var(--elpd-viewport-width, 100vw) - 16px);
    max-width: none;
    max-height: min(78dvh, calc(var(--elpd-viewport-height, 100dvh) - 16px));
    transform: none;
    translate: none;
    border-radius: 16px;
  }
  .editor-library-placement .elpd-header { padding: 14px; gap: 8px; }
  .editor-library-placement .elpd-title { font-size: 17px; }
  .editor-library-placement .elpd-body { padding: 13px; }
  .editor-library-placement .elpd-footer { padding: 12px 13px max(12px, env(safe-area-inset-bottom)); gap: 9px; }
}
@media (max-height: 460px) {
  .editor-library-placement { max-height: calc(var(--elpd-viewport-height, 100dvh) - 16px); }
  .editor-library-placement .elpd-header { padding: 8px 12px; align-items: center; }
  .editor-library-placement :is(.elpd-description, .elpd-eyebrow) { display: none; }
  .editor-library-placement .elpd-title { margin: 0; font-size: 16px; }
  .editor-library-placement .elpd-body { padding: 10px 12px; }
  .editor-library-placement .elpd-footer { padding: 8px 12px; gap: 7px; }
  .editor-library-placement .elpd-summary > span { display: none; }
}
.editor-library-placement[data-compact-height="true"] { max-height: calc(var(--elpd-viewport-height, 100dvh) - 16px); }
.editor-library-placement[data-compact-height="true"] .elpd-header { padding: 8px 12px; align-items: center; }
.editor-library-placement[data-compact-height="true"] :is(.elpd-description, .elpd-eyebrow) { display: none; }
.editor-library-placement[data-compact-height="true"] .elpd-title { margin: 0; font-size: 16px; }
.editor-library-placement[data-compact-height="true"] .elpd-footer { padding: 8px 12px; gap: 7px; }
.editor-library-placement[data-compact-height="true"] .elpd-summary > span { display: none; }
@media (prefers-reduced-motion: reduce) {
  .editor-library-placement, .editor-library-placement * { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .editor-library-placement { --elpd-bg: Canvas; --elpd-surface: Canvas; --elpd-ink: CanvasText; --elpd-muted: CanvasText; --elpd-line: ButtonText; --elpd-accent: Highlight; --elpd-selected: Canvas; --elpd-focus: Highlight; }
  .editor-library-placement .elpd-confirm { background: Highlight; color: HighlightText !important; }
}
