.prototype-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2147483645 !important;
    display: none;
    justify-content: center;
    align-items: center;
}

.prototype-report-shield {
    position: fixed;
    left: 16px;
    top: 35vh;
    z-index: 2147483640 !important;
    width: 56px;
    min-height: 56px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    cursor: move;
    user-select: none;
    touch-action: none;
    padding: 8px 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.prototype-report-shield:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.prototype-report-shield.is-dragging {
    transform: scale(1.03);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.prototype-report-shield-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}

.prototype-report-shield-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.prototype-report-shield-text {
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: #334155;
    pointer-events: none;
}

.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;
}

.prototype-report-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483646 !important;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.prototype-report-dialog {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    padding: 24px;
    max-width: 560px;
    width: calc(100% - 32px);
    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: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    resize: vertical;
    box-sizing: border-box;
}

.popup-report-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.popup-report-status.is-loading {
    color: #2563eb;
}

.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: 10px;
    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: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-weight: 600;
}

.prototype-popup .report-btn:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #475569;
}

.report-cancel-btn {
    background-color: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.report-cancel-btn:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #475569;
}

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

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

.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-toast.success {
    background: #10b981;
}

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