.jx-guide-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgb(15 23 42 / 42%);
}

.jx-guide-panel {
    position: fixed;
    z-index: 1100;
    inset-block: 0;
    inset-inline-end: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(480px, 100vw);
    max-width: 100vw;
    background: var(--jx-color-surface, #fff);
    border-inline-start: 1px solid var(--jx-color-border, #d8e0ea);
    box-shadow: -12px 0 32px rgb(15 23 42 / 16%);
    transform: translateX(100%);
    transition: transform 180ms ease;
}

.jx-guide-panel.is-open { transform: translateX(0); }
.jx-guide-panel__header,
.jx-guide-panel__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; }
.jx-guide-panel__header { border-bottom: 1px solid var(--jx-color-border, #d8e0ea); }
.jx-guide-panel__header h2 { margin: 2px 0 0; }
.jx-guide-panel__footer { position: sticky; bottom: 0; border-top: 1px solid var(--jx-color-border, #d8e0ea); }
.jx-guide-panel__footer > * { flex: 1 1 0; }
.jx-guide-panel__body { overflow-y: auto; padding: 20px; }
.jx-guide-panel__body section + section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--jx-color-border, #d8e0ea); }
.jx-guide-card { padding: 16px; border: 1px solid var(--jx-color-border, #d8e0ea); border-radius: 12px; background: #fff; }
.jx-guide-card + .jx-guide-card { margin-top: 12px; }
.jx-guide-card h4 { margin: 4px 0 8px; }
.jx-guide-card p:first-child { margin-top: 0; }
.jx-guide-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jx-guide-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.jx-guide-related strong { flex-basis: 100%; }
.jx-guide-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.jx-guide-search input,
.jx-guide-search button { box-sizing: border-box; height: 44px; min-height: 44px; }
.jx-guide-search input { width: 100%; min-width: 0; }
.jx-guide-search button { min-width: 76px; padding-inline: 16px; white-space: nowrap; text-align: center; }
[data-guide-search-results],
.jx-help-layout { margin-top: 16px; }
.jx-guide-note { margin: 12px 0; padding: 12px; color: #174a7c; background: #eff6ff; border-inline-start: 3px solid #174a7c; }
.jx-guide-shot { width: 100%; height: auto; margin-top: 12px; border: 1px solid #d8e0ea; border-radius: 8px; }
.jx-guide-highlight { outline: 3px solid #60a5fa !important; outline-offset: 3px; transition: outline-color 1.5s ease; }
body.jx-guide-panel-open { overflow: hidden; }

.jx-help-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.jx-help-search-card .jx-guide-search { max-width: none; }
.jx-guide-admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.jx-guide-admin-form .jx-full { grid-column: 1 / -1; }

@media (max-width: 639px) {
    .jx-guide-panel { width: 100vw; }
    .jx-guide-panel__body { padding: 16px; }
    .jx-guide-panel__footer { padding: 12px; }
    .jx-guide-admin-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .jx-guide-panel { transition: none; }
}
