#prototypeOverlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: none !important;
}

#prototypeOverlay .prototype-overlay,
#prototypeOverlay .prototype-report-modal {
    pointer-events: auto !important;
}

#prototypeOverlay .prototype-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2147483645 !important;
    display: none;
    justify-content: center;
    align-items: center;
}

.pagesfile-prototype-report-attribution-bar {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    box-sizing: border-box;
    max-width: calc(100vw - 16px);
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    box-shadow: none;
    font: 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-align: left;
}

.pagesfile-prototype-report-attribution-home-link {
    text-decoration: none;
}

.pagesfile-prototype-report-attribution-action {
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.pagesfile-prototype-report-attribution-home-link,
.pagesfile-prototype-report-attribution-action {
    background: linear-gradient(90deg, #32b9ff, #a879ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.pagesfile-prototype-report-attribution-home-link:focus-visible,
.pagesfile-prototype-report-attribution-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.prototype-popup {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    padding: 24px;
    max-width: 600px;
    width: calc(100% - 32px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#prototypeOverlay .prototype-report-modal {
    position: fixed !important;
    inset: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2147483646 !important;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.58);
}

.prototype-report-dialog {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    padding: 24px;
    max-width: 560px;
    width: calc(100% - 32px);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.popup-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.popup-close-btn:hover {
    background-color: #f1f5f9;
}

.popup-message {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.popup-report-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.popup-report-textarea {
    width: 100%;
    min-height: 132px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 14px;
    background: #f8fafc;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    resize: vertical;
    box-sizing: border-box;
}

.popup-report-textarea:focus {
    outline: none;
    background: #fff;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.popup-report-status {
    min-height: 20px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.popup-report-status.is-loading {
    color: #1d4ed8;
}

.popup-report-status.is-success {
    color: #15803d;
}

.popup-report-status.is-error {
    color: #dc2626;
}

.popup-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.popup-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    white-space: nowrap;
}

.popup-btn:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 2px;
}

.prototype-popup .report-btn {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-weight: 600;
}

.prototype-popup .report-btn:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.report-cancel-btn {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.report-cancel-btn:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.report-submit-btn {
    background-color: #1d4ed8;
    color: #ffffff;
    min-width: 112px;
}

.report-submit-btn:hover {
    background-color: #1e40af;
}

.report-submit-btn[disabled] {
    opacity: 0.75;
    cursor: not-allowed;
}

.prototype-popup .close-btn {
    background-color: #2563eb;
    color: #ffffff;
    min-width: 96px;
}

.prototype-popup .close-btn:hover {
    background-color: #1d4ed8;
}

/* --- 手动数据保存悬浮按钮 --- */
#ax-manual-sync-btn {
    position: fixed;
    left: 0;
    top: calc(50% - 26px);
    bottom: auto;
    z-index: 2147483647;
    min-width: 132px;
    height: 52px;
    padding: 0 16px 0 14px;
    background: rgba(37, 99, 235, 0.96);
    color: white;
    border-radius: 0 16px 16px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: default;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
    transform: translateX(calc(-100% + 10px));
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    font-size: 14px;
    font-weight: 600;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
    overflow: hidden;
}

#ax-manual-sync-btn:hover {
    background: rgba(29, 78, 216, 0.98);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
    transform: translateX(0);
}

#ax-manual-sync-btn:active {
    transform: translateX(0);
}

#ax-manual-sync-btn.is-dragging {
    cursor: default;
    transition: none;
}

#ax-manual-sync-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

#ax-manual-sync-btn.loading svg {
    animation: ax-spin 1s linear infinite;
}

#ax-manual-sync-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

#ax-manual-sync-btn span {
    pointer-events: none;
    letter-spacing: 0.2px;
}

@keyframes ax-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 提示弹窗 */
.ax-sync-toast {
    position: fixed;
    left: 50%;
    top: 30px;
    transform: translateX(-50%) translateY(-20px);
    z-index: 2147483647;
    padding: 10px 20px;
    border-radius: 8px;
    background: #1f2937;
    color: white;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.ax-sync-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#ax-sync-first-load-toast {
    position: fixed;
    left: 50%;
    top: 30px;
    z-index: 2147483647;
    padding: 10px 20px;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

#ax-sync-first-load-toast.show,
#ax-sync-first-load-toast.loading,
#ax-sync-first-load-toast.success,
#ax-sync-first-load-toast.error {
    opacity: 1;
    visibility: visible;
}

#ax-sync-first-load-toast.fade-out {
    opacity: 0;
    visibility: hidden;
}

#ax-sync-first-load-toast.loading {
    background: #1f2937;
}

#ax-sync-first-load-toast.success {
    background: #10b981;
}

#ax-sync-first-load-toast.error {
    background: #ef4444;
}

.ax-sync-toast.success {
    background: #10b981;
}

.ax-sync-toast.error {
    background: #ef4444;
}
