﻿.gpt-apps-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gpt-apps-page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gpt-app-guide-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.gpt-app-guide-start i {
    font-size: 12px;
}

.gpt-app-guide-start:hover,
.gpt-app-guide-start:focus-visible {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.chat-guide-layer {
    position: fixed;
    inset: 0;
    z-index: 4200;
    pointer-events: none;
}

.chat-guide-blocker {
    position: fixed;
    inset: 0;
    z-index: 4200;
    pointer-events: auto;
    background: transparent;
}

.chat-guide-dim {
    position: fixed;
    z-index: 4201;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.64);
}

.chat-guide-focus {
    position: fixed;
    z-index: 4202;
    pointer-events: none;
    border: 2px solid #38bdf8;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 12px 32px rgba(15, 23, 42, 0.24);
    transition: left 0.18s ease, top 0.18s ease, width 0.18s ease, height 0.18s ease;
}

.chat-guide-focus.is-hidden {
    display: none;
}

.chat-guide-panel {
    position: fixed;
    z-index: 4203;
    width: min(360px, calc(100vw - 24px));
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.26);
    padding: 14px;
    pointer-events: auto;
    opacity: 1;
}

.chat-guide-panel.is-positioning {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.chat-guide-panel.is-mobile {
    left: 12px;
    right: 12px;
    width: auto;
}

.chat-guide-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.chat-guide-title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.chat-guide-close {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-guide-close:hover,
.chat-guide-close:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
}

.chat-guide-body {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.chat-guide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.chat-guide-progress {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.chat-guide-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.chat-guide-previous,
.chat-guide-secondary,
.chat-guide-primary {
    min-height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.chat-guide-previous,
.chat-guide-secondary {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
}

.chat-guide-previous:hover,
.chat-guide-previous:focus-visible,
.chat-guide-secondary:hover,
.chat-guide-secondary:focus-visible {
    background: #f8fafc;
}

.chat-guide-previous:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.chat-guide-previous:disabled:hover {
    background: #ffffff;
}

.chat-guide-primary {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.chat-guide-primary:hover,
.chat-guide-primary:focus-visible {
    border-color: #1d4ed8;
    background: #1d4ed8;
}

.mode-indicator.is-guide-hover .mode-indicator-remove {
    opacity: 1;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
}

.chat-app .mode-indicator.is-guide-hover .mode-indicator-icon > .mode-indicator-remove {
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
    .chat-guide-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .chat-guide-actions {
        justify-content: stretch;
    }

    .chat-guide-previous,
    .chat-guide-secondary,
    .chat-guide-primary {
        flex: 1 1 0;
    }
}

@media (max-width: 480px) {
    .gpt-app-guide-start {
        flex: 0 0 auto;
    }
}
