.demo-guide-launch {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
}

.demo-guide-launch-btn {
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    padding: 11px 16px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.demo-guide-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #dc2626;
    border-radius: 999px;
    margin-right: 8px;
}

.demo-guide-panel {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: min(410px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid rgba(17,24,39,.12);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
    z-index: 9999;
    overflow: hidden;
    color: #111827;
}

.demo-guide-header {
    background: linear-gradient(135deg, #111827, #3b0d0d);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.demo-guide-kicker {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    opacity: .8;
    font-weight: 800;
}

.demo-guide-title {
    font-weight: 900;
    font-size: 16px;
}

.demo-guide-collapse {
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 9px;
    width: 30px;
    height: 30px;
    line-height: 1;
    font-size: 18px;
}

.demo-guide-body {
    padding: 16px;
    max-height: min(75vh, 700px);
    overflow-y: auto;
}

.demo-guide-panel.is-collapsed .demo-guide-body {
    display: none;
}

.demo-guide-panel.is-collapsed {
    width: 310px;
}

.demo-guide-progress-row {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.demo-guide-progress {
    height: 8px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.demo-guide-progress div {
    height: 100%;
    background: #dc2626;
    border-radius: 999px;
}

.demo-guide-body h5 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #111827;
    font-weight: 900;
}

.demo-guide-section {
    margin-bottom: 12px;
}

.demo-guide-section strong,
.demo-guide-sample strong,
.demo-guide-checklist strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: 4px;
}

.demo-guide-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.demo-guide-sample {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 10px;
    font-size: 13px;
    margin-bottom: 14px;
}

.demo-guide-route-warning {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.demo-guide-checklist {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 12px;
}

.demo-guide-checklist label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.25;
    margin: 8px 0 0;
    cursor: pointer;
}

.demo-guide-checklist input {
    margin-top: 1px;
}

.demo-guide-checklist input:checked + span {
    text-decoration: line-through;
    color: #6b7280;
}

.demo-guide-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: 12px;
}

.demo-guide-actions form {
    flex: 1;
}

.demo-guide-actions button {
    width: 100%;
}

.demo-guide-footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 12px;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-guide-footer form {
    margin: 0;
}

.demo-guide-highlighted {
    outline: 4px solid rgba(220, 38, 38, .75) !important;
    box-shadow: 0 0 0 8px rgba(220, 38, 38, .18), 0 12px 30px rgba(0,0,0,.20) !important;
    border-radius: 10px !important;
    position: relative;
    z-index: 9997;
    transition: box-shadow .2s ease, outline .2s ease;
}

.demo-guide-highlighted::after {
    content: "Use this area";
    position: absolute;
    right: 0;
    top: -34px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 9998;
}

.demo-guide-target-missing {
    animation: demoGuideShake .28s linear 1;
}

@keyframes demoGuideShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

@media print {
    .demo-guide-launch,
    .demo-guide-panel {
        display: none !important;
    }
}
