#debug-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    user-select: none;
    transition: box-shadow 0.2s;
}

#debug-panel.dragging {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

#debug-panel-header {
    background: #004d40;
    color: #fff;
    padding: 10px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

#debug-panel-header:active {
    cursor: grabbing;
}

#debug-panel-content {
    padding: 15px;
}

#debug-panel .field {
    margin-bottom: 12px;
}

#debug-panel label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

#debug-panel input, #debug-panel textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    font-size: 13px;
    font-family: inherit;
}

#debug-panel textarea {
    resize: vertical;
    min-height: 60px;
}

#debug-panel .btn-group {
    display: flex;
    gap: 10px;
}

#debug-panel button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#debug-panel .btn-inspect {
    background: #e0f2f1;
    color: #004d40;
}

#debug-panel .btn-inspect.active {
    background: #004d40;
    color: #fff;
}

#debug-panel .btn-save {
    background: #2e7d32;
    color: #fff;
}

#debug-panel .btn-save:hover {
    background: #1b5e20;
}

.debug-inspector-overlay {
    position: fixed;
    pointer-events: none;
    border: 2px solid #004d40;
    background: rgba(0, 77, 64, 0.1);
    z-index: 9999;
    transition: all 0.1s ease-out;
    display: none;
}

.debug-inspector-overlay.active {
    display: block;
}

#debug-panel-status {
    font-size: 11px;
    margin-top: 8px;
    text-align: center;
    color: #666;
}

#debug-panel-status.success { color: #2e7d32; }
#debug-panel-status.error { color: #d32f2f; }
