.bj-design-inspector-entry {
    display: none;
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
    opacity: .72;
}

.bj-design-inspector-entry[aria-hidden="false"] { display: inline-flex; }
.bj-design-inspector-entry:hover,
.bj-design-inspector-entry:focus-visible { opacity: 1; text-decoration: underline; }
.bj-design-inspector-entry.is-active { opacity: 1; font-weight: 700; }

body.bj-design-inspect * { cursor: crosshair !important; }
body.bj-design-inspect .bj-design-inspector-entry,
body.bj-design-inspect .bj-design-inspector-panel,
body.bj-design-inspect .bj-design-inspector-panel * { cursor: auto !important; }

.bj-design-inspect-target {
    outline: 2px solid #2563eb !important;
    outline-offset: -2px;
    box-shadow: inset 0 0 0 9999px rgba(37, 99, 235, .055) !important;
}

.bj-design-inspector-tooltip {
    position: fixed;
    z-index: 2147483000;
    width: min(320px, calc(100vw - 24px));
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: #17202b;
    color: #fff;
    box-shadow: 0 12px 36px rgba(15,23,42,.24);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 19px;
    pointer-events: none;
}

.bj-design-inspector-tooltip strong { display: block; margin-bottom: 5px; color: #fff; }
.bj-design-inspector-tooltip span { display: block; color: #cbd5e1; }

.bj-design-inspector-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15,23,42,.52);
}

.bj-design-inspector-panel {
    width: min(520px, 100%);
    max-height: min(720px, calc(100dvh - 40px));
    overflow: auto;
    border-radius: 12px;
    background: #fff;
    color: #17202b;
    box-shadow: 0 24px 80px rgba(15,23,42,.3);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bj-design-inspector-panel__head,
.bj-design-inspector-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.bj-design-inspector-panel__head { border-bottom: 1px solid #e5e7eb; }
.bj-design-inspector-panel__head strong { font-size: 17px; line-height: 24px; }
.bj-design-inspector-panel__close { width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #64748b; font-size: 24px; cursor: pointer; }
.bj-design-inspector-panel__body { padding: 20px; }
.bj-design-inspector-panel__selector { margin: 0 0 14px; padding: 10px 12px; border-radius: 7px; background: #f5f7fa; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.bj-design-inspector-panel__rows { display: grid; gap: 1px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #e5e7eb; }
.bj-design-inspector-panel__row { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 10px 12px; background: #fff; font-size: 14px; line-height: 20px; }
.bj-design-inspector-panel__row span { color: #64748b; }
.bj-design-inspector-panel__row code { color: #17202b; overflow-wrap: anywhere; }
.bj-design-inspector-panel__foot { border-top: 1px solid #e5e7eb; justify-content: flex-end; }
.bj-design-inspector-panel__action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid #17202b; border-radius: 8px; background: #17202b; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.bj-design-inspector-panel__action.is-secondary { background: #fff; color: #17202b; }

@media (max-width: 640px) {
    .bj-design-inspector-panel__row { grid-template-columns: 96px 1fr; }
}
