#apartmind-help-panel {
    position: fixed;
    top: 96px;
    right: 18px;
    bottom: 82px;
    z-index: 58;
    display: none;
    width: 360px;
    max-width: calc(100vw - 36px);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

#apartmind-help-panel.apartmind-help-panel-visible {
    display: flex;
    flex-direction: column;
}

.apartmind-help-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 14px;
}

.apartmind-help-panel-hint {
    margin: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    background: rgba(248, 250, 252, 0.72);
    padding: 8px 14px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.apartmind-help-panel-avatar {
    height: 48px;
    width: 48px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.12));
}

.apartmind-help-panel-body {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.apartmind-help-panel-body h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.apartmind-help-panel-body h4 {
    margin: 16px 0 8px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 800;
}

.apartmind-help-panel-body p,
.apartmind-help-panel-body li {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.apartmind-help-panel-body ul,
.apartmind-help-panel-body ol {
    margin: 8px 0 0 18px;
    padding: 0;
}

.apartmind-help-panel-body li + li {
    margin-top: 5px;
}

.apartmind-help-panel-section {
    margin-top: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 12px;
}

.apartmind-help-action-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.apartmind-help-action {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px 12px;
    color: #1e293b;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.apartmind-help-link-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(37, 99, 235, 0.32);
    border-radius: 12px;
    background: #2563eb;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.apartmind-help-link-button::after {
    content: ">";
    margin-left: 10px;
    font-size: 14px;
    font-weight: 900;
}

.apartmind-help-action:hover,
.apartmind-help-action:focus,
.apartmind-help-link-button:hover,
.apartmind-help-link-button:focus {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.06);
    color: #2563eb;
    outline: none;
}

.apartmind-help-note {
    margin-top: 12px;
    border-radius: 14px;
    background: #eff6ff;
    padding: 10px 12px;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.apartmind-help-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding: 10px 14px;
}

.apartmind-help-muted {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.apartmind-help-hint-toast {
    position: fixed;
    top: 78px;
    right: 18px;
    z-index: 90;
    max-width: min(360px, calc(100vw - 36px));
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 14px;
    background: #eff6ff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    padding: 11px 14px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    animation: apartmind-help-hint-in 160ms ease-out;
}

.apartmind-help-hint-toast-hide {
    animation: apartmind-help-hint-out 180ms ease-in forwards;
}

@keyframes apartmind-help-hint-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes apartmind-help-hint-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-6px); }
}

.apartmind-help-close,
.apartmind-help-back {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.apartmind-help-close {
    display: inline-flex;
    height: 32px;
    width: 32px;
    align-items: center;
    justify-content: center;
}

.apartmind-help-back {
    padding: 7px 10px;
}

.apartmind-help-close:hover,
.apartmind-help-back:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: #2563eb;
}

#apartmind-mobile-app-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 12px;
    z-index: 80;
    display: none;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
    padding: 12px;
}

#apartmind-mobile-app-banner.apartmind-mobile-app-banner-visible {
    display: flex;
}

.apartmind-mobile-app-banner-text {
    min-width: 0;
    flex: 1;
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
}

.apartmind-mobile-app-banner-text strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.apartmind-mobile-app-banner-close {
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

@media (min-width: 1280px) {
    body.apartmind-help-panel-open main {
        padding-right: 400px;
    }

    body.apartmind-help-panel-open .apartmind-help-aware-modal {
        padding-right: 400px !important;
    }
}

@media (max-width: 1279px) {
    #apartmind-help-panel {
        display: none !important;
    }
}
