.path-assistant {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: var(--layout-font-sans, "Inter", "Segoe UI", system-ui, sans-serif);
}

.path-assistant-toggle {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(120deg, #ec008c, #b5006d);
    color: #fff;
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(181, 0, 109, 0.35);
}

.path-assistant-toggle:hover,
.path-assistant-toggle:focus {
    background: linear-gradient(120deg, #ff149f, #c00073);
}

.path-assistant-panel {
    width: min(420px, calc(100vw - 24px));
    max-height: min(70vh, 620px);
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(28, 30, 34, 0.94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    backdrop-filter: blur(12px) saturate(115%);
    -webkit-backdrop-filter: blur(12px) saturate(115%);
    padding: 14px;
}

.path-assistant-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.path-assistant-panel-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.path-assistant-close {
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.path-assistant-close:hover,
.path-assistant-close:focus {
    background: rgba(236, 0, 140, 0.14);
    color: #ffffff;
}

.path-assistant-help {
    margin: 10px 0 0;
    font-size: .86rem;
    color: rgba(255, 255, 255, 0.72);
}

.path-assistant-help strong {
    color: #ffffff;
}

.path-assistant-form {
    margin-top: 12px;
}

.path-assistant-label {
    font-size: .8rem;
    font-weight: 700;
    color: #ffffff;
}

.path-assistant-input-wrap {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.path-assistant-input-wrap input {
    flex: 1;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 0 12px;
    color: #ffffff;
    background: rgba(59, 59, 58, 0.96);
    box-shadow: none;
    -webkit-text-fill-color: #ffffff;
}

.path-assistant-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.path-assistant-input-wrap input:focus {
    border-color: rgba(236, 0, 140, 0.72);
    box-shadow: 0 0 0 2px rgba(236, 0, 140, 0.16);
    outline: none;
}

.path-assistant-input-wrap button {
    border: 0;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-weight: 800;
    background: #ec008c;
    box-shadow: 0 10px 22px rgba(236, 0, 140, 0.28);
}

.path-assistant-input-wrap button:hover,
.path-assistant-input-wrap button:focus {
    background: #d1007a;
}

.path-assistant-status {
    min-height: 20px;
    margin-top: 8px;
    font-size: .82rem;
    color: rgba(255, 255, 255, 0.72);
}

.path-assistant-results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.path-assistant-result-item {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(38, 40, 45, 0.88);
    color: #ffffff;
    transition: border-color .2s ease;
}

.path-assistant-result-item:hover,
.path-assistant-result-item:focus-within {
    border-color: rgba(236, 0, 140, 0.35);
}

.path-assistant-result-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    padding: 10px 12px;
    color: inherit;
}

.path-assistant-result-link:hover,
.path-assistant-result-link:focus {
    text-decoration: none;
    background: rgba(236, 0, 140, 0.12);
    border-radius: 14px;
}

.path-assistant-result-title {
    margin: 0;
    font-size: .92rem;
    font-weight: 800;
    color: #ffffff;
}

.path-assistant-result-journey {
    margin-top: 2px;
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.72);
}

.path-assistant-result-path {
    margin-top: 2px;
    font-size: .79rem;
    color: rgba(255, 255, 255, 0.62);
    font-family: "Consolas", "Menlo", monospace;
}

.path-assistant-result-action {
    min-width: 30px;
    min-height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ec008c;
    color: #fff;
}

@media (max-width: 768px) {
    .path-assistant {
        right: 10px;
        left: auto;
        bottom: calc(88px + 12px);
        align-items: flex-end;
    }

    .path-assistant-toggle {
        min-height: 40px;
        padding: 0 12px;
        font-size: .9rem;
        justify-content: center;
        width: auto;
    }

    .path-assistant-panel {
        width: min(420px, calc(100vw - 24px));
    }
}
